Skip to content

Commit c925d82

Browse files
committed
Add compatibility with Nicla Vision
1 parent ca92e1b commit c925d82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utility/HCICordioTransport.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <driver/CordioHCITransportDriver.h>
2626
#include <driver/CordioHCIDriver.h>
2727

28-
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7)
28+
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
2929
#include "ble/BLE.h"
3030
#include <events/mbed_events.h>
3131
#endif
@@ -181,7 +181,7 @@ HCICordioTransportClass::~HCICordioTransportClass()
181181
{
182182
}
183183

184-
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7)
184+
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
185185
events::EventQueue eventQueue(10 * EVENTS_EVENT_SIZE);
186186
void scheduleMbedBleEvents(BLE::OnEventsToProcessCallbackContext *context) {
187187
eventQueue.call(mbed::Callback<void()>(&context->ble, &BLE::processEvents));
@@ -201,7 +201,7 @@ int HCICordioTransportClass::begin()
201201
init_wsf(bufPoolDesc);
202202
#endif
203203

204-
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7)
204+
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
205205
BLE &ble = BLE::Instance();
206206
ble.onEventsToProcess(scheduleMbedBleEvents);
207207

0 commit comments

Comments
 (0)