milan.rajik
Banned
- Joined
- Apr 1, 2013
- Messages
- 2,524
- Helped
- 540
- Reputation
- 1,078
- Reaction score
- 524
- Trophy points
- 1,393
- Activity points
- 0
Why this gives "Illegal Pointer Conversion" error?
I am using mikroC PRO PIC 6 and I am getting error for my function.
The UART1_Init() and UART2_Init() library function(s) prototypes as mentioned in mikroC PRO PIC help is
I am using mikroC PRO PIC 6 and I am getting error for my function.
The UART1_Init() and UART2_Init() library function(s) prototypes as mentioned in mikroC PRO PIC help is
Code C - [expand] 1 void UARTx_Init(const unsigned long baud_rate);
Code C - [expand] 1 2 3 4 5 6 void UARTx_Init(void(*fPtr)(const unsigned long), const unsigned long baud_rate) { (*fPtr)(baud_rate); Delay_ms(200); } UARTx_Init(&UART1_Init, 4800);