iLLD_TC27xD  1.0
Interrupt Utility Functions
Collaboration diagram for Interrupt Utility Functions:

Macros

#define IFX_INTERRUPT(isr, vectabNum, prio)
 Macro to define Interrupt Service Routine. This macro makes following definitions:
1) Define linker section as .intvec_tc<vector number>_<interrupt priority>.
2) define compiler specific attribute for the interrupt functions.
3) define the Interrupt service routine as Isr function.
To get details about usage of this macro, refer How to define Interrupts?. More...
 

Functions

IFX_INLINE boolean IfxCpu_areInterruptsEnabled (void)
 API to get the status of global interrupt enable (ICR.IE) for the CPU which calls this API This API provides the status of CPU where this API is called. More...
 
IFX_INLINE boolean IfxCpu_disableInterrupts (void)
 API to disable global interrupt and return the previous status. More...
 
IFX_INLINE void IfxCpu_enableInterrupts (void)
 API to enable global interrupt. This API simply enables the global interrupt. More...
 
IFX_INLINE void IfxCpu_forceDisableInterrupts (void)
 Disable the Global Interrupt. More...
 
IFX_INLINE void IfxCpu_restoreInterrupts (boolean enabled)
 API to restore global interrupt with that of the passed parameter. More...
 

Detailed Description

Macro Definition Documentation

#define IFX_INTERRUPT (   isr,
  vectabNum,
  prio 
)

Macro to define Interrupt Service Routine. This macro makes following definitions:
1) Define linker section as .intvec_tc<vector number>_<interrupt priority>.
2) define compiler specific attribute for the interrupt functions.
3) define the Interrupt service routine as Isr function.
To get details about usage of this macro, refer How to define Interrupts?.

Parameters
isrName of the Isr function.
vectabNumVector table number. Only 0 is supported now.
prioInterrupt priority. Refer Usage of Interrupt Macro for more details.

Definition at line 81 of file Compilers.h.

Function Documentation

IFX_INLINE boolean IfxCpu_areInterruptsEnabled ( void  )

API to get the status of global interrupt enable (ICR.IE) for the CPU which calls this API This API provides the status of CPU where this API is called.

Returns
Status of global interrupt enable bit.
Return values
TRUE,:Global interrupts enabled.
FALSE,:Global interrupts disabled

Definition at line 569 of file IfxCpu.h.

Referenced by areInterruptsEnabled(), and IfxCpu_disableInterrupts().

IFX_INLINE boolean IfxCpu_disableInterrupts ( void  )

API to disable global interrupt and return the previous status.

This API can be used only to disable the global interrupts of caller CPU. It cannot be used for this activity towards other CPUs

Returns
Previous status of global interrupt enable bit.
Return values
TRUE,:Previously, global interrupts enabled.
FALSE,:Previously, global interrupts disabled

Definition at line 577 of file IfxCpu.h.

Referenced by disableInterrupts(), Ifx_Fifo_canReadCount(), Ifx_Fifo_canWriteCount(), Ifx_Fifo_clear(), IfxAsclin_Spi_write(), IfxI2c_I2c_read(), and IfxI2c_I2c_write().

IFX_INLINE void IfxCpu_enableInterrupts ( void  )

API to enable global interrupt. This API simply enables the global interrupt.

Returns
None

Definition at line 587 of file IfxCpu.h.

Referenced by enableInterrupts(), IfxGtm_Atom_Pwm_init(), and IfxGtm_Tom_Pwm_init().

IFX_INLINE void IfxCpu_forceDisableInterrupts ( void  )

Disable the Global Interrupt.

Returns
None

Definition at line 655 of file IfxCpu.h.

Referenced by forceDisableInterrupts().

IFX_INLINE void IfxCpu_restoreInterrupts ( boolean  enabled)

API to restore global interrupt with that of the passed parameter.

This API can be used only to disable the global interrupts of caller CPU. It cannot be used for this activity towards other CPUs

Parameters
enabledPrevious status of the global interrupt enable bit
Returns
None

Definition at line 792 of file IfxCpu.h.

Referenced by Ifx_Fifo_canReadCount(), Ifx_Fifo_canWriteCount(), Ifx_Fifo_clear(), IfxAsclin_Spi_write(), IfxI2c_I2c_read(), IfxI2c_I2c_write(), and restoreInterrupts().