4.115
Last change
on this file since 1c0663b4 was
46dde0fc,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/23/14 at 08:05:17
|
bsps: Move extern "C" to not cover includes
Some includes may use C++ and this conflicts if surrounded extern "C".
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup m32r_bsp |
---|
5 | * |
---|
6 | * @brief m32r definitions in gdb |
---|
7 | */ |
---|
8 | |
---|
9 | /* bsp.h |
---|
10 | * |
---|
11 | * This include file contains some definitions specific to the |
---|
12 | * h8 simulator in gdb. |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 1989-1999. |
---|
15 | * On-Line Applications Research Corporation (OAR). |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be |
---|
18 | * found in the file LICENSE in this distribution or at |
---|
19 | * http://www.rtems.org/license/LICENSE. |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef _BSP_H |
---|
23 | #define _BSP_H |
---|
24 | |
---|
25 | #include <bspopts.h> |
---|
26 | #include <bsp/default-initial-extension.h> |
---|
27 | |
---|
28 | #include <rtems.h> |
---|
29 | #include <rtems/iosupp.h> |
---|
30 | #include <rtems/console.h> |
---|
31 | #include <rtems/clockdrv.h> |
---|
32 | |
---|
33 | #ifdef __cplusplus |
---|
34 | extern "C" { |
---|
35 | #endif |
---|
36 | |
---|
37 | /** |
---|
38 | * @defgroup m32r_bsp Clock Tick Support |
---|
39 | * |
---|
40 | * @ingroup m32r_m32rsim |
---|
41 | * |
---|
42 | * @brief Clock Tick Support Package |
---|
43 | */ |
---|
44 | |
---|
45 | Thread clock_driver_sim_idle_body(uintptr_t); |
---|
46 | #define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body |
---|
47 | |
---|
48 | /* Trap support interface from Newlib 1.16.0 */ |
---|
49 | #define SYS_exit 1 |
---|
50 | #define SYS_open 2 |
---|
51 | #define SYS_close 3 |
---|
52 | #define SYS_read 4 |
---|
53 | #define SYS_write 5 |
---|
54 | #define SYS_lseek 6 |
---|
55 | #define SYS_unlink 7 |
---|
56 | #define SYS_getpid 8 |
---|
57 | #define SYS_kill 9 |
---|
58 | #define SYS_fstat 10 |
---|
59 | |
---|
60 | int __trap0 (int function, int p1, int p2, int p3, struct _reent *r); |
---|
61 | |
---|
62 | #define TRAP0(f, p1, p2, p3) \ |
---|
63 | __trap0 (f, (int) (p1), (int) (p2), (int) (p3), _REENT) |
---|
64 | |
---|
65 | #ifdef __cplusplus |
---|
66 | } |
---|
67 | #endif |
---|
68 | |
---|
69 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.