mirror of https://github.com/rusefi/wideband.git
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:
parent
1647a944cf
commit
a57682a4b6
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue