T1020 GPIO Programming

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

T1020 GPIO Programming

1,033 次查看
eshwarchand
Contributor I

Hi,

I started a new project which is having T1020 processor.i downloaded the code warrior ide and installed.first i am trying to write the gpio code. i read the gpio registers in user manual.GPIO1_GPDIR = 0xffffffff; i wrote the this for port1 direction as output but it shows the error GPIO1_GPDIR is undeclared.where can i get the T1020 header file.

0 项奖励
回复
1 回复

946 次查看
Pavel
NXP Employee
NXP Employee

Look at attached files. These files are available in u-boot source folder for the T1040RDB board. Draw attention that the t104xrdb.c uses the immap_85xx.h.

Use GPIO register from this file.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复