|
RTEMS CPU Kit with SuperCore
4.10.99.0
|
00001 00013 /* COPYRIGHT (c) 1989-2008. 00014 * On-Line Applications Research Corporation (OAR). 00015 * 00016 * The license and distribution terms for this file may be 00017 * found in the file LICENSE in this distribution or at 00018 * http://www.rtems.com/license/LICENSE. 00019 */ 00020 00021 #ifndef _RTEMS_RTEMS_INTR_H 00022 #define _RTEMS_RTEMS_INTR_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 #include <rtems/score/isr.h> 00029 00042 typedef ISR_Level rtems_interrupt_level; 00043 00047 typedef ISR_Vector_number rtems_vector_number; 00048 00052 typedef ISR_Handler rtems_isr; 00053 00054 #if (CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) 00055 00056 typedef ISR_Handler_entry rtems_isr_entry; 00057 00058 #else 00059 00064 typedef rtems_isr ( *rtems_isr_entry )( 00065 rtems_vector_number 00066 ); 00067 00082 rtems_status_code rtems_interrupt_catch( 00083 rtems_isr_entry new_isr_handler, 00084 rtems_vector_number vector, 00085 rtems_isr_entry *old_isr_handler 00086 ); 00087 #endif 00088 00094 #define rtems_interrupt_disable( _isr_cookie ) \ 00095 _ISR_Disable(_isr_cookie) 00096 00102 #define rtems_interrupt_enable( _isr_cookie ) \ 00103 _ISR_Enable(_isr_cookie) 00104 00110 #define rtems_interrupt_flash( _isr_cookie ) \ 00111 _ISR_Flash(_isr_cookie) 00112 00120 #define rtems_interrupt_is_in_progress() \ 00121 _ISR_Is_in_progress() 00122 00128 #define rtems_interrupt_cause( _interrupt_to_cause ) 00129 00135 #define rtems_interrupt_clear( _interrupt_to_clear ) 00136 00137 #ifdef __cplusplus 00138 } 00139 #endif 00140 00143 #endif 00144 /* end of include file */
1.7.5