Content originally posted in LPCWare by Kataconov on Thu Sep 01 03:04:45 MST 2011
Hellow.
Please show my project. May be you can find the reason of mistake.
The fist i take two sample project and modify it (power_api_demo and PWM.
But they was full-work.
Then i try to added pwm code into power api, and i hame some error:
Description Resource Path Location Type
'MATCH0' undeclared (first use in this function) power_api_main.c /power_api_demo/src line 83 C/C++ Problem
'MATCH1' undeclared (first use in this function) power_api_main.c /power_api_demo/src line 88 C/C++ Problem
'TIME_INTERVAL' undeclared (first use in this function) power_api_main.c /power_api_demo/src line 79 C/C++ Problem
make: *** [src/power_api_main.o] Error 1 power_api_demo C/C++ Problem
implicit declaration of function 'enable_timer16' power_api_main.c /power_api_demo/src line 90 C/C++ Problem
implicit declaration of function 'enable_timer32' power_api_main.c /power_api_demo/src line 80 C/C++ Problem
implicit declaration of function 'init_timer16PWM' power_api_main.c /power_api_demo/src line 88 C/C++ Problem
implicit declaration of function 'init_timer32' power_api_main.c /power_api_demo/src line 79 C/C++ Problem
implicit declaration of function 'init_timer32PWM' power_api_main.c /power_api_demo/src line 83 C/C++ Problem
implicit declaration of function 'setMatch_timer16PWM' power_api_main.c /power_api_demo/src line 89 C/C++ Problem
implicit declaration of function 'setMatch_timer32PWM' power_api_main.c /power_api_demo/src line 84 C/C++ Problem
each undeclared identifier is reported only once for each function it appears in power_api_main.c /power_api_demo/src line 79 C/C++ Problem
But i didn't understand why i have this error, because i added timer32.h and timer16.h in power api project.
Thank you for your helping me.