Function esp_idf_hal::sys::xPortInIsrContext
source · pub unsafe extern "C" fn xPortInIsrContext() -> i32
Expand description
@brief Checks if the current core is in an ISR context
- ISR context consist of Low/Mid priority ISR, or time tick ISR
- High priority ISRs aren’t detected here, but they normally cannot call C code, so that should not be an issue anyway.
@note [refactor-todo] Check if this should be inlined @return
- pdTRUE if in ISR
- pdFALSE otherwise