Content originally posted in LPCWare by schisanoa on Mon Apr 07 00:41:18 MST 2014
Hello, I have a little problem compiling a project based on LPCOpen but probably it's a stupid problem ;-)
The project is composed by: LPC_CHIP_40XX from LPCOpen, and my project. If I declare OscRateIn and RTCOscRateIn in my project(I don't use Board support package), then both the variable are not visible from the clock_40xx_17xx.c file, and compiler report the error as per "undefined reference".
I've checked the clock_40xx_17xx.h and the OscRateIn is declared:
extern const uint32_t OscRateIn;
so, I checked how it is declared in the board support package:
const uint32_t OscRateIn = 12000000;
that is the same declaration I made in my own file.
What I'm doing wrong?
thank you