stm32
勤奋好学的强哥
这个作者很懒,什么都没留下…
展开
-
stm32_HSI
stm32启动时使用的是外部8M晶振,在system_stm32f10x.c文件中有定义,且使用的函数为void SystemInit (void)使用外部晶振HSE时的代码如下void SystemInit (void){// /* Reset the RCC clock configuration to the default reset state(for debug purpose) *...原创 2018-07-05 20:25:39 · 1596 阅读 · 0 评论 -
使用一个定时器作为另一个的预分频器
使用一个定时器作为另一个的预分频器使用TIM3作为TIM2的分频器 测量M级别信号频率void TIM2clkTIM3_Int_Init(void){ TIM_TimeBaseInitTypeDef TIM_TimeBaseInitStruct; GPIO_InitTypeDef GPIO_InitStructure; NVIC_InitTypeDef NVIC_InitStructure; ...原创 2018-07-05 20:26:18 · 3865 阅读 · 0 评论 -
STM32 总中断
函数位于core_cm3.c__set_PRIMASK(1); //关闭STM32总中断__set_PRIMASK(0); //开启STM32总中断转载 2019-01-11 20:09:07 · 567 阅读 · 0 评论