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)