FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/mpfs_hal/common/mss_h2f.c
/**
 * enables output which will mirror PLIC input. PLIC mapping given above for reference
 * @param source_int
 */
enables output which will mirror PLIC input. PLIC mapping given above for reference
@param source_int
enables output which will mirror PLIC input . PLIC mapping given above for reference @param source_int
void enable_h2f_int_output(uint32_t source_int)
{
    uint32_t output_signal = get_corresponding_h2f_output(source_int);
    if(output_signal != H2F_MAPPING_INVALID)
    {
        source_int -= OFFSET_TO_MSS_GLOBAL_INTS;
        H2F_CONTROLLER->PLENABLE[source_int/32U] |= (0x01U << (source_int % 32U));
        H2F_CONTROLLER->ENABLE |= ((output_signal<<16U) | 0x01U);
    }
}
void enable_h2f_int_output ( uint32_t source_int ) { uint32_t output_signal = get_corresponding_h2f_output ( source_int ) ; if ( output_signal != H2F_MAPPING_INVALID ) { source_int -= OFFSET_TO_MSS_GLOBAL_INTS ; H2F_CONTROLLER -> PLENABLE [ source_int / 32U ] |= ( 0x01U << ( source_int % 32U ) ) ; H2F_CONTROLLER -> ENABLE |= ( ( output_signal << 16U ) | 0x01U ) ; } }
enables output which will mirror PLIC input.
enables output which will mirror PLIC input .
/* enable the input */ /* enable the output */