mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-27 03:17:02 +00:00
atwilc3000: use BLE-only firmware from ASF
This commit is contained in:
parent
1d5191c92e
commit
a15efc8617
@ -4,6 +4,10 @@
|
||||
|
||||
CONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/atwilc3000/convert_firmware_bin.py
|
||||
|
||||
wilc3000_ble_firmware.h:
|
||||
@echo "Downloading $@"
|
||||
@curl https://bluekitchen-gmbh.com/files/ble_firmware_3000.h > wilc3000_ble_firmware.h
|
||||
|
||||
wilc3000_bt_firmware.c: wilc3000_bt_firmware.bin
|
||||
@$(CONVERSION_SCRIPT) wilc3000_bt_firmware.bin
|
||||
|
||||
|
@ -3,7 +3,6 @@ BTSTACK_ROOT = ../..
|
||||
|
||||
CORE += \
|
||||
btstack_chipset_atwilc3000.c \
|
||||
wilc3000_bt_firmware.c \
|
||||
btstack_link_key_db_fs.c \
|
||||
btstack_run_loop_posix.c \
|
||||
btstack_uart_block_posix.c \
|
||||
|
@ -62,7 +62,8 @@
|
||||
#include "btstack_stdin.h"
|
||||
|
||||
#include "btstack_chipset_atwilc3000.h"
|
||||
#include "wilc3000_bt_firmware.h"
|
||||
// #include "wilc3000_bt_firmware.h"
|
||||
#include "wilc3000_ble_firmware.h"
|
||||
|
||||
static int main_argc;
|
||||
static const char ** main_argv;
|
||||
@ -169,7 +170,7 @@ int main(int argc, const char * argv[]){
|
||||
printf("Phase 1: Download firmware\n");
|
||||
|
||||
// phase #2 start main app
|
||||
btstack_chipset_atwilc3000_download_firmware(uart_driver, transport_config.baudrate_init, transport_config.flowcontrol, atwilc3000_fw_data, atwilc3000_fw_size, &phase2);
|
||||
btstack_chipset_atwilc3000_download_firmware(uart_driver, transport_config.baudrate_init, transport_config.flowcontrol, (const uint8_t *) firmware_ble, sizeof(firmware_ble), &phase2);
|
||||
|
||||
// go
|
||||
btstack_run_loop_execute();
|
||||
|
@ -49,7 +49,7 @@
|
||||
BTSTACK_ROOT=../../../..
|
||||
|
||||
# enforce .gatt compilation if needed
|
||||
all: le_counter.h wilc3000_bt_firmware.c
|
||||
all: le_counter.h wilc3000_ble_firmware.h
|
||||
|
||||
le_counter.h: ${BTSTACK_ROOT}/example/le_counter.gatt
|
||||
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
|
||||
|
@ -53,7 +53,7 @@ TARGET_SRAM=le_counter_sram.elf
|
||||
# template main file + firmware file
|
||||
BTSTACK_ROOT_CONFIG = ../../../
|
||||
CSRCS+=${BTSTACK_ROOT_CONFIG}/example/le_counter.c
|
||||
CSRCS+=${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/template/wilc3000_bt_firmware.c
|
||||
# sCSRCS+=${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/template/wilc3000_bt_firmware.c
|
||||
|
||||
# List of C source files.
|
||||
CSRCS+= \
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "hal_tick.h"
|
||||
#include "hci.h"
|
||||
#include "hci_dump.h"
|
||||
#include "wilc3000_bt_firmware.h"
|
||||
#include "wilc3000_ble_firmware.h"
|
||||
|
||||
// #define USE_XDMAC_FOR_USART
|
||||
#define XDMA_CH_UART_TX 0
|
||||
@ -582,7 +582,7 @@ int main(void)
|
||||
printf("Phase 1: Download firmware\n");
|
||||
|
||||
// phase #2 start main app
|
||||
btstack_chipset_atwilc3000_download_firmware(uart_driver, transport_config.baudrate_init, transport_config.flowcontrol, atwilc3000_fw_data, atwilc3000_fw_size, &phase2);
|
||||
btstack_chipset_atwilc3000_download_firmware(uart_driver, transport_config.baudrate_init, transport_config.flowcontrol, (const uint8_t *) firmware_ble, sizeof(firmware_ble), &phase2);
|
||||
|
||||
// go
|
||||
btstack_run_loop_execute();
|
||||
|
Loading…
Reference in New Issue
Block a user