摘要: 开发板LED截图如下:开发板厂商的例程是1~4个LED形成流水灯,我自己闪灭LED1即可,以期熟悉stm32 的GPIO的几个固件库函数。为了养成稍微好一点的习惯,于是开始练习一个功能一个函数,下面是led初始化代码,先是<led.h>1 #ifndef _LED_H2 #define _LED_H3 4 void led_init(void);5 #endif然后是<led.c> 1 #include <stm32f10x.h> 2 #include "led.h" 3 4 GPIO_InitTypeDef GPIO_InitStruc 阅读全文
posted @ 2013-02-18 23:25 鱼竿的传说 阅读(804) 评论(0) 推荐(0) 编辑
$.getScript('http://s1.bdstatic.com/r/www/cache/baidu_search/baiduSearch-1.4.js', function () { baidusearch.init("shiny_chinese"); });