FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/mpfs_hal/common/mss_plic.h
/***************************************************************************/
/**
 *  PLIC_ClearPendingIRQ(void)
 *  This is only called by the startup hart and only once
 *  Clears any pending interrupts as PLIC can be in unknown state on startup
 */
PLIC_ClearPendingIRQ(void)
This is only called by the startup hart and only once
Clears any pending interrupts as PLIC can be in unknown state on startup
PLIC_ClearPendingIRQ ( void ) This is only called by the startup hart and only once Clears any pending interrupts as PLIC can be in unknown state on startup
static inline void PLIC_ClearPendingIRQ(void)
{
    volatile uint32_t int_num  = PLIC_ClaimIRQ();
    volatile int32_t wait_possible_int;
    while ( int_num != INVALID_IRQn)
    {
        PLIC_CompleteIRQ(int_num);
        wait_possible_int = 0xFU;
        while (wait_possible_int)
        {
            wait_possible_int--;
        }
        int_num  = PLIC_ClaimIRQ(); 
    }
}
static inline void PLIC_ClearPendingIRQ ( void ) { volatile uint32_t int_num = PLIC_ClaimIRQ ( ) ; volatile int32_t wait_possible_int ; while ( int_num != INVALID_IRQn ) { PLIC_CompleteIRQ ( int_num ) ; wait_possible_int = 0xFU ; while ( wait_possible_int ) { wait_possible_int -- ; } int_num = PLIC_ClaimIRQ ( ) ; } }
PLIC_ClearPendingIRQ(void)
  This is only called by the startup hart and only once
  Clears any pending interrupts as PLIC can be in unknown state on startup
PLIC_ClearPendingIRQ ( void ) This is only called by the startup hart and only once Clears any pending interrupts as PLIC can be in unknown state on startup
/* obtain interrupt, auto clears  */