quick GPIO question LPC13xx need quick answer:)

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

quick GPIO question LPC13xx need quick answer:)

729件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zmogedra on Wed Feb 13 06:28:30 MST 2013
Hi, I have just tried creating new LPC1346 project with CMSISv2p10_LPC13Uxx and DSPLIB_CM3 libraries included. I don't understand why I get error from the first line I included in the main program "LPC_GPIO1->DIR |= (1 << 25);" 'LPC_GPIO1' undeclared (first use in this function). This line perfectly worked in my LPC1114f project....

Could some one tell me what I am doing wrong and how the line should look like? Thank You
0 件の賞賛
返信
2 返答(返信)

709件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zmogedra on Wed Feb 13 06:53:04 MST 2013
Found my answer by surfing cmsis library it had to be LPC_GPIO->DIR[1].....
0 件の賞賛
返信

709件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ub3r on Wed Feb 13 06:52:33 MST 2013
Hello my friend.

Try this:
LPC_GPIO->DIR[1]  |= (1 << 25);
0 件の賞賛
返信