nrf: Move bluetooth driver to the 'bluetooth' folder
This commit is contained in:
parent
17f13ecc2c
commit
d5a71a4b8a
|
@ -1,6 +1,6 @@
|
||||||
# Nordic files
|
# Nordic files
|
||||||
#####################
|
#####################
|
||||||
drivers/bluetooth/s1*/
|
bluetooth/s1*/
|
||||||
|
|
||||||
# Build files
|
# Build files
|
||||||
#####################
|
#####################
|
||||||
|
|
|
@ -21,7 +21,7 @@ include ../../py/mkenv.mk
|
||||||
-include mpconfigport.mk
|
-include mpconfigport.mk
|
||||||
|
|
||||||
ifneq ($(SD), )
|
ifneq ($(SD), )
|
||||||
include drivers/bluetooth/bluetooth_common.mk
|
include bluetooth/bluetooth_common.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
FROZEN_MPY_DIR = freeze
|
FROZEN_MPY_DIR = freeze
|
||||||
|
@ -41,6 +41,7 @@ INC += -I$(BUILD)
|
||||||
INC += -I$(BUILD)/genhdr
|
INC += -I$(BUILD)/genhdr
|
||||||
INC += -I./../../lib/cmsis/inc
|
INC += -I./../../lib/cmsis/inc
|
||||||
INC += -I./boards/$(BOARD)
|
INC += -I./boards/$(BOARD)
|
||||||
|
INC += -I./bluetooth
|
||||||
INC += -I./modules/ubluepy
|
INC += -I./modules/ubluepy
|
||||||
INC += -I./modules/ble
|
INC += -I./modules/ble
|
||||||
INC += -I./nrfx
|
INC += -I./nrfx
|
||||||
|
@ -48,9 +49,6 @@ INC += -I./nrfx/hal
|
||||||
INC += -I./nrfx/mdk
|
INC += -I./nrfx/mdk
|
||||||
INC += -I./nrfx/drivers/include
|
INC += -I./nrfx/drivers/include
|
||||||
INC += -I../../lib/mp-readline
|
INC += -I../../lib/mp-readline
|
||||||
INC += -I./drivers/bluetooth
|
|
||||||
INC += -I./drivers
|
|
||||||
INC += -I./peripherals
|
|
||||||
INC += -I../../lib/tinyusb/src
|
INC += -I../../lib/tinyusb/src
|
||||||
INC += -I./usb
|
INC += -I./usb
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@ endif
|
||||||
|
|
||||||
CFLAGS += -DBLUETOOTH_SD_DEBUG=1
|
CFLAGS += -DBLUETOOTH_SD_DEBUG=1
|
||||||
|
|
||||||
INC += -Idrivers/bluetooth/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)_API/include
|
INC += -Ibluetooth/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)_API/include
|
||||||
INC += -Idrivers/bluetooth/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)_API/include/$(MCU_VARIANT)
|
INC += -Ibluetooth/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)_API/include/$(MCU_VARIANT)
|
||||||
|
|
||||||
SOFTDEV_HEX_NAME = $(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)_softdevice.hex
|
SOFTDEV_HEX_NAME = $(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)_softdevice.hex
|
||||||
SOFTDEV_HEX_PATH = drivers/bluetooth/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)
|
SOFTDEV_HEX_PATH = bluetooth/$(SD)_$(MCU_VARIANT)_$(SOFTDEV_VERSION)
|
||||||
SOFTDEV_HEX = $(SOFTDEV_HEX_PATH)/$(SOFTDEV_HEX_NAME)
|
SOFTDEV_HEX = $(SOFTDEV_HEX_PATH)/$(SOFTDEV_HEX_NAME)
|
||||||
|
|
||||||
define STACK_MISSING_ERROR
|
define STACK_MISSING_ERROR
|
||||||
|
@ -32,7 +32,7 @@ define STACK_MISSING_ERROR
|
||||||
# #
|
# #
|
||||||
# Please run the download script: #
|
# Please run the download script: #
|
||||||
# #
|
# #
|
||||||
# drivers/bluetooth/download_ble_stack.sh #
|
# bluetooth/download_ble_stack.sh #
|
||||||
# #
|
# #
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
|
@ -18,7 +18,7 @@ You then need to download the SD and Nordic SDK files via:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cd ports/nrf
|
$ cd ports/nrf
|
||||||
$ ./drivers/bluetooth/download_ble_stack.sh
|
$ ./bluetooth/download_ble_stack.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installing `adafruit-nrfutil`
|
## Installing `adafruit-nrfutil`
|
||||||
|
|
|
@ -33,7 +33,7 @@ You then need to download the SD and Nordic SDK files via:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cd ports/nrf
|
$ cd ports/nrf
|
||||||
$ ./drivers/bluetooth/download_ble_stack.sh
|
$ ./bluetooth/download_ble_stack.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installing the Serial Bootloader
|
## Installing the Serial Bootloader
|
||||||
|
@ -198,4 +198,4 @@ Converting to uf2, output size: 392192, start address: 0x26000
|
||||||
Wrote 392192 bytes to build-feather52840-s140/firmware.uf2.
|
Wrote 392192 bytes to build-feather52840-s140/firmware.uf2.
|
||||||
```
|
```
|
||||||
|
|
||||||
Simply drag and drop firmware.uf2 to the MSC, the nrf52840 will blink fast and reset after done.
|
Simply drag and drop firmware.uf2 to the MSC, the nrf52840 will blink fast and reset after done.
|
||||||
|
|
Loading…
Reference in New Issue