
stm32f0_peripheral_config
lhw_01
这个作者很懒,什么都没留下…
展开
-
stm32f0_adc_config
stm32f0_adc_configvoid adc_config(void){ ADC_InitTypeDef ADC_InitStructure; GPIO_InitTypeDef GPIO_InitStructure; DMA_InitTypeDef DMA_InitStructure; /* ADC1 DeInit */ ADC_DeInit(ADC1...原创 2018-12-28 11:55:23 · 653 阅读 · 0 评论 -
stm32f0_iap_config
#stm32f0_iap_configvoid IAP_Set(void){ uint32_t i = 0; /* Relocate by software the vector table to the internal SRAM at 0x20000000 ***/ /* Copy the vector table from the Flash (mapped at the base...原创 2018-12-28 12:02:07 · 145 阅读 · 0 评论 -
stm32f0_sys_stick
stm32F0_sys_stickvoid us_sleep(uint32_t time){ uint32_t temp; SysTick->LOAD = 6 * time; SysTick->VAL = 0X00;//清空计数器 SysTick->CTRL = 0X01;//使能,减到零是无动作,采用外部时钟源 do { temp = Sys...原创 2019-01-11 16:54:11 · 230 阅读 · 0 评论