keil uvision 中的预期表达式错误(Tiva C Arm/ TM4C123GH6PM)
void PortF_Init(void){
SYSCTL_RCGC2_R |=(1<<5);
while((SYSCTL_PRGPIO_R&0x00000020)==0){}
GPIO_PORTF_LOCK_R =0x4C4F434B ; // Lock register .
GPIO_PORTF_CR_R =0XFF ; // Commit register .
GPIO_PORTF_DIR_R =0x0E ; // PF0 and PF4 input To control SW1,SW2.
GPIO_PORTF_DEN_R =0xFF ; // Enabling all pins
GPIO_PORTF_PUE_R =0X11 ;
}
嗨,
我试图在我的Tiva C卡上进行一个睡觉的LED项目,然后正确地讲了销钉,但我只有上面的部分才有错误。错误说“预期表达”。您有一个想法我为什么会遇到这个错误吗?
谢谢。
我已经检查了地址和语法错误,但找不到任何。
void PortF_Init(void){
SYSCTL_RCGC2_R |=(1<<5);
while((SYSCTL_PRGPIO_R&0x00000020)==0){}
GPIO_PORTF_LOCK_R =0x4C4F434B ; // Lock register .
GPIO_PORTF_CR_R =0XFF ; // Commit register .
GPIO_PORTF_DIR_R =0x0E ; // PF0 and PF4 input To control SW1,SW2.
GPIO_PORTF_DEN_R =0xFF ; // Enabling all pins
GPIO_PORTF_PUE_R =0X11 ;
}
Hi,
I am trying to do a sleeping led project on my tiva c card and I addressed the pins correctly but I get an error only in the part above. The error says "expected expression". Do you have an idea why am I getting this error?
Thanks.
I have checked the addresses and syntax error but I couldn't find any.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论