Update HAL_OS_tencentos_tiny.c
This commit is contained in:
@@ -32,7 +32,6 @@ void HAL_SleepMs(_IN_ uint32_t ms)
|
|||||||
(void)tos_sleep_hmsm(0,0,0, ms);
|
(void)tos_sleep_hmsm(0,0,0, ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void HAL_Printf(_IN_ const char *fmt, ...)
|
void HAL_Printf(_IN_ const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
@@ -61,7 +60,6 @@ int HAL_Vsnprintf(_IN_ char *str, _IN_ const int len, _IN_ const char *format, v
|
|||||||
return vsnprintf(str, len, format, ap);
|
return vsnprintf(str, len, format, ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void *HAL_Malloc(_IN_ uint32_t size)
|
void *HAL_Malloc(_IN_ uint32_t size)
|
||||||
{
|
{
|
||||||
return tos_mmheap_alloc(size);
|
return tos_mmheap_alloc(size);
|
||||||
@@ -182,6 +180,5 @@ void HAL_SemaphorePost(void *sem)
|
|||||||
int HAL_SemaphoreWait(void *sem, uint32_t timeout_ms)
|
int HAL_SemaphoreWait(void *sem, uint32_t timeout_ms)
|
||||||
{
|
{
|
||||||
return osSemaphoreWait ((osSemaphoreId)sem, timeout_ms);
|
return osSemaphoreWait ((osSemaphoreId)sem, timeout_ms);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user