 |
RTEMS 6.1-rc7
|
Loading...
Searching...
No Matches
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 TM27_USE_VECTOR_HANDLER
32#define Install_tm27_vector( handler ) \
34 rtems_isr_entry old_handler; \
35 rtems_status_code status; \
36 status = rtems_interrupt_catch( (handler), \
37 SH7750_EVT_TO_NUM(SH7750_EVT_WDT_ITI), &old_handler); \
38 if (status != RTEMS_SUCCESSFUL) \
39 printf("Status of rtems_interrupt_catch = %d", status); \
42#define Cause_tm27_intr() \
44 *(volatile uint16_t*)SH7750_IPRB |= 0xf000; \
45 *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
46 *(volatile uint16_t*)SH7750_WTCNT = SH7750_WTCNT_KEY | 0xfe; \
47 *(volatile uint16_t*)SH7750_WTCSR = \
48 SH7750_WTCSR_KEY | SH7750_WTCSR_TME; \
51#define Clear_tm27_intr() \
53 *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
56#define Lower_tm27_intr() \
58 sh_set_interrupt_level((SH7750_IPRB & 0xf000) << SH4_SR_IMASK_S); \