zephyr::raw

Function k_is_in_isr

source
pub unsafe extern "C" fn k_is_in_isr() -> bool
Expand description

@brief Determine if code is running at interrupt level.

This routine allows the caller to customize its actions, depending on whether it is a thread or an ISR.

@funcprops \isr_ok

@return false if invoked by a thread. @return true if invoked by an ISR.