Why am I getting a compiler error using volatile

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Why am I getting a compiler error using volatile

1,289 次查看
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 回复

916 次查看
gerryk
Contributor I

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

I wasn't including stdint.h

0 项奖励
回复