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 87ec4b4 commit 1016c03Copy full SHA for 1016c03
variants/PORTENTA_H7_M7/variant.cpp
@@ -53,11 +53,22 @@ extern "C" {
53
}
54
55
56
+#include "drivers/I2C.h"
57
+
58
+void fixup3V1Rail() {
59
+ mbed::I2C i2c(PB_7, PB_6);
60
+ char data[2];
61
+ data[0]=0x42;
62
+ data[1]=(1);
63
+ i2c.write(8 << 1, data, sizeof(data));
64
+}
65
66
void initVariant() {
67
RTCHandle.Instance = RTC;
68
// Turn off LED from bootloader
69
pinMode(PK_6, OUTPUT);
70
digitalWrite(PK_6, HIGH);
71
+ fixup3V1Rail();
72
73
74
#ifdef SERIAL_CDC
0 commit comments