AnsweredAssumed Answered

Volatile uint8_t variable in interrupts

Question asked by hospodar.ivan on Apr 14, 2015
Latest reply on Apr 14, 2015 by hospodar.ivan
Hello,

I have function 
fifo_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

Outcomes