新手上路
- 积分
- 28
- 金钱
- 28
- 注册时间
- 2018-12-7
- 在线时间
- 4 小时
|

楼主 |
发表于 2018-12-16 12:48:54
|
显示全部楼层
請問我要用Systick要怎麼用???
不是加上這些程式碼就可以了嗎???
if (SysTick_Config(SystemCoreClock / 1000))
{
/* Capture error */
while (1);
}
void Delay(__IO uint32_t nTime)
{
TimingDelay = nTime;
while(TimingDelay != 0);
}
/**
* @brief Decrements the TimingDelay variable.
* @param None
* @retval None
*/
void TimingDelay_Decrement(void)
{
if (TimingDelay != 0x00)
{
TimingDelay--;
}
}
#ifdef USE_FULL_ASSERT |
|