From e3344418bedde0fcb487ec2799c6cf9453e719fc Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Tue, 4 Feb 2014 21:52:30 +0000 Subject: [PATCH] add PROGMEM attributes for AVR architecture --- chipset-cc256x/convert_bts_init_scripts.py | 3 +++ chipset-cc256x/create_cc256x_init_scripts.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/chipset-cc256x/convert_bts_init_scripts.py b/chipset-cc256x/convert_bts_init_scripts.py index 9259a51a9..9b43cdef7 100755 --- a/chipset-cc256x/convert_bts_init_scripts.py +++ b/chipset-cc256x/convert_bts_init_scripts.py @@ -21,6 +21,9 @@ fartext = ''' #if defined(__GNUC__) && (__MSP430X__ > 0) __attribute__((section (".fartext"))) #endif +#ifdef __AVR__ +__attribute__((__progmem__)) +#endif ''' data_indent = ' ' diff --git a/chipset-cc256x/create_cc256x_init_scripts.py b/chipset-cc256x/create_cc256x_init_scripts.py index 1524801b4..b9eac3928 100755 --- a/chipset-cc256x/create_cc256x_init_scripts.py +++ b/chipset-cc256x/create_cc256x_init_scripts.py @@ -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)