quick GPIO question LPC13xx need quick answer:)

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

quick GPIO question LPC13xx need quick answer:)

886 次查看
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 回复数

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

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