阅读:1869回复:5
求助:关于移植周立功USB到LF2407系统上面,KERNEL.H头文件出错,望高手指点一下
我的在编译的时候出现好多结构体和联合体的错误,都是一种类型的错误
如下所示: illegal type for bit field " " 各个变量上面的定义都是 UC的类型出错 UC定义如下: #define UC unsigned char |
|
|
沙发#
发布于:2007-08-22 09:17
有人遇到过吗?
给点提示啊,谢谢先 |
|
|
板凳#
发布于:2007-08-22 10:49
---------------------------- tiaoshi.pjt - Debug ----------------------------
"C:\ti\c2400\cgtools\bin\dspcl" -g -q -fr"D:/assemble/tiaoshi/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "chap_9.c" [chap_9.c] "D14.h", line 53: [F080] illegal type for bit field 'SOFTCT' "D14.h", line 54: [F080] illegal type for bit field 'PWROFF' "D14.h", line 55: [F080] illegal type for bit field 'WKUPC' "D14.h", line 56: [F080] illegal type for bit field 'GLINTE' "D14.h", line 57: [F080] illegal type for bit field 'SFRESET' "D14.h", line 58: [F080] illegal type for bit field 'GOSUSP' "D14.h", line 59: [F080] illegal type for bit field 'SNDRSU' "D14.h", line 60: [F080] illegal type for bit field 'DISGLBL' "D14.h", line 74: [F080] illegal type for bit field 'INTPOL' "D14.h", line 75: [F080] illegal type for bit field 'INTLVL' "D14.h", line 76: [F080] illegal type for bit field 'DDBGMODOUT' "D14.h", line 77: [F080] illegal type for bit field 'DDBGMODIN' "D14.h", line 78: [F080] illegal type for bit field 'CDBGMOD' "D14.h", line 93: [F080] illegal type for bit field 'IERST' "D14.h", line 94: [F080] illegal type for bit field 'IESOF' "D14.h", line 95: [F080] illegal type for bit field 'IEPSOF' "D14.h", line 96: [F080] illegal type for bit field 'IESUSP' "D14.h", line 97: [F080] illegal type for bit field 'IERSM' "D14.h", line 98: [F080] illegal type for bit field 'IEHS_STA' "D14.h", line 99: [F080] illegal type for bit field 'IEDMA' "D14.h", line 100: [F080] illegal type for bit field 'RESERVED3' "D14.h", line 102: [F080] illegal type for bit field 'IEP0SETUP' "D14.h", line 103: [F080] illegal type for bit field 'RESERVED2' "D14.h", line 104: [F080] illegal type for bit field 'IEP0RX' "D14.h", line 105: [F080] illegal type for bit field 'IEP0TX' "D14.h", line 106: [F080] illegal type for bit field 'IEP1RX' "D14.h", line 107: [F080] illegal type for bit field 'IEP1TX' "D14.h", line 108: [F080] illegal type for bit field 'IEP2RX' "D14.h", line 109: [F080] illegal type for bit field 'IEP2TX' "D14.h", line 111: [F080] illegal type for bit field 'IEP3RX' >> Too many errors, aborting "C:\ti\c2400\cgtools\bin\dspcl" -g -q -fr"D:/assemble/tiaoshi/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "init.c" [init.c] "D14.h", line 53: [F080] illegal type for bit field 'SOFTCT' "D14.h", line 54: [F080] illegal type for bit field 'PWROFF' "D14.h", line 55: [F080] illegal type for bit field 'WKUPC' "D14.h", line 56: [F080] illegal type for bit field 'GLINTE' "D14.h", line 57: [F080] illegal type for bit field 'SFRESET' "D14.h", line 58: [F080] illegal type for bit field 'GOSUSP' "D14.h", line 59: [F080] illegal type for bit field 'SNDRSU' "D14.h", line 60: [F080] illegal type for bit field 'DISGLBL' "D14.h", line 74: [F080] illegal type for bit field 'INTPOL' "D14.h", line 75: [F080] illegal type for bit field 'INTLVL' "D14.h", line 76: [F080] illegal type for bit field 'DDBGMODOUT' "D14.h", line 77: [F080] illegal type for bit field 'DDBGMODIN' "D14.h", line 78: [F080] illegal type for bit field 'CDBGMOD' "D14.h", line 93: [F080] illegal type for bit field 'IERST' "D14.h", line 94: [F080] illegal type for bit field 'IESOF' "D14.h", line 95: [F080] illegal type for bit field 'IEPSOF' "D14.h", line 96: [F080] illegal type for bit field 'IESUSP' "D14.h", line 97: [F080] illegal type for bit field 'IERSM' "D14.h", line 98: [F080] illegal type for bit field 'IEHS_STA' "D14.h", line 99: [F080] illegal type for bit field 'IEDMA' "D14.h", line 100: [F080] illegal type for bit field 'RESERVED3' "D14.h", line 102: [F080] illegal type for bit field 'IEP0SETUP' "D14.h", line 103: [F080] illegal type for bit field 'RESERVED2' "D14.h", line 104: [F080] illegal type for bit field 'IEP0RX' "D14.h", line 105: [F080] illegal type for bit field 'IEP0TX' "D14.h", line 106: [F080] illegal type for bit field 'IEP1RX' "D14.h", line 107: [F080] illegal type for bit field 'IEP1TX' "D14.h", line 108: [F080] illegal type for bit field 'IEP2RX' "D14.h", line 109: [F080] illegal type for bit field 'IEP2TX' "D14.h", line 111: [F080] illegal type for bit field 'IEP3RX' >> Too many errors, aborting "C:\ti\c2400\cgtools\bin\dspcl" -g -q -fr"D:/assemble/tiaoshi/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "ISR.C" [isr.c] "D14.h", line 53: [F080] illegal type for bit field 'SOFTCT' "D14.h", line 54: [F080] illegal type for bit field 'PWROFF' "D14.h", line 55: [F080] illegal type for bit field 'WKUPC' "D14.h", line 56: [F080] illegal type for bit field 'GLINTE' "D14.h", line 57: [F080] illegal type for bit field 'SFRESET' "D14.h", line 58: [F080] illegal type for bit field 'GOSUSP' "D14.h", line 59: [F080] illegal type for bit field 'SNDRSU' "D14.h", line 60: [F080] illegal type for bit field 'DISGLBL' "D14.h", line 74: [F080] illegal type for bit field 'INTPOL' "D14.h", line 75: [F080] illegal type for bit field 'INTLVL' "D14.h", line 76: [F080] illegal type for bit field 'DDBGMODOUT' "D14.h", line 77: [F080] illegal type for bit field 'DDBGMODIN' "D14.h", line 78: [F080] illegal type for bit field 'CDBGMOD' "D14.h", line 93: [F080] illegal type for bit field 'IERST' "D14.h", line 94: [F080] illegal type for bit field 'IESOF' "D14.h", line 95: [F080] illegal type for bit field 'IEPSOF' "D14.h", line 96: [F080] illegal type for bit field 'IESUSP' "D14.h", line 97: [F080] illegal type for bit field 'IERSM' "D14.h", line 98: [F080] illegal type for bit field 'IEHS_STA' "D14.h", line 99: [F080] illegal type for bit field 'IEDMA' "D14.h", line 100: [F080] illegal type for bit field 'RESERVED3' "D14.h", line 102: [F080] illegal type for bit field 'IEP0SETUP' "D14.h", line 103: [F080] illegal type for bit field 'RESERVED2' "D14.h", line 104: [F080] illegal type for bit field 'IEP0RX' "D14.h", line 105: [F080] illegal type for bit field 'IEP0TX' "D14.h", line 106: [F080] illegal type for bit field 'IEP1RX' "D14.h", line 107: [F080] illegal type for bit field 'IEP1TX' "D14.h", line 108: [F080] illegal type for bit field 'IEP2RX' "D14.h", line 109: [F080] illegal type for bit field 'IEP2TX' "D14.h", line 111: [F080] illegal type for bit field 'IEP3RX' >> Too many errors, aborting "C:\ti\c2400\cgtools\bin\dspcl" -g -q -fr"D:/assemble/tiaoshi/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "kernel.c" [kernel.c] "D14.h", line 53: [F080] illegal type for bit field 'SOFTCT' "D14.h", line 54: [F080] illegal type for bit field 'PWROFF' "D14.h", line 55: [F080] illegal type for bit field 'WKUPC' "D14.h", line 56: [F080] illegal type for bit field 'GLINTE' "D14.h", line 57: [F080] illegal type for bit field 'SFRESET' "D14.h", line 58: [F080] illegal type for bit field 'GOSUSP' "D14.h", line 59: [F080] illegal type for bit field 'SNDRSU' "D14.h", line 60: [F080] illegal type for bit field 'DISGLBL' "D14.h", line 74: [F080] illegal type for bit field 'INTPOL' "D14.h", line 75: [F080] illegal type for bit field 'INTLVL' "D14.h", line 76: [F080] illegal type for bit field 'DDBGMODOUT' "D14.h", line 77: [F080] illegal type for bit field 'DDBGMODIN' "D14.h", line 78: [F080] illegal type for bit field 'CDBGMOD' "D14.h", line 93: [F080] illegal type for bit field 'IERST' "D14.h", line 94: [F080] illegal type for bit field 'IESOF' "D14.h", line 95: [F080] illegal type for bit field 'IEPSOF' "D14.h", line 96: [F080] illegal type for bit field 'IESUSP' "D14.h", line 97: [F080] illegal type for bit field 'IERSM' "D14.h", line 98: [F080] illegal type for bit field 'IEHS_STA' "D14.h", line 99: [F080] illegal type for bit field 'IEDMA' "D14.h", line 100: [F080] illegal type for bit field 'RESERVED3' "D14.h", line 102: [F080] illegal type for bit field 'IEP0SETUP' "D14.h", line 103: [F080] illegal type for bit field 'RESERVED2' "D14.h", line 104: [F080] illegal type for bit field 'IEP0RX' "D14.h", line 105: [F080] illegal type for bit field 'IEP0TX' "D14.h", line 106: [F080] illegal type for bit field 'IEP1RX' "D14.h", line 107: [F080] illegal type for bit field 'IEP1TX' "D14.h", line 108: [F080] illegal type for bit field 'IEP2RX' "D14.h", line 109: [F080] illegal type for bit field 'IEP2TX' "D14.h", line 111: [F080] illegal type for bit field 'IEP3RX' >> Too many errors, aborting "C:\ti\c2400\cgtools\bin\dspcl" -g -q -fr"D:/assemble/tiaoshi/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "reqcode.c" [reqcode.c] "standard.h", line 5: [W035] redefinition of macro 'UC' "standard.h", line 6: [W035] redefinition of macro 'UI' "reqcode.c", line 36: [F001] syntax error at or near symbol 'Standard_Device_Descriptor' "reqcode.c", line 41: [F001] syntax error at or near symbol '0x0110' "reqcode.c", line 46: [F001] syntax error at or near symbol '0x04CC' "reqcode.c", line 47: [F001] syntax error at or near symbol '0x1B49' "reqcode.c", line 48: [F001] syntax error at or near symbol '0x0000' "reqcode.c", line 57: [F001] syntax error at or near symbol 'HS_Device_Descriptor' "reqcode.c", line 62: [F001] syntax error at or near symbol '0x0200' "reqcode.c", line 67: [F001] syntax error at or near symbol '0x04CC' "reqcode.c", line 68: [F001] syntax error at or near symbol '0x1B49' "reqcode.c", line 69: [F001] syntax error at or near symbol '0x0000' "reqcode.c", line 87: [F088] redeclaration of 'code' with incompatible type <earlier declaration: line 36> "reqcode.c", line 87: [F001] syntax error at or near symbol 'HS_Device_Qualifier' "reqcode.c", line 92: [F001] syntax error at or near symbol '0x0200' "reqcode.c", line 112: [F088] redeclaration of 'code' with incompatible type <earlier declaration: line 87> "reqcode.c", line 112: [F001] syntax error at or near symbol 'Standard_Config_Descriptor' "reqcode.c", line 117: [F001] syntax error at or near symbol 'sizeof' "reqcode.c", line 136: [F088] redeclaration of 'code' with incompatible type <earlier declaration: line 112> "reqcode.c", line 136: [F001] syntax error at or near symbol 'Other_Speed_Config_Descriptor' "reqcode.c", line 141: [F001] syntax error at or near symbol 'sizeof' "reqcode.c", line 161: [F088] redeclaration of 'code' with incompatible type <earlier declaration: line 136> "reqcode.c", line 161: [F001] syntax error at or near symbol 'Bulk_Interface_Descriptor' "reqcode.c", line 175: [F001] syntax error at or near symbol 'HS_Bulk_Interface_Descriptor' "reqcode.c", line 198: [F088] redeclaration of 'code' with incompatible type <earlier declaration: line 161> "reqcode.c", line 198: [F001] syntax error at or near symbol 'Bulk_Out_Descriptor' "reqcode.c", line 205: [F001] syntax error at or near symbol '0x0040' "reqcode.c", line 210: [F001] syntax error at or near symbol 'Bulk_In_Descriptor' "reqcode.c", line 216: [F001] syntax error at or near symbol '0x0040' "reqcode.c", line 222: [F001] syntax error at or near symbol 'HS_Bulk_Out_Descriptor' "reqcode.c", line 229: [F001] syntax error at or near symbol '0x0200' "reqcode.c", line 234: [F001] syntax error at or near symbol 'HS_Bulk_In_Descriptor' >> Too many errors, aborting "C:\ti\c2400\cgtools\bin\dspcl" -g -q -fr"D:/assemble/tiaoshi/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "vendor.c" [vendor.c] "D14.h", line 53: [F080] illegal type for bit field 'SOFTCT' "D14.h", line 54: [F080] illegal type for bit field 'PWROFF' "D14.h", line 55: [F080] illegal type for bit field 'WKUPC' "D14.h", line 56: [F080] illegal type for bit field 'GLINTE' "D14.h", line 57: [F080] illegal type for bit field 'SFRESET' "D14.h", line 58: [F080] illegal type for bit field 'GOSUSP' "D14.h", line 59: [F080] illegal type for bit field 'SNDRSU' "D14.h", line 60: [F080] illegal type for bit field 'DISGLBL' "D14.h", line 74: [F080] illegal type for bit field 'INTPOL' "D14.h", line 75: [F080] illegal type for bit field 'INTLVL' "D14.h", line 76: [F080] illegal type for bit field 'DDBGMODOUT' "D14.h", line 77: [F080] illegal type for bit field 'DDBGMODIN' "D14.h", line 78: [F080] illegal type for bit field 'CDBGMOD' "D14.h", line 93: [F080] illegal type for bit field 'IERST' "D14.h", line 94: [F080] illegal type for bit field 'IESOF' "D14.h", line 95: [F080] illegal type for bit field 'IEPSOF' "D14.h", line 96: [F080] illegal type for bit field 'IESUSP' "D14.h", line 97: [F080] illegal type for bit field 'IERSM' "D14.h", line 98: [F080] illegal type for bit field 'IEHS_STA' "D14.h", line 99: [F080] illegal type for bit field 'IEDMA' "D14.h", line 100: [F080] illegal type for bit field 'RESERVED3' "D14.h", line 102: [F080] illegal type for bit field 'IEP0SETUP' "D14.h", line 103: [F080] illegal type for bit field 'RESERVED2' "D14.h", line 104: [F080] illegal type for bit field 'IEP0RX' "D14.h", line 105: [F080] illegal type for bit field 'IEP0TX' "D14.h", line 106: [F080] illegal type for bit field 'IEP1RX' "D14.h", line 107: [F080] illegal type for bit field 'IEP1TX' "D14.h", line 108: [F080] illegal type for bit field 'IEP2RX' "D14.h", line 109: [F080] illegal type for bit field 'IEP2TX' "D14.h", line 111: [F080] illegal type for bit field 'IEP3RX' >> Too many errors, aborting Build Complete, 是不是因为CCS不支持这个Unsigned Char这个类型啊??? 现在都不知道怎么办好了啊??? |
|
|
地板#
发布于:2007-08-23 08:08
有人作过吗?现在都不知道怎么样做了哦,望高手解答一下啊
先谢谢了哦 呵呵 |
|
|
地下室#
发布于:2007-08-26 00:20
有人遇到过吗?
能帮解答一下吗? 谢谢 |
|
|
5楼#
发布于:2007-08-29 16:29
如果编译器不支持,那么只好把位变量改成字节了.
|
|
|