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 3503ace commit 46317c2Copy full SHA for 46317c2
variants/arduino_giga_r1_m7/variant.cpp
@@ -0,0 +1,8 @@
1
+#include <zephyr/kernel.h>
2
+
3
+void _on_1200_bps() {
4
+ uint32_t tmp = (uint32_t) & (RTC->BKP0R);
5
+ tmp += (RTC_BKP_DR0 * 4U);
6
+ *(__IO uint32_t *)tmp = (uint32_t)0xDF59;
7
+ NVIC_SystemReset();
8
+}
variants/arduino_giga_r1_m7/variant.h
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2022 Dhruva Gole
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+// TODO: correctly handle these legacy defines
+#define MOSI 0
9
+#define MISO 0
10
+#define SCK 0
11
+#define SS 0
12
+#define SDA 0
13
+#define SCL 0
0 commit comments