![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
嵌入式
文章平均质量分 84
CWJ的博客
You never know how strong you really are until being strong is the only choice you have
展开
-
STM32寄存器开发之KEY控制LED
一、前期准备:1、STM32F4xx中文参考手册.pdf先上代码#include "stm32f4xx.h" #define RCC_AHB1ENR ( *(volatile unsigned int *)(0x40023800 + 0x30) ) //AHB1时钟使能寄存器#define GPIOF_MODER ( *(volatile unsigned int *)(0x40021400 + 0x00) ) //GPIOF端口模式寄存器#define GPIOF_OTYPER原创 2021-08-13 20:14:04 · 552 阅读 · 0 评论 -
STM32寄存器开发之点亮led灯
一、前期准备:1、STM32F4xx中文参考手册.pdf代码:#include "stm32f4xx.h" #define RCC_AHB1ENR ( *(volatile unsigned int *)(0x40023800 + 0x30) ) //AHB1时钟使能寄存器#define GPIOF_MODER ( *(volatile unsigned int *)(0x40021400 + 0x00) ) //GPIOF端口模式寄存器#define GPIOF_OTYPER原创 2021-08-13 19:57:02 · 1055 阅读 · 0 评论