--some updates
This commit is contained in:
16
App/app.cpp
16
App/app.cpp
@@ -62,13 +62,27 @@ void AppInit(void)
|
||||
** \return none.
|
||||
**
|
||||
****************************************************************************************/
|
||||
uint8_t temp[2];
|
||||
void AppTask(void)
|
||||
{
|
||||
if (!bridge.uart1Buf->is_empty() && (__HAL_UART_GET_FLAG(bridge.getHuart2(), UART_FLAG_TC)))
|
||||
{
|
||||
temp[1] = bridge.uart1Buf->dequeue();
|
||||
HAL_UART_Transmit_IT(bridge.getHuart2(), &temp[1], 1);
|
||||
}
|
||||
|
||||
if (!bridge.uart2Buf->is_empty() && (__HAL_UART_GET_FLAG(bridge.getHuart1(), UART_FLAG_TC)))
|
||||
{
|
||||
temp[2] = bridge.uart2Buf->dequeue();
|
||||
HAL_UART_Transmit_IT(bridge.getHuart1(), &temp[2], 1);
|
||||
}
|
||||
}
|
||||
|
||||
/* check for bootloader activation request */
|
||||
/*
|
||||
BootComCheckActivationRequest();
|
||||
*/
|
||||
} /*** end of AppTask ***/
|
||||
/*** end of AppTask ***/
|
||||
|
||||
|
||||
/*********************************** end of app.c **************************************/
|
||||
|
||||
Reference in New Issue
Block a user