How can I use UART manually, without HAL_UART_***() functions?
NUCLEO-H723ZG dev. kit.
I need take over the full control of the USARTx. I need a TX interrupt and the RX interrupt handled manually independently the HAL_UART_*** functions. The HAL_UART_Receive_IT() and the HAL_UART_Transmit_IT() is useless for me.
During initialization I need to enable the receiver. When one byte is received then I need an interrupt and I will store the received bytes in the RXBuffer. The main() loop periodically checks the received bytes. If it finds a complete message in the RXBuffer[] then it processes the message, then creates the answer into the TXBuffer[], enables the TX interrupt and sends back answer.
To do this I need a TX interrupt when the TX buffer becomes empty. I simply send the next byte. When I get the TX buffer empty interrupt and I have no more bytes to send I disable the TX interrupt, clear the RXBuffer and re-enable the RX interrupt.
I am sure it is possible to do with STM32H723ZG MCU but I could not find such an example. How can I do this? Thanks for your help.
Louis
