Question
Volatile uint8_t variable in interrupts
Posted on April 14, 2015 at 21:51
Hello,
I have functionfifo_read(RxFifo, &rx, 1) which reads byte from FIFO buffer.
I want to use this function in two different interrupt handlers.
I have declared rx variable as follows
volatile
uint8_t rx;
but there is warning like this when I call function:
passing 'volatile uint8_t *' to parameter of type 'void *' discard qualifiers.
What is wrong? Thank you