4.115
Last change
on this file since 9b4422a2 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * tm27.h |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.com/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef _RTEMS_TMTEST27 |
---|
10 | #error "This is an RTEMS internal file you must not include directly." |
---|
11 | #endif |
---|
12 | |
---|
13 | #ifndef __tm27_h |
---|
14 | #define __tm27_h |
---|
15 | |
---|
16 | /* |
---|
17 | * Stuff for Time Test 27 |
---|
18 | */ |
---|
19 | |
---|
20 | #define MUST_WAIT_FOR_INTERRUPT 1 |
---|
21 | |
---|
22 | #ifndef SH7750_EVT_WDT_ITI |
---|
23 | # error "..." |
---|
24 | #endif |
---|
25 | |
---|
26 | #define Install_tm27_vector( handler ) \ |
---|
27 | { \ |
---|
28 | rtems_isr_entry old_handler; \ |
---|
29 | rtems_status_code status; \ |
---|
30 | status = rtems_interrupt_catch( (handler), \ |
---|
31 | SH7750_EVT_TO_NUM(SH7750_EVT_WDT_ITI), &old_handler); \ |
---|
32 | if (status != RTEMS_SUCCESSFUL) \ |
---|
33 | printf("Status of rtems_interrupt_catch = %d", status); \ |
---|
34 | } |
---|
35 | |
---|
36 | #define Cause_tm27_intr() \ |
---|
37 | { \ |
---|
38 | *(volatile uint16_t*)SH7750_IPRB |= 0xf000; \ |
---|
39 | *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \ |
---|
40 | *(volatile uint16_t*)SH7750_WTCNT = SH7750_WTCNT_KEY | 0xfe; \ |
---|
41 | *(volatile uint16_t*)SH7750_WTCSR = \ |
---|
42 | SH7750_WTCSR_KEY | SH7750_WTCSR_TME; \ |
---|
43 | } |
---|
44 | |
---|
45 | #define Clear_tm27_intr() \ |
---|
46 | { \ |
---|
47 | *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \ |
---|
48 | } |
---|
49 | |
---|
50 | #define Lower_tm27_intr() \ |
---|
51 | { \ |
---|
52 | sh_set_interrupt_level((SH7750_IPRB & 0xf000) << SH4_SR_IMASK_S); \ |
---|
53 | } |
---|
54 | |
---|
55 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.