文件名称:easyarm1138GPIO
- 所属分类:
- 微处理器(ARM/PowerPC等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 80kb
- 下载次数:
- 0次
- 提 供 者:
- 曾**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
是easyarm1138的通用输入输出口实例
例程是基于《Stellaris系列驱动库》编写的。
对LED和KEY的编程,采用封装好“驱动库”模式,只要在工程里添加LED和KEY的驱动程序,就能运用自如。
例如对LED的操作就很简单:
LED_Init(LED1) // 只初始化LED1,而对LED2和LED3所在的GPIO管脚无影响
LED_Init(LED1 | LED2 | LED3) // 同时初始化3只LED
LED_On(LED2 | LED3) // 同时点亮LED2和LED3,而LED1的状态保持不变
此外还有LED_Off()和LED_Toggle()两个操作函数,用法都是类似的。
-Is a common input and output easyarm1138 mouth routine is based on the examples of Stellaris Series driver library prepared. KEY on the LED and programming, using a good package, Treasury-driven model, as long as the engineering and KEY add LED driver can be with ease. For example, LED operation is very simple: LED_Init (LED1)// only initialize LED1, while LED2 and LED3 pin GPIO where no effect LED_Init (LED1 | LED2 | LED3)// At the same time initialization 3 LED LED_On (LED2 | LED3)// At the same time, lit LED2 and LED3, and LED1 status remains unchanged in addition to LED_Off () and LED_Toggle () function of the two operations, usage are similar.
例程是基于《Stellaris系列驱动库》编写的。
对LED和KEY的编程,采用封装好“驱动库”模式,只要在工程里添加LED和KEY的驱动程序,就能运用自如。
例如对LED的操作就很简单:
LED_Init(LED1) // 只初始化LED1,而对LED2和LED3所在的GPIO管脚无影响
LED_Init(LED1 | LED2 | LED3) // 同时初始化3只LED
LED_On(LED2 | LED3) // 同时点亮LED2和LED3,而LED1的状态保持不变
此外还有LED_Off()和LED_Toggle()两个操作函数,用法都是类似的。
-Is a common input and output easyarm1138 mouth routine is based on the examples of Stellaris Series driver library prepared. KEY on the LED and programming, using a good package, Treasury-driven model, as long as the engineering and KEY add LED driver can be with ease. For example, LED operation is very simple: LED_Init (LED1)// only initialize LED1, while LED2 and LED3 pin GPIO where no effect LED_Init (LED1 | LED2 | LED3)// At the same time initialization 3 LED LED_On (LED2 | LED3)// At the same time, lit LED2 and LED3, and LED1 status remains unchanged in addition to LED_Off () and LED_Toggle () function of the two operations, usage are similar.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
01 GPIO(通用输入输出)
.....................\1 两只LED交替闪烁
.....................\.................\TwoLED
.....................\.................\......\Debug
.....................\.................\......\Demo.dep
.....................\.................\......\Demo.ewd
.....................\.................\......\Demo.ewp
.....................\.................\......\Demo.eww
.....................\.................\......\LED.C
.....................\.................\......\LED.H
.....................\.................\......\main.c
.....................\.................\......\settings
.....................\.................\......\........\Demo.cspy.bat
.....................\.................\......\........\Demo.dbgdt
.....................\.................\......\........\Demo.dni
.....................\.................\......\........\Demo.wsdt
.....................\.................\......\startup_ewarm.c
.....................\.................\TwoLED.bin
.....................\.................\说明.txt
.....................\2 按键控制LED
.....................\.............\KEY_LED
.....................\.............\.......\Debug
.....................\.............\.......\Demo.dep
.....................\.............\.......\Demo.ewd
.....................\.............\.......\Demo.ewp
.....................\.............\.......\Demo.eww
.....................\.............\.......\KEY.C
.....................\.............\.......\KEY.H
.....................\.............\.......\LED.C
.....................\.............\.......\LED.H
.....................\.............\.......\main.c
.....................\.............\.......\settings
.....................\.............\.......\........\Demo.cspy.bat
.....................\.............\.......\........\Demo.dbgdt
.....................\.............\.......\........\Demo.dni
.....................\.............\.......\startup_ewarm.c
.....................\.............\KEY_LED.bin
.....................\.............\说明.txt
.....................\说明.txt
.....................\1 两只LED交替闪烁
.....................\.................\TwoLED
.....................\.................\......\Debug
.....................\.................\......\Demo.dep
.....................\.................\......\Demo.ewd
.....................\.................\......\Demo.ewp
.....................\.................\......\Demo.eww
.....................\.................\......\LED.C
.....................\.................\......\LED.H
.....................\.................\......\main.c
.....................\.................\......\settings
.....................\.................\......\........\Demo.cspy.bat
.....................\.................\......\........\Demo.dbgdt
.....................\.................\......\........\Demo.dni
.....................\.................\......\........\Demo.wsdt
.....................\.................\......\startup_ewarm.c
.....................\.................\TwoLED.bin
.....................\.................\说明.txt
.....................\2 按键控制LED
.....................\.............\KEY_LED
.....................\.............\.......\Debug
.....................\.............\.......\Demo.dep
.....................\.............\.......\Demo.ewd
.....................\.............\.......\Demo.ewp
.....................\.............\.......\Demo.eww
.....................\.............\.......\KEY.C
.....................\.............\.......\KEY.H
.....................\.............\.......\LED.C
.....................\.............\.......\LED.H
.....................\.............\.......\main.c
.....................\.............\.......\settings
.....................\.............\.......\........\Demo.cspy.bat
.....................\.............\.......\........\Demo.dbgdt
.....................\.............\.......\........\Demo.dni
.....................\.............\.......\startup_ewarm.c
.....................\.............\KEY_LED.bin
.....................\.............\说明.txt
.....................\说明.txt