Rev2 progress (#143)

* Rev2: define AUX output PWM device and channels

* Rev2: enalbe TIM1 used for aux outputs

* Rev2: aux pwm pins: no need to be 50MHz fast

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2022-09-06 19:53:22 -04:00 committed by GitHub
parent 1647a944cf
commit a57682a4b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -112,7 +112,7 @@
* PB15 - PWMout1 (output pushpull, alternate, 2 Mhz).
*/
#define VAL_GPIOBCRL 0x8A888200 /* PB7...PB0 */
#define VAL_GPIOBCRH 0xBB243488 /* PB15...PB8 */
#define VAL_GPIOBCRH 0xAA243488 /* PB15...PB8 */
#define VAL_GPIOBODR 0x0000FFFF
/*

View File

@ -44,6 +44,13 @@
// PB15 - TIM1_CH3N
#define AUXOUT_DAC_PWM_CHANNEL_1 2
// TIM1 - DAC for AUX outputs
#define AUXOUT_DAC_PWM_DEVICE PWMD1
// PB14 - TIM1_CH2N
#define AUXOUT_DAC_PWM_CHANNEL_0 1
// PB15 - TIM1_CH3N
#define AUXOUT_DAC_PWM_CHANNEL_1 2
#define ID_SEL1_PORT GPIOC
#define ID_SEL1_PIN 13