Do most users use LPCOpen, or do they roll their own drivers?

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

Do most users use LPCOpen, or do they roll their own drivers?

942 Views
keithmikoleit
Contributor I

I am having issues getting started with LPCOpen.  I am working with an LPC11U2X and Keil MDK/uVision as the toolchain.  I have downloaded v2.17 for the LPC1125, which seems to be the latest.  I can build the library and the examples fine, but when import the library to my own project the compiler can't find the API.  The documentation for v2 seems to be lacking as well, for example the GPIO API aren't in the associated chapter in the .chm i downloaded.  Are there any additional examples or documentation on LPCOpen v2?  Do most users use this library, or do they roll their own drivers from the user manual?

Labels (2)
3 Replies

730 Views
xianduidong
Contributor II

I am using LPC541xx, so use some LPCOpen3, and some use my own.

0 Kudos

730 Views
keithmikoleit
Contributor I

Solved one of my issues, I was attempting to include chip.h in the lpc_core directory in order to get access to the LPCOpen API, but this would generate a lot of redefinition errors.  Instead I can do the following:

#include <lpc_types.h>
#include <gpio_112x.h>

this gives access to the gpio API (the types is necessary, otherwise keywords like STATIC are unknown).

I am still curious if users in general use the LPCOpen library or not.

730 Views
xianduidong
Contributor II

the easiest way is to copy and change an example of LPCOpen to fill your need.

lots of error or warrning  bust out if you only manual include some .h files. 

0 Kudos