mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
add PROGMEM attributes for AVR architecture
This commit is contained in:
parent
b9fe9818fd
commit
e3344418be
@ -21,6 +21,9 @@ fartext = '''
|
|||||||
#if defined(__GNUC__) && (__MSP430X__ > 0)
|
#if defined(__GNUC__) && (__MSP430X__ > 0)
|
||||||
__attribute__((section (".fartext")))
|
__attribute__((section (".fartext")))
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __AVR__
|
||||||
|
__attribute__((__progmem__))
|
||||||
|
#endif
|
||||||
'''
|
'''
|
||||||
|
|
||||||
data_indent = ' '
|
data_indent = ' '
|
||||||
|
@ -24,6 +24,9 @@ def extract_script(fin, patch_name, chipset, array_name):
|
|||||||
#if defined(__GNUC__) && (__MSP430X__ > 0)
|
#if defined(__GNUC__) && (__MSP430X__ > 0)
|
||||||
__attribute__((section (".fartext")))
|
__attribute__((section (".fartext")))
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __AVR__
|
||||||
|
__attribute__((__progmem__))
|
||||||
|
#endif
|
||||||
'''
|
'''
|
||||||
|
|
||||||
filename = '{0}_init_script.c'.format(chipset)
|
filename = '{0}_init_script.c'.format(chipset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user