Using a file across multiple projects

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using a file across multiple projects

1,626件の閲覧回数
robertsmith
Contributor I

I have been using LPCxpresso for several years and there is something i can't figure out how to do that I have done with previous development environments.  I want to have two projects that have each have a set of distinct modules while the share modules such as CAN Bus communications, accessing flash memory, etc.  How do i set this up in LPCXpresso?

I have been using #defines and then generate two different sets of code but that is not the easiest way to handle this situation.

ラベル(2)
0 件の賞賛
返信
4 返答(返信)

1,562件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

Your LPCXpresso installation has an Examples folder with project examples. You didn't say which part you're using, but there are LPCOpen (and other) projects targeted for the LPC parts. All LPCOpen archives have board, chip, and other library projects included.

Thanks and regards,

LPCXpresso Support

0 件の賞賛
返信

1,562件の閲覧回数
robertsmith
Contributor I

Thanks. I inherited this project and we converted from Code Red a few years ago, so the only examples i have seen are code red.  I haven't really had time to dive into LPCXpresso but will start doing that now.

0 件の賞賛
返信

1,561件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

You're not very clear about what you want to do. Most users move module related code/data off into library projects. Projects which depend on a particular module configuration link to the respective library project(s). Please provide more detail.

Thanks and regards,

LPCXpresso Support

0 件の賞賛
返信

1,561件の閲覧回数
robertsmith
Contributor I

I have a module electric.c that i want to compile along with several other modules into an electric.bin file.

I then have a module hydraulic.c that i want to compile with those same other modules into hydraulic.bin. 

It sounds like i need to learn how to learn how to generate a library project. I will search the NXP site and try to figure out how to do this.  Can you point me to a library project example?

Thank you

0 件の賞賛
返信