![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
嵌入式
浮沉_y
这个作者很懒,什么都没留下…
展开
-
MiniSTM32 学习记录
这里我会记录我接下来所使用过的所有代码,弄成一个一个函数、供自己以后复习、贴代码。1、点亮LED灯(流水灯)#include "stm32f10x.h" void delay_ms(int t); void LED_Init(); int i, j; int main(void) { LED_Init(); while(1){ GPIOA->BSRR = 0x01000000; /...原创 2018-04-02 21:57:27 · 1144 阅读 · 1 评论 -
MiniSTM32函数
1、按键控制函数#include "stm32f10x.h" #define KEY_ON 0 #define KEY_OFF 1 static void KeyDelay( uint32_t nCounter ) // 延时函数 { while ( nCounter-- ); } void ConfigKey( void ) // 按键的配置 { GPIO_InitTyp...原创 2018-04-12 15:05:27 · 430 阅读 · 0 评论