help with LPCXpresso examples for LPC1114

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

help with LPCXpresso examples for LPC1114

1,588 次查看
thomashavregaar
Contributor II

Hi

I am trying to learn about the LPC1114, and is therefore using the lpcxpresso.examples.lpc1114.302.zip

I have tried the Blinky and the Uart examples, and both work perfectly, but i would like to combine them.
when trying to combine the two projects, i include the gpio.h and the timer32.h, and include the following lines of code in the main part of the program:

lines of code in main

- init_timer32(0, TIME_INTERVAL);
- enable_timer32(0);
- GPIOInit();
- GPIOSetValue( LED_PORT, LED_BIT, LED_OFF );

Building the program resoults in several errors. The errors are fx. "undefined reference to ´GPIOInit´".

I can see that the drivers for the Uart example hilight the uart.h and uart.c amoungst others, but gpio.h and gpio.c are not highlighted, is this perhaps a part of the problem, and if this is the case how can it be fixed.

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

1,222 次查看
Badman
Contributor I

I suppose there is a shortage of paths for include in project settings.

You must add path to gpio:

1. Settings

2. includes

3. click symbol Add..

after enter path to gpio.h

gpio_settings.png

0 项奖励
回复