Skip to content

Commit 278a790

Browse files
committed
Validate STM32G0/STM32G0B1 Environments
1 parent 90b7206 commit 278a790

File tree

7 files changed

+38
-0
lines changed

7 files changed

+38
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Marlin 3D Printer Firmware
3+
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4+
*
5+
* Based on Sprinter and grbl.
6+
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License as published by
10+
* the Free Software Foundation, either version 3 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* This program is distributed in the hope that it will be useful,
14+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
* GNU General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU General Public License
19+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
20+
*
21+
*/
22+
#pragma once
23+
24+
#if NOT_TARGET(STM32G0xx) || NOT_TARGET(STM32G0B1xx)
25+
#error "Oops! Select an STM32G0 board in 'Tools > Board.'"
26+
#endif

Marlin/src/pins/stm32g0/pins_BTT_EBB42_V1_1.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
#pragma once
2323

24+
#include "env_validate.h"
25+
2426
/** CAUTION **
2527
* This board definition is to facilitate support for a Filament Extrusion
2628
* devices, used to convert waste plastic into 3D printable filament.

Marlin/src/pins/stm32g0/pins_BTT_MANTA_E3_EZ_V1_0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
#pragma once
2323

24+
#include "env_validate.h"
25+
2426
#ifndef BOARD_INFO_NAME
2527
#define BOARD_INFO_NAME "BTT Manta E3 EZ V1.0"
2628
#endif

Marlin/src/pins/stm32g0/pins_BTT_MANTA_M4P_V1_0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
#pragma once
2323

24+
#include "env_validate.h"
25+
2426
//#define BOARD_CUSTOM_BUILD_FLAGS -DTONE_CHANNEL=4 -DTONE_TIMER=4 -DTIMER_TONE=4
2527

2628
#ifndef BOARD_INFO_NAME

Marlin/src/pins/stm32g0/pins_BTT_MANTA_M5P_V1_0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
#pragma once
2323

24+
#include "env_validate.h"
25+
2426
#ifndef BOARD_INFO_NAME
2527
#define BOARD_INFO_NAME "BTT Manta M5P V1.0"
2628
#endif

Marlin/src/pins/stm32g0/pins_BTT_MANTA_M8P_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
#pragma once
2323

24+
#include "env_validate.h"
25+
2426
//#define BOARD_CUSTOM_BUILD_FLAGS -DTONE_CHANNEL=4 -DTONE_TIMER=4 -DTIMER_TONE=4
2527

2628
#define USES_DIAG_JUMPERS

Marlin/src/pins/stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
#pragma once
2323

24+
#include "env_validate.h"
25+
2426
//#define BOARD_CUSTOM_BUILD_FLAGS -DTONE_CHANNEL=4 -DTONE_TIMER=4 -DTIMER_TONE=4
2527

2628
#ifndef BOARD_INFO_NAME

0 commit comments

Comments
 (0)