bsp/rv32m1_vega_hybrid/risc-v/sdk/multicore_2.3.1/rpmsg_lite/lib/rpmsg_lite/porting/platform/rv32m1/rpmsg_platform.c
/**
 * platform_interrupt_disable
 *
 * Disable peripheral-related interrupt.
 *
 * @param vq_id Vector ID that need to be converted to IRQ number
 *
 * @return vq_id. Return value is never checked.
 *
 */
platform_interrupt_disable
Disable peripheral-related interrupt.

@param vq_id Vector ID that need to be converted to IRQ number


platform_interrupt_disable Disable peripheral - related interrupt . @param vq_id Vector ID that need to be converted to IRQ number
int platform_interrupt_disable(unsigned int vq_id)
{
    assert(0 <= disable_counter);
    __disable_irq();
    if (!disable_counter)
    {
#if defined(FSL_FEATURE_MU_SIDE_A)
        DisableIRQ(MUA_IRQn);
#if defined(__riscv)
        EVENT_SetIRQPriority(MUA_IRQn, 4);
#else
        NVIC_SetPriority(MUA_IRQn, 2);
#endif
#elif defined(FSL_FEATURE_MU_SIDE_B)
        DisableIRQ(MUB_IRQn);
#endif
    }
    disable_counter++;
    __enable_irq();
    return (vq_id);
}
int platform_interrupt_disable ( unsigned int vq_id ) { assert ( 0 <= disable_counter ) ; __disable_irq ( ) ; if ( ! disable_counter ) { #if defined ( FSL_FEATURE_MU_SIDE_A ) DisableIRQ ( MUA_IRQn ) ; #if defined ( __riscv ) EVENT_SetIRQPriority ( MUA_IRQn , 4 ) ; #else NVIC_SetPriority ( MUA_IRQn , 2 ) ; #endif #elif defined ( FSL_FEATURE_MU_SIDE_B ) DisableIRQ ( MUB_IRQn ) ; #endif } disable_counter ++ ; __enable_irq ( ) ; return ( vq_id ) ; }
platform_interrupt_disable
 Disable peripheral-related interrupt.
platform_interrupt_disable Disable peripheral - related interrupt .
// virtqueues use the same NVIC vector // if counter is set - the interrupts are disabled