Why am I getting a compiler error using volatile

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

Why am I getting a compiler error using volatile

795件の閲覧回数
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'

ラベル(1)
0 件の賞賛
1 返信

422件の閲覧回数
gerryk
Contributor I

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

I wasn't including stdint.h

0 件の賞賛