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 7a20033 commit 420d66dCopy full SHA for 420d66d
variants/ARDUINO_NANO33BLE/variant.cpp
@@ -132,6 +132,8 @@ extern "C" {
132
}
133
134
#include "nrf_rtc.h"
135
+#include "nrf_uarte.h"
136
+#include "nrf_uart.h"
137
138
void initVariant() {
139
// turn power LED on
@@ -155,7 +157,13 @@ void initVariant() {
155
157
156
158
digitalWrite(PIN_ENABLE_SENSORS_3V3, HIGH);
159
digitalWrite(PIN_ENABLE_I2C_PULLUP, HIGH);
-
160
+
161
+ // Disable UARTE0 which is initially enabled by the bootloader
162
+ nrf_uarte_task_trigger(NRF_UARTE0, NRF_UARTE_TASK_STOPRX);
163
+ while (!nrf_uarte_event_check(NRF_UARTE0, NRF_UARTE_EVENT_RXTO)) ;
164
+ NRF_UARTE0->ENABLE = 0;
165
+ NRF_UART0->ENABLE = 0;
166
167
NRF_PWM_Type* PWM[] = {
168
NRF_PWM0, NRF_PWM1, NRF_PWM2
169
#ifdef NRF_PWM3
0 commit comments