Delay#

Provides a way for Sub-Ghz protocol to control delay.

Functions#

void
sid_pal_delay_us(uint32_t delay)

Implements a busy wait delay safe to be used in SWI context.

void

Implements a delay function using RTOS API call.

Function Documentation#

sid_pal_delay_us#

void sid_pal_delay_us (uint32_t delay)

Implements a busy wait delay safe to be used in SWI context.

Parameters
TypeDirectionArgument NameDescription
uint32_t[in]delay

Time in us to delay

Due to busy wait implementation, should not be used for long durations. If you need delay >1ms then use sid_pal_scheduler_delay_ms instead.


sid_pal_scheduler_delay_ms#

void sid_pal_scheduler_delay_ms (uint32_t delay)

Implements a delay function using RTOS API call.

Parameters
TypeDirectionArgument NameDescription
uint32_t[in]delay

Time in ms to delay

This function will block the calling thread, do not use in ISR context. This will allow the RTOS scheduler to run other tasks or switch to an IDLE state while the delay is pending.

If you need sub-millisecond delays then use sid_pal_delay_us instead.

Do not use this function for internal Sidewalk stack delays - use the sid_pal_timer API instead.