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

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

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

1,770 次查看
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?

标签 (2)
3 回复数

1,558 次查看
xianduidong
Contributor II

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

0 项奖励
回复

1,558 次查看
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.

1,558 次查看
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 项奖励
回复