karltsai wrote on Monday, April 23, 2018:
this is the rewrite to break the barrier between HAL and FRTOS
#include <FreeRTOS.h>
#include <task.h>
// HAL_Delay is used mostly in device init and config
void HAL_Delay(uint32_t Delay)
{
vTaskDelay(Delay);
}
uint32_t HAL_GetTick(void)
{
return xTaskGetTickCount();
}