|
RTEMS
5.1
|
13 #ifndef _RTEMS_TMTEST27 14 #error "This is an RTEMS internal file you must not include directly." 24 #define MUST_WAIT_FOR_INTERRUPT 1 26 #ifndef SH7750_EVT_WDT_ITI 30 #define Install_tm27_vector( handler ) \ 32 rtems_isr_entry old_handler; \ 33 rtems_status_code status; \ 34 status = rtems_interrupt_catch( (handler), \ 35 SH7750_EVT_TO_NUM(SH7750_EVT_WDT_ITI), &old_handler); \ 36 if (status != RTEMS_SUCCESSFUL) \ 37 printf("Status of rtems_interrupt_catch = %d", status); \ 40 #define Cause_tm27_intr() \ 42 *(volatile uint16_t*)SH7750_IPRB |= 0xf000; \ 43 *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \ 44 *(volatile uint16_t*)SH7750_WTCNT = SH7750_WTCNT_KEY | 0xfe; \ 45 *(volatile uint16_t*)SH7750_WTCSR = \ 46 SH7750_WTCSR_KEY | SH7750_WTCSR_TME; \ 49 #define Clear_tm27_intr() \ 51 *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \ 54 #define Lower_tm27_intr() \ 56 sh_set_interrupt_level((SH7750_IPRB & 0xf000) << SH4_SR_IMASK_S); \