[Cortex-M0技术交流] main.c(5): error: #130: expected a "{"错在哪了?

[复制链接]
6081|6
 楼主| yinglin11 发表于 2012-11-4 22:33 | 显示全部楼层 |阅读模式
#include "stdint.h"
#include "Delayms.h"
#include "M051.h"
#include "Register_Bit.h"
void main()
{     
    PWRCON|=XTL12M_EN;
    while((CLKSTATUS&XTL12M_STB)==0);
    CLKSEL0=(CLKSEL0&(~HCLK))|HCLK_12M;
    P2_PMD=0x5555;
  while(1)
  {
P2_DOUT&=~0x01;
  Delayms(500);
P2_DOUT|=0x01;
Delayms(500);
}
}main.c(5): error: #130: expected a "{"错在哪了?
缥缈九哥 发表于 2012-11-5 15:59 | 显示全部楼层
你确定 你的{}是英文字符?
缥缈九哥 发表于 2012-11-5 16:00 | 显示全部楼层
你确定 你的{}是英文字符?
tianzhiwen 发表于 2013-1-6 10:30 | 显示全部楼层
在 void main()
前面一行加入“;”即可
缥缈九哥 发表于 2013-1-7 12:35 | 显示全部楼层
"Register_Bit.h"
里面有问题。
zsyf0918 发表于 2013-1-13 16:51 | 显示全部楼层
希望贴出来看看
4420083 发表于 2016-1-27 14:41 | 显示全部楼层
include 里的文件有误
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

2

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部