User Activity

Hi,​Currently, I am looking for the method to detect this function is under ISR or not.And I found that there has two snipset code,<Example 1>uint8_t isUnderInterrupt(void){ uint8_t status = THREAD_MODE; if (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk)  {...