bsp/rv32m1_vega_hybrid/risc-v/sdk/multicore_2.3.1/rpmsg_lite/lib/rpmsg_lite/porting/platform/rv32m1/rpmsg_platform.c
/**
 * platform_in_isr
 *
 * Return whether CPU is processing IRQ
 *
 * @return True for IRQ, false otherwise.
 *
 */
platform_in_isr
Return whether CPU is processing IRQ

@return True for IRQ, false otherwise.
platform_in_isr Return whether CPU is processing IRQ @return True for IRQ false otherwise .
int platform_in_isr(void)
{
#if defined(__riscv)
    return ((EVENT_UNIT->INTPTENACTIVE) != 0);
#else
    return ((SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) != 0);
#endif
}
int platform_in_isr ( void ) { #if defined ( __riscv ) return ( ( EVENT_UNIT -> INTPTENACTIVE ) != 0 ) ; #else return ( ( SCB -> ICSR & SCB_ICSR_VECTACTIVE_Msk ) != 0 ) ; #endif }
platform_in_isr
 Return whether CPU is processing IRQ
platform_in_isr Return whether CPU is processing IRQ