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,766件の閲覧回数
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,554件の閲覧回数
xianduidong
Contributor II

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

0 件の賞賛
返信

1,554件の閲覧回数
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,554件の閲覧回数
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 件の賞賛
返信