add PROGMEM attributes for AVR architecture

This commit is contained in:
matthias.ringwald@gmail.com 2014-02-04 21:52:30 +00:00
parent b9fe9818fd
commit e3344418be
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ fartext = '''
#if defined(__GNUC__) && (__MSP430X__ > 0)
__attribute__((section (".fartext")))
#endif
#ifdef __AVR__
__attribute__((__progmem__))
#endif
'''
data_indent = ' '

View File

@ -24,6 +24,9 @@ def extract_script(fin, patch_name, chipset, array_name):
#if defined(__GNUC__) && (__MSP430X__ > 0)
__attribute__((section (".fartext")))
#endif
#ifdef __AVR__
__attribute__((__progmem__))
#endif
'''
filename = '{0}_init_script.c'.format(chipset)