AnsweredAssumed Answered

Can I place the HAL_UART_TxCpltCallback callback function other than in main.c?

Question asked by imtiaz.usama on Oct 24, 2017

Hi,

I implemented a simple buffer for transmitting data by UART using DMA on an STM32F429. 

The code is working fine. To make things cleaner, I would like to move all UART related code to another source and header file. say X_uart.c , .h 

The problem is that if I move HAL_UART_TxCpltCallback from main.c to this source file, it doesn't get called. Am I doing it wrong or is it just not possible?

Outcomes