LPC1114_samples project problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1114_samples project problem

547 Views
lpcware
NXP Employee
NXP Employee
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.
0 Kudos
2 Replies

524 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kataconov on Sun Sep 04 20:23:52 MST 2011
Thank you. You decide my problem!
0 Kudos

524 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Sep 01 03:16:24 MST 2011
See timer32.c:

#if CONFIG_ENABLE_DRIVER_TIMER32==1
You have to switch on timer32.c functions :eek:

See driver_config.h:

#ifndef DRIVER_CONFIG_H_
#define DRIVER_CONFIG_H

#include <LPC11xx.h>

#define CONFIG_ENABLE_DRIVER_CRP                        1
#define CONFIG_CRP_SETTING_NO_CRP                        1

#define CONFIG_ENABLE_DRIVER_ADC                        0
#define CONFIG_ADC_ENABLE_ADC_IRQHANDLER                1
#define CONFIG_ADC_ENABLE_BURST_MODE                    0
#define CONFIG_ADC_ENABLE_DEBUG_MODE                    1

#define CONFIG_ENABLE_DRIVER_CAN                        0
#define CONFIG_ENABLE_DRIVER_CLKCONFIG                    0
#define CONFIG_ENABLE_DRIVER_PRINTF                        0
#define CONFIG_ENABLE_DRIVER_GPIO                        0
#define CONFIG_ENABLE_DRIVER_I2C                        0
#define CONFIG_ENABLE_DRIVER_I2CSLAVE                    0
#define CONFIG_ENABLE_DRIVER_SWUART                        0
#define CONFIG_ENABLE_DRIVER_ROMCAN                        0
#define CONFIG_ENABLE_DRIVER_ROMUSB                        0
#define CONFIG_ENABLE_DRIVER_ROMPOWER                    1
#define CONFIG_ENABLE_DRIVER_RS485                        0
#define CONFIG_ENABLE_DRIVER_SMALLGPIO                    0
#define CONFIG_ENABLE_DRIVER_SSP                        0
#define CONFIG_ENABLE_DRIVER_TIMER16                    0
[COLOR=Red][B]#define CONFIG_ENABLE_DRIVER_TIMER32                    1[/B][/COLOR]
#define CONFIG_ENABLE_DRIVER_UART                        0
#define CONFIG_ENABLE_DRIVER_WDT                        0

#define CONFIG_TIMER32_DEFAULT_TIMER32_0_IRQHANDLER        1

 /* DRIVER_CONFIG_H_ */
#endif
0 Kudos