|
RTEMS
5.1
|
Go to the documentation of this file. 16 #ifndef _RTEMS_TMTEST27 17 #error "This is an RTEMS internal file you must not include directly." 31 #define ERC32_BSP_USE_SYNCHRONOUS_TRAP 0 37 #if (ERC32_BSP_USE_SYNCHRONOUS_TRAP == 1) 39 #define TEST_VECTOR SPARC_SYNCHRONOUS_TRAP( 0x90 ) 41 #define MUST_WAIT_FOR_INTERRUPT 1 43 #define Install_tm27_vector( handler ) \ 44 set_vector( (handler), TEST_VECTOR, 1 ); 46 #define Cause_tm27_intr() \ 47 __asm__ volatile( "ta 0x10; nop " ); 49 #define Clear_tm27_intr() 51 #define Lower_tm27_intr() 59 #define TEST_INTERRUPT_SOURCE ERC32_INTERRUPT_EXTERNAL_1 60 #define TEST_INTERRUPT_SOURCE2 (ERC32_INTERRUPT_EXTERNAL_1+1) 61 #define TEST_VECTOR ERC32_TRAP_TYPE( TEST_INTERRUPT_SOURCE ) 62 #define TEST_VECTOR2 ERC32_TRAP_TYPE( TEST_INTERRUPT_SOURCE2 ) 64 #define MUST_WAIT_FOR_INTERRUPT 1 66 #define Install_tm27_vector( handler ) \ 67 set_vector( (handler), TEST_VECTOR, 1 ); \ 68 set_vector( (handler), TEST_VECTOR2, 1 ); 70 #define Cause_tm27_intr() \ 72 ERC32_Force_interrupt( TEST_INTERRUPT_SOURCE+(Interrupt_nest>>1) ); \ 78 #define Clear_tm27_intr() \ 79 ERC32_Clear_interrupt( TEST_INTERRUPT_SOURCE ) 81 #define Lower_tm27_intr()