Why am I getting a compiler error using volatile

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

Why am I getting a compiler error using volatile

775 Views
gerryk
Contributor I

Here is the line of code that is generating the error

 

uint32_t volatile * const Port_C_Clear_Output_Register = (uint32_t *) 0x400FF088;

 

and here is the error message

 

expected '=', ',', ';', 'asm' or '__attribute__' before 'volatile'

Labels (1)
0 Kudos
1 Reply

402 Views
gerryk
Contributor I

Never mind, I figured it out.....

I wasn't including stdint.h

0 Kudos