GPIO入门级操作
发布时间
阅读量:
阅读量
1GPIO架构
1.2 固件库代码组织流程
1.3 IO端口操作流程(常用操作技巧归纳)
1.4 IO端口位操作
1.1 GPIO结构
**
(1)基础框架

(2)运作方式

(3)寄存器地址
typedef struct //stm32f10x.h 定位到 GPIO_TypeDef 定义处 ,
{
__IO uint32_t CRL;
__IO uint32_t CRH;
__IO uint32_t IDR;
__IO uint32_t ODR;
__IO uint32_t BSRR;
__IO uint32_t BRR;
__IO uint32_t LCKR;
} GPIO_TypeDef;
*_#define GPIOA ((GPIO_TypeDef _)
全部评论 (0)
还没有任何评论哟~
