samples/bluetooth/hci_spi: Add configuration for nrf51_pca10028
This sample has nrf51_pca10028 on its platform_whitelist but lacks configuration and overlay files that would make it possible to build this sample for that board. This commit provides such files. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
1a1d8e797b
commit
ff01e2a553
2 changed files with 22 additions and 0 deletions
1
samples/bluetooth/hci_spi/boards/nrf51_pca10028.conf
Normal file
1
samples/bluetooth/hci_spi/boards/nrf51_pca10028.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_SPI_1_NRF_SPIS=y
|
21
samples/bluetooth/hci_spi/nrf51_pca10028.overlay
Normal file
21
samples/bluetooth/hci_spi/nrf51_pca10028.overlay
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
&spi1 {
|
||||||
|
compatible = "nordic,nrf-spis";
|
||||||
|
status = "okay";
|
||||||
|
sck-pin = <6>;
|
||||||
|
mosi-pin = <5>;
|
||||||
|
miso-pin = <4>;
|
||||||
|
csn-pin = <3>;
|
||||||
|
def-char = <0x00>;
|
||||||
|
|
||||||
|
bt-hci@0 {
|
||||||
|
compatible = "zephyr,bt-hci-spi-slave";
|
||||||
|
reg = <0>;
|
||||||
|
irq-gpios = <&gpio0 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue