Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions src/local/BLELocalDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "BLELocalDevice.h"

#if defined(ARDUINO_PORTENTA_C33)
#include <EspChipManager.h>
#endif

#if defined(PORTENTA_H7_PINS) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
#ifndef BT_REG_ON
#define BT_REG_ON PJ_12
Expand Down Expand Up @@ -77,17 +81,9 @@ int BLELocalDevice::begin()
digitalWrite(BT_REG_ON, HIGH);
delay(500);
#elif defined(ARDUINO_PORTENTA_C33)
#define NINA_GPIO0 (100)
#define NINA_RESETN (101)
pinMode(NINA_GPIO0, OUTPUT);
pinMode(NINA_RESETN, OUTPUT);
Serial5.begin(921600);

digitalWrite(NINA_GPIO0, HIGH);
delay(100);
digitalWrite(NINA_RESETN, HIGH);
digitalWrite(NINA_RESETN, LOW);
digitalWrite(NINA_RESETN, HIGH);
Serial5.begin(921600);
CEspChipManager::getInstance().initialize();
auto _start = millis();
while (millis() - _start < 500) {
if (Serial5.available()) {
Expand Down
Loading