Last change
on this file was
10ee41a8,
checked in by Sebastian Huber <sebastian.huber@…>, on 01/23/23 at 13:56:31
|
tm27: Avoid function pointer casts
Add TM27_USE_VECTOR_HANDLER to select the interrupt handler type used by
the <tm27.h> implementation.
Close #4820.
|
-
Property mode set to
100644
|
File size:
954 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * @ingroup tll6527m_tm27 |
---|
4 | * @brief Interrupt mechanisms for tm27 test. |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * tm27.h |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 2010 by ECE Northeastern University. |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef _RTEMS_TMTEST27 |
---|
18 | #error "This is an RTEMS internal file you must not include directly." |
---|
19 | #endif |
---|
20 | |
---|
21 | #ifndef __tm27_h |
---|
22 | #define __tm27_h |
---|
23 | |
---|
24 | /** |
---|
25 | * @defgroup tll6527m_tm27 TM27 Test Support |
---|
26 | * @ingroup RTEMSBSPsBfinTLL6527M |
---|
27 | * @brief Interrupt Mechanisms for TM27 |
---|
28 | * @{ |
---|
29 | */ |
---|
30 | |
---|
31 | /* |
---|
32 | * Define the interrupt mechanism for Time Test 27 |
---|
33 | */ |
---|
34 | |
---|
35 | #define MUST_WAIT_FOR_INTERRUPT 0 |
---|
36 | |
---|
37 | #define TM27_USE_VECTOR_HANDLER |
---|
38 | |
---|
39 | #define Install_tm27_vector(handler) \ |
---|
40 | { \ |
---|
41 | set_vector( handler, 0x06, 1 ); \ |
---|
42 | } |
---|
43 | |
---|
44 | #define Cause_tm27_intr() asm volatile("raise 0x06;" : :); |
---|
45 | |
---|
46 | #define Clear_tm27_intr() /* empty */ |
---|
47 | |
---|
48 | #define Lower_tm27_intr() /* empty */ |
---|
49 | |
---|
50 | /** @} */ |
---|
51 | |
---|
52 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.