Skip to content

Commit 45301c4

Browse files
committed
chore: clean up pins definition
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent ec30d78 commit 45301c4

2 files changed

Lines changed: 59 additions & 59 deletions

File tree

variants/STM32U5xx/U575O(G-I)YxQ_U585OIYxQ/variant_HERON.cpp

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -51,39 +51,39 @@ const PinName digitalPin[] = {
5151
PA_12, // 33 - USB_D_P
5252
PC_14, // 34 - OSC32_IN (LSE)
5353
PC_15, // 35 - OSC32_OUT (LSE)
54-
PC_0, // 36 - D30/A11
55-
PC_1, // 37 - D31/A12
56-
PC_2, // 38 - D32/A13
57-
PC_3, // 39 - D33/A14
58-
PC_5, // 40 - D34/A15
59-
PC_6, // 41 - D35
60-
PC_7, // 42 - D36
61-
PC_8, // 43 - D37
62-
PC_9, // 44 - D38
63-
PC_10, // 45 - D39
64-
PC_11, // 46 - D40
65-
PC_12, // 47 - D41
66-
PD_0, // 48 - D45
67-
PD_1, // 49 - D46
68-
PD_2, // 50 - D47
69-
PD_4, // 51 - D48
70-
PD_5, // 52 - D49
71-
PD_14, // 53 - D50
72-
PD_15, // 54 - D51
73-
PE_3, // 55 - D52
74-
PE_4, // 56 - D53
75-
PE_5, // 57 - D54
76-
PE_6, // 58 - D55
77-
PE_7, // 59 - D56
78-
PE_8, // 60 - D57
79-
PE_9, // 61 - D58
80-
PE_10, // 62 - D59
81-
PG_9, // 63 - D60
82-
PG_10, // 64 - D61
83-
PG_11, // 65 - D62
84-
PG_12, // 66 - D63
85-
PG_13, // 67 - D64
86-
PG_14 // 68 - D65
54+
// PC_0, // 36 - D30/A11
55+
// PC_1, // 37 - D31/A12
56+
// PC_2, // 38 - D32/A13
57+
// PC_3, // 39 - D33/A14
58+
// PC_5, // 40 - D34/A15
59+
// PC_6, // 41 - D35
60+
// PC_7, // 42 - D36
61+
// PC_8, // 43 - D37
62+
// PC_9, // 44 - D38
63+
// PC_10, // 45 - D39
64+
// PC_11, // 46 - D40
65+
// PC_12, // 47 - D41
66+
// PD_0, // 48 - D45
67+
// PD_1, // 49 - D46
68+
// PD_2, // 50 - D47
69+
// PD_4, // 51 - D48
70+
// PD_5, // 52 - D49
71+
// PD_14, // 53 - D50
72+
// PD_15, // 54 - D51
73+
// PE_3, // 55 - D52
74+
// PE_4, // 56 - D53
75+
// PE_5, // 57 - D54
76+
// PE_6, // 58 - D55
77+
// PE_7, // 59 - D56
78+
// PE_8, // 60 - D57
79+
// PE_9, // 61 - D58
80+
// PE_10, // 62 - D59
81+
// PG_9, // 63 - D60
82+
// PG_10, // 64 - D61
83+
// PG_11, // 65 - D62
84+
// PG_12, // 66 - D63
85+
// PG_13, // 67 - D64
86+
// PG_14 // 68 - D65
8787
};
8888

8989
// Analog (Ax) to digital pin number array

variants/STM32U5xx/U575O(G-I)YxQ_U585OIYxQ/variant_HERON.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,38 @@
2727
#define PA1 PIN_A1 // A1/D1
2828
#define PA2 PIN_A2 // A2/D2
2929
#define PA3 PIN_A3 // A3/D3
30-
#define PA4 PIN_A8 // A8/BATTERY_VOLTAGE (STAT)
31-
#define PA5 25 // USART3_VCP_RX
32-
#define PA6 PIN_A6 // A6/MI
33-
#define PA7 PIN_A5 // A5
30+
#define PB1 PIN_A4 // A4/D4
31+
#define PB8 5 // D5
32+
#define PB9 6 // D6
3433
#define PA8 7 // LED_BUILTIN
35-
#define PA9 19 // TX
36-
#define PA10 18 // RX
37-
#define PA11 32 // USB_D_N
38-
#define PA12 33 // USB_D_P
39-
#define PA13 23 // SWDIO
40-
#define PA14 24 // SWCLK
41-
#define PA15 29 // CHARGE_DETECT
34+
#define PC13 8 // USER_BTN
35+
#define PB14 9 // D9
36+
#define PB13 10 // D10
4237
#define PB0 PIN_A7 // A7/D11
43-
#define PB1 PIN_A4 // A4/D4
44-
#define PB2 31 // USB_DETECT
45-
#define PB3 15 // CK
38+
#define PB15 12 // D12
4639
#define PB4 13 // D13
40+
#define PA7 PIN_A5 // A5
41+
#define PB3 15 // CK
4742
#define PB5 16 // MO
43+
#define PA6 PIN_A6 // A6/MI
44+
#define PA10 18 // RX
45+
#define PA9 19 // TX
46+
#define PH3 20 // B
4847
#define PB6 21 // SCL
4948
#define PB7 22 // SDA
50-
#define PB8 5 // D5
51-
#define PB9 6 // D6
49+
#define PA13 23 // SWDIO
50+
#define PA14 24 // SWCLK
51+
#define PA5 25 // USART3_VCP_RX
5252
#define PB10 26 // USART3_VCP_TX
53-
#define PB13 10 // D10
54-
#define PB14 9 // D9
55-
#define PB15 12 // D12
53+
#define PH0 27 // ENABLE_3V3
54+
#define PH1 28 // DISCHARGE_3V3
55+
#define PA15 29 // CHARGE_DETECT
56+
#define PA4 PIN_A8 // A8/BATTERY_VOLTAGE (STAT)
57+
#define PB2 31 // USB_DETECT
58+
#define PA11 32 // USB_D_N
59+
#define PA12 33 // USB_D_P
60+
#define PC14 34 // OSC32_IN (LSE)
61+
#define PC15 35 // OSC32_OUT (LSE)
5662
// #define PC0 PIN_A11
5763
// #define PC1 PIN_A12
5864
// #define PC2 PIN_A13
@@ -65,9 +71,6 @@
6571
// #define PC10 39
6672
// #define PC11 40
6773
// #define PC12 41
68-
#define PC13 8 // USER_BTN
69-
#define PC14 34 // OSC32_IN (LSE)
70-
#define PC15 35 // OSC32_OUT (LSE)
7174
// #define PD0 45
7275
// #define PD1 46
7376
// #define PD2 47
@@ -89,9 +92,6 @@
8992
// #define PG12 63
9093
// #define PG13 64
9194
// #define PG14 65
92-
#define PH0 27 // ENABLE_3V3
93-
#define PH1 28 // DISCHARGE_3V3
94-
#define PH3 20 // B
9595

9696
// Alternate pins number
9797
#define PA0_ALT1 (PA0 | ALT1)
@@ -137,7 +137,7 @@
137137
// #define PC10_ALT1 (PC10 | ALT1)
138138
// #define PC11_ALT1 (PC11 | ALT1)
139139

140-
#define NUM_DIGITAL_PINS 69
140+
#define NUM_DIGITAL_PINS 36
141141
#define NUM_ANALOG_INPUTS 9
142142

143143
// On-board LED pin number

0 commit comments

Comments
 (0)