»
(008) CubeIDE Implementation of USB Peripherals*
(018) C99 pointer*
(019) C99 With only value assignment*
(022) POSIX pthread multi-threads mutex*
(023) POSIX pthread multi-threads programming*
(027) C99 time and wait*
(028) High-precision calculation with GMP*
(029) Web Service Lib*
(030) International Components for Unicode (ICU)*
(031) Performance of C is higher than C++, because...*
🕹️(019) FreeRTOS delay util
TickType_t xLastWakeTime = xTaskGetTickCount();
while(1)
{
...
...
vTaskDelayUtil(&xLastWakeTime, 1000);//DelayUtil操作,会减去自上一次调用以来已经经过的时间,从而实现固定间隔运行while循环的功能,这与JS动画中的requestFrameAnimation()函数中的帧率的控制是一个控制逻辑。
}