--some updates

This commit is contained in:
Mysteo
2023-07-26 17:38:26 +03:00
parent d5989a496b
commit bfa9d67eb9
13 changed files with 222 additions and 34 deletions

View File

@@ -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 **************************************/