Content originally posted in LPCWare by charithjperera on Sun Feb 06 01:13:14 MST 2011
Hi Everyone,
Sorry for that seems to be an extremely noob question - how do I define header files so I am able to use the functions defined in them and their corresponding c files?
Also - how could I get trig functions? including math.h seemed to do nothing - I am looking for the inverse trig functions.
I am prototyping a tilt sensor that includes an lpcxpresso 1114 talking to two sensors through I2C. I started off with the I2C example and now I have modified it completely so it collects, process and returns the data over the console through semihosting.
I require GPIO functionality and the timer for interrupts and to get the change in time for numerical integration. including the gpio.h and timer headers as is done in the blinker example did nothing, are there any settings that need to be changed or is there another way to define them?
Also - how could I implement inverse trig functions? Is there a standard library such as math that i'd be able to use with the lpcxpresso?
Thanks,
Charith