/* Setup CAAM interrupt. It enables or disables the related HW module interrupt, and attached the related sub-routine into the vector table. */
void caam_setup_interrupt(uint32_t irq_id, uint8_t state)
/* Setup CAAM interrupt. It enables or disables the related HW module interrupt, and attached the related sub-routine into the vector table. */
void caam_setup_interrupt(uint32_t irq_id, uint8_t state)
{
    if (state == TRUE) {
        register_interrupt_routine(irq_id, &caam_interrupt_routine);
        enable_interrupt(irq_id, CPU_0, 0);
    } else
        disable_interrupt(irq_id, CPU_0);
}