From 729c7f4326abc9583130229a3141a34578f4dcf4 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Fri, 27 Jan 2023 14:05:11 +0000 Subject: [PATCH] Tweaks to section-attribute stuff in platform.h (#1202) --- src/rp2_common/pico_platform/include/pico/platform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rp2_common/pico_platform/include/pico/platform.h b/src/rp2_common/pico_platform/include/pico/platform.h index d576e79..e263b42 100644 --- a/src/rp2_common/pico_platform/include/pico/platform.h +++ b/src/rp2_common/pico_platform/include/pico/platform.h @@ -153,9 +153,9 @@ extern "C" { * * For example a `uint32_t` foo that will retain its value if the program is restarted by reset. * - * uint32_t __uninitialized_ram("foo"); + * uint32_t __uninitialized_ram(foo); * - * The section attribute is `.uninitialized_ram.` + * The section attribute is `.uninitialized_data.` * * \param group a string suffix to use in the section name to distinguish groups that can be linker * garbage-collected independently @@ -174,7 +174,7 @@ extern "C" { * \param group a string suffix to use in the section name to distinguish groups that can be linker * garbage-collected independently */ -#define __in_flash(group) __attribute__((section(".flashdata" group))) +#define __in_flash(group) __attribute__((section(".flashdata." group))) /*! \brief Indicates a function should not be stored in flash * \ingroup pico_platform