|
34 | 34 | #undef ARDUINO_UNO_Q |
35 | 35 | #endif |
36 | 36 |
|
| 37 | +#if defined(ARDUINO_PORTENTA_C33) |
| 38 | +#include <EspChipManager.h> |
| 39 | +#endif |
| 40 | + |
37 | 41 | #if defined(PORTENTA_H7_PINS) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA) |
38 | 42 | #ifndef BT_REG_ON |
39 | 43 | #define BT_REG_ON PJ_12 |
@@ -86,17 +90,9 @@ int BLELocalDevice::begin() |
86 | 90 | digitalWrite(BT_REG_ON, HIGH); |
87 | 91 | delay(500); |
88 | 92 | #elif defined(ARDUINO_PORTENTA_C33) |
89 | | -#define NINA_GPIO0 (100) |
90 | | -#define NINA_RESETN (101) |
91 | | - pinMode(NINA_GPIO0, OUTPUT); |
92 | | - pinMode(NINA_RESETN, OUTPUT); |
93 | | - Serial5.begin(921600); |
94 | 93 |
|
95 | | - digitalWrite(NINA_GPIO0, HIGH); |
96 | | - delay(100); |
97 | | - digitalWrite(NINA_RESETN, HIGH); |
98 | | - digitalWrite(NINA_RESETN, LOW); |
99 | | - digitalWrite(NINA_RESETN, HIGH); |
| 94 | + Serial5.begin(921600); |
| 95 | + CEspChipManager::getInstance().initialize(); |
100 | 96 | auto _start = millis(); |
101 | 97 | while (millis() - _start < 500) { |
102 | 98 | if (Serial5.available()) { |
|
0 commit comments