Back to home page

LXR

 
 

    


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

0001 /**
0002  * @file
0003  * @ingroup ezkit533_tm27
0004  * @brief Interrupt mechanisms for the tm27 test.
0005  */
0006 
0007 /*
0008  *  tm27.h
0009  *
0010  *  The license and distribution terms for this file may be
0011  *  found in the file LICENSE in this distribution or at
0012  *  http://www.rtems.org/license/LICENSE.
0013  */
0014 
0015 #ifndef _RTEMS_TMTEST27
0016 #error "This is an RTEMS internal file you must not include directly."
0017 #endif
0018 
0019 #ifndef __tm27_h
0020 #define __tm27_h
0021 
0022 /**
0023  * @defgroup ezkit533_tm27 TM27 Test Support
0024  * @ingroup RTEMSBSPsBfinEZKit533
0025  * @brief Interrupt Mechanisms for TM27
0026  * @{
0027  */
0028 
0029 /*
0030  *  Define the interrupt mechanism for Time Test 27
0031  */
0032 
0033 #define MUST_WAIT_FOR_INTERRUPT 0
0034 
0035 #define TM27_USE_VECTOR_HANDLER
0036 
0037 #define Install_tm27_vector(handler) \
0038 { \
0039   set_vector( handler, 0x06, 1 ); \
0040 }
0041 
0042 #define Cause_tm27_intr() __asm__ volatile("raise 0x06;" : :);
0043 
0044 #define Clear_tm27_intr() /* empty */
0045 
0046 #define Lower_tm27_intr() /* empty */
0047 
0048 /** @} */
0049 
0050 #endif