summaryrefslogtreecommitdiff
path: root/samples/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2016-11-09 18:50:01 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2016-11-11 07:59:15 +0200
commit3fc4fd53f6f3265003b00049ab67db9d9316d9a6 (patch)
tree8bb61165232cd7a3a2fc41adb5948a0f2a159437 /samples/bluetooth
parent50f03a8de58791f92919b5b7686f0ad6be4fa7bc (diff)
Bluetooth: samples/hci_uart: Add micro:bit configuration
The BBC micro:bit doesn't have UART HW flow control, so it needs to be disabled to build for the board. The baudrate is also lowered to 115200 since 1Mbps is likely to be unreliable without flow control. Change-Id: I1725a2a1e46cfbc0f57b4f5c4ee57ff52d9670e9 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'samples/bluetooth')
-rw-r--r--samples/bluetooth/hci_uart/Makefile7
-rw-r--r--samples/bluetooth/hci_uart/microbit.conf13
2 files changed, 19 insertions, 1 deletions
diff --git a/samples/bluetooth/hci_uart/Makefile b/samples/bluetooth/hci_uart/Makefile
index 5952a0b66..3b330a087 100644
--- a/samples/bluetooth/hci_uart/Makefile
+++ b/samples/bluetooth/hci_uart/Makefile
@@ -1,4 +1,9 @@
-CONF_FILE ?= nrf5.conf
BOARD ?= nrf52_pca10040
+ifeq ($(BOARD),bbc_microbit)
+CONF_FILE ?= microbit.conf
+else
+CONF_FILE ?= nrf5.conf
+endif
+
include $(ZEPHYR_BASE)/Makefile.inc
diff --git a/samples/bluetooth/hci_uart/microbit.conf b/samples/bluetooth/hci_uart/microbit.conf
new file mode 100644
index 000000000..1aea03324
--- /dev/null
+++ b/samples/bluetooth/hci_uart/microbit.conf
@@ -0,0 +1,13 @@
+CONFIG_CONSOLE=n
+CONFIG_STDOUT_CONSOLE=n
+CONFIG_UART_CONSOLE=n
+CONFIG_GPIO=y
+CONFIG_SERIAL=y
+CONFIG_UART_INTERRUPT_DRIVEN=y
+CONFIG_BLUETOOTH=y
+CONFIG_BLUETOOTH_HCI_RAW=y
+CONFIG_BLUETOOTH_MAX_CONN=16
+CONFIG_BLUETOOTH_CONTROLLER_RX_BUFFERS=4
+CONFIG_BLUETOOTH_CONTROLLER_TX_BUFFERS=4
+CONFIG_UART_NRF5_BAUD_RATE=115200
+CONFIG_UART_NRF5_FLOW_CONTROL=n