anyone please suggest me to how to make microsecond timer in wiced sdk
1 of 1 people found this helpful
There is an API wiced_rtos_delay_microseconds for the delay in microseconds in wiced_rtos.h.
wiced_result_t wiced_rtos_delay_microseconds ( uint32_t microseconds )
Delay for a given period of microseconds.
Causes the current thread to block for AT LEAST the specified number of microseconds. If the processor is heavily loaded with higher priority tasks, the delay may be much longer than requested.
NOTE: All threads with equal or lower priority than the current thread will not be able to run while the delay is occurring.
[in] microseconds : The time to delay in microseconds
- WICED_SUCCESS : on success.
- WICED_ERROR : if an error occurred