I am developing my application with KDS 3.0.0 + KSDK 1.3.0 + PEx + MQX_Standard on my K66 custom board.
I have to drive an UART in interrupt mode, so I use the fsl_uart PEx component, which relays on fsl_uart_driver and fsl_uart-hal KSDK modules.
With that component I can start receiving and/or transmitting in interrupt mode through the UART_DRV_ReceiveDATA() and UART_DRV_SendData() functions. I can install RX and TX call-back functions, which are called from the UART interrupt handler upon every character reception and transmission events.
Unfortunately, the TX call-back function is called only upon a TX Data Register Empty (TDRE) event. Instead, in may application I need to catch also the Transmission Complete (TC) event: how can I get that functionality with KSDK?
Unfortunately, the How To RS485 with KSDK component fsl_uart discussion does not help me.
Should I use the UART_HAL_SetIntMode() function to enable the TC event (TCIE) as interrupt source? And how?
Even if TC event were enabled as interrupt source, should I manually add the TC event handler into the UART interrupt handler generated by PEx and define and use a new TC call-back function of my own?
Thank you for your help.