Skip to content

Commit 8c879ea

Browse files
basic functionality compiling for Nicla Vision
1 parent d4eb66d commit 8c879ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Board.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Board::~Board() {
5858
}
5959

6060
bool Board::begin() {
61-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
61+
#if defined(ARDUINO_PORTENTA_H7_M7)
6262
if (CM7_CPUID == HAL_GetCurrentCPUID()){
6363
if (LowPowerReturnCode::success != LowPower.checkOptionBytes()){
6464
LowPower.prepareOptionBytes();
@@ -124,7 +124,7 @@ void Board::enableWakeupFromPin(uint8_t pin, PinStatus direction){
124124
}
125125
#endif
126126

127-
#if defined(ARDUINO_PORTENTA_H7) || defined(ARDUINO_NICLA_VISION)
127+
#if defined(ARDUINO_PORTENTA_H7)
128128
void Board::enableWakeupFromPin(){
129129
standbyType |= StandbyType::untilPinActivity;
130130
}
@@ -177,7 +177,7 @@ bool Board::enableWakeupFromRTC(uint32_t hours, uint32_t minutes, uint32_t secon
177177

178178
#endif
179179

180-
#if defined(ARDUINO_PORTENTA_H7) || defined(ARDUINO_NICLA_VISION)
180+
#if defined(ARDUINO_PORTENTA_H7)
181181
bool Board::enableWakeupFromRTC(uint32_t hours, uint32_t minutes, uint32_t seconds){
182182
standbyType |= StandbyType::untilTimeElapsed;
183183
wakeupDelayHours = hours;
@@ -198,7 +198,7 @@ void Board::standByUntilWakeupEvent(){
198198
lowPower -> deepSleep();
199199
#elif defined(ARDUINO_GENERIC_STM32H747_M4)
200200
LowPower.standbyM4();
201-
#elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION)
201+
#elif defined(ARDUINO_PORTENTA_H7_M7)
202202
RTCWakeupDelay rtcWakeupDelay = RTCWakeupDelay(wakeupDelayHours, wakeupDelayMinutes, wakeupDelaySeconds);
203203
if(standbyType == StandbyType::untilEither)
204204
LowPower.standbyM7(LowPowerStandbyType::untilPinActivity | LowPowerStandbyType::untilTimeElapsed, rtcWakeupDelay);

src/Board.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#if defined(ARDUINO_PORTENTA_C33)
1313
#include "Arduino_LowPowerPortentaC33.h"
1414
#include "RTC.h"
15-
#elif defined(ARDUINO_PORTENTA_H7) || defined(ARDUINO_NICLA_VISION)
15+
#elif defined(ARDUINO_PORTENTA_H7)
1616
// When used standalone the LowPowerPortentaH7 library will turn off the Ethernet interface to avoid issues with the line termination resistors,
1717
// but in this library we can turn of the Ethernet interface using the PMIC, so we set the NO_ETHERNET_TURN_OFF flag to avoid turning off the Ethernet interface from both sides.
1818
#define NO_ETHERNET_TURN_OFF

0 commit comments

Comments
 (0)