Skip to content

Commit 7841f6c

Browse files
committed
support of the shared memory transport layer for the stm32wb55
with STM32WB built-in chip (STM32WB_RF) The list of supported BLEChip is not spi transport dependant anymore Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parent f882d77 commit 7841f6c

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

src/STM32duinoBLE.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
#include "BLEProperty.h"
2525
#include "BLEStringCharacteristic.h"
2626
#include "BLETypedCharacteristics.h"
27+
28+
#if defined(ARDUINO_PNUCLEO_WB55RG)
29+
#include "utility/HCISharedMemTransport.h"
30+
#else
2731
#include "utility/HCISpiTransport.h"
32+
#endif
2833

2934
#endif

src/utility/HCISpiTransport.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@
2323
#include "HCITransport.h"
2424
#include "SPI.h"
2525

26-
typedef enum BLEChip_s {
27-
SPBTLE_RF,
28-
SPBTLE_1S,
29-
BLUENRG_M2SP,
30-
BLUENRG_M0
31-
} BLEChip_t;
32-
3326
#ifndef BLE_SPI_BYTE_ORDER
3427
#define BLE_SPI_BYTE_ORDER MSBFIRST
3528
#endif

src/utility/HCITransport.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222

2323
#include <Arduino.h>
2424

25+
typedef enum BLEChip_s {
26+
SPBTLE_RF,
27+
SPBTLE_1S,
28+
BLUENRG_M2SP,
29+
BLUENRG_M0,
30+
STM32WB_RF,
31+
} BLEChip_t;
32+
2533
class HCITransportInterface {
2634
public:
2735
virtual int begin() = 0;

0 commit comments

Comments
 (0)