File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,26 @@ int BLELocalDevice::begin()
73
73
// BT_REG_ON -> HIGH
74
74
pinMode (BT_REG_ON, OUTPUT);
75
75
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);
76
96
#endif
77
97
78
98
Original file line number Diff line number Diff line change 29
29
// SerialHCI is already defined in the variant
30
30
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
31
31
#define SerialHCI Serial2
32
+ #elif defined(ARDUINO_PORTENTA_C33)
33
+ #define SerialHCI Serial5
32
34
#else
33
35
#error "Unsupported board selected!"
34
36
#endif
You can’t perform that action at this time.
0 commit comments