Example #1
0
/*******************************************************************************
* Function Name: CYBLE_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 CYBLE_bless_isr_StartEx(cyisraddress address)
{
    /* For all we know the interrupt is active. */
    CYBLE_bless_isr_Disable();

    /* Set the ISR to point to the CYBLE_bless_isr Interrupt. */
    CYBLE_bless_isr_SetVector(address);

    /* Set the priority. */
    CYBLE_bless_isr_SetPriority((uint8)CYBLE_bless_isr_INTC_PRIOR_NUMBER);

    /* Enable it. */
    CYBLE_bless_isr_Enable();
}
Example #2
0
void CyBleHal_EnableGlobalInterrupts(void)
{
    CYBLE_bless_isr_Enable();
}