help with LPCXpresso examples for LPC1114

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

help with LPCXpresso examples for LPC1114

1,176 Views
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.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

810 Views
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 Kudos
Reply