We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2301e03 commit 497345fCopy full SHA for 497345f
variants/ARDUINO_NANO33BLE/variant.cpp
@@ -57,6 +57,8 @@ extern "C" {
57
}
58
59
60
+#include "nrf_rtc.h"
61
+
62
void initVariant() {
63
// turn power LED on
64
pinMode(LED_PWR, OUTPUT);
@@ -67,6 +69,11 @@ void initVariant() {
67
69
CoreDebug->DEMCR = 0;
68
70
NRF_CLOCK->TRACECONFIG = 0;
71
72
+ // FIXME: bootloader enables interrupt on COMPARE[0], which we don't handle
73
+ // Disable it here to avoid getting stuck when OVERFLOW irq is triggered
74
+ nrf_rtc_event_disable(NRF_RTC1, NRF_RTC_INT_COMPARE0_MASK);
75
+ nrf_rtc_int_disable(NRF_RTC1, NRF_RTC_INT_COMPARE0_MASK);
76
77
// FIXME: always enable I2C pullup and power @startup
78
// Change for maximum powersave
79
pinMode(PIN_ENABLE_SENSORS_3V3, OUTPUT);
0 commit comments