📄 i2c.plg
字号:
i2cmst.c(18): warning: data definition has no type or storage class
i2cmst.c(19): error: parse error before "I2CReadLength"
i2cmst.c(19): warning: type defaults to `int' in declaration of `I2CReadLength'
i2cmst.c(19): warning: type defaults to `int' in declaration of `I2CWriteLength'
i2cmst.c(19): warning: data definition has no type or storage class
i2cmst.c: In function `main':
i2cmst.c(26): error: `DWORD' undeclared (first use in this function)
i2cmst.c(26): error: (Each undeclared identifier is reported only once
i2cmst.c(26): error: for each function it appears in.)
i2cmst.c(26): error: parse error before "i"
i2cmst.c(28): warning: implicit declaration of function `init_VIC'
i2cmst.c(29): warning: implicit declaration of function `I2CInit'
i2cmst.c(29): error: parse error before "I2CMASTER"
i2cmst.c(38): warning: "/*" within comment
i2cmst.c: At top level:
i2cmst.c(54): warning: type defaults to `int' in declaration of `I2CWriteLength'
i2cmst.c(54): warning: data definition has no type or storage class
i2cmst.c(55): warning: type defaults to `int' in declaration of `I2CReadLength'
i2cmst.c(55): warning: data definition has no type or storage class
i2cmst.c(56): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(56): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(17): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(56): error: `SE95_ADDR' undeclared here (not in a function)
i2cmst.c(56): warning: data definition has no type or storage class
i2cmst.c(57): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(57): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(56): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(57): error: `SE95_ID' undeclared here (not in a function)
i2cmst.c(57): warning: data definition has no type or storage class
i2cmst.c(58): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(58): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(57): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(58): error: `SE95_ADDR' undeclared here (not in a function)
i2cmst.c(58): error: `RD_BIT' undeclared here (not in a function)
i2cmst.c(58): warning: data definition has no type or storage class
i2cmst.c(59): warning: type defaults to `int' in declaration of `I2CCmd'
i2cmst.c(59): error: `GET_DEVICE_ID' undeclared here (not in a function)
i2cmst.c(59): warning: data definition has no type or storage class
i2cmst.c(60): warning: type defaults to `int' in declaration of `I2CEngine'
i2cmst.c(60): warning: data definition has no type or storage class
i2cmst.c(63): error: parse error before "for"
i2cmst.c(67): warning: type defaults to `int' in declaration of `I2CWriteLength'
i2cmst.c(67): error: redefinition of `I2CWriteLength'
i2cmst.c(54): error: `I2CWriteLength' previously defined here
i2cmst.c(67): warning: data definition has no type or storage class
i2cmst.c(68): warning: type defaults to `int' in declaration of `I2CReadLength'
i2cmst.c(68): error: redefinition of `I2CReadLength'
i2cmst.c(55): error: `I2CReadLength' previously defined here
i2cmst.c(68): warning: data definition has no type or storage class
i2cmst.c(69): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(69): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(58): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(69): error: `SE95_ADDR' undeclared here (not in a function)
i2cmst.c(69): warning: data definition has no type or storage class
i2cmst.c(70): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(70): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(69): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(70): error: `SE95_CONFIG' undeclared here (not in a function)
i2cmst.c(70): warning: data definition has no type or storage class
i2cmst.c(71): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(71): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(70): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(71): warning: data definition has no type or storage class
i2cmst.c(73): warning: type defaults to `int' in declaration of `I2CCmd'
i2cmst.c(73): error: redefinition of `I2CCmd'
i2cmst.c(59): error: `I2CCmd' previously defined here
i2cmst.c(73): error: `SET_CONFIGURATION' undeclared here (not in a function)
i2cmst.c(73): warning: data definition has no type or storage class
i2cmst.c(74): warning: type defaults to `int' in declaration of `I2CEngine'
i2cmst.c(74): warning: data definition has no type or storage class
i2cmst.c(77): error: parse error before "for"
i2cmst.c(81): warning: type defaults to `int' in declaration of `I2CWriteLength'
i2cmst.c(81): error: redefinition of `I2CWriteLength'
i2cmst.c(67): error: `I2CWriteLength' previously defined here
i2cmst.c(81): warning: data definition has no type or storage class
i2cmst.c(82): warning: type defaults to `int' in declaration of `I2CReadLength'
i2cmst.c(82): error: redefinition of `I2CReadLength'
i2cmst.c(68): error: `I2CReadLength' previously defined here
i2cmst.c(82): warning: data definition has no type or storage class
i2cmst.c(83): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(83): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(71): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(83): error: `SE95_ADDR' undeclared here (not in a function)
i2cmst.c(83): warning: data definition has no type or storage class
i2cmst.c(84): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(84): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(83): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(84): error: `SE95_TEMP' undeclared here (not in a function)
i2cmst.c(84): warning: data definition has no type or storage class
i2cmst.c(85): warning: type defaults to `int' in declaration of `I2CMasterBuffer'
i2cmst.c(85): error: conflicting types for `I2CMasterBuffer'
i2cmst.c(84): error: previous declaration of `I2CMasterBuffer'
i2cmst.c(85): error: `SE95_ADDR' undeclared here (not in a function)
i2cmst.c(85): error: `RD_BIT' undeclared here (not in a function)
i2cmst.c(85): warning: data definition has no type or storage class
i2cmst.c(86): warning: type defaults to `int' in declaration of `I2CCmd'
i2cmst.c(86): error: redefinition of `I2CCmd'
i2cmst.c(73): error: `I2CCmd' previously defined here
i2cmst.c(86): error: `GET_TEMPERATURE' undeclared here (not in a function)
i2cmst.c(86): warning: data definition has no type or storage class
i2cmst.c(87): warning: type defaults to `int' in declaration of `I2CEngine'
i2cmst.c(87): warning: data definition has no type or storage class
i2cmst.c(90): error: parse error before "return"
Target not created
Build target 'Target 1'
compiling i2c.c...
In file included from i2c.c(13): error:
D:/KeilLPC213x4xSample/Common/inc/irq.h:73:51: warning: backslash and newline separated by space
i2c.c(14): error: D:\KeilLPC213x4xSample\Common\inc\i2c.h: No such file or directory
i2c.c(16): error: `I2C_IDLE' undeclared here (not in a function)
i2c.c(17): error: `I2C_IDLE' undeclared here (not in a function)
i2c.c(22): error: `BUFSIZE' undeclared here (not in a function)
i2c.c(23): error: `BUFSIZE' undeclared here (not in a function)
i2c.c(51): error: parse error before "__irq"
i2c.c(52): error: syntax error before '{' token
i2c.c(56): warning: type defaults to `int' in declaration of `StatValue'
i2c.c(56): error: initializer element is not constant
i2c.c(56): warning: data definition has no type or storage class
i2c.c(57): error: parse error before '{' token
i2c.c(57): error: syntax error at '#' token
i2c.c(62): error: parse error before "volatile"
i2c.c(63): warning: type defaults to `int' in declaration of `I2CMasterState'
i2c.c(63): error: conflicting types for `I2CMasterState'
i2c.c(16): error: previous declaration of `I2CMasterState'
i2c.c(63): error: `I2C_STARTED' undeclared here (not in a function)
i2c.c(63): warning: data definition has no type or storage class
i2c.c(64): error: parse error before "break"
i2c.c(71): error: parse error before "volatile"
i2c.c(72): warning: type defaults to `int' in declaration of `I2CMasterState'
i2c.c(72): error: `I2C_RESTARTED' undeclared here (not in a function)
i2c.c(72): warning: data definition has no type or storage class
i2c.c(73): error: parse error before "break"
i2c.c(80): warning: type defaults to `int' in declaration of `I2CMasterState'
i2c.c(80): error: redefinition of `I2CMasterState'
i2c.c(72): error: `I2CMasterState' previously defined here
i2c.c(80): error: `DATA_ACK' undeclared here (not in a function)
i2c.c(80): warning: data definition has no type or storage class
i2c.c(81): error: parse error before '}' token
i2c.c(82): error: parse error before "volatile"
i2c.c(101): warning: type defaults to `int' in declaration of `I2CMasterState'
i2c.c(101): error: redefinition of `I2CMasterState'
i2c.c(80): error: `I2CMasterState' previously defined here
i2c.c(101): error: `I2C_REPEATED_START' undeclared here (not in a function)
i2c.c(101): warning: data definition has no type or storage class
i2c.c(102): error: parse error before '}' token
i2c.c(110): warning: type defaults to `int' in declaration of `I2CMasterState'
i2c.c(110): error: redefinition of `I2CMasterState'
i2c.c(101): error: `I2CMasterState' previously defined here
i2c.c(110): error: `I2C_REPEATED_START' undeclared here (not in a function)
i2c.c(110): warning: data definition has no type or storage class
i2c.c(111): error: parse error before '}' token
i2c.c(117): error: parse error before "volatile"
i2c.c(135): warning: type defaults to `int' in declaration of `I2CMasterState'
i2c.c(135): error: redefinition of `I2CMasterState'
i2c.c(110): error: `I2CMasterState' previously defined here
i2c.c(135): error: `DATA_NACK' undeclared here (not in a function)
i2c.c(135): warning: data definition has no type or storage class
i2c.c(136): error: parse error before '}' token
i2c.c(137): error: parse error before "volatile"
i2c.c(138): error: parse error before "volatile"
i2c.c(144): warning: type defaults to `int' in declaration of `I2CMasterState'
i2c.c(144): error: redefinition of `I2CMasterState'
i2c.c(135): error: `I2CMasterState' previously defined here
i2c.c(144): error: `DATA_NACK' undeclared here (not in a function)
i2c.c(144): warning: data definition has no type or storage class
i2c.c(145): error: parse error before "break"
i2c.c(153): error: syntax error at '#' token
i2c.c(154): error: parse error before "volatile"
i2c.c: In function `I2CStart':
i2c.c(174): error: `I2CONSET_STA' undeclared (first use in this function)
i2c.c(174): error: (Each undeclared identifier is reported only once
i2c.c(174): error: for each function it appears in.)
i2c.c(179): error: `I2C_STARTED' undeclared (first use in this function)
i2c.c(184): error: `MAX_TIMEOUT' undeclared (first use in this function)
i2c.c: In function `I2CStop':
i2c.c(206): error: `I2CONSET_STO' undeclared (first use in this function)
i2c.c(207): error: `I2CONCLR_SIC' undeclared (first use in this function)
i2c.c: In function `I2CInit':
i2c.c(231): error: `I2CONCLR_AAC' undeclared (first use in this function)
i2c.c(231): error: `I2CONCLR_SIC' undeclared (first use in this function)
i2c.c(231): error: `I2CONCLR_STAC' undeclared (first use in this function)
i2c.c(231): error: `I2CONCLR_I2ENC' undeclared (first use in this function)
i2c.c(234): error: `I2SCLL_SCLL' undeclared (first use in this function)
i2c.c(235): error: `I2SCLH_SCLH' undeclared (first use in this function)
i2c.c(236): error: `I2CSLAVE' undeclared (first use in this function)
i2c.c(238): error: `SE95_ADDR' undeclared (first use in this function)
i2c.c(242): error: `I2C0MasterHandler' undeclared (first use in this function)
i2c.c(246): error: `I2CONSET_I2EN' undeclared (first use in this function)
i2c.c: In function `I2CEngine':
i2c.c(269): error: `I2C_IDLE' undeclared (first use in this function)
i2c.c(279): error: `DATA_NACK' undeclared (first use in this function)
i2c.c: At top level:
i2c.c(22): error: storage size of `I2CMasterBuffer' isn't known
i2c.c(23): error: storage size of `I2CSlaveBuffer' isn't known
compiling i2cmst.c...
i2cmst.c(11): error: D:\KeilLPC213x4xSample\Common\inc\inc: No such file or directory
In file included from i2cmst.c(13): error:
D:/KeilLPC213x4xSample/Common/inc/irq.h:73:51: warning: backslash and newline separated by space
i2cmst.c(14): error: D:\KeilLPC213x4xSample\Common\inc\i2c.h: No such file or directory
i2cmst.c(17): error: `BUFSIZE' undeclared here (not in a function)
i2cmst.c: In function `main':
i2cmst.c(29): warning: implicit declaration of function `I2CInit'
i2cmst.c(29): error: `I2CMASTER' undeclared (first use in this function)
i2cmst.c(29): error: (Each undeclared identifier is reported only once
i2cmst.c(29): error: for each function it appears in.)
i2cmst.c(38): warning: "/*" within comment
i2cmst.c(50): error: `BUFSIZE' undeclared (first use in this function)
i2cmst.c(56): error: `SE95_ADDR' undeclared (first use in this function)
i2cmst.c(57): error: `SE95_ID' undeclared (first use in this function)
i2cmst.c(58): error: `RD_BIT' undeclared (first use in this function)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -