From 895b2d2ae088ffb1734c2f50fcf5229f53ff264d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 5 Dec 2017 11:12:31 +0100 Subject: [PATCH] samv71-xplained-atwilc3000: update build and readme --- port/samv71-xplained-atwilc3000/README.md | 4 +--- port/samv71-xplained-atwilc3000/example/.gitignore | 2 ++ .../example/template/config.mk | 1 - .../scripts/create_examples.py | 9 +++------ 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/port/samv71-xplained-atwilc3000/README.md b/port/samv71-xplained-atwilc3000/README.md index eef718bab..df3311ee2 100644 --- a/port/samv71-xplained-atwilc3000/README.md +++ b/port/samv71-xplained-atwilc3000/README.md @@ -16,7 +16,7 @@ In one of the example folders: To upload the firmware: - $ make + $ make flash You need to connect the the Debug USB to your computer. @@ -29,8 +29,6 @@ Also, the full packet log can be enabled in the main() function on main.c by unc ## TODOs - Implement hal_flash_sector.h to persist link keys - - Implement hal_audio_dma.h for A2DP Audio Sink and HFP/HSP Demos - - Figure out if/how SCO packets can be routed over HCI for HFP wide-band speech ## Issues - Bluetooth UART driver uses per-byte interrupts and doesn't work reliable at higher baud rates (921600 seems ok, 2 mbps already causes problems). diff --git a/port/samv71-xplained-atwilc3000/example/.gitignore b/port/samv71-xplained-atwilc3000/example/.gitignore index d7ec1995c..1c887bd59 100644 --- a/port/samv71-xplained-atwilc3000/example/.gitignore +++ b/port/samv71-xplained-atwilc3000/example/.gitignore @@ -28,3 +28,5 @@ spp_counter/ spp_flowcontrol/ spp_streamer/ spp_streamer_client/ +hog_keyboard_demo +hog_mouse_demo diff --git a/port/samv71-xplained-atwilc3000/example/template/config.mk b/port/samv71-xplained-atwilc3000/example/template/config.mk index a235303b5..cb4cc7316 100644 --- a/port/samv71-xplained-atwilc3000/example/template/config.mk +++ b/port/samv71-xplained-atwilc3000/example/template/config.mk @@ -53,7 +53,6 @@ TARGET_SRAM=le_counter_sram.elf # template main file + firmware file BTSTACK_ROOT_CONFIG = ../../../ CSRCS+=${BTSTACK_ROOT_CONFIG}/example/le_counter.c -# sCSRCS+=${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/template/wilc3000_bt_firmware.c # List of C source files. CSRCS+= \ diff --git a/port/samv71-xplained-atwilc3000/scripts/create_examples.py b/port/samv71-xplained-atwilc3000/scripts/create_examples.py index 380e25a73..64e44473a 100755 --- a/port/samv71-xplained-atwilc3000/scripts/create_examples.py +++ b/port/samv71-xplained-atwilc3000/scripts/create_examples.py @@ -107,11 +107,11 @@ for file in example_files: if 'le_counter.h: ${BTSTACK_ROOT}/example/le_counter.gatt' in line: fout.write('%s.h: ${BTSTACK_ROOT}/example/%s.gatt\n' % (example,example)) continue - if 'all: le_counter.h wilc3000_bt_firmware.c' in line: + if 'all: le_counter.h wilc3000_ble_firmware.h' in line: if len(gatt_h): - fout.write("all: %s.h wilc3000_bt_firmware.c\n" % example) + fout.write("all: %s.h wilc3000_ble_firmware.h\n" % example) else: - fout.write("all: wilc3000_bt_firmware.c\n") + fout.write("all: le_counter.h wilc3000_ble_firmware.h\n") continue fout.write(line) @@ -128,9 +128,6 @@ for file in example_files: if 'CSRCS+=${BTSTACK_ROOT_CONFIG}/example/le_counter.c' in line: fout.write('CSRCS+=${BTSTACK_ROOT_CONFIG}/example/%s.c\n' % example) continue - if 'CSRCS+=${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/template/wilc3000_bt_firmware.c' in line: - fout.write('CSRCS+=${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/%s/wilc3000_bt_firmware.c \\\n' % example) - continue if 'INC_PATH += ${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/template' in line: fout.write('INC_PATH += ${BTSTACK_ROOT_CONFIG}/port/samv71-xplained-atwilc3000/example/%s\n' % example) continue