Skip to content

Commit a2096d5

Browse files
committed
support of the shared memory transport layer for the stm32wb55
with BLE 5.0 chip Signed-off-by: Francois Ramu <[email protected]>
1 parent d8f4883 commit a2096d5

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

Diff for: src/STM32duinoBLE.h

+5
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

Diff for: src/utility/HCISpiTransport.h

-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +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-
} BLEChip_t;
31-
3226
#ifndef BLE_SPI_BYTE_ORDER
3327
#define BLE_SPI_BYTE_ORDER MSBFIRST
3428
#endif

Diff for: src/utility/HCITransport.h

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222

2323
#include <Arduino.h>
2424

25+
typedef enum BLEChip_s {
26+
SPBTLE_RF,
27+
SPBTLE_1S,
28+
BLUENRG_M2SP,
29+
BLE5_0,
30+
} BLEChip_t;
31+
2532
class HCITransportInterface {
2633
public:
2734
virtual int begin() = 0;

0 commit comments

Comments
 (0)