From 7e7a1b35c55f71d93052305b0ddc6628372e972d Mon Sep 17 00:00:00 2001 From: Carlo Parata Date: Tue, 27 Mar 2018 11:33:46 +0200 Subject: [PATCH 1/2] Replace some defines for compatibility with new version of the core --- examples/SPBTLE_BeaconDemo/SPBTLE_BeaconDemo.ino | 16 ++++++++-------- examples/SPBTLE_SensorDemo/SPBTLE_SensorDemo.ino | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/SPBTLE_BeaconDemo/SPBTLE_BeaconDemo.ino b/examples/SPBTLE_BeaconDemo/SPBTLE_BeaconDemo.ino index 74366fb..de8d5b8 100644 --- a/examples/SPBTLE_BeaconDemo/SPBTLE_BeaconDemo.ino +++ b/examples/SPBTLE_BeaconDemo/SPBTLE_BeaconDemo.ino @@ -28,21 +28,21 @@ #include #include -#define PIN_SPI_MOSI (PC12) -#define PIN_SPI_MISO (PC11) -#define PIN_SPI_SCK (PC10) +#define PIN_BLE_SPI_MOSI (PC12) +#define PIN_BLE_SPI_MISO (PC11) +#define PIN_BLE_SPI_SCK (PC10) -#define PIN_SPI_nCS (PD13) -#define PIN_SPI_RESET (PA8) -#define PIN_SPI_IRQ (PE6) +#define PIN_BLE_SPI_nCS (PD13) +#define PIN_BLE_SPI_RESET (PA8) +#define PIN_BLE_SPI_IRQ (PE6) #define PIN_BLE_LED (LED4) // Configure BTLE_SPI -SPIClass BTLE_SPI(PIN_SPI_MOSI, PIN_SPI_MISO, PIN_SPI_SCK); +SPIClass BTLE_SPI(PIN_BLE_SPI_MOSI, PIN_BLE_SPI_MISO, PIN_BLE_SPI_SCK); // Configure BTLE pins -SPBTLERFClass BTLE(&BTLE_SPI, PIN_SPI_nCS, PIN_SPI_IRQ, PIN_SPI_RESET, PIN_BLE_LED); +SPBTLERFClass BTLE(&BTLE_SPI, PIN_BLE_SPI_nCS, PIN_BLE_SPI_IRQ, PIN_BLE_SPI_RESET, PIN_BLE_LED); // Mac address uint8_t SERVER_BDADDR[] = {0x12, 0x34, 0x00, 0xE1, 0x80, 0x03}; diff --git a/examples/SPBTLE_SensorDemo/SPBTLE_SensorDemo.ino b/examples/SPBTLE_SensorDemo/SPBTLE_SensorDemo.ino index 58b0b12..33e7ef4 100644 --- a/examples/SPBTLE_SensorDemo/SPBTLE_SensorDemo.ino +++ b/examples/SPBTLE_SensorDemo/SPBTLE_SensorDemo.ino @@ -23,21 +23,21 @@ #include #include -#define PIN_SPI_MOSI (PC12) -#define PIN_SPI_MISO (PC11) -#define PIN_SPI_SCK (PC10) +#define PIN_BLE_SPI_MOSI (PC12) +#define PIN_BLE_SPI_MISO (PC11) +#define PIN_BLE_SPI_SCK (PC10) -#define PIN_SPI_nCS (PD13) -#define PIN_SPI_RESET (PA8) -#define PIN_SPI_IRQ (PE6) +#define PIN_BLE_SPI_nCS (PD13) +#define PIN_BLE_SPI_RESET (PA8) +#define PIN_BLE_SPI_IRQ (PE6) #define PIN_BLE_LED (LED4) // Configure BTLE_SPI -SPIClass BTLE_SPI(PIN_SPI_MOSI, PIN_SPI_MISO, PIN_SPI_SCK); +SPIClass BTLE_SPI(PIN_BLE_SPI_MOSI, PIN_BLE_SPI_MISO, PIN_BLE_SPI_SCK); // Configure BTLE pins -SPBTLERFClass BTLE(&BTLE_SPI, PIN_SPI_nCS, PIN_SPI_IRQ, PIN_SPI_RESET, PIN_BLE_LED); +SPBTLERFClass BTLE(&BTLE_SPI, PIN_BLE_SPI_nCS, PIN_BLE_SPI_IRQ, PIN_BLE_SPI_RESET, PIN_BLE_LED); const char *name = "BlueNRG"; uint8_t SERVER_BDADDR[] = {0x12, 0x34, 0x00, 0xE1, 0x80, 0x03}; From eacaf088af741a56905ccd0b59cb8423d558ce67 Mon Sep 17 00:00:00 2001 From: Carlo Parata Date: Tue, 27 Mar 2018 13:41:06 +0200 Subject: [PATCH 2/2] Update library file --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index d478773..bb4b03a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=STM32duino SPBTLE-RF -version=1.0.1 +version=1.0.2 author=STMicroelectronics, AMS, Wi6Labs maintainer=stm32duino sentence=This library includes drivers for ST's BlueNRG/BlueNRG-MS Bluetooth Low Energy device.