fix warning on MSP430X check for other targets

This commit is contained in:
matthias.ringwald@gmail.com 2014-10-05 11:05:56 +00:00
parent ac6b644223
commit 2121f530c8
2 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@
#include <stdio.h>
#include <string.h> /* memcpy */
#if defined(__GNUC__) && (__MSP430X__ > 0)
#if defined(__GNUC__) && defined(__MSP430X__) && (__MSP430X__ > 0)
#include "hal_compat.h"
#endif
@ -198,7 +198,7 @@ static int bt_control_cc256x_next_cmd(void *config, uint8_t *hci_cmd_buffer){
init_script_offset++; // extracted init script has 0x01 cmd packet type, but BTstack expects them without
#if defined(__GNUC__) && (__MSP430X__ > 0)
#if defined(__GNUC__) && defined(__MSP430X__) && (__MSP430X__ > 0)
// workaround: use FlashReadBlock with 32-bit integer and assume init script starts at 0x10000
uint32_t init_script_addr = 0x10000;

View File

@ -18,7 +18,7 @@ Then, unzip it and copy the *.bts file into this folder and start the script aga
'''
fartext = '''
#if defined(__GNUC__) && (__MSP430X__ > 0)
#if defined(__GNUC__) && defined(__MSP430X__) && (__MSP430X__ > 0)
__attribute__((section (".fartext")))
#endif
#ifdef __AVR__
@ -141,7 +141,7 @@ def convert_bts(bts_file):
if (part > 1):
suffix = '_{0}'.format(part)
fout.write('#if defined(__GNUC__) && (__MSP430X__ > 0)\n')
fout.write('#if defined(__GNUC__) && defined(__GNUC__) && (__MSP430X__ > 0)\n')
fout.write('};\n')
fout.write('__attribute__((section (".fartext")))\n')