1 | /* |
---|
2 | * Copyright (c) 2015, 2016 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Dornierstr. 4 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@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 SPLINKERSET01_H |
---|
16 | #define SPLINKERSET01_H |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif /* __cplusplus */ |
---|
21 | |
---|
22 | #include <rtems/linkersets.h> |
---|
23 | |
---|
24 | extern const int a[4]; |
---|
25 | |
---|
26 | extern const int ca[5]; |
---|
27 | |
---|
28 | RTEMS_LINKER_RWSET_DECLARE(test_rw, const int *); |
---|
29 | |
---|
30 | RTEMS_LINKER_ROSET_DECLARE(test_ro, const int *); |
---|
31 | |
---|
32 | RTEMS_LINKER_RWSET_DECLARE(test_content_rw, char); |
---|
33 | |
---|
34 | RTEMS_LINKER_ROSET_DECLARE(test_content_ro, char); |
---|
35 | |
---|
36 | RTEMS_LINKER_RWSET_ITEM_DECLARE(test_rw, const int *, a1); |
---|
37 | |
---|
38 | RTEMS_LINKER_ROSET_ITEM_DECLARE(test_ro, const int *, ca2); |
---|
39 | |
---|
40 | RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern int content_rw_1); |
---|
41 | RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_2); |
---|
42 | RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_3); |
---|
43 | |
---|
44 | RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const int content_ro_1); |
---|
45 | RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_2); |
---|
46 | RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_3); |
---|
47 | |
---|
48 | #ifdef __cplusplus |
---|
49 | } |
---|
50 | #endif /* __cplusplus */ |
---|
51 | |
---|
52 | #endif /* SPLINKERSET01_H */ |
---|