mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-07 13:28:48 +00:00
[feat][common] Allow customize ld sections
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
24cde3166e
commit
b5da7d33b4
1 changed files with 5 additions and 2 deletions
|
@ -40,6 +40,7 @@
|
|||
}
|
||||
|
||||
/* Std driver attribute macro*/
|
||||
#ifndef BFLB_USE_CUSTOM_LD_SECTIONS
|
||||
//#define ATTR_UNI_SYMBOL
|
||||
#define ATTR_STRINGIFY(x) #x
|
||||
#define ATTR_TOSTRING(x) ATTR_STRINGIFY(x)
|
||||
|
@ -56,5 +57,7 @@
|
|||
#define ATTR_EALIGN(x) __attribute__((aligned(x)))
|
||||
#define ATTR_FALLTHROUGH() __attribute__((fallthrough))
|
||||
#define ATTR_USED __attribute__((__used__))
|
||||
|
||||
#endif
|
||||
#else
|
||||
#include "bl_ld_sections.h"
|
||||
#endif /* BFLB_USE_CUSTOM_LD_SECTIONS */
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue