Functions | |
| cy_en_sysint_status_t | Cy_SysInt_Init (const cy_stc_sysint_t *config, cy_israddress userIsr) |
| Initializes the referenced interrupt by setting the priority and the interrupt vector. More... | |
| cy_israddress | Cy_SysInt_SetVector (IRQn_Type IRQn, cy_israddress userIsr) |
| Changes the ISR vector for the interrupt. More... | |
| cy_israddress | Cy_SysInt_GetVector (IRQn_Type IRQn) |
| Gets the address of the current ISR vector for the interrupt. More... | |
| cy_en_sysint_status_t Cy_SysInt_Init | ( | const cy_stc_sysint_t * | config, |
| cy_israddress | userIsr | ||
| ) |
Initializes the referenced interrupt by setting the priority and the interrupt vector.
Use the CMSIS core function NVIC_EnableIRQ(config.intrSrc) to enable the interrupt.
| config | Interrupt configuration structure |
| userIsr | Address of the ISR |
| cy_israddress Cy_SysInt_SetVector | ( | IRQn_Type | IRQn, |
| cy_israddress | userIsr | ||
| ) |
Changes the ISR vector for the interrupt.
This function relies on the assumption that the vector table is relocated to __RAM_VECTOR_TABLE[RAM_VECTORS_SIZE] in SRAM. Otherwise it will return the address of the default ISR location in the flash vector table.
| IRQn | Interrupt source |
| userIsr | Address of the ISR to set in the interrupt vector table |
| cy_israddress Cy_SysInt_GetVector | ( | IRQn_Type | IRQn | ) |
Gets the address of the current ISR vector for the interrupt.
This function relies on the assumption that the vector table is relocated to __RAM_VECTOR_TABLE[RAM_VECTORS_SIZE] in SRAM. Otherwise it will return the address of the default ISR location in the flash vector table.
| IRQn | Interrupt source |