摘要: #include "stm32f10x.h" // Device header void TimerInit(void) { RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE); TIM_InternalClockConfig(TIM2); /** 阅读全文
posted @ 2024-07-02 18:04 Abraverman 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1、NVIC优先级分组 2、初始化NVIC // NVIC优先级分组 NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1); // NVIC初始化 NVIC_InitTypeDef NVIC_InitStructrue; NVIC_InitStructrue. 阅读全文
posted @ 2024-07-02 17:45 Abraverman 阅读(2) 评论(0) 推荐(0) 编辑