一个0error 0warning的工程 导入DTH11软件包后 运行报错
packages\dhtxx-latest\src\dhtxx.c:33:16: error: 'SysTick' undeclared (first use in this function)
us = us * (SysTick->LOAD / (1000000 / RT_TICK_PER_SECOND));
^~~~~~~
原函数
RT_WEAK void rt_hw_us_delay(rt_uint32_t us)
{
rt_uint32_t delta;
us = us * (SysTick->LOAD / (1000000 / RT_TICK_PER_SECOND));
delta = SysTick->VAL;
while (delta - SysTick->VAL < us) continue;
}
这种情况是什么原因 该如何修改 请各位帮忙解答 感谢
更多回帖