cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Anonymous
Not applicable

hello all

we are working with detection of input as interrupt and we are using below software setup.

sdk 3.7.0-3

wifi module sn8205x

we are  facing below mentioned issue.

"During detection of interrupt we have to start timer for microsecond but in wiced sdk only millisecond timer API is given so how can we implement for microsecond"  

0 Likes
1 Solution
PriyaM_16
Moderator
Moderator

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.

Parameters
[in]microseconds: The time to delay in microseconds
Returns
WICED_SUCCESS : on success.
WICED_ERROR : if an error occurred

View solution in original post

2 Replies
Anonymous
Not applicable

anyone please suggest  me to how to make microsecond timer in wiced sdk

0 Likes
PriyaM_16
Moderator
Moderator

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.

Parameters
[in]microseconds: The time to delay in microseconds
Returns
WICED_SUCCESS : on success.
WICED_ERROR : if an error occurred

View solution in original post