Firmware/PeugeotDisplay4245/PeugeotDisplay4245.cydsn/Generated_Source/PSoC4/ISR_Reset.c
/*******************************************************************************
* Function Name: ISR_Reset_SetPriority
********************************************************************************
*
* Summary:
*   Sets the Priority of the Interrupt. 
*
*   Note calling ISR_Reset_Start or ISR_Reset_StartEx will 
*   override any effect this API would have had. This API should only be called
*   after ISR_Reset_Start or ISR_Reset_StartEx has been called. 
*   To set the initial priority for the component, use the Design-Wide Resources
*   Interrupt Editor.
*
*   Note This API has no effect on Non-maskable interrupt NMI).
*
* Parameters:
*   priority: Priority of the interrupt, 0 being the highest priority
*             PSoC 3 and PSoC 5LP: Priority is from 0 to 7.
*             PSoC 4: Priority is from 0 to 3.
*
* Return:
*   None
*
*******************************************************************************/
Function Name: ISR_Reset_SetPriority
Summary:
Sets the Priority of the Interrupt.

Note calling ISR_Reset_Start or ISR_Reset_StartEx will
override any effect this API would have had. This API should only be called
after ISR_Reset_Start or ISR_Reset_StartEx has been called.
To set the initial priority for the component, use the Design-Wide Resources
Interrupt Editor.

Note This API has no effect on Non-maskable interrupt NMI).

Priority of the interrupt, 0 being the highest priority
PSoC 3 and PSoC 5LP: Priority is from 0 to 7.
PSoC 4: Priority is from 0 to 3.

None
Function Name : ISR_Reset_SetPriority Summary : Sets the Priority of the Interrupt . Note calling ISR_Reset_Start or ISR_Reset_StartEx will override any effect this API would have had . This API should only be called after ISR_Reset_Start or ISR_Reset_StartEx has been called . To set the initial priority for the component use the Design - Wide Resources Interrupt Editor . Note This API has no effect on Non - maskable interrupt NMI ) . Priority of the interrupt 0 being the highest priority PSoC 3 and PSoC 5LP : Priority is from 0 to 7 . PSoC 4 : Priority is from 0 to 3 . None
void ISR_Reset_SetPriority(uint8 priority)
{
	uint8 interruptState;
    uint32 priorityOffset = ((ISR_Reset__INTC_NUMBER % 4u) * 8u) + 6u;
	interruptState = CyEnterCriticalSection();
    *ISR_Reset_INTC_PRIOR = (*ISR_Reset_INTC_PRIOR & (uint32)(~ISR_Reset__INTC_PRIOR_MASK)) |
                                    ((uint32)priority << priorityOffset);
	CyExitCriticalSection(interruptState);
}
void ISR_Reset_SetPriority ( uint8 priority ) { uint8 interruptState ; uint32 priorityOffset = ( ( ISR_Reset__INTC_NUMBER % 4u ) * 8u ) + 6u ; interruptState = CyEnterCriticalSection ( ) ; * ISR_Reset_INTC_PRIOR = ( * ISR_Reset_INTC_PRIOR & ( uint32 ) ( ~ ISR_Reset__INTC_PRIOR_MASK ) ) | ( ( uint32 ) priority << priorityOffset ) ; CyExitCriticalSection ( interruptState ) ; }
Function Name: ISR_Reset_SetPriority
Summary:
Sets the Priority of the Interrupt.
Function Name : ISR_Reset_SetPriority Summary : Sets the Priority of the Interrupt .