I am using STM32F46ZG NUCLEO discovery board. My code is like:
int main(){
HAL_UART_Transmit_IT(&huart1, buff, 5);
while(1)
{
do something;
}
}
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart){
HAL_UART_Transmit_IT(&huart1, buff, 5);
}
My code has no RTOS, and I want to continuously transmit the 5 bytes. Once the previous interrupt transmit finishes, I want to transmit 5 bytes right away. So can I just call HAL_UART_Transmit_IT()
in its own call back function?