原帖由 David_Lee 于 2010-11-19 19:18 发表 Cap_Sensing_Slider_Wheel_V1.0.cCap_Sensing_Touch_Key_V1.0.c TI 官网里下的,基于G2211,G2231无比较模块。
附件压缩包里是完整的工程文件和视频效果
LaunchPad.rar
(670.79 KB, 下载次数: 259)
开发环境:IAR Embedded Workbench for MSP430 version 5.20.4
Cap_Sensing_Touch_Key_V1.0.c和Cap_Sensing_Slider_Wheel_V1.0.c对应的编译信息如下(挺多警告的):
Building configuration: LaunchPad - Debug Updating build tree... Cap_Sensing_Touch_Key_V1.0.c Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement E:\Documents\MSP430\LaunchPad\Cap_Sensing_Touch_Key_V1.0.c 95 Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement E:\Documents\MSP430\LaunchPad\Cap_Sensing_Touch_Key_V1.0.c 100 Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement E:\Documents\MSP430\LaunchPad\Cap_Sensing_Touch_Key_V1.0.c 110 Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement E:\Documents\MSP430\LaunchPad\Cap_Sensing_Touch_Key_V1.0.c 119 Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement E:\Documents\MSP430\LaunchPad\Cap_Sensing_Touch_Key_V1.0.c 137 Linking Total number of errors: 0 Total number of warnings: 10
Building configuration: LaunchPad - Debug Updating build tree... Linking Warning[w6]: Type conflict for external/entry "abs", in module Cap_Sensing_Slider_Wheel_V1.0 against external/entry in module ?abs; prototyped function vs K&R function /* In module Cap_Sensing_Slider_Wheel_V1.0: */ /* K&R Function, args 0, attr 0 */ int (__cc_version2 abs)(); /* In module ?abs: */ /* Function, args 1, attr 0 */ int (__cc_version2 abs)(int); Total number of errors: 0 Total number of warnings: 2 |