STM32精確延遲1us和1ms的函數

延遲1us:html void delay_us(u32 i) { u32 temp; SysTick->LOAD=9*i; //設置重裝數值, 72MHZ時 SysTick->CTRL=0X01; //使能,減到零是無動做,採用外部時鐘源 SysTick->VAL=0; //清零計數器 do
相關文章
相關標籤/搜索