Skip to content

Commit 46317c2

Browse files
committed
variants: create giga_m7 variant
1 parent 3503ace commit 46317c2

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2022 Dhruva Gole
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// TODO: correctly handle these legacy defines
8+
#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

Comments
 (0)