COMPILING ERROR: Conflicting type

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

COMPILING ERROR: Conflicting type

93 Views
DHARSAN
Contributor I

HELLO, 

I'm currently working in the UART reception for the communication, I just modified the function name related to my application as flexcomm2 which is replaced for UART_TransferIRQ. When I called the function it gives conflicting error type. I doesn't seen any error using default example function UART_TransferIRQ. What will be the issue?

../drivers/fsl_usart.c:1113:6: error: conflicting types for 'FLEXCOMM2_DriverIRQHandler'; have 'void(USART_Type *, usart_handle_t *)' {aka 'void(USART_Type *, struct _usart_handle *)'}

1113 | void FLEXCOMM2_DriverIRQHandler(USART_Type*base, usart_handle_t*handle)

0 Kudos
1 Reply

68 Views
HangZhang
NXP Employee
NXP Employee

Hi @DHARSAN 

Based on error messages,

HangZhang_0-1716799376989.png

Your previous declaration of "FLEXCOMM2_DriverIRQHandler" with type void(void)

So you should the declaration of "FLEXCOMM2_DriverIRQHandler" with void FLEXCOMM2_DriverIRQHandler(USART_Type *base, usart_handle_t *handle);

Hope this will help you.

BR

Hang

0 Kudos