收集了好多文件,分享下。下周传Energia驱动5110液晶屏的程序
百度网盘
http://pan.baidu.com/s/19WPHI
另外有
Altium Designer 13.2.5
http://pan.baidu.com/s/10057B
CCS5.5.0.00077_win32
http://pan.baidu.com/s/1xbXIo
MSP-EXP430F5529
http://pan.baidu.com/s/1iiQRO
下面的程序是Stellaris LaunchPad Workshop上其中的一个程序,ARM的函数名真长啊。。。
- #include "inc/hw_types.h"
- #include "inc/hw_memmap.h"
- #include "driverlib/sysctl.h"
- #include "driverlib/gpio.h"
- int main(void)
- {
- int LED = 2;
- SysCtlClockSet(SYSCTL_SYSDIV_4|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);
- SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
- GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3);
- while(1)
- {
- // Turn on the LED
- GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3, LED);
- // Delay for a bit
- SysCtlDelay(2000000);
- // Cycle through Red, Green and Blue LEDs
- if (LED == 8) {LED = 2;} else {LED = LED*2;}
- }
- }
复制代码对比下还是Energia的程序简单
- // the setup routine runs once when you press reset:
- void setup() {
- // initialize the digital pin as an output.
- pinMode(RED_LED, OUTPUT);
- }
- // the loop routine runs over and over again forever:
- void loop() {
- digitalWrite(RED_LED, HIGH); // turn the LED on (HIGH is the voltage level)
- delay(1000); // wait for a second
- digitalWrite(RED_LED, LOW); // turn the LED off by making the voltage LOW
- delay(1000); // wait for a second
- }
复制代码