Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:48

0001 /*
0002  * @file
0003  * @ingroup m68k_mvme167
0004  * @brief Implementations for interrupt mechanisms for Time Test 27
0005  */
0006 
0007 /*
0008  *  The license and distribution terms for this file may be
0009  *  found in the file LICENSE in this distribution or at
0010  *  http://www.rtems.org/license/LICENSE.
0011  */
0012 
0013 #ifndef _RTEMS_TMTEST27
0014 #error "This is an RTEMS internal file you must not include directly."
0015 #endif
0016 
0017 #ifndef __tm27_h
0018 #define __tm27_h
0019 
0020 /*
0021  *  Define the interrupt mechanism for Time Test 27
0022  *
0023  *  NOTE: We use software interrupt 0
0024  */
0025 #define MUST_WAIT_FOR_INTERRUPT 0
0026 
0027 #define TM27_USE_VECTOR_HANDLER
0028 
0029 #define Install_tm27_vector( handler ) \
0030             set_vector( (handler), VBR1 * 0x10 + 0x8, 1 ); \
0031             lcsr->intr_level[2] |= 3; \
0032             lcsr->intr_ena |= 0x100
0033 
0034 #define Cause_tm27_intr()  lcsr->intr_soft_set |= 0x100
0035 
0036 #define Clear_tm27_intr()  lcsr->intr_clear |= 0x100
0037 
0038 #define Lower_tm27_intr() /* empty */
0039 
0040 #endif