文件名称:lm3s811_led
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 47kb
- 下载次数:
- 0次
- 提 供 者:
- 小*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
lm3s811 程序
对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()两个操作函数,用法都是类似的。-KEY programming on the LED and using the package good " driver library" model, just add the LED and the KEY Project in the driver, you can use with ease. For example, the operation of the LED is simple: LED_Init (LED1) // only initialize the LED1, LED2 and LED3 against GPIO pins where no effect LED_Init (LED1 | LED2 | LED3) // also initialize 3 only LED LED_On (LED2 | LED3) // while light LED2 and LED3, LED1 state remains unchanged while the addition LED_Off () and LED_Toggle () function of the two operations, usage is similar.
对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()两个操作函数,用法都是类似的。-KEY programming on the LED and using the package good " driver library" model, just add the LED and the KEY Project in the driver, you can use with ease. For example, the operation of the LED is simple: LED_Init (LED1) // only initialize the LED1, LED2 and LED3 against GPIO pins where no effect LED_Init (LED1 | LED2 | LED3) // also initialize 3 only LED LED_On (LED2 | LED3) // while light LED2 and LED3, LED1 state remains unchanged while the addition LED_Off () and LED_Toggle () function of the two operations, usage is similar.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1 两只LED交替闪烁\TwoLED\Backup of Demo.ewd
.................\......\Backup of Demo.ewp
.................\......\Debug\Exe\Demo.bin
.................\......\.....\...\Demo.out
.................\......\.....\...\Demo.sim
.................\......\.....\List\Demo.map
.................\......\.....\Obj\Demo.pbd
.................\......\.....\...\LED.o
.................\......\.....\...\main.o
.................\......\.....\...\startup_ewarm.o
.................\......\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
.................\TwoLED\Debug\Exe
.................\......\.....\List
.................\......\.....\Obj
.................\......\Debug
.................\......\settings
.................\TwoLED
1 两只LED交替闪烁
.................\......\Backup of Demo.ewp
.................\......\Debug\Exe\Demo.bin
.................\......\.....\...\Demo.out
.................\......\.....\...\Demo.sim
.................\......\.....\List\Demo.map
.................\......\.....\Obj\Demo.pbd
.................\......\.....\...\LED.o
.................\......\.....\...\main.o
.................\......\.....\...\startup_ewarm.o
.................\......\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
.................\TwoLED\Debug\Exe
.................\......\.....\List
.................\......\.....\Obj
.................\......\Debug
.................\......\settings
.................\TwoLED
1 两只LED交替闪烁