quick GPIO question LPC13xx need quick answer:)

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

quick GPIO question LPC13xx need quick answer:)

717 Views
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 Kudos
Reply
2 Replies

697 Views
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 Kudos
Reply

697 Views
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 Kudos
Reply