FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/mpfs_hal/common/mss_plic.h
/***************************************************************************/
/**
 * The function PLIC_GetPriority() returns the priority for the external
 * interrupt for the interrupt number indicated by the parameter IRQn.
 */
The function PLIC_GetPriority() returns the priority for the external
interrupt for the interrupt number indicated by the parameter IRQn.
The function PLIC_GetPriority () returns the priority for the external interrupt for the interrupt number indicated by the parameter IRQn .
static inline uint32_t PLIC_GetPriority(PLIC_IRQn_Type IRQn)
{
    uint32_t ret_val = 0U;
    if((IRQn > INVALID_IRQn) && (IRQn < PLIC_NUM_SOURCES))
    {
        ret_val = PLIC->SOURCE_PRIORITY[IRQn-1];
    }
    return(ret_val);
}
static inline uint32_t PLIC_GetPriority ( PLIC_IRQn_Type IRQn ) { uint32_t ret_val = 0U ; if ( ( IRQn > INVALID_IRQn ) && ( IRQn < PLIC_NUM_SOURCES ) ) { ret_val = PLIC -> SOURCE_PRIORITY [ IRQn - 1 ] ; } return ( ret_val ) ; }
The function PLIC_GetPriority() returns the priority for the external
 interrupt for the interrupt number indicated by the parameter IRQn.
The function PLIC_GetPriority () returns the priority for the external interrupt for the interrupt number indicated by the parameter IRQn .