摘要: 以timer3为例,周期1KHz,1ms void time3_init(void) { TIM_TimeBaseInitTypeDef TIM_INIT; NVIC_InitTypeDef NVIC_INIT; RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, 阅读全文
posted @ 2019-12-12 20:20 cloos.xie 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: 代码如下: void exti_init(void) { EXTI_InitTypeDef exti_init; NVIC_InitTypeDef nvci_init; GPIO_InitTypeDef GPIO_init; //使能相应时钟 RCC_AHB1PeriphClockCmd(RCC_A 阅读全文
posted @ 2019-12-12 20:09 cloos.xie 阅读(1807) 评论(0) 推荐(0) 编辑