mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-GD.git
synced 2026-02-17 15:41:08 +00:00
Added iBUS on AUX Serial
- iBUS implementation - changed default baud rate to 115200 - updated platformio.ini, the chip is now supported by Platformio
This commit is contained in:
@@ -122,6 +122,20 @@ void SysTick_Handler(void)
|
||||
delay_decrement();
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief this function handles the USART0 interrupt request
|
||||
\param[in] none
|
||||
\param[out] none
|
||||
\retval none
|
||||
*/
|
||||
void USART0_IRQHandler(void)
|
||||
{
|
||||
if(RESET != usart_interrupt_flag_get(USART0, USART_INT_FLAG_IDLE)) { // Check for IDLE line interrupt
|
||||
usart_flag_clear(USART0, USART_FLAG_IDLE); // Clear IDLE line flag (otherwise it will continue to enter interrupt)
|
||||
usart0_rx_check(); // Check for data to process
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief this function handles the USART1 interrupt request
|
||||
\param[in] none
|
||||
@@ -132,7 +146,7 @@ void USART1_IRQHandler(void)
|
||||
{
|
||||
if(RESET != usart_interrupt_flag_get(USART1, USART_INT_FLAG_IDLE)) { // Check for IDLE line interrupt
|
||||
usart_flag_clear(USART1, USART_FLAG_IDLE); // Clear IDLE line flag (otherwise it will continue to enter interrupt)
|
||||
usart_rx_check(); // Check for data to process
|
||||
usart1_rx_check(); // Check for data to process
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user