mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Revolt has only 11 usable timers defined.
This commit is contained in:
parent
c4f0bb18b8
commit
4c0273c119
1 changed files with 9 additions and 3 deletions
|
@ -46,11 +46,12 @@
|
||||||
#define BEEPER_INVERTED
|
#define BEEPER_INVERTED
|
||||||
#else
|
#else
|
||||||
#define LED1 PB4
|
#define LED1 PB4
|
||||||
|
// Leave beeper here but with none as io - so disabled unless mapped.
|
||||||
#define BEEPER NONE
|
#define BEEPER NONE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// PC0 used as inverter select GPIO
|
||||||
#define INVERTER PC0 // PC0 used as inverter select GPIO
|
#define INVERTER PC0
|
||||||
#define INVERTER_USART USART1
|
#define INVERTER_USART USART1
|
||||||
|
|
||||||
#define MPU6000_CS_PIN PA4
|
#define MPU6000_CS_PIN PA4
|
||||||
|
@ -168,7 +169,12 @@
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
#define TARGET_IO_PORTC 0xffff
|
#define TARGET_IO_PORTC 0xffff
|
||||||
#define TARGET_IO_PORTD 0xffff
|
#define TARGET_IO_PORTD (BIT(2))
|
||||||
|
|
||||||
|
#ifdef REVOLT
|
||||||
|
#define USABLE_TIMER_CHANNEL_COUNT 11
|
||||||
|
#else
|
||||||
#define USABLE_TIMER_CHANNEL_COUNT 12
|
#define USABLE_TIMER_CHANNEL_COUNT 12
|
||||||
|
#endif
|
||||||
|
|
||||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(9) )
|
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(9) )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue