
stm32
g28_gerwulf
这个作者很懒,什么都没留下…
展开
-
stm32中一些常用基本库函数以及串口配置步骤
常用基本库函数:void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)//使能端口时钟 void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct)//初始化端口,选择端口号,设定参数 typedef struct ...原创 2018-04-08 20:24:01 · 2842 阅读 · 0 评论 -
stm32外部中断常用库函数
void GPIO_EXTILineConfig(uint8_t GPIO_PortSource, uint8_t GPIO_PinSource); //确定端口与中断线映射关系 void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct); //初始化中断线,触发方式 typedef struct { uint32_t EXTI_Line; //指定要...原创 2018-04-09 22:41:11 · 1350 阅读 · 0 评论 -
stm32外部中断配置步骤
//外部中断配置步骤 //①初始化IO口为复用 AFIO void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct); //②开启IO口复用时钟 void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState); //③设...原创 2018-04-20 14:48:12 · 1588 阅读 · 0 评论