Skip to content

Commit 95e3f79

Browse files
committed
[multicore] Align placement macros with naming convention
1 parent 725a69e commit 95e3f79

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/modm/platform/core/rp/multicore.hpp.in

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,19 +222,23 @@ struct Core1 : Core
222222
/// @{
223223
%% for i in range(num_cores)
224224
/// Places initialized objects into the core{{i}}-coupled memory
225-
#define modm_core{{i}}_data modm_section(".data_core{{i}}")
225+
#define modm_fastdata_core{{i}} modm_section(".data_core{{i}}")
226226
%% endfor
227227
%% for i in range(num_cores)
228228
/// Places zeroed objects into the core{{i}}-coupled memory
229-
#define modm_core{{i}}_bss modm_section(".bss_core{{i}}")
229+
#define modm_bss_core{{i}} modm_section(".bss_core{{i}}")
230230
%% endfor
231231
%% for i in range(num_cores)
232232
/// Places uninitialized objects into the core{{i}}-coupled memory
233-
#define modm_core{{i}}_noinit modm_section(".noinit_core{{i}}")
233+
#define modm_noinit_core{{i}} modm_section(".noinit_core{{i}}")
234+
%% endfor
235+
%% for i in range(num_cores)
236+
/// Places stacks into the core{{i}}-coupled memory
237+
#define modm_faststack_core{{i}} modm_noinit_core{{i}}
234238
%% endfor
235239
%% for i in range(num_cores)
236240
/// Places functions into the core{{i}}-coupled memory
237-
#define modm_core{{i}}_code modm_core{{i}}_data
241+
#define modm_fastcode_core{{i}} modm_fastdata_core{{i}}
238242
%% endfor
239243
/// Weak callback to initialize CPU1
240244
extern "C" void

0 commit comments

Comments
 (0)