/******************************************************************************* * Function Name: BLE_1_bless_isr_Stop ******************************************************************************** * * Summary: * Disables and removes the interrupt. * * Parameters: * None * * Return: * None * *******************************************************************************/ void BLE_1_bless_isr_Stop(void) { /* Disable this interrupt. */ BLE_1_bless_isr_Disable(); /* Set the ISR to point to the passive one. */ BLE_1_bless_isr_SetVector(&IntDefaultHandler); }
void CyBle_HalInit(void) { /* For all we know the interrupt is active. */ BLE_1_bless_isr_Disable(); /* Set the ISR to point to the BLE_bless_isr Interrupt. */ BLE_1_bless_isr_SetVector(&CyBLE_Bless_Interrupt); /* Set the priority. */ BLE_1_bless_isr_SetPriority((uint8)BLE_1_bless_isr_INTC_PRIOR_NUMBER); }
/******************************************************************************* * Function Name: BLE_1_bless_isr_StartEx ******************************************************************************** * * Summary: * Sets up the interrupt and enables it. This function disables the interrupt, * sets the interrupt vector based on the address passed in, sets the priority * from the value in the Design Wide Resources Interrupt Editor, then enables * the interrupt to the interrupt controller. * * When defining ISR functions, the CY_ISR and CY_ISR_PROTO macros should be * used to provide consistent definition across compilers: * * Function definition example: * CY_ISR(MyISR) * { * } * Function prototype example: * CY_ISR_PROTO(MyISR); * * Parameters: * address: Address of the ISR to set in the interrupt vector table. * * Return: * None * *******************************************************************************/ void BLE_1_bless_isr_StartEx(cyisraddress address) { /* For all we know the interrupt is active. */ BLE_1_bless_isr_Disable(); /* Set the ISR to point to the BLE_1_bless_isr Interrupt. */ BLE_1_bless_isr_SetVector(address); /* Set the priority. */ BLE_1_bless_isr_SetPriority((uint8)BLE_1_bless_isr_INTC_PRIOR_NUMBER); /* Enable it. */ BLE_1_bless_isr_Enable(); }
void CyBleHal_DisableGlobalInterrupts(void) { BLE_1_bless_isr_Disable(); }