STM32 SysTick應用注意

由上面的資料可以看出,SysTick的函數已經變化了很多,所以在使用時一定要看相應的庫函數介紹文檔。
//SYSTICK分頻--1ms的系統時鐘中斷
if (SysTick_Config(SystemFrequency / 1000))
{
/* Capture error */
while (1);
}

由上面的資料可以看出,SysTick的函數已經變化了很多,所以在使用時一定要看相應的庫函數介紹文檔。
//SYSTICK分頻--1ms的系統時鐘中斷
if (SysTick_Config(SystemFrequency / 1000))
{
/* Capture error */
while (1);
}
評論