File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ static void _extmod_init_inverter()
193193static const stm32_usart_t sbus_trainer_USART = {
194194 .USARTx = TRAINER_MODULE_SBUS_USART,
195195 .rxGPIO = TRAINER_MODULE_SBUS_GPIO,
196- .IRQn = (IRQn_Type)- 1 ,
197- .IRQ_Prio = 0 ,
196+ .IRQn = TRAINER_MODULE_SBUS_USART_IRQn ,
197+ .IRQ_Prio = 6 ,
198198 .txDMA = nullptr ,
199199 .txDMA_Stream = 0 ,
200200 .txDMA_Channel = 0 ,
Original file line number Diff line number Diff line change 25742574 #define TRAINER_MODULE_CPPM_GPIO_AF GPIO_AF2
25752575 // Trainer SBUS input on heartbeat pin
25762576 #define TRAINER_MODULE_SBUS_USART USART6
2577+ #define TRAINER_MODULE_SBUS_USART_IRQn USART6_IRQn
25772578 #define TRAINER_MODULE_SBUS_GPIO INTMODULE_HEARTBEAT_GPIO
25782579 #define TRAINER_MODULE_SBUS_DMA DMA2
25792580 #define TRAINER_MODULE_SBUS_DMA_STREAM DMA2_Stream1
You can’t perform that action at this time.
0 commit comments