Tweaks to section-attribute stuff in platform.h (#1202)

This commit is contained in:
Andrew Scheller 2023-01-27 14:05:11 +00:00 committed by GitHub
parent 36ba9e64bc
commit 729c7f4326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,9 +153,9 @@ extern "C" {
* *
* For example a `uint32_t` foo that will retain its value if the program is restarted by reset. * 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.<group>` * The section attribute is `.uninitialized_data.<group>`
* *
* \param group a string suffix to use in the section name to distinguish groups that can be linker * \param group a string suffix to use in the section name to distinguish groups that can be linker
* garbage-collected independently * 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 * \param group a string suffix to use in the section name to distinguish groups that can be linker
* garbage-collected independently * 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 /*! \brief Indicates a function should not be stored in flash
* \ingroup pico_platform * \ingroup pico_platform