mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 21:41:13 +00:00
fix warning on MSP430X check for other targets
This commit is contained in:
parent
ac6b644223
commit
2121f530c8
@ -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;
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user