FreeCalypso > hg > freecalypso-citrine
comparison L1/include/l1_varex.h @ 4:1a22dd26c8a4
L1/include/l1_varex.h: same data section fix as in the LoCosto-based version
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:53:13 +0000 |
parents | f93dab57b032 |
children |
comparison
equal
deleted
inserted
replaced
3:f93dab57b032 | 4:1a22dd26c8a4 |
---|---|
7 * | 7 * |
8 ************* Revision Controle System Header *************/ | 8 ************* Revision Controle System Header *************/ |
9 | 9 |
10 #ifdef L1_ASYNC_C | 10 #ifdef L1_ASYNC_C |
11 | 11 |
12 #if (LONG_JUMP == 3) | 12 T_L1S_GLOBAL l1s __attribute__ ((section (".l1s_global"))); |
13 #pragma DATA_SECTION(l1s,".l1s_global") | |
14 #pragma DATA_SECTION(l1s_dsp_com,".l1s_global") | |
15 #pragma DATA_SECTION(l1a_l1s_com,".l1s_global") | |
16 #pragma DATA_SECTION(l1s_tpu_com,".l1s_global") | |
17 #pragma DATA_SECTION(l1_config,".l1s_global") | |
18 #endif | |
19 | |
20 T_L1S_GLOBAL l1s; | |
21 T_L1A_GLOBAL l1a; | 13 T_L1A_GLOBAL l1a; |
22 | 14 |
23 T_L1A_L1S_COM l1a_l1s_com; | 15 T_L1A_L1S_COM l1a_l1s_com __attribute__ ((section (".l1s_global"))); |
24 T_L1S_DSP_COM l1s_dsp_com; | 16 T_L1S_DSP_COM l1s_dsp_com __attribute__ ((section (".l1s_global"))); |
25 T_L1S_TPU_COM l1s_tpu_com; | 17 T_L1S_TPU_COM l1s_tpu_com __attribute__ ((section (".l1s_global"))); |
26 | 18 |
27 #if (L1_DYN_DSP_DWNLD == 1) // equivalent to an API_HISR flag | 19 #if (L1_DYN_DSP_DWNLD == 1) // equivalent to an API_HISR flag |
28 T_L1_API_HISR l1_apihisr; | 20 T_L1_API_HISR l1_apihisr __attribute__ ((section (".l1s_global"))); |
29 T_L1A_API_HISR_COM l1a_apihisr_com; | 21 T_L1A_API_HISR_COM l1a_apihisr_com __attribute__ ((section (".l1s_global"))); |
30 #endif | 22 #endif |
31 | 23 |
32 // variables for L1 configuration | 24 // variables for L1 configuration |
33 T_L1_CONFIG l1_config; | 25 T_L1_CONFIG l1_config __attribute__ ((section (".l1s_global"))); |
34 | 26 |
35 #else // L1_ASYNC_C | 27 #else // L1_ASYNC_C |
36 | 28 |
37 extern T_L1S_GLOBAL l1s; | 29 extern T_L1S_GLOBAL l1s; |
38 extern T_L1A_GLOBAL l1a; | 30 extern T_L1A_GLOBAL l1a; |
40 extern T_L1A_L1S_COM l1a_l1s_com; | 32 extern T_L1A_L1S_COM l1a_l1s_com; |
41 extern T_L1S_DSP_COM l1s_dsp_com; | 33 extern T_L1S_DSP_COM l1s_dsp_com; |
42 extern T_L1S_TPU_COM l1s_tpu_com; | 34 extern T_L1S_TPU_COM l1s_tpu_com; |
43 | 35 |
44 #if (L1_DYN_DSP_DWNLD == 1) // equivalent to an API_HISR flag | 36 #if (L1_DYN_DSP_DWNLD == 1) // equivalent to an API_HISR flag |
45 extern T_L1_API_HISR l1_apihisr; | 37 extern T_L1_API_HISR l1_apihisr; |
46 extern T_L1A_API_HISR_COM l1a_apihisr_com; | 38 extern T_L1A_API_HISR_COM l1a_apihisr_com; |
47 #endif | 39 #endif |
48 | 40 |
49 // variables for L1 configuration | 41 // variables for L1 configuration |
50 extern T_L1_CONFIG l1_config; | 42 extern T_L1_CONFIG l1_config; |
51 #endif | 43 #endif |
52 | 44 |