From 9ed0e6904258c2d61dc16f9abc6d3f17e17f53e2 Mon Sep 17 00:00:00 2001 From: Lingkai Dong Date: Thu, 24 Jun 2021 16:02:12 +0100 Subject: [PATCH] BlueNRG-MS: Use non Arduino Uno pin names The Arduino Uno pin aliases in `hal/PinNameAliases.h` are now guarded by the macro `TARGET_FF_ARDUINO_UNO` (since 7c333d8) and not globally available anymore. This results in the following error (and similar ones) when building the driver for K64F: error: 'ARDUINO_UNO_SPI_MOSI' was not declared in this scope To fix it, replace the aliases with their raw pin names. Now the pins are identical to BlueNRG-2. --- .../FEATURE_BLE/COMPONENT_BlueNRG_MS/mbed_lib.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_MS/mbed_lib.json b/connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_MS/mbed_lib.json index d1d920c7c0c..4e0daaa7b81 100644 --- a/connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_MS/mbed_lib.json +++ b/connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_MS/mbed_lib.json @@ -1,12 +1,12 @@ { "name": "bluenrg_ms", "config": { - "SPI_MOSI": "ARDUINO_UNO_SPI_MOSI", - "SPI_MISO": "ARDUINO_UNO_SPI_MISO", - "SPI_nCS": "ARDUINO_UNO_A1", - "SPI_RESET": "ARDUINO_UNO_D7", - "SPI_IRQ": "ARDUINO_UNO_A0", - "SPI_SCK": "ARDUINO_UNO_D3", + "SPI_MOSI": "D11", + "SPI_MISO": "D12", + "SPI_nCS": "A1", + "SPI_RESET": "D7", + "SPI_IRQ": "A0", + "SPI_SCK": "D3", "valid-public-bd-address": { "help": "Read the BD public address at startup", "value": false @@ -14,7 +14,7 @@ }, "target_overrides": { "K64F": { - "SPI_SCK": "ARDUINO_UNO_SPI_SCK" + "SPI_SCK": "D13" }, "DISCO_L475VG_IOT01A": { "SPI_MOSI": "PC_12",