summaryrefslogtreecommitdiff
path: root/platforms/chibios/converters/promicro_to_bonsai_c4/_pin_defs.h
blob: 7e6b8ddaf236db137d148dfc6b3621efafef797c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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)