comparison src/cs/layer1/p_include/l1p_vare.h @ 47:d2074d1102e0

L1 data section placement: support both TMS470 and gcc
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 19 Jul 2018 01:04:05 +0000
parents b6a5e36de839
children
comparison
equal deleted inserted replaced
46:559a8b3ef10b 47:d2074d1102e0
8 ************* Revision Controle System Header *************/ 8 ************* Revision Controle System Header *************/
9 9
10 #ifdef L1P_ASYN_C 10 #ifdef L1P_ASYN_C
11 11
12 #if (LONG_JUMP == 3) 12 #if (LONG_JUMP == 3)
13 #pragma DATA_SECTION(l1ps,".l1s_global") 13 #ifdef __GNUC__
14 #pragma DATA_SECTION(l1pa_l1ps_com,".l1s_global") 14 #define SECTION_ATTR __attribute__ ((section (".l1s_global")))
15 #pragma DATA_SECTION(l1ps_macs_com,".l1s_global") 15 #else
16 #pragma DATA_SECTION(l1ps_dsp_com,".l1s_global") 16 #define SECTION_ATTR
17 #pragma DATA_SECTION(l1ps,".l1s_global")
18 #pragma DATA_SECTION(l1pa_l1ps_com,".l1s_global")
19 #pragma DATA_SECTION(l1ps_macs_com,".l1s_global")
20 #pragma DATA_SECTION(l1ps_dsp_com,".l1s_global")
21 #endif
22 #else
23 #define SECTION_ATTR
17 #endif 24 #endif
18 25
19 // Global Packet L1A structure 26 // Global Packet L1A structure
20 T_L1PA_GLOBAL l1pa; 27 T_L1PA_GLOBAL l1pa;
21 28
22 // Global Packet L1S structure 29 // Global Packet L1S structure
23 T_L1PS_GLOBAL l1ps; 30 T_L1PS_GLOBAL l1ps SECTION_ATTR;
24 31
25 // Common structure between L1A and L1S in packet mode 32 // Common structure between L1A and L1S in packet mode
26 T_L1PA_L1PS_COM l1pa_l1ps_com; 33 T_L1PA_L1PS_COM l1pa_l1ps_com SECTION_ATTR;
27 34
28 // Communication between L1S and MAC-S in packet mode 35 // Communication between L1S and MAC-S in packet mode
29 T_L1PS_MACS_COM l1ps_macs_com; 36 T_L1PS_MACS_COM l1ps_macs_com SECTION_ATTR;
30 37
31 // MCU / DSP interface 38 // MCU / DSP interface
32 T_L1PS_DSP_COM l1ps_dsp_com; 39 T_L1PS_DSP_COM l1ps_dsp_com SECTION_ATTR;
40
41 #undef SECTION_ATTR
33 42
34 #else 43 #else
35 extern T_L1PA_GLOBAL l1pa; 44 extern T_L1PA_GLOBAL l1pa;
36 extern T_L1PS_GLOBAL l1ps; 45 extern T_L1PS_GLOBAL l1ps;
37 extern T_L1PA_L1PS_COM l1pa_l1ps_com; 46 extern T_L1PA_L1PS_COM l1pa_l1ps_com;