|
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,9 @@ 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); |
87 | | - delay(100); |
88 | | - digitalWrite(NINA_RESETN, HIGH); |
89 | | - digitalWrite(NINA_RESETN, LOW); |
90 | | - digitalWrite(NINA_RESETN, HIGH); |
| 85 | + Serial5.begin(921600); |
| 86 | + CEspChipManager::getInstance().initialize(); |
91 | 87 | auto _start = millis();
|
92 | 88 | while (millis() - _start < 500) {
|
93 | 89 | if (Serial5.available()) {
|
|
0 commit comments