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 | * Copyright (c) 2010 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Obere Lagerstr. 30 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <info@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #ifndef _RTEMS_TMTEST27 |
---|
16 | #error "This is an RTEMS internal file you must not include directly." |
---|
17 | #endif |
---|
18 | |
---|
19 | #ifndef __tm27_h |
---|
20 | #define __tm27_h |
---|
21 | |
---|
22 | #include <assert.h> |
---|
23 | |
---|
24 | #include <rtems.h> |
---|
25 | |
---|
26 | #include <bsp/lpc32xx.h> |
---|
27 | #include <bsp/irq.h> |
---|
28 | #include <bsp/irq-generic.h> |
---|
29 | |
---|
30 | #define MUST_WAIT_FOR_INTERRUPT 1 |
---|
31 | |
---|
32 | static void Install_tm27_vector(void (*handler)(rtems_vector_number)) |
---|
33 | { |
---|
34 | rtems_status_code sc = RTEMS_SUCCESSFUL; |
---|
35 | |
---|
36 | LPC32XX_SW_INT = 0; |
---|
37 | |
---|
38 | sc = rtems_interrupt_handler_install( |
---|
39 | LPC32XX_IRQ_SW, |
---|
40 | "SW", |
---|
41 | RTEMS_INTERRUPT_UNIQUE, |
---|
42 | (rtems_interrupt_handler) handler, |
---|
43 | NULL |
---|
44 | ); |
---|
45 | assert(sc == RTEMS_SUCCESSFUL); |
---|
46 | } |
---|
47 | |
---|
48 | static void Cause_tm27_intr(void) |
---|
49 | { |
---|
50 | LPC32XX_SW_INT = 0x1; |
---|
51 | } |
---|
52 | |
---|
53 | static void Clear_tm27_intr(void) |
---|
54 | { |
---|
55 | LPC32XX_SW_INT = 0; |
---|
56 | lpc32xx_irq_set_priority(LPC32XX_IRQ_SW, LPC32XX_IRQ_PRIORITY_LOWEST); |
---|
57 | } |
---|
58 | |
---|
59 | static void Lower_tm27_intr(void) |
---|
60 | { |
---|
61 | bsp_interrupt_vector_enable(LPC32XX_IRQ_SW); |
---|
62 | lpc32xx_irq_set_priority(LPC32XX_IRQ_SW, LPC32XX_IRQ_PRIORITY_HIGHEST); |
---|
63 | } |
---|
64 | |
---|
65 | #endif /* __tm27_h */ |
---|
Note: See
TracBrowser
for help on using the repository browser.