hal_intr.h File Reference


Detailed Description

Define Interrupt support.

Author:
Yoshinori Sato, Uwe Kindler
Date:
2003-12-06
The macros defined here provide the HAL APIs for handling interrupts and the clock.

Usage: #include <cyg/hal/hal_intr.h>

Definition in file hal_intr.h.

Go to the source code of this file.

Typedefs

typedef cyg_uint32 CYG_INTERRUPT_STATE
 Stores content of interrupt register (EXR).


Enumerations

enum  cyg_ISR_results { CYG_ISR_HANDLED = 1, CYG_ISR_CALL_DSR = 2 }

Functions

externC cyg_uint32 hal_default_isr (CYG_ADDRWORD vector, CYG_ADDRWORD data)
 Default interrupt service routine in common HAL code.

externC void hal_interrupt_stack_call_pending_DSRs (void)
 Execute pending DSRs on the interrupt stack with interrupts enabled.

externC void __default_interrupt_vsr (void)
 The default interrupt vsr defined in vectors.S.

externC void __default_exception_vsr (void)
 The default exception vsr defined in vectors.S.


Variables

externC volatile CYG_ADDRESS hal_interrupt_handlers [CYGNUM_HAL_ISR_COUNT]
 Table stores interrupt handlers for each vector (vectors.S).

externC volatile CYG_ADDRWORD hal_interrupt_data [CYGNUM_HAL_ISR_COUNT]
 Table stores interrupt data to be passed to ISR when executed (vectors.S).

externC volatile CYG_ADDRESS hal_interrupt_objects [CYGNUM_HAL_ISR_COUNT]
 Table stores interrupt object pointers - required by kernel (vectors.S).

externC volatile CYG_ADDRESS hal_vsr_table [CYGNUM_HAL_VSR_COUNT]
 This table contains the vector service routines for all vectors (vectors.S).


Typedef Documentation

typedef cyg_uint32 CYG_INTERRUPT_STATE
 

Stores content of interrupt register (EXR).

Definition at line 204 of file hal_intr.h.


Enumeration Type Documentation

enum cyg_ISR_results
 

Enumeration values:
CYG_ISR_HANDLED 
CYG_ISR_CALL_DSR 

Definition at line 129 of file hal_intr.h.

00130 {
00131     CYG_ISR_HANDLED  = 1,       // Interrupt was handled
00132     CYG_ISR_CALL_DSR = 2        // Schedule DSR
00133 };


Function Documentation

externC void __default_exception_vsr void   ) 
 

The default exception vsr defined in vectors.S.

externC void __default_interrupt_vsr void   ) 
 

The default interrupt vsr defined in vectors.S.

externC cyg_uint32 hal_default_isr CYG_ADDRWORD  vector,
CYG_ADDRWORD  data
 

Default interrupt service routine in common HAL code.

externC void hal_interrupt_stack_call_pending_DSRs void   ) 
 

Execute pending DSRs on the interrupt stack with interrupts enabled.

Note:
This can only be called from code running on a thread stack


Variable Documentation

externC volatile CYG_ADDRWORD hal_interrupt_data[CYGNUM_HAL_ISR_COUNT]
 

Table stores interrupt data to be passed to ISR when executed (vectors.S).

Definition at line 147 of file hal_intr.h.

Referenced by hal_interrupt_attach().

externC volatile CYG_ADDRESS hal_interrupt_handlers[CYGNUM_HAL_ISR_COUNT]
 

Table stores interrupt handlers for each vector (vectors.S).

Definition at line 144 of file hal_intr.h.

Referenced by hal_interrupt_attach().

externC volatile CYG_ADDRESS hal_interrupt_objects[CYGNUM_HAL_ISR_COUNT]
 

Table stores interrupt object pointers - required by kernel (vectors.S).

Definition at line 150 of file hal_intr.h.

Referenced by hal_interrupt_attach().

externC volatile CYG_ADDRESS hal_vsr_table[CYGNUM_HAL_VSR_COUNT]
 

This table contains the vector service routines for all vectors (vectors.S).

Definition at line 156 of file hal_intr.h.


Generated on Tue Feb 17 09:06:16 2004 for eCos EDOSK-2674 HAL by doxygen 1.3.5