feat(newib): Add "usleep" and "sleep" function

This commit is contained in:
Dong Heng
2018-10-23 10:27:18 +08:00
parent 08355fc42d
commit 7bd6fc051b
3 changed files with 34 additions and 1 deletions

View File

@ -97,6 +97,16 @@ extern uint32_t WDEV_INTEREST_EVENT;
*/
void os_delay_us(uint16_t us);
/**
* @brief CPU do while loop for some time.
* In FreeRTOS task, please call FreeRTOS apis.
*
* @param uint32_t us : Delay time in us.
*
* @return None
*/
void ets_delay_us(uint32_t us);
/**
* @brief Register the print output function.
*