void SWTIM0_Handler(void) { SEGGER_SYSTEMVIEW_ISR_ENTER(); if (intr_cb) { intr_cb(); } SEGGER_SYSTEMVIEW_ISR_EXIT(); }
void I2C2_Handler(void) { SEGGER_SYSTEMVIEW_ISR_ENTER(); uint16_t mask = I2C2->I2C2_INTR_STAT_REG; intr_handler(HW_I2C2, mask); SEGGER_SYSTEMVIEW_ISR_EXIT(); }
void CRYPTO_Handler(void) { SEGGER_SYSTEMVIEW_ISR_ENTER(); AES_HASH->CRYPTO_CLRIRQ_REG = 0x1; NVIC_ClearPendingIRQ(CRYPTO_IRQn); if (callback != NULL) { callback(); } SEGGER_SYSTEMVIEW_ISR_EXIT(); }
void TRNG_Handler(void) { uint32_t dummy __attribute__((unused)); SEGGER_SYSTEMVIEW_ISR_ENTER(); if (trng_cb != NULL) { trng_cb(); } /* read TRNG_FIFOLVL_REG to clear level-sensitive source. */ dummy = TRNG->TRNG_FIFOLVL_REG; SEGGER_SYSTEMVIEW_ISR_EXIT(); }