File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#include " BLELocalDevice.h"
27
27
28
+ #if defined(ARDUINO_PORTENTA_C33)
29
+ #include < EspChipManager.h>
30
+ #endif
31
+
28
32
#if defined(PORTENTA_H7_PINS) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
29
33
#ifndef BT_REG_ON
30
34
#define BT_REG_ON PJ_12
@@ -77,17 +81,11 @@ int BLELocalDevice::begin()
77
81
digitalWrite (BT_REG_ON, HIGH);
78
82
delay (500 );
79
83
#elif defined(ARDUINO_PORTENTA_C33)
80
- #define NINA_GPIO0 (100 )
81
- #define NINA_RESETN (101 )
82
- pinMode (NINA_GPIO0, OUTPUT);
83
- pinMode (NINA_RESETN, OUTPUT);
84
- Serial5.begin (921600 );
85
84
86
- digitalWrite (NINA_GPIO0, HIGH);
85
+ Serial5.begin (921600 );
86
+ CEspChipManager::getInstance ().initializeBLE ();
87
87
delay (100 );
88
- digitalWrite (NINA_RESETN, HIGH);
89
- digitalWrite (NINA_RESETN, LOW);
90
- digitalWrite (NINA_RESETN, HIGH);
88
+ CEspChipManager::getInstance ().initialize ();
91
89
auto _start = millis ();
92
90
while (millis () - _start < 500 ) {
93
91
if (Serial5.available ()) {
You can’t perform that action at this time.
0 commit comments