COMPILING ERROR: Conflicting type

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

COMPILING ERROR: Conflicting type

1,657件の閲覧回数
DHARSAN
Contributor III

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 件の賞賛
返信
1 返信

1,632件の閲覧回数
Harry_Zhang
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 件の賞賛
返信