fix more host build error

This commit is contained in:
hathach
2018-12-05 21:12:10 +07:00
parent 2fa32bd949
commit 5a7493ed42
6 changed files with 24 additions and 18 deletions

View File

@@ -62,6 +62,12 @@ static inline bool osal_task_create(osal_task_def_t* taskdef)
return true;
}
static inline void osal_task_delay(uint32_t msec)
{
uint32_t start = tusb_hal_millis();
while ( ( tusb_hal_millis() - start ) < msec ) {}
}
//--------------------------------------------------------------------+
// Binary Semaphore API
//--------------------------------------------------------------------+