Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 238e33a

Browse files
committed
move chip reset from lib to core
1 parent 9263b3a commit 238e33a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

‎src/local/BLELocalDevice.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525

2626
#include "BLELocalDevice.h"
2727

28+
#if defined(ARDUINO_PORTENTA_C33)
29+
#include <EspChipManager.h>
30+
#endif
31+
2832
#if defined(PORTENTA_H7_PINS) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA)
2933
#ifndef BT_REG_ON
3034
#define BT_REG_ON PJ_12
@@ -77,17 +81,9 @@ int BLELocalDevice::begin()
7781
digitalWrite(BT_REG_ON, HIGH);
7882
delay(500);
7983
#elif defined(ARDUINO_PORTENTA_C33)
80-
#define NINA_GPIO0 (100)
81-
#define NINA_RESETN (101)
82-
pinMode(NINA_GPIO0, OUTPUT);
83-
pinMode(NINA_RESETN, OUTPUT);
84-
Serial5.begin(921600);
8584

86-
digitalWrite(NINA_GPIO0, HIGH);
87-
delay(100);
88-
digitalWrite(NINA_RESETN, HIGH);
89-
digitalWrite(NINA_RESETN, LOW);
90-
digitalWrite(NINA_RESETN, HIGH);
85+
Serial5.begin(921600);
86+
CEspChipManager::getInstance().initialize();
9187
auto _start = millis();
9288
while (millis() - _start < 500) {
9389
if (Serial5.available()) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /