Add Bonsai C4 converter (#17711)
This commit is contained in:
parent
29f47f4cf3
commit
a645301c82
10 changed files with 256 additions and 9 deletions
|
@ -0,0 +1,40 @@
|
|||
// Copyright 2022 customMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
// Left side (front)
|
||||
#define D3 PAL_LINE(GPIOB, 7)
|
||||
#define D2 PAL_LINE(GPIOA, 15)
|
||||
// GND
|
||||
// GND
|
||||
#define D1 PAL_LINE(GPIOB, 9)
|
||||
#define D0 PAL_LINE(GPIOB, 6)
|
||||
#define D4 PAL_LINE(GPIOA, 4)
|
||||
#define C6 PAL_LINE(GPIOB, 8)
|
||||
#define D7 PAL_LINE(GPIOA, 3)
|
||||
#define E6 PAL_LINE(GPIOB, 10)
|
||||
#define B4 PAL_LINE(GPIOA, 8)
|
||||
#define B5 PAL_LINE(GPIOB, 0)
|
||||
|
||||
// Right side (front)
|
||||
// RAW
|
||||
// GND
|
||||
// RESET
|
||||
// VCC
|
||||
#define F4 PAL_LINE(GPIOA, 7)
|
||||
#define F5 PAL_LINE(GPIOA, 6)
|
||||
#define F6 PAL_LINE(GPIOA, 5)
|
||||
#define F7 PAL_LINE(GPIOA, 1)
|
||||
#define B1 PAL_LINE(GPIOB, 13)
|
||||
#define B3 PAL_LINE(GPIOB, 14)
|
||||
#define B2 PAL_LINE(GPIOB, 15)
|
||||
#define B6 PAL_LINE(GPIOB, 1)
|
||||
|
||||
// LEDs (only D5/B2 uses an actual LED)
|
||||
// Setting both RX and TX LEDs to the same pin as there
|
||||
// is only one LED availble
|
||||
// If this is undesirable, either B0 or B5 can be redefined by
|
||||
// using #undef and #define to change its assignment
|
||||
#define B0 PAL_LINE(GPIOB, 2)
|
||||
#define D5 PAL_LINE(GPIOB, 2)
|
|
@ -0,0 +1,4 @@
|
|||
# Proton C MCU settings for converting AVR projects
|
||||
MCU := STM32F411
|
||||
BOARD := GENERIC_STM32_F411XE
|
||||
BOOTLOADER := stm32-dfu
|
Loading…
Add table
Add a link
Reference in a new issue