Skip to content

Commit 0ad2d7d

Browse files
committed
Support C33
1 parent 289d3d6 commit 0ad2d7d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/local/BLELocalDevice.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/utility/HCIUartTransport.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy