File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,26 @@ int BLELocalDevice::begin()
7373 // BT_REG_ON -> HIGH
7474 pinMode (BT_REG_ON, OUTPUT);
7575 digitalWrite (BT_REG_ON, HIGH);
76+ #elif defined(ARDUINO_PORTENTA_C33)
77+ #define NINA_GPIO0 (100 )
78+ #define NINA_RESETN (101 )
79+ pinMode (NINA_GPIO0, OUTPUT);
80+ pinMode (NINA_RESETN, OUTPUT);
81+ Serial5.begin (921600 );
82+
83+ digitalWrite (NINA_GPIO0, HIGH);
84+ delay (100 );
85+ digitalWrite (NINA_RESETN, HIGH);
86+ digitalWrite (NINA_RESETN, LOW);
87+ digitalWrite (NINA_RESETN, HIGH);
88+ auto _start = millis ();
89+ while (millis () - _start < 500 ) {
90+ if (Serial5.available ()) {
91+ Serial5.read ();
92+ }
93+ }
94+ // pinMode(94, OUTPUT);
95+ // digitalWrite(94, LOW);
7696#endif
7797
7898
Original file line number Diff line number Diff line change 2929// SerialHCI is already defined in the variant
3030#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
3131#define SerialHCI Serial2
32+ #elif defined(ARDUINO_PORTENTA_C33)
33+ #define SerialHCI Serial5
3234#else
3335#error "Unsupported board selected!"
3436#endif
You can’t perform that action at this time.
0 commit comments