摘要: 建立led.c,并在其中配置LED初始化需要的参数 void LED_Init(void) { GPIO_InitTypeDef GPIO_InitStructure; //定义了一个GPIO_InitTypeDef类型的结构体,名字叫GPIO_InitStructure RCC_APB2Perip 阅读全文
posted @ 2020-11-20 10:53 ShadowEast 阅读(1550) 评论(0) 推荐(0)
摘要: #ifdef __cplusplus #define __I volatile /*!< defines 'read only' permissions */ #else #define __I volatile const /*!< defines 'read only' permissions 阅读全文
posted @ 2020-11-20 09:41 ShadowEast 阅读(137) 评论(0) 推荐(0)
摘要: 正在学习stm32,其中部分关于io口复用(default)和重映射(remap)记录如下 端口复用配置过程 以PA9,PA10配置为串口1为例 1、GPIO端口时钟使能 RCC_APB2PeriphColckCmd(RCC_APB2Periph_GPIOA,ENABLE); 复用外设时钟使能 RC 阅读全文
posted @ 2020-10-31 22:59 ShadowEast 阅读(384) 评论(0) 推荐(0)