Quellcode durchsuchen

Improve STEVAL_3DP001V1 and future STEVAL_* support (#16404)

Bob Kuhn vor 4 Jahren
Ursprung
Commit
747b2b9bf4

+ 1
- 1
Marlin/src/core/boards.h Datei anzeigen

@@ -303,7 +303,7 @@
303 303
 #define BOARD_RUMBA32                 4203  // RUMBA32 STM32F4-based controller
304 304
 #define BOARD_BLACK_STM32F407VE       4204  // BLACK_STM32F407VE
305 305
 #define BOARD_BLACK_STM32F407ZE       4205  // BLACK_STM32F407ZE
306
-#define BOARD_STEVAL                  4206  // STEVAL-3DP001V1 3D PRINTER BOARD
306
+#define BOARD_STEVAL_3DP001V1         4206  // STEVAL-3DP001V1 3D PRINTER BOARD
307 307
 #define BOARD_BIGTREE_SKR_PRO_V1_1    4207  // BigTreeTech SKR Pro v1.1 (STM32F407ZG)
308 308
 #define BOARD_BIGTREE_BTT002_V1_0     4208  // BigTreeTech BTT002 v1.0 (STM32F407VE)
309 309
 #define BOARD_LERDGE_K                4209  // Lerdge K (STM32F407ZG)

+ 0
- 38
Marlin/src/inc/SanityCheck.h Datei anzeigen

@@ -426,44 +426,6 @@
426 426
   #error "HOME_USING_SPREADCYCLE is now obsolete. Please remove it from Configuration_adv.h."
427 427
 #endif
428 428
 
429
-#define BOARD_MKS_13        -1000
430
-#define BOARD_TRIGORILLA    -1001
431
-#define BOARD_RURAMPS4D     -1002
432
-#define BOARD_FORMBOT_TREX2 -1003
433
-#define BOARD_BIQU_SKR_V1_1 -1004
434
-#define BOARD_STM32F1R      -1005
435
-#define BOARD_STM32F103R    -1006
436
-#define BOARD_ESP32         -1007
437
-#define BOARD_BIGTREE_SKR_MINI_E3 -1008
438
-#if MB(MKS_13)
439
-  #error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
440
-#elif MB(TRIGORILLA)
441
-  #error "BOARD_TRIGORILLA has been renamed BOARD_TRIGORILLA_13. Please update your configuration."
442
-#elif MB(RURAMPS4D)
443
-  #error "BOARD_RURAMPS4D has been renamed BOARD_RURAMPS4D_11. Please update your configuration."
444
-#elif MB(FORMBOT_TREX2)
445
-  #error "FORMBOT_TREX2 has been renamed BOARD_FORMBOT_TREX2PLUS. Please update your configuration."
446
-#elif MB(BIQU_SKR_V1_1)
447
-  #error "BOARD_BIQU_SKR_V1_1 has been renamed BOARD_BIGTREE_SKR_V1_1. Please update your configuration."
448
-#elif MB(STM32F1R)
449
-  #error "BOARD_STM32F1R has been renamed BOARD_STM32F103RE. Please update your configuration."
450
-#elif MB(STM32F103R)
451
-  #error "BOARD_STM32F103R has been renamed BOARD_STM32F103RE. Please update your configuration."
452
-#elif MOTHERBOARD == BOARD_ESP32
453
-  #error "BOARD_ESP32 has been renamed BOARD_ESPRESSIF_ESP32. Please update your configuration."
454
-#elif MOTHERBOARD == BOARD_BIGTREE_SKR_MINI_E3
455
-  #error "BOARD_BIGTREE_SKR_MINI_E3 has been renamed BOARD_BTT_SKR_MINI_E3_V1_0. Please update your configuration."
456
-#endif
457
-#undef BOARD_MKS_13
458
-#undef BOARD_TRIGORILLA
459
-#undef BOARD_RURAMPS4D
460
-#undef BOARD_FORMBOT_TREX2
461
-#undef BOARD_BIQU_SKR_V1_1
462
-#undef BOARD_STM32F1R
463
-#undef BOARD_STM32F103R
464
-#undef BOARD_ESP32
465
-#undef BOARD_BIGTREE_SKR_MINI_E3
466
-
467 429
 /**
468 430
  * Marlin release, version and default string
469 431
  */

+ 53
- 3
Marlin/src/pins/pins.h Datei anzeigen

@@ -523,8 +523,8 @@
523 523
   #include "stm32/pins_RUMBA32.h"               // STM32F4                                env:RUMBA32
524 524
 #elif MB(BLACK_STM32F407VE)
525 525
   #include "stm32/pins_BLACK_STM32F407VE.h"     // STM32F4                                env:STM32F407VE_black
526
-#elif MB(STEVAL)
527
-  #include "stm32/pins_STEVAL.h"                // STM32F4                                env:STM32F4
526
+#elif MB(STEVAL_3DP001V1)
527
+  #include "stm32/pins_STEVAL_3DP001V1.h"       // STM32F4                                env:STM32F401VE_STEVAL
528 528
 #elif MB(BIGTREE_SKR_PRO_V1_1)
529 529
   #include "stm32/pins_BTT_SKR_PRO_V1_1.h"      // STM32F4                                env:BIGTREE_SKR_PRO
530 530
 #elif MB(BIGTREE_BTT002_V1_0)
@@ -571,7 +571,57 @@
571 571
   #include "linux/pins_RAMPS_LINUX.h"           // Linux                                  env:linux_native
572 572
 
573 573
 #else
574
-  #error "Unknown MOTHERBOARD value set in Configuration.h"
574
+
575
+  //
576
+  // Obsolete or unknown board
577
+  //
578
+
579
+  #define BOARD_MKS_13        -1000
580
+  #define BOARD_TRIGORILLA    -1001
581
+  #define BOARD_RURAMPS4D     -1002
582
+  #define BOARD_FORMBOT_TREX2 -1003
583
+  #define BOARD_BIQU_SKR_V1_1 -1004
584
+  #define BOARD_STM32F1R      -1005
585
+  #define BOARD_STM32F103R    -1006
586
+  #define BOARD_ESP32         -1007
587
+  #define BOARD_BIGTREE_SKR_MINI_E3 -1008
588
+  #define BOARD_STEVAL        -1009
589
+
590
+  #if MB(MKS_13)
591
+    #error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
592
+  #elif MB(TRIGORILLA)
593
+    #error "BOARD_TRIGORILLA has been renamed BOARD_TRIGORILLA_13. Please update your configuration."
594
+  #elif MB(RURAMPS4D)
595
+    #error "BOARD_RURAMPS4D has been renamed BOARD_RURAMPS4D_11. Please update your configuration."
596
+  #elif MB(FORMBOT_TREX2)
597
+    #error "FORMBOT_TREX2 has been renamed BOARD_FORMBOT_TREX2PLUS. Please update your configuration."
598
+  #elif MB(BIQU_SKR_V1_1)
599
+    #error "BOARD_BIQU_SKR_V1_1 has been renamed BOARD_BIGTREE_SKR_V1_1. Please update your configuration."
600
+  #elif MB(STM32F1R)
601
+    #error "BOARD_STM32F1R has been renamed BOARD_STM32F103RE. Please update your configuration."
602
+  #elif MB(STM32F103R)
603
+    #error "BOARD_STM32F103R has been renamed BOARD_STM32F103RE. Please update your configuration."
604
+  #elif MOTHERBOARD == BOARD_ESP32
605
+    #error "BOARD_ESP32 has been renamed BOARD_ESPRESSIF_ESP32. Please update your configuration."
606
+  #elif MB(BIGTREE_SKR_MINI_E3)
607
+    #error "BOARD_BIGTREE_SKR_MINI_E3 has been renamed BOARD_BTT_SKR_MINI_E3_V1_0. Please update your configuration."
608
+  #elif MB(STEVAL)
609
+    #error "BOARD_STEVAL has been renamed BOARD_STEVAL_3DP001V1. Please update your configuration."
610
+  #else
611
+    #error "Unknown MOTHERBOARD value set in Configuration.h"
612
+  #endif
613
+
614
+  #undef BOARD_MKS_13
615
+  #undef BOARD_TRIGORILLA
616
+  #undef BOARD_RURAMPS4D
617
+  #undef BOARD_FORMBOT_TREX2
618
+  #undef BOARD_BIQU_SKR_V1_1
619
+  #undef BOARD_STM32F1R
620
+  #undef BOARD_STM32F103R
621
+  #undef BOARD_ESP32
622
+  #undef BOARD_BIGTREE_SKR_MINI_E3
623
+  #undef BOARD_STEVAL
624
+
575 625
 #endif
576 626
 
577 627
 // Define certain undefined pins

+ 0
- 150
Marlin/src/pins/stm32/pins_STEVAL.h Datei anzeigen

@@ -1,150 +0,0 @@
1
-/**
2
- * Marlin 3D Printer Firmware
3
- * Copyright (c) 2019 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 <http://www.gnu.org/licenses/>.
20
- *
21
- */
22
-#pragma once
23
-
24
-#ifndef STM32F4
25
-  #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
26
-#endif
27
-
28
-#ifndef MACHINE_NAME
29
-  #define MACHINE_NAME "STEVAL-3DP001V1"
30
-#endif
31
-
32
-#undef  TEMP_TIMER
33
-#define TEMP_TIMER 9 // the Marlin default of timer 7 doesn't exist on the STM32MF401 series
34
-
35
-//
36
-// Limit Switches
37
-//
38
-#define X_MIN_PIN          38  // PD8   X_STOP
39
-#define X_MAX_PIN          -1
40
-#define Y_MIN_PIN          39  // PD9   Y_STOP
41
-#define Y_MAX_PIN          -1
42
-#define Z_MIN_PIN          40  // PD10  Z_STOP
43
-#define Z_MAX_PIN          -1
44
-
45
-//
46
-// Z Probe (when not Z_MIN_PIN)
47
-//
48
-// #ifndef Z_MIN_PROBE_PIN
49
-//   #define Z_MIN_PROBE_PIN  11  // PA4
50
-// #endif
51
-
52
-#define SCK_PIN            16  // PB13   SPI_S
53
-#define MISO_PIN           17  // PB14   SPI_M
54
-#define MOSI_PIN           18  // PB15   SPI_M
55
-
56
-//
57
-// Steppers
58
-//
59
-
60
-#define X_STEP_PIN         60  // PE14   X_PWM
61
-#define X_DIR_PIN          61  // PE15   X_DIR
62
-#define X_ENABLE_PIN       59  // PE13   X_RES
63
-#define X_CS_PIN           11  // PA4    SPI_CS
64
-
65
-#define Y_STEP_PIN         62  // PB10   Y_PWM
66
-#define Y_DIR_PIN          63  // PE9    Y_DIR
67
-#define Y_ENABLE_PIN       64  // PE10   Y_RES
68
-#define Y_CS_PIN           11  // PA4    SPI_CS
69
-
70
-#define Z_STEP_PIN         66  // PC6    Z_PWM
71
-#define Z_DIR_PIN          67  // PC0    Z_DIR
72
-#define Z_ENABLE_PIN       65  // PC15   Z_RES
73
-#define Z_CS_PIN           11  // PA4    SPI_CS
74
-
75
-#define E0_STEP_PIN        70  // PD12   E1_PW
76
-#define E0_DIR_PIN         68  // PC13   E1_DIR
77
-#define E0_ENABLE_PIN      69  // PC14   E1_RE
78
-#define E0_CS_PIN          11  // PA4    SPI_CS
79
-
80
-#define E1_STEP_PIN        72  // PE5    E2_PWM
81
-#define E1_DIR_PIN         73  // PE6    E2_DIR
82
-#define E1_ENABLE_PIN      71  // PE4    E2_RESE
83
-#define E1_CS_PIN          11  // PA4    SPI_CS
84
-
85
-#define E2_STEP_PIN        76  // PB8    E3_PWM
86
-#define E2_DIR_PIN         74  // PE2    E3_DIR
87
-#define E2_ENABLE_PIN      75  // PE3    E3_RESE
88
-#define E2_CS_PIN          11  // PA4    SPI_CS
89
-
90
-
91
-//
92
-// Temperature Sensors
93
-//
94
-#define TEMP_0_PIN         52  // PA0    E1_THER
95
-#define TEMP_1_PIN         53  // PA1    E2_THER
96
-#define TEMP_BED_PIN       50  // PC2    BED_THE
97
-
98
-//
99
-// Heaters / Fans
100
-//
101
-#define HEATER_0_PIN       52  // PA0    E1_THER
102
-#define HEATER_1_PIN       53  // PA1    E2_THER
103
-#define HEATER_BED_PIN     50  // PC2    BED_THE
104
-
105
-#define FAN_PIN            56  // PC4    E1_FAN   PWM pin, Part cooling fan
106
-#define FAN1_PIN           57  // PC5    E2_FAN   PWM pin, Extruder fan
107
-#define FAN2_PIN           58  // PE8    E3_FAN   PWM pin, Controller fan
108
-
109
-//
110
-// Misc functions
111
-//
112
-#define SDSS               11  // PA4    SPI_CS
113
-#define LED_PIN            -1  // Heart beat
114
-#define PS_ON_PIN          -1
115
-#define KILL_PIN           -1
116
-#define PWR_LOSS           -1  // Power loss / nAC_FAULT
117
-
118
-//
119
-// LCD / Controller
120
-//
121
-//#define SD_DETECT_PIN    24  // PA15   SD_CA
122
-//#define BEEPER_PIN       23  // PC9    SDIO_D1
123
-//#define LCD_PINS_RS      63  // PE9    Y_DIR
124
-//#define LCD_PINS_ENABLE  58  // PE8    E3_FAN
125
-//#define LCD_PINS_D4      15  // PB12   SPI_C
126
-//#define LCD_PINS_D5      16  // PB13   SPI_S
127
-//#define LCD_PINS_D6      17  // PB14   SPI_M
128
-//#define LCD_PINS_D7      18  // PB15   SPI_M
129
-//#define BTN_EN1          56  // PC4    E1_FAN
130
-//#define BTN_EN2          57  // PC5    E2_FAN
131
-//#define BTN_ENC          51  // PC3    BED_THE
132
-
133
-//
134
-// Filament runout detection
135
-//
136
-//#define FIL_RUNOUT_PIN   55  // PA3    BED_THE
137
-
138
-//
139
-// Extension pins
140
-//
141
-//#define EXT0_PIN         48  // PB0    E2_HEAT
142
-//#define EXT1_PIN         49  // PB1    E3_HEAT
143
-//#define EXT2_PIN             // PB2
144
-//#define EXT3_PIN         38  // PD8    X_STOP
145
-//#define EXT4_PIN         39  // PD9    Y_STOP
146
-//#define EXT5_PIN         40  // PD10   Z_STOP
147
-//#define EXT6_PIN         41  // PD11
148
-//#define EXT7_PIN         70  // PD12   E1_PW
149
-//#define EXT8_PIN         62  // PB10   Y_PWM
150
-//#define EXT9_PIN             // PB11

+ 349
- 0
Marlin/src/pins/stm32/pins_STEVAL_3DP001V1.h Datei anzeigen

@@ -0,0 +1,349 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2019 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 <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+//  This pin map came from https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/ST3DP001_EVAL/variant.cpp
24
+
25
+/**
26
+ * HOW TO COMPILE
27
+ *
28
+ * PlatformIO - use the environment STM32F401VE_STEVAL.  The AUTO BUILD script will automatically use that environment.
29
+ *
30
+ * Arduino - this has been tested under 1.8.10
31
+ *      Install library per https://github.com/stm32duino/Arduino_Core_STM32
32
+ *      Make the following selections under the TOOL menu in the Arduino IDE
33
+ *          Board: "3D printer boards"
34
+ *          Board part number: "STEVAL-3DP001V1"
35
+ *          U(S)ART support: "Enabled (generic "Serial")"
36
+ *          USB support (if available): "CDC (no generic "Serial")"
37
+ *          Optimize: "Smallest (-Os default)"
38
+ *          C Runtime Library: "newlib Nano (default)"
39
+ */
40
+
41
+#pragma once
42
+
43
+#ifndef STM32F4
44
+  #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
45
+#endif
46
+
47
+#ifndef MACHINE_NAME
48
+  #define MACHINE_NAME "STEVAL-3DP001V1"
49
+#endif
50
+
51
+#undef  TEMP_TIMER
52
+#define TEMP_TIMER 9 // the Marlin default of timer 7 doesn't exist on the STM32MF401 series
53
+
54
+
55
+//
56
+// Limit Switches
57
+//
58
+#define X_MIN_PIN          39  // PD8   X_STOP
59
+//#define X_MAX_PIN          44  // PD0   W_STOP
60
+#define Y_MIN_PIN          40  // PD9   Y_STOP
61
+//#define Y_MAX_PIN          43  // PA8   V_STOP
62
+#define Z_MIN_PIN          41  // PD10  Z_STOP
63
+//#define Z_MAX_PIN          42  // PD11  U_STOP
64
+
65
+//
66
+// Z Probe (when not Z_MIN_PIN)
67
+//
68
+// #ifndef Z_MIN_PROBE_PIN
69
+//   #define Z_MIN_PROBE_PIN  16  // PA4
70
+// #endif
71
+
72
+#define SCK_PIN            13  // PB13   SPI_S
73
+#define MISO_PIN           12  // PB14   SPI_M
74
+#define MOSI_PIN           11  // PB15   SPI_M
75
+
76
+
77
+#define L6470_CHAIN_SCK_PIN  17  // PA5
78
+#define L6470_CHAIN_MISO_PIN 18  // PA6
79
+#define L6470_CHAIN_MOSI_PIN 19  // PA7
80
+#define L6470_CHAIN_SS_PIN   16  // PA4
81
+
82
+//#define SCK_PIN               L6470_CHAIN_SCK_PIN
83
+//#define MISO_PIN              L6470_CHAIN_MISO_PIN
84
+//#define MOSI_PIN              L6470_CHAIN_MOSI_PIN
85
+
86
+//
87
+// Steppers
88
+//
89
+
90
+#define X_STEP_PIN         61  // PE14   X_PWM
91
+#define X_DIR_PIN          62  // PE15   X_DIR
92
+#define X_ENABLE_PIN       60  // PE13   X_RES
93
+#define X_CS_PIN           16  // PA4    SPI_CS
94
+
95
+#define Y_STEP_PIN         64  // PB10   Y_PWM
96
+#define Y_DIR_PIN          65  // PE9    Y_DIR
97
+#define Y_ENABLE_PIN       63  // PE10   Y_RES
98
+#define Y_CS_PIN           16  // PA4    SPI_CS
99
+
100
+#define Z_STEP_PIN         67  // PC6    Z_PWM
101
+#define Z_DIR_PIN          68  // PC0    Z_DIR
102
+#define Z_ENABLE_PIN       66  // PC15   Z_RES
103
+#define Z_CS_PIN           16  // PA4    SPI_CS
104
+
105
+#define E0_STEP_PIN        71  // PD12   E1_PW
106
+#define E0_DIR_PIN         70  // PC13   E1_DIR
107
+#define E0_ENABLE_PIN      69  // PC14   E1_RE
108
+#define E0_CS_PIN          16  // PA4    SPI_CS
109
+
110
+#define E1_STEP_PIN        73  // PE5    E2_PWM
111
+#define E1_DIR_PIN         74  // PE6    E2_DIR
112
+#define E1_ENABLE_PIN      72  // PE4    E2_RESE
113
+#define E1_CS_PIN          16  // PA4    SPI_CS
114
+
115
+#define E2_STEP_PIN        77  // PB8    E3_PWM
116
+#define E2_DIR_PIN         76  // PE2    E3_DIR
117
+#define E2_ENABLE_PIN      75  // PE3    E3_RESE
118
+#define E2_CS_PIN          16  // PA4    SPI_CS
119
+
120
+// needed to pass a sanity check
121
+#define X2_CS_PIN          16  // PA4    SPI_CS
122
+#define Y2_CS_PIN          16  // PA4    SPI_CS
123
+#define Z2_CS_PIN          16  // PA4    SPI_CS
124
+#define Z3_CS_PIN          16  // PA4    SPI_CS
125
+#define E3_CS_PIN          16  // PA4    SPI_CS
126
+#define E4_CS_PIN          16  // PA4    SPI_CS
127
+#define E5_CS_PIN          16  // PA4    SPI_CS
128
+
129
+/**
130
+ * macro to reset/enable L6474 chips
131
+ *
132
+ * IMPORTANT - to disable (bypass) a L6474, install the corresponding
133
+ *             resistor (R11 - R17) and change the "V" to zero for the
134
+ *             corresponding pin.
135
+ */
136
+#define ENABLE_RESET_L64XX_CHIPS(V)   do{OUT_WRITE(X_ENABLE_PIN, V);\
137
+                                         OUT_WRITE(Y_ENABLE_PIN, V);\
138
+                                         OUT_WRITE(Z_ENABLE_PIN, V);\
139
+                                         OUT_WRITE(E0_ENABLE_PIN,V);\
140
+                                         OUT_WRITE(E1_ENABLE_PIN,V);\
141
+                                         OUT_WRITE(E2_ENABLE_PIN,V);\
142
+                                        }while(0)
143
+
144
+//
145
+// Temperature Sensors
146
+//
147
+#define TEMP_0_PIN         54  // PA0    E1_THERMISTOR
148
+#define TEMP_1_PIN         55  // PA1    E2_THERMISTOR
149
+#define TEMP_2_PIN         56  // PA2	   E3_THERMISTOR
150
+#define TEMP_BED_PIN       51  // PC2    BED_THERMISTOR_1
151
+#define TEMP_BED_1_PIN     52  // PC3    BED_THERMISTOR_2
152
+#define TEMP_BED_2_PIN     53  // PA3    BED_THERMISTOR_3
153
+
154
+
155
+
156
+
157
+
158
+//
159
+// Heaters / Fans
160
+//
161
+#define HEATER_0_PIN       48   // PC7  E1_HEAT_PWM
162
+#define HEATER_1_PIN       49   // PB0  E2_HEAT_PWM
163
+#define HEATER_2_PIN       50   // PB1  E3_HEAT_PWM
164
+#define HEATER_BED_PIN     46   // PD14	BED_HEAT_1 FET
165
+#define HEATER_BED_1_PIN   45   // PD13	BED_HEAT_2 FET
166
+#define HEATER_BED_2_PIN   47   // PD15	BED_HEAT_3 FET
167
+
168
+#define FAN_PIN            57  // PC4    E1_FAN   PWM pin, Part cooling fan FET
169
+#define FAN1_PIN           58  // PC5    E2_FAN   PWM pin, Extruder fan FET
170
+#define ORIG_E0_AUTO_FAN_PIN  FAN1_PIN
171
+#define FAN2_PIN           59  // PE8    E3_FAN   PWM pin, Controller fan FET
172
+
173
+//
174
+// Misc functions
175
+//
176
+#define SDSS               16  // PA4    SPI_CS
177
+#define LED_PIN            -1  // 9 // PE1 green LED   Heart beat
178
+#define PS_ON_PIN          -1
179
+#define KILL_PIN           -1
180
+#define PWR_LOSS           -1  // Power loss / nAC_FAULT
181
+
182
+//
183
+// LCD / Controller
184
+//
185
+//#define SD_DETECT_PIN    66  // PA15   SD_CA
186
+//#define BEEPER_PIN       24  // PC9    SDIO_D1
187
+//#define LCD_PINS_RS      65  // PE9    Y_DIR
188
+//#define LCD_PINS_ENABLE  59  // PE8    E3_FAN
189
+//#define LCD_PINS_D4      10  // PB12   SPI_C
190
+//#define LCD_PINS_D5      13  // PB13   SPI_S
191
+//#define LCD_PINS_D6      12  // PB14   SPI_M
192
+//#define LCD_PINS_D7      11  // PB15   SPI_M
193
+//#define BTN_EN1          57  // PC4    E1_FAN
194
+//#define BTN_EN2          58  // PC5    E2_FAN
195
+//#define BTN_ENC          52  // PC3    BED_THE
196
+
197
+//
198
+// Filament runout detection
199
+//
200
+//#define FIL_RUNOUT_PIN   53  // PA3    BED_THE
201
+
202
+//
203
+// Extension pins
204
+//
205
+//#define EXT0_PIN         49  // PB0    E2_HEAT
206
+//#define EXT1_PIN         50  // PB1    E3_HEAT
207
+//#define EXT2_PIN             // PB2    not used (tied to ground)
208
+//#define EXT3_PIN         39  // PD8    X_STOP
209
+//#define EXT4_PIN         40  // PD9    Y_STOP
210
+//#define EXT5_PIN         41  // PD10   Z_STOP
211
+//#define EXT6_PIN         42  // PD11
212
+//#define EXT7_PIN         71  // PD12   E1_PW
213
+//#define EXT8_PIN         64  // PB10   Y_PWM
214
+
215
+
216
+
217
+// WIFI
218
+// #define  2   // PD3	//CTS
219
+// #define  3   // PD4	//RTS
220
+// #define  4   // PD5	//TX
221
+// #define  5   // PD6	//RX
222
+// #define  6   // PB5	//WIFI_WAKEUP
223
+// #define  7   // PE11	//WIFI_RESET
224
+// #define  8   // PE12	//WIFI_BOOT
225
+
226
+
227
+// I2C USER
228
+// #define 14   // PB7	//SDA
229
+// #define 15   // PB6	//SCL
230
+
231
+// JTAG
232
+// 20   // PA13	//JTAG_TMS/SWDIO
233
+// 21   // PA14	//JTAG_TCK/SWCLK
234
+// 22   // PB3	//JTAG_TDO/SWO
235
+
236
+// SDCARD
237
+// #define 23   // PC8	//SDIO_D0
238
+// #define 24   // PC9	//SDIO_D1
239
+// #define 25   // PA15	//SD_CARD_DETECT
240
+// #define 26   // PC10	//SDIO_D2
241
+// #define 27   // PC11	//SDIO_D3
242
+// #define 28   // PC12	//SDIO_CK
243
+// #define 29   // PD2	//SDIO_CMD
244
+
245
+// OTG
246
+// #define 30   // PA11	//OTG_DM
247
+// #define 31   // PA12	//OTG_DP
248
+
249
+// USER_PINS
250
+// #define 34   // PD7	//USER3
251
+// #define 35   // PB9	//USER1
252
+#define temp_bob_pin 36  // PE0	//USER2
253
+// #define 37   // PB4	//USER4
254
+
255
+// USERKET
256
+// #define 38   // PE7	//USER_BUTTON
257
+
258
+
259
+// #define  0   // PA9	//TX
260
+// #define  1   // PA10	//RX
261
+
262
+
263
+// IR/PROBE
264
+// #define 32   // PD1	//IR_OUT
265
+// #define 33   // PC1	//IR_ON
266
+
267
+
268
+/**
269
+ *  logical pin vs. port/pin cross reference
270
+ *
271
+ * PA0  54 // E1_THERMISTOR                PA9  0 //TX
272
+ * PA1  55 // E2_THERMISTOR                PA10 1 //RX
273
+ * PA2  56 // E3_THERMISTOR                PD3   2 // CTS
274
+ * PA3  53 // BED_THERMISTOR_3             PD4   3 // RTS
275
+ * PA4  16 // SPI_CS                       PD5   4 // TX
276
+ * PA5  17 // SPI_SCK                      PD6   5 // RX
277
+ * PA6  18 // SPI_MISO                     PB5   6 // WIFI_WAKEUP
278
+ * PA7  19 // SPI_MOSI                     PE11  7 // WIFI_RESET
279
+ * PA8  43 // V_STOP                       PE12  8 // WIFI_BOOT
280
+ * PA9   0 //TX                            PE1   9 // STATUS_LED
281
+ * PA10  1 //RX                            PB12 10 // SPI_CS
282
+ * PA11 30 //OTG_DM                        PB15 11 // SPI_MOSI
283
+ * PA12 31 //OTG_DP                        PB14 12 // SPI_MISO
284
+ * PA13 20 // JTAG_TMS/SWDIO               PB13 13 // SPI_SCK
285
+ * PA14 21 // JTAG_TCK/SWCLK               PB7  14 // SDA
286
+ * PA15 25 // SD_CARD_DETECT               PB6  15 // SCL
287
+ * PB0  49 // E2_HEAT_PWM                  PA4  16 // SPI_CS
288
+ * PB1  50 // E3_HEAT_PWM                  PA5  17 // SPI_SCK
289
+ * PB3  22 // JTAG_TDO/SWO                 PA6  18 // SPI_MISO
290
+ * PB4  37 // USER4                        PA7  19 // SPI_MOSI
291
+ * PB5   6 // WIFI_WAKEUP                  PA13 20 // JTAG_TMS/SWDIO
292
+ * PB6  15 // SCL                          PA14 21 // JTAG_TCK/SWCLK
293
+ * PB7  14 // SDA                          PB3  22 // JTAG_TDO/SWO
294
+ * PB8  77 // E3_PWM                       PC8  23 // SDIO_D0
295
+ * PB9  35 // USER1                        PC9  24 // SDIO_D1
296
+ * PB10 64 // Y_PWM                        PA15 25 // SD_CARD_DETECT
297
+ * PB12 10 // SPI_CS                       PC10 26 // SDIO_D2
298
+ * PB13 13 // SPI_SCK                      PC11 27 // SDIO_D3
299
+ * PB14 12 // SPI_MISO                     PC12 28 // SDIO_CK
300
+ * PB15 11 // SPI_MOSI                     PD2  29 // SDIO_CMD
301
+ * PC0  68 // Z_DIR                        PA11 30 //OTG_DM
302
+ * PC1  33 //IR_ON                         PA12 31 //OTG_DP
303
+ * PC2  51 // BED_THERMISTOR_1             PD1  32 //IR_OUT
304
+ * PC3  52 // BED_THERMISTOR_2             PC1  33 //IR_ON
305
+ * PC4  57 // E1_FAN                       PD7  34 // USER3
306
+ * PC5  58 // E2_FAN                       PB9  35 // USER1
307
+ * PC6  67 // Z_PWM                        PE0  36 // USER2
308
+ * PC7  48 // E1_HEAT_PWM                  PB4  37 // USER4
309
+ * PC8  23 // SDIO_D0                      PE7  38 // USER_BUTTON
310
+ * PC9  24 // SDIO_D1                      PD8  39 // X_STOP
311
+ * PC10 26 // SDIO_D2                      PD9  40 // Y_STOP
312
+ * PC11 27 // SDIO_D3                      PD10 41 // Z_STOP
313
+ * PC12 28 // SDIO_CK                      PD11 42 // U_STOP
314
+ * PC13 70 // E1_DIR                       PA8  43 // V_STOP
315
+ * PC14 69 // E1_RESET                     PD0  44 // W_STOP
316
+ * PC15 66 // Z_RESET                      PD13 45 // BED_HEAT_2
317
+ * PD0  44 // W_STOP                       PD14 46 // BED_HEAT_1
318
+ * PD1  32 //IR_OUT                        PD15 47 // BED_HEAT_3
319
+ * PD2  29 // SDIO_CMD                     PC7  48 // E1_HEAT_PWM
320
+ * PD3   2 // CTS                          PB0  49 // E2_HEAT_PWM
321
+ * PD4   3 // RTS                          PB1  50 // E3_HEAT_PWM
322
+ * PD5   4 // TX                           PC2  51 // BED_THERMISTOR_1
323
+ * PD6   5 // RX                           PC3  52 // BED_THERMISTOR_2
324
+ * PD7  34 // USER3                        PA3  53 // BED_THERMISTOR_3
325
+ * PD8  39 // X_STOP                       PA0  54 // E1_THERMISTOR
326
+ * PD9  40 // Y_STOP                       PA1  55 // E2_THERMISTOR
327
+ * PD10 41 // Z_STOP                       PA2  56 // E3_THERMISTOR
328
+ * PD11 42 // U_STOP                       PC4  57 // E1_FAN
329
+ * PD12 71 // E1_PWM                       PC5  58 // E2_FAN
330
+ * PD13 45 // BED_HEAT_2                   PE8  59 // E3_FAN
331
+ * PD14 46 // BED_HEAT_1                   PE13 60 // X_RESET
332
+ * PD15 47 // BED_HEAT_3                   PE14 61 // X_PWM
333
+ * PE0  36 // USER2                        PE15 62 // X_DIR
334
+ * PE1   9 // STATUS_LED                   PE10 63 // Y_RESET
335
+ * PE2  76 // E3_DIR                       PB10 64 // Y_PWM
336
+ * PE3  75 // E3_RESET                     PE9  65 // Y_DIR
337
+ * PE4  72 // E2_RESET                     PC15 66 // Z_RESET
338
+ * PE5  73 // E2_PWM                       PC6  67 // Z_PWM
339
+ * PE6  74 // E2_DIR                       PC0  68 // Z_DIR
340
+ * PE7  38 // USER_BUTTON                  PC14 69 // E1_RESET
341
+ * PE8  59 // E3_FAN                       PC13 70 // E1_DIR
342
+ * PE9  65 // Y_DIR                        PD12 71 // E1_PWM
343
+ * PE10 63 // Y_RESET                      PE4  72 // E2_RESET
344
+ * PE11  7 // WIFI_RESET                   PE5  73 // E2_PWM
345
+ * PE12  8 // WIFI_BOOT                    PE6  74 // E2_DIR
346
+ * PE13 60 // X_RESET                      PE3  75 // E3_RESET
347
+ * PE14 61 // X_PWM                        PE2  76 // E3_DIR
348
+ * PE15 62 // X_DIR                        PB8  77 // E3_PWM
349
+ */

+ 65
- 0
buildroot/share/PlatformIO/boards/STEVAL_STM32F401VE.json Datei anzeigen

@@ -0,0 +1,65 @@
1
+{
2
+  "build": {
3
+    "core": "stm32",
4
+    "cpu": "cortex-m4",
5
+    "extra_flags": "-DSTM32F401xx",
6
+    "f_cpu": "84000000L",
7
+    "hwids": [
8
+      [
9
+        "0x1EAF",
10
+        "0x0003"
11
+      ],
12
+      [
13
+        "0x0483",
14
+        "0x3748"
15
+      ]
16
+    ],
17
+    "ldscript": "stm32f401xe.ld",
18
+    "mcu": "stm32f401vet6",
19
+    "variant": "STEVAL_F401VE"
20
+  },
21
+  "debug": {
22
+    "jlink_device": "STM32F401VE",
23
+    "openocd_target": "stm32f4x",
24
+    "svd_path": "STM32F40x.svd",
25
+    "tools": {
26
+      "stlink": {
27
+        "server": {
28
+          "arguments": [
29
+            "-f",
30
+            "scripts/interface/stlink.cfg",
31
+            "-c",
32
+            "transport select hla_swd",
33
+            "-f",
34
+            "scripts/target/stm32f4x.cfg",
35
+            "-c",
36
+            "reset_config none"
37
+          ],
38
+          "executable": "bin/openocd",
39
+          "package": "tool-openocd"
40
+        }
41
+      }
42
+    }
43
+  },
44
+  "frameworks": [
45
+    "arduino",
46
+    "stm32cube"
47
+  ],
48
+  "name": "STM32F401VE (96k RAM. 512k Flash)",
49
+  "upload": {
50
+    "disable_flushing": false,
51
+    "maximum_ram_size": 98304,
52
+    "maximum_size": 514288,
53
+    "protocol": "stlink",
54
+    "protocols": [
55
+      "stlink",
56
+      "dfu",
57
+      "jlink"
58
+    ],
59
+    "require_upload_port": true,
60
+    "use_1200bps_touch": false,
61
+    "wait_for_upload_port": false
62
+  },
63
+  "url": "https://www.st.com/en/evaluation-tools/steval-3dp001v1.html",
64
+  "vendor": "Generic"
65
+}

+ 11
- 0
buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py Datei anzeigen

@@ -0,0 +1,11 @@
1
+import os
2
+Import("env")
3
+
4
+custom_ld_script = os.path.abspath("buildroot/share/PlatformIO/variants/STEVAL_F401VE/ldscript.ld")
5
+for i, flag in enumerate(env["LINKFLAGS"]):
6
+    if "-Wl,-T" in flag:
7
+        env["LINKFLAGS"][i] = "-Wl,-T" + custom_ld_script
8
+    elif flag == "-T":
9
+        env["LINKFLAGS"][i + 1] = custom_ld_script
10
+
11
+

+ 274
- 0
buildroot/share/PlatformIO/variants/STEVAL_F401VE/PeripheralPins.c Datei anzeigen

@@ -0,0 +1,274 @@
1
+
2
+/*
3
+ *******************************************************************************
4
+ * Copyright (c) 2019, STMicroelectronics
5
+ * All rights reserved.
6
+ *
7
+ * This software component is licensed by ST under BSD 3-Clause license,
8
+ * the "License"; You may not use this file except in compliance with the
9
+ * License. You may obtain a copy of the License at:
10
+ *                        opensource.org/licenses/BSD-3-Clause
11
+ *
12
+ *******************************************************************************
13
+ * Automatically generated from STM32F401V(D-E)Tx.xml
14
+ */
15
+#include "Arduino.h"
16
+#include "PeripheralPins.h"
17
+
18
+/* =====
19
+ * Note: Commented lines are alternative possibilities which are not used per default.
20
+ *       If you change them, you will have to know what you do
21
+ * =====
22
+ */
23
+
24
+//*** ADC ***
25
+
26
+#ifdef HAL_ADC_MODULE_ENABLED
27
+WEAK const PinMap PinMap_ADC[] = {
28
+  {PA_0,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC1_IN0
29
+  {PA_1,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC1_IN1
30
+  {PA_2,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC1_IN2
31
+  {PA_3,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC1_IN3
32
+  //  {PA_4,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC1_IN4
33
+  //  {PA_5,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC1_IN5
34
+  //  {PA_6,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC1_IN6
35
+  //  {PA_7,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7
36
+  //  {PB_0,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8
37
+  //  {PB_1,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
38
+  //  {PC_0,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
39
+  //  {PC_1,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 11, 0)}, // ADC1_IN11
40
+  {PC_2,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 12, 0)}, // ADC1_IN12
41
+  {PC_3,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 13, 0)}, // ADC1_IN13
42
+  //  {PC_4,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 14, 0)}, // ADC1_IN14
43
+  //  {PC_5,  ADC1,  STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 15, 0)}, // ADC1_IN15
44
+  {NC,    NP,    0}
45
+};
46
+#endif
47
+
48
+//*** No DAC ***
49
+
50
+//*** I2C ***
51
+
52
+#ifdef HAL_I2C_MODULE_ENABLED
53
+WEAK const PinMap PinMap_I2C_SDA[] = {
54
+  //  {PB_3,  I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF9_I2C2)},
55
+  //  {PB_4,  I2C3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF9_I2C3)},
56
+  {PB_7,  I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
57
+  //  {PB_9,  I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
58
+  //  {PC_9,  I2C3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)},
59
+  {NC,    NP,    0}
60
+};
61
+#endif
62
+
63
+#ifdef HAL_I2C_MODULE_ENABLED
64
+WEAK const PinMap PinMap_I2C_SCL[] = {
65
+  //  {PA_8,  I2C3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)},
66
+  {PB_6,  I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
67
+  //  {PB_8,  I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
68
+  //  {PB_10, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
69
+  {NC,    NP,    0}
70
+};
71
+#endif
72
+
73
+//*** PWM ***
74
+
75
+#ifdef HAL_TIM_MODULE_ENABLED
76
+WEAK const PinMap PinMap_PWM[] = {
77
+  //  {PA_0,  TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
78
+  //  {PA_0,  TIM5,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM5, 1, 0)}, // TIM5_CH1
79
+  //  {PA_1,  TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 2, 0)}, // TIM2_CH2
80
+  //  {PA_1,  TIM5,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM5, 2, 0)}, // TIM5_CH2
81
+  //  {PA_2,  TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 3, 0)}, // TIM2_CH3
82
+  //  {PA_2,  TIM5,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM5, 3, 0)}, // TIM5_CH3
83
+  //  {PA_2,  TIM9,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 1, 0)}, // TIM9_CH1
84
+  //  {PA_3,  TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 4, 0)}, // TIM2_CH4
85
+  //  {PA_3,  TIM5,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM5, 4, 0)}, // TIM5_CH4
86
+  //  {PA_3,  TIM9,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 2, 0)}, // TIM9_CH2
87
+  //  {PA_5,  TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
88
+  //  {PA_6,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1
89
+  //  {PA_7,  TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 1)}, // TIM1_CH1N
90
+  //  {PA_7,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2
91
+  //  {PA_8,  TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 0)}, // TIM1_CH1
92
+  //  {PA_9,  TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 0)}, // TIM1_CH2
93
+  //  {PA_10, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3
94
+  //  {PA_11, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4
95
+  //  {PA_15, TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
96
+  //  {PB_0,  TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N
97
+  {PB_0,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3
98
+  //  {PB_1,  TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
99
+  {PB_1,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
100
+  //  {PB_3,  TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 2, 0)}, // TIM2_CH2
101
+  //  {PB_4,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1
102
+  //  {PB_5,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2
103
+  //  {PB_6,  TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 1, 0)}, // TIM4_CH1
104
+  //  {PB_7,  TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 2, 0)}, // TIM4_CH2
105
+  //  {PB_8,  TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 3, 0)}, // TIM4_CH3
106
+  //  {PB_8,  TIM10,  STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM10, 1, 0)}, // TIM10_CH1
107
+  //  {PB_9,  TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 4, 0)}, // TIM4_CH4
108
+  //  {PB_9,  TIM11,  STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM11, 1, 0)}, // TIM11_CH1
109
+  {PB_10, TIM2,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 3, 0)}, // TIM2_CH3
110
+  //  {PB_13, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 1)}, // TIM1_CH1N
111
+  //  {PB_14, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N
112
+  //  {PB_15, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
113
+  {PC_6,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1
114
+  {PC_7,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2
115
+  //  {PC_8,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3
116
+  //  {PC_9,  TIM3,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
117
+  {PD_12, TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 1, 0)}, // TIM4_CH1
118
+  {PD_13, TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 2, 0)}, // TIM4_CH2
119
+  {PD_14, TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 3, 0)}, // TIM4_CH3
120
+  {PD_15, TIM4,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 4, 0)}, // TIM4_CH4
121
+  {PE_5,  TIM9,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 1, 0)}, // TIM9_CH1
122
+  //  {PE_6,  TIM9,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM9, 2, 0)}, // TIM9_CH2
123
+  //  {PE_8,  TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 1)}, // TIM1_CH1N
124
+  //  {PE_9,  TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 0)}, // TIM1_CH1
125
+  //  {PE_10, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N
126
+  //  {PE_11, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 0)}, // TIM1_CH2
127
+  //  {PE_12, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
128
+  //  {PE_13, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3
129
+  {PE_14, TIM1,   STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4
130
+  {NC,    NP,    0}
131
+};
132
+#endif
133
+
134
+//*** SERIAL ***
135
+
136
+#ifdef HAL_UART_MODULE_ENABLED
137
+WEAK const PinMap PinMap_UART_TX[] = {
138
+  //  {PA_2,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
139
+  {PA_9,  USART1,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
140
+  //  {PA_11, USART6,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
141
+  //  {PB_6,  USART1,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
142
+  //  {PC_6,  USART6,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
143
+  {PD_5,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
144
+  {NC,    NP,    0}
145
+};
146
+#endif
147
+
148
+#ifdef HAL_UART_MODULE_ENABLED
149
+WEAK const PinMap PinMap_UART_RX[] = {
150
+  //  {PA_3,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
151
+  {PA_10, USART1,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
152
+  //  {PA_12, USART6,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
153
+  //  {PB_7,  USART1,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
154
+  //  {PC_7,  USART6,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
155
+  {PD_6,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
156
+  {NC,    NP,    0}
157
+};
158
+#endif
159
+
160
+#ifdef HAL_UART_MODULE_ENABLED
161
+WEAK const PinMap PinMap_UART_RTS[] = {
162
+  //  {PA_1,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
163
+  //  {PA_12, USART1,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
164
+  {PD_4,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
165
+  {NC,    NP,    0}
166
+};
167
+#endif
168
+
169
+#ifdef HAL_UART_MODULE_ENABLED
170
+WEAK const PinMap PinMap_UART_CTS[] = {
171
+  //  {PA_0,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
172
+  //  {PA_11, USART1,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
173
+  {PD_3,  USART2,  STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
174
+  {NC,    NP,    0}
175
+};
176
+#endif
177
+
178
+//*** SPI ***
179
+
180
+#ifdef HAL_SPI_MODULE_ENABLED
181
+WEAK const PinMap PinMap_SPI_MOSI[] = {
182
+  {PA_7,  SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
183
+  //  {PB_5,  SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
184
+  //  {PB_5,  SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
185
+  {PB_15, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
186
+  //  {PC_3,  SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
187
+  //  {PC_12, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
188
+  //  {PD_6,  SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
189
+  //  {PE_6,  SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
190
+  //  {PE_14, SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
191
+  {NC,    NP,    0}
192
+};
193
+#endif
194
+
195
+#ifdef HAL_SPI_MODULE_ENABLED
196
+WEAK const PinMap PinMap_SPI_MISO[] = {
197
+  {PA_6,  SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
198
+  //  {PB_4,  SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
199
+  //  {PB_4,  SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
200
+  {PB_14, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
201
+  //  {PC_2,  SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
202
+  //  {PC_11, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
203
+  //  {PE_5,  SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
204
+  //  {PE_13, SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
205
+  {NC,    NP,    0}
206
+};
207
+#endif
208
+
209
+#ifdef HAL_SPI_MODULE_ENABLED
210
+WEAK const PinMap PinMap_SPI_SCLK[] = {
211
+  {PA_5,  SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
212
+  //  {PB_3,  SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
213
+  //  {PB_3,  SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
214
+  //  {PB_10, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
215
+  {PB_13, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
216
+  //  {PC_10, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
217
+  //  {PD_3,  SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
218
+  //  {PE_2,  SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
219
+  //  {PE_12, SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
220
+  {NC,    NP,    0}
221
+};
222
+#endif
223
+
224
+#ifdef HAL_SPI_MODULE_ENABLED
225
+WEAK const PinMap PinMap_SPI_SSEL[] = {
226
+  {PA_4,  SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
227
+  //  {PA_4,  SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
228
+  //  {PA_15, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
229
+  //  {PA_15, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
230
+  //  {PB_9,  SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
231
+  {PB_12, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
232
+  //  {PE_4,  SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
233
+  //  {PE_11, SPI4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI4)},
234
+  {NC,    NP,    0}
235
+};
236
+#endif
237
+
238
+//*** No CAN ***
239
+
240
+//*** No ETHERNET ***
241
+
242
+//*** No QUADSPI ***
243
+
244
+//*** USB ***
245
+
246
+#ifdef HAL_PCD_MODULE_ENABLED
247
+WEAK const PinMap PinMap_USB_OTG_FS[] = {
248
+  //  {PA_8,  USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_SOF
249
+  //  {PA_9,  USB_OTG_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_OTG_FS_VBUS
250
+  //  {PA_10, USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_ID
251
+  {PA_11, USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_DM
252
+  {PA_12, USB_OTG_FS, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_OTG_FS)}, // USB_OTG_FS_DP
253
+  {NC,    NP,    0}
254
+};
255
+#endif
256
+
257
+//*** No USB_OTG_HS ***
258
+//*** SD ***
259
+
260
+#ifdef HAL_SD_MODULE_ENABLED
261
+WEAK const PinMap PinMap_SD[] = {
262
+  // {PB_8,  SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D4
263
+  // {PB_9,  SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D5
264
+  // {PC_6,  SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D6
265
+  // {PC_7,  SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D7
266
+  {PC_8,  SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D0
267
+  {PC_9,  SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D1
268
+  {PC_10, SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D2
269
+  {PC_11, SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF12_SDIO)}, // SDIO_D3
270
+  {PC_12, SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_SDIO)}, // SDIO_CK
271
+  {PD_2,  SDIO, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_SDIO)}, // SDIO_CMD
272
+  {NC,    NP,    0}
273
+};
274
+#endif

+ 33
- 0
buildroot/share/PlatformIO/variants/STEVAL_F401VE/PinNamesVar.h Datei anzeigen

@@ -0,0 +1,33 @@
1
+/* SYS_WKUP */
2
+#ifdef PWR_WAKEUP_PIN1
3
+SYS_WKUP1 = PA_0,
4
+#endif
5
+#ifdef PWR_WAKEUP_PIN2
6
+SYS_WKUP2 = NC,
7
+#endif
8
+#ifdef PWR_WAKEUP_PIN3
9
+SYS_WKUP3 = NC,
10
+#endif
11
+#ifdef PWR_WAKEUP_PIN4
12
+SYS_WKUP4 = NC,
13
+#endif
14
+#ifdef PWR_WAKEUP_PIN5
15
+SYS_WKUP5 = NC,
16
+#endif
17
+#ifdef PWR_WAKEUP_PIN6
18
+SYS_WKUP6 = NC,
19
+#endif
20
+#ifdef PWR_WAKEUP_PIN7
21
+SYS_WKUP7 = NC,
22
+#endif
23
+#ifdef PWR_WAKEUP_PIN8
24
+SYS_WKUP8 = NC,
25
+#endif
26
+/* USB */
27
+#ifdef USBCON
28
+USB_OTG_FS_SOF = PA_8,
29
+USB_OTG_FS_VBUS = PA_9,
30
+USB_OTG_FS_ID = PA_10,
31
+USB_OTG_FS_DM = PA_11,
32
+USB_OTG_FS_DP = PA_12,
33
+#endif

+ 496
- 0
buildroot/share/PlatformIO/variants/STEVAL_F401VE/hal_conf_custom.h Datei anzeigen

@@ -0,0 +1,496 @@
1
+/**
2
+  ******************************************************************************
3
+  * @file    stm32f4xx_hal_conf.h
4
+  * @brief   HAL configuration file.
5
+  ******************************************************************************
6
+  * @attention
7
+  *
8
+  * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
9
+  * All rights reserved.</center></h2>
10
+  *
11
+  * This software component is licensed by ST under BSD 3-Clause license,
12
+  * the "License"; You may not use this file except in compliance with the
13
+  * License. You may obtain a copy of the License at:
14
+  *                        opensource.org/licenses/BSD-3-Clause
15
+  *
16
+  ******************************************************************************
17
+  */
18
+
19
+/* Define to prevent recursive inclusion -------------------------------------*/
20
+#ifndef __STM32F4xx_HAL_CONF_CUSTOM
21
+#define __STM32F4xx_HAL_CONF_CUSTOM
22
+
23
+#ifdef __cplusplus
24
+extern "C" {
25
+#endif
26
+
27
+/* Exported types ------------------------------------------------------------*/
28
+/* Exported constants --------------------------------------------------------*/
29
+
30
+/* ########################## Module Selection ############################## */
31
+ /**
32
+  * @brief This is the list of modules to be used in the HAL driver
33
+  */
34
+#define HAL_MODULE_ENABLED
35
+#define HAL_ADC_MODULE_ENABLED
36
+/* #define HAL_CAN_MODULE_ENABLED   */
37
+/* #define HAL_CAN_LEGACY_MODULE_ENABLED */
38
+#define HAL_CRC_MODULE_ENABLED
39
+/* #define HAL_CEC_MODULE_ENABLED   */
40
+/* #define HAL_CRYP_MODULE_ENABLED   */
41
+//#define HAL_DAC_MODULE_ENABLED
42
+/* #define HAL_DCMI_MODULE_ENABLED   */
43
+#define HAL_DMA_MODULE_ENABLED
44
+/* #define HAL_DMA2D_MODULE_ENABLED   */
45
+/* #define HAL_ETH_MODULE_ENABLED   */
46
+#define HAL_FLASH_MODULE_ENABLED
47
+/* #define HAL_NAND_MODULE_ENABLED   */
48
+/* #define HAL_NOR_MODULE_ENABLED   */
49
+/* #define HAL_PCCARD_MODULE_ENABLED   */
50
+/* #define HAL_SRAM_MODULE_ENABLED   */
51
+/* #define HAL_SDRAM_MODULE_ENABLED   */
52
+/* #define HAL_HASH_MODULE_ENABLED   */
53
+#define HAL_GPIO_MODULE_ENABLED
54
+/* #define HAL_EXTI_MODULE_ENABLED   */
55
+#define HAL_I2C_MODULE_ENABLED
56
+/* #define HAL_SMBUS_MODULE_ENABLED   */
57
+/* #define HAL_I2S_MODULE_ENABLED   */
58
+/* #define HAL_IWDG_MODULE_ENABLED   */
59
+/* #define HAL_LTDC_MODULE_ENABLED   */
60
+/* #define HAL_DSI_MODULE_ENABLED   */
61
+#define HAL_PWR_MODULE_ENABLED
62
+/* #define HAL_QSPI_MODULE_ENABLED   */
63
+#define HAL_RCC_MODULE_ENABLED
64
+/* #define HAL_RNG_MODULE_ENABLED   */
65
+#define HAL_RTC_MODULE_ENABLED
66
+/* #define HAL_SAI_MODULE_ENABLED   */
67
+#define HAL_SD_MODULE_ENABLED
68
+#define HAL_SPI_MODULE_ENABLED
69
+#define HAL_TIM_MODULE_ENABLED
70
+/* #define HAL_UART_MODULE_ENABLED   */
71
+/* #define HAL_USART_MODULE_ENABLED   */
72
+/* #define HAL_IRDA_MODULE_ENABLED   */
73
+/* #define HAL_SMARTCARD_MODULE_ENABLED   */
74
+/* #define HAL_WWDG_MODULE_ENABLED   */
75
+#define HAL_CORTEX_MODULE_ENABLED
76
+#ifndef HAL_PCD_MODULE_ENABLED
77
+  #define HAL_PCD_MODULE_ENABLED //Since STM32 v3.10700.191028 this is automatically added if any type of USB is enabled (as in Arduino IDE)
78
+#endif
79
+/* #define HAL_HCD_MODULE_ENABLED   */
80
+/* #define HAL_FMPI2C_MODULE_ENABLED   */
81
+/* #define HAL_SPDIFRX_MODULE_ENABLED   */
82
+/* #define HAL_DFSDM_MODULE_ENABLED   */
83
+/* #define HAL_LPTIM_MODULE_ENABLED   */
84
+/* #define HAL_MMC_MODULE_ENABLED   */
85
+
86
+/* ########################## HSE/HSI Values adaptation ##################### */
87
+/**
88
+  * @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
89
+  *        This value is used by the RCC HAL module to compute the system frequency
90
+  *        (when HSE is used as system clock source, directly or through the PLL).
91
+  */
92
+#ifndef HSE_VALUE
93
+#define HSE_VALUE              8000000U /*!< Value of the External oscillator in Hz */
94
+#endif /* HSE_VALUE */
95
+
96
+#ifndef HSE_STARTUP_TIMEOUT
97
+#define HSE_STARTUP_TIMEOUT    100U      /*!< Time out for HSE start up, in ms */
98
+#endif /* HSE_STARTUP_TIMEOUT */
99
+
100
+/**
101
+  * @brief Internal High Speed oscillator (HSI) value.
102
+  *        This value is used by the RCC HAL module to compute the system frequency
103
+  *        (when HSI is used as system clock source, directly or through the PLL).
104
+  */
105
+#ifndef HSI_VALUE
106
+#define HSI_VALUE              16000000U /*!< Value of the Internal oscillator in Hz */
107
+#endif /* HSI_VALUE */
108
+
109
+/**
110
+  * @brief Internal Low Speed oscillator (LSI) value.
111
+  */
112
+#ifndef LSI_VALUE
113
+#define LSI_VALUE               32000U    /*!< LSI Typical Value in Hz */
114
+#endif /* LSI_VALUE */                      /*!< Value of the Internal Low Speed oscillator in Hz
115
+The real value may vary depending on the variations
116
+in voltage and temperature. */
117
+/**
118
+  * @brief External Low Speed oscillator (LSE) value.
119
+  */
120
+#ifndef LSE_VALUE
121
+#define LSE_VALUE               32768U    /*!< Value of the External Low Speed oscillator in Hz */
122
+#endif /* LSE_VALUE */
123
+
124
+#ifndef LSE_STARTUP_TIMEOUT
125
+#define LSE_STARTUP_TIMEOUT    5000U     /*!< Time out for LSE start up, in ms */
126
+#endif /* LSE_STARTUP_TIMEOUT */
127
+
128
+/**
129
+  * @brief External clock source for I2S peripheral
130
+  *        This value is used by the I2S HAL module to compute the I2S clock source
131
+  *        frequency, this source is inserted directly through I2S_CKIN pad.
132
+  */
133
+#ifndef EXTERNAL_CLOCK_VALUE
134
+#define EXTERNAL_CLOCK_VALUE     12288000U /*!< Value of the External oscillator in Hz*/
135
+#endif /* EXTERNAL_CLOCK_VALUE */
136
+
137
+/* Tip: To avoid modifying this file each time you need to use different HSE,
138
+   ===  you can define the HSE value in your toolchain compiler preprocessor. */
139
+
140
+/* ########################### System Configuration ######################### */
141
+/**
142
+  * @brief This is the HAL system configuration section
143
+  */
144
+#if !defined (VDD_VALUE)
145
+#define  VDD_VALUE                    3300U /*!< Value of VDD in mv */
146
+#endif
147
+#if !defined (TICK_INT_PRIORITY)
148
+#define  TICK_INT_PRIORITY            0x00U /*!< tick interrupt priority */
149
+#endif
150
+#if !defined (USE_RTOS)
151
+#define  USE_RTOS                     0U
152
+#endif
153
+#if !defined (PREFETCH_ENABLE)
154
+#define  PREFETCH_ENABLE              1U
155
+#endif
156
+#if !defined (INSTRUCTION_CACHE_ENABLE)
157
+#define  INSTRUCTION_CACHE_ENABLE     1U
158
+#endif
159
+#if !defined (DATA_CACHE_ENABLE)
160
+#define  DATA_CACHE_ENABLE            1U
161
+#endif
162
+
163
+#define  USE_HAL_ADC_REGISTER_CALLBACKS         0U /* ADC register callback disabled       */
164
+#define  USE_HAL_CAN_REGISTER_CALLBACKS         0U /* CAN register callback disabled       */
165
+#define  USE_HAL_CEC_REGISTER_CALLBACKS         0U /* CEC register callback disabled       */
166
+#define  USE_HAL_CRYP_REGISTER_CALLBACKS        0U /* CRYP register callback disabled      */
167
+#define  USE_HAL_DAC_REGISTER_CALLBACKS         0U /* DAC register callback disabled       */
168
+#define  USE_HAL_DCMI_REGISTER_CALLBACKS        0U /* DCMI register callback disabled      */
169
+#define  USE_HAL_DFSDM_REGISTER_CALLBACKS       0U /* DFSDM register callback disabled     */
170
+#define  USE_HAL_DMA2D_REGISTER_CALLBACKS       0U /* DMA2D register callback disabled     */
171
+#define  USE_HAL_DSI_REGISTER_CALLBACKS         0U /* DSI register callback disabled       */
172
+#define  USE_HAL_ETH_REGISTER_CALLBACKS         0U /* ETH register callback disabled       */
173
+#define  USE_HAL_HASH_REGISTER_CALLBACKS        0U /* HASH register callback disabled      */
174
+#define  USE_HAL_HCD_REGISTER_CALLBACKS         0U /* HCD register callback disabled       */
175
+#define  USE_HAL_I2C_REGISTER_CALLBACKS         0U /* I2C register callback disabled       */
176
+#define  USE_HAL_FMPI2C_REGISTER_CALLBACKS      0U /* FMPI2C register callback disabled    */
177
+#define  USE_HAL_I2S_REGISTER_CALLBACKS         0U /* I2S register callback disabled       */
178
+#define  USE_HAL_IRDA_REGISTER_CALLBACKS        0U /* IRDA register callback disabled      */
179
+#define  USE_HAL_LPTIM_REGISTER_CALLBACKS       0U /* LPTIM register callback disabled     */
180
+#define  USE_HAL_LTDC_REGISTER_CALLBACKS        0U /* LTDC register callback disabled      */
181
+#define  USE_HAL_MMC_REGISTER_CALLBACKS         0U /* MMC register callback disabled       */
182
+#define  USE_HAL_NAND_REGISTER_CALLBACKS        0U /* NAND register callback disabled      */
183
+#define  USE_HAL_NOR_REGISTER_CALLBACKS         0U /* NOR register callback disabled       */
184
+#define  USE_HAL_PCCARD_REGISTER_CALLBACKS      0U /* PCCARD register callback disabled    */
185
+#define  USE_HAL_PCD_REGISTER_CALLBACKS         0U /* PCD register callback disabled       */
186
+#define  USE_HAL_QSPI_REGISTER_CALLBACKS        0U /* QSPI register callback disabled      */
187
+#define  USE_HAL_RNG_REGISTER_CALLBACKS         0U /* RNG register callback disabled       */
188
+#define  USE_HAL_RTC_REGISTER_CALLBACKS         0U /* RTC register callback disabled       */
189
+#define  USE_HAL_SAI_REGISTER_CALLBACKS         0U /* SAI register callback disabled       */
190
+#define  USE_HAL_SD_REGISTER_CALLBACKS          0U /* SD register callback disabled        */
191
+#define  USE_HAL_SMARTCARD_REGISTER_CALLBACKS   0U /* SMARTCARD register callback disabled */
192
+#define  USE_HAL_SDRAM_REGISTER_CALLBACKS       0U /* SDRAM register callback disabled     */
193
+#define  USE_HAL_SRAM_REGISTER_CALLBACKS        0U /* SRAM register callback disabled      */
194
+#define  USE_HAL_SPDIFRX_REGISTER_CALLBACKS     0U /* SPDIFRX register callback disabled   */
195
+#define  USE_HAL_SMBUS_REGISTER_CALLBACKS       0U /* SMBUS register callback disabled     */
196
+#define  USE_HAL_SPI_REGISTER_CALLBACKS         0U /* SPI register callback disabled       */
197
+#define  USE_HAL_TIM_REGISTER_CALLBACKS         0U /* TIM register callback disabled       */
198
+#define  USE_HAL_UART_REGISTER_CALLBACKS        0U /* UART register callback disabled      */
199
+#define  USE_HAL_USART_REGISTER_CALLBACKS       0U /* USART register callback disabled     */
200
+#define  USE_HAL_WWDG_REGISTER_CALLBACKS        0U /* WWDG register callback disabled      */
201
+
202
+/* ########################## Assert Selection ############################## */
203
+/**
204
+  * @brief Uncomment the line below to expanse the "assert_param" macro in the
205
+  *        HAL drivers code
206
+  */
207
+/* #define USE_FULL_ASSERT    1U */
208
+
209
+/* ################## Ethernet peripheral configuration ##################### */
210
+
211
+/* Section 1 : Ethernet peripheral configuration */
212
+
213
+/* MAC ADDRESS: MAC_ADDR0:MAC_ADDR1:MAC_ADDR2:MAC_ADDR3:MAC_ADDR4:MAC_ADDR5 */
214
+#define MAC_ADDR0   2U
215
+#define MAC_ADDR1   0U
216
+#define MAC_ADDR2   0U
217
+#define MAC_ADDR3   0U
218
+#define MAC_ADDR4   0U
219
+#define MAC_ADDR5   0U
220
+
221
+/* Definition of the Ethernet driver buffers size and count */
222
+#define ETH_RX_BUF_SIZE                ETH_MAX_PACKET_SIZE /* buffer size for receive               */
223
+#define ETH_TX_BUF_SIZE                ETH_MAX_PACKET_SIZE /* buffer size for transmit              */
224
+#define ETH_RXBUFNB                    ((uint32_t)4U)       /* 4 Rx buffers of size ETH_RX_BUF_SIZE  */
225
+#define ETH_TXBUFNB                    ((uint32_t)4U)       /* 4 Tx buffers of size ETH_TX_BUF_SIZE  */
226
+
227
+/* Section 2: PHY configuration section */
228
+
229
+/* DP83848_PHY_ADDRESS Address*/
230
+#define DP83848_PHY_ADDRESS           0x01U
231
+/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/
232
+#define PHY_RESET_DELAY                 0x000000FFU
233
+/* PHY Configuration delay */
234
+#define PHY_CONFIG_DELAY                0x00000FFFU
235
+
236
+#define PHY_READ_TO                     0x0000FFFFU
237
+#define PHY_WRITE_TO                    0x0000FFFFU
238
+
239
+/* Section 3: Common PHY Registers */
240
+
241
+#define PHY_BCR                         ((uint16_t)0x0000)  /*!< Transceiver Basic Control Register   */
242
+#define PHY_BSR                         ((uint16_t)0x0001)  /*!< Transceiver Basic Status Register    */
243
+
244
+#define PHY_RESET                       ((uint16_t)0x8000)  /*!< PHY Reset */
245
+#define PHY_LOOPBACK                    ((uint16_t)0x4000)  /*!< Select loop-back mode */
246
+#define PHY_FULLDUPLEX_100M             ((uint16_t)0x2100)  /*!< Set the full-duplex mode at 100 Mb/s */
247
+#define PHY_HALFDUPLEX_100M             ((uint16_t)0x2000)  /*!< Set the half-duplex mode at 100 Mb/s */
248
+#define PHY_FULLDUPLEX_10M              ((uint16_t)0x0100)  /*!< Set the full-duplex mode at 10 Mb/s  */
249
+#define PHY_HALFDUPLEX_10M              ((uint16_t)0x0000)  /*!< Set the half-duplex mode at 10 Mb/s  */
250
+#define PHY_AUTONEGOTIATION             ((uint16_t)0x1000)  /*!< Enable auto-negotiation function     */
251
+#define PHY_RESTART_AUTONEGOTIATION     ((uint16_t)0x0200)  /*!< Restart auto-negotiation function    */
252
+#define PHY_POWERDOWN                   ((uint16_t)0x0800)  /*!< Select the power down mode           */
253
+#define PHY_ISOLATE                     ((uint16_t)0x0400)  /*!< Isolate PHY from MII                 */
254
+
255
+#define PHY_AUTONEGO_COMPLETE           ((uint16_t)0x0020)  /*!< Auto-Negotiation process completed   */
256
+#define PHY_LINKED_STATUS               ((uint16_t)0x0004)  /*!< Valid link established               */
257
+#define PHY_JABBER_DETECTION            ((uint16_t)0x0002)  /*!< Jabber condition detected            */
258
+
259
+/* Section 4: Extended PHY Registers */
260
+#define PHY_SR                          ((uint16_t)0x10U)    /*!< PHY status register Offset                      */
261
+
262
+#define PHY_SPEED_STATUS                ((uint16_t)0x0002U)  /*!< PHY Speed mask                                  */
263
+#define PHY_DUPLEX_STATUS               ((uint16_t)0x0004U)  /*!< PHY Duplex mask                                 */
264
+
265
+/* ################## SPI peripheral configuration ########################## */
266
+
267
+/* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
268
+ * Activated: CRC code is present inside driver
269
+ * Deactivated: CRC code cleaned from driver
270
+ */
271
+#ifndef USE_SPI_CRC
272
+#define USE_SPI_CRC                     0U
273
+#endif
274
+
275
+/* Includes ------------------------------------------------------------------*/
276
+/**
277
+  * @brief Include module's header file
278
+  */
279
+
280
+#ifdef HAL_RCC_MODULE_ENABLED
281
+#include "stm32f4xx_hal_rcc.h"
282
+#endif /* HAL_RCC_MODULE_ENABLED */
283
+
284
+#ifdef HAL_GPIO_MODULE_ENABLED
285
+#include "stm32f4xx_hal_gpio.h"
286
+#endif /* HAL_GPIO_MODULE_ENABLED */
287
+
288
+#ifdef HAL_EXTI_MODULE_ENABLED
289
+#include "stm32f4xx_hal_exti.h"
290
+#endif /* HAL_EXTI_MODULE_ENABLED */
291
+
292
+#ifdef HAL_DMA_MODULE_ENABLED
293
+#include "stm32f4xx_hal_dma.h"
294
+#endif /* HAL_DMA_MODULE_ENABLED */
295
+
296
+#ifdef HAL_CORTEX_MODULE_ENABLED
297
+#include "stm32f4xx_hal_cortex.h"
298
+#endif /* HAL_CORTEX_MODULE_ENABLED */
299
+
300
+#ifdef HAL_ADC_MODULE_ENABLED
301
+#include "stm32f4xx_hal_adc.h"
302
+#endif /* HAL_ADC_MODULE_ENABLED */
303
+
304
+#ifdef HAL_CAN_MODULE_ENABLED
305
+#include "stm32f4xx_hal_can.h"
306
+#endif /* HAL_CAN_MODULE_ENABLED */
307
+
308
+#ifdef HAL_CAN_LEGACY_MODULE_ENABLED
309
+#include "stm32f4xx_hal_can_legacy.h"
310
+#endif /* HAL_CAN_LEGACY_MODULE_ENABLED */
311
+
312
+#ifdef HAL_CRC_MODULE_ENABLED
313
+#include "stm32f4xx_hal_crc.h"
314
+#endif /* HAL_CRC_MODULE_ENABLED */
315
+
316
+#ifdef HAL_CRYP_MODULE_ENABLED
317
+#include "stm32f4xx_hal_cryp.h"
318
+#endif /* HAL_CRYP_MODULE_ENABLED */
319
+
320
+#ifdef HAL_DMA2D_MODULE_ENABLED
321
+#include "stm32f4xx_hal_dma2d.h"
322
+#endif /* HAL_DMA2D_MODULE_ENABLED */
323
+
324
+#ifdef HAL_DAC_MODULE_ENABLED
325
+#include "stm32f4xx_hal_dac.h"
326
+#endif /* HAL_DAC_MODULE_ENABLED */
327
+
328
+#ifdef HAL_DCMI_MODULE_ENABLED
329
+#include "stm32f4xx_hal_dcmi.h"
330
+#endif /* HAL_DCMI_MODULE_ENABLED */
331
+
332
+#ifdef HAL_ETH_MODULE_ENABLED
333
+#include "stm32f4xx_hal_eth.h"
334
+#endif /* HAL_ETH_MODULE_ENABLED */
335
+
336
+#ifdef HAL_FLASH_MODULE_ENABLED
337
+#include "stm32f4xx_hal_flash.h"
338
+#endif /* HAL_FLASH_MODULE_ENABLED */
339
+
340
+#ifdef HAL_SRAM_MODULE_ENABLED
341
+#include "stm32f4xx_hal_sram.h"
342
+#endif /* HAL_SRAM_MODULE_ENABLED */
343
+
344
+#ifdef HAL_NOR_MODULE_ENABLED
345
+#include "stm32f4xx_hal_nor.h"
346
+#endif /* HAL_NOR_MODULE_ENABLED */
347
+
348
+#ifdef HAL_NAND_MODULE_ENABLED
349
+#include "stm32f4xx_hal_nand.h"
350
+#endif /* HAL_NAND_MODULE_ENABLED */
351
+
352
+#ifdef HAL_PCCARD_MODULE_ENABLED
353
+#include "stm32f4xx_hal_pccard.h"
354
+#endif /* HAL_PCCARD_MODULE_ENABLED */
355
+
356
+#ifdef HAL_SDRAM_MODULE_ENABLED
357
+#include "stm32f4xx_hal_sdram.h"
358
+#endif /* HAL_SDRAM_MODULE_ENABLED */
359
+
360
+#ifdef HAL_HASH_MODULE_ENABLED
361
+#include "stm32f4xx_hal_hash.h"
362
+#endif /* HAL_HASH_MODULE_ENABLED */
363
+
364
+#ifdef HAL_I2C_MODULE_ENABLED
365
+#include "stm32f4xx_hal_i2c.h"
366
+#endif /* HAL_I2C_MODULE_ENABLED */
367
+
368
+#ifdef HAL_SMBUS_MODULE_ENABLED
369
+#include "stm32f4xx_hal_smbus.h"
370
+#endif /* HAL_SMBUS_MODULE_ENABLED */
371
+
372
+#ifdef HAL_I2S_MODULE_ENABLED
373
+#include "stm32f4xx_hal_i2s.h"
374
+#endif /* HAL_I2S_MODULE_ENABLED */
375
+
376
+#ifdef HAL_IWDG_MODULE_ENABLED
377
+#include "stm32f4xx_hal_iwdg.h"
378
+#endif /* HAL_IWDG_MODULE_ENABLED */
379
+
380
+#ifdef HAL_LTDC_MODULE_ENABLED
381
+#include "stm32f4xx_hal_ltdc.h"
382
+#endif /* HAL_LTDC_MODULE_ENABLED */
383
+
384
+#ifdef HAL_PWR_MODULE_ENABLED
385
+#include "stm32f4xx_hal_pwr.h"
386
+#endif /* HAL_PWR_MODULE_ENABLED */
387
+
388
+#ifdef HAL_RNG_MODULE_ENABLED
389
+#include "stm32f4xx_hal_rng.h"
390
+#endif /* HAL_RNG_MODULE_ENABLED */
391
+
392
+#ifdef HAL_RTC_MODULE_ENABLED
393
+#include "stm32f4xx_hal_rtc.h"
394
+#endif /* HAL_RTC_MODULE_ENABLED */
395
+
396
+#ifdef HAL_SAI_MODULE_ENABLED
397
+#include "stm32f4xx_hal_sai.h"
398
+#endif /* HAL_SAI_MODULE_ENABLED */
399
+
400
+#ifdef HAL_SD_MODULE_ENABLED
401
+#include "stm32f4xx_hal_sd.h"
402
+#endif /* HAL_SD_MODULE_ENABLED */
403
+
404
+#ifdef HAL_SPI_MODULE_ENABLED
405
+#include "stm32f4xx_hal_spi.h"
406
+#endif /* HAL_SPI_MODULE_ENABLED */
407
+
408
+#ifdef HAL_TIM_MODULE_ENABLED
409
+#include "stm32f4xx_hal_tim.h"
410
+#endif /* HAL_TIM_MODULE_ENABLED */
411
+
412
+#ifdef HAL_UART_MODULE_ENABLED
413
+#include "stm32f4xx_hal_uart.h"
414
+#endif /* HAL_UART_MODULE_ENABLED */
415
+
416
+#ifdef HAL_USART_MODULE_ENABLED
417
+#include "stm32f4xx_hal_usart.h"
418
+#endif /* HAL_USART_MODULE_ENABLED */
419
+
420
+#ifdef HAL_IRDA_MODULE_ENABLED
421
+#include "stm32f4xx_hal_irda.h"
422
+#endif /* HAL_IRDA_MODULE_ENABLED */
423
+
424
+#ifdef HAL_SMARTCARD_MODULE_ENABLED
425
+#include "stm32f4xx_hal_smartcard.h"
426
+#endif /* HAL_SMARTCARD_MODULE_ENABLED */
427
+
428
+#ifdef HAL_WWDG_MODULE_ENABLED
429
+#include "stm32f4xx_hal_wwdg.h"
430
+#endif /* HAL_WWDG_MODULE_ENABLED */
431
+
432
+#ifdef HAL_PCD_MODULE_ENABLED
433
+#include "stm32f4xx_hal_pcd.h"
434
+#endif /* HAL_PCD_MODULE_ENABLED */
435
+
436
+#ifdef HAL_HCD_MODULE_ENABLED
437
+#include "stm32f4xx_hal_hcd.h"
438
+#endif /* HAL_HCD_MODULE_ENABLED */
439
+
440
+#ifdef HAL_DSI_MODULE_ENABLED
441
+#include "stm32f4xx_hal_dsi.h"
442
+#endif /* HAL_DSI_MODULE_ENABLED */
443
+
444
+#ifdef HAL_QSPI_MODULE_ENABLED
445
+#include "stm32f4xx_hal_qspi.h"
446
+#endif /* HAL_QSPI_MODULE_ENABLED */
447
+
448
+#ifdef HAL_CEC_MODULE_ENABLED
449
+#include "stm32f4xx_hal_cec.h"
450
+#endif /* HAL_CEC_MODULE_ENABLED */
451
+
452
+#ifdef HAL_FMPI2C_MODULE_ENABLED
453
+#include "stm32f4xx_hal_fmpi2c.h"
454
+#endif /* HAL_FMPI2C_MODULE_ENABLED */
455
+
456
+#ifdef HAL_SPDIFRX_MODULE_ENABLED
457
+#include "stm32f4xx_hal_spdifrx.h"
458
+#endif /* HAL_SPDIFRX_MODULE_ENABLED */
459
+
460
+#ifdef HAL_DFSDM_MODULE_ENABLED
461
+#include "stm32f4xx_hal_dfsdm.h"
462
+#endif /* HAL_DFSDM_MODULE_ENABLED */
463
+
464
+#ifdef HAL_LPTIM_MODULE_ENABLED
465
+#include "stm32f4xx_hal_lptim.h"
466
+#endif /* HAL_LPTIM_MODULE_ENABLED */
467
+
468
+#ifdef HAL_MMC_MODULE_ENABLED
469
+#include "stm32f4xx_hal_mmc.h"
470
+#endif /* HAL_MMC_MODULE_ENABLED */
471
+
472
+/* Exported macro ------------------------------------------------------------*/
473
+#ifdef USE_FULL_ASSERT
474
+/**
475
+  * @brief  The assert_param macro is used for function's parameters check.
476
+  * @param  expr If expr is false, it calls assert_failed function
477
+  *         which reports the name of the source file and the source
478
+  *         line number of the call that failed.
479
+  *         If expr is true, it returns no value.
480
+  * @retval None
481
+  */
482
+#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
483
+/* Exported functions ------------------------------------------------------- */
484
+void assert_failed(uint8_t *file, uint32_t line);
485
+#else
486
+#define assert_param(expr) ((void)0U)
487
+#endif /* USE_FULL_ASSERT */
488
+
489
+#ifdef __cplusplus
490
+}
491
+#endif
492
+
493
+#endif /* __STM32F4xx_HAL_CONF_CUSTOM_H */
494
+
495
+
496
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

+ 187
- 0
buildroot/share/PlatformIO/variants/STEVAL_F401VE/ldscript.ld Datei anzeigen

@@ -0,0 +1,187 @@
1
+/*
2
+*****************************************************************************
3
+**
4
+**  File        : ldscript.ld
5
+**
6
+**  Abstract    : Linker script for STM32F401RETx Device with
7
+**                512KByte FLASH, 96KByte RAM
8
+**
9
+**                Set heap size, stack size and stack location according
10
+**                to application requirements.
11
+**
12
+**                Set memory bank area and size if external memory is used.
13
+**
14
+**  Target      : STMicroelectronics STM32
15
+**
16
+**
17
+**  Distribution: The file is distributed as is, without any warranty
18
+**                of any kind.
19
+**
20
+*****************************************************************************
21
+** @attention
22
+**
23
+** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
24
+**
25
+** Redistribution and use in source and binary forms, with or without modification,
26
+** are permitted provided that the following conditions are met:
27
+**   1. Redistributions of source code must retain the above copyright notice,
28
+**      this list of conditions and the following disclaimer.
29
+**   2. Redistributions in binary form must reproduce the above copyright notice,
30
+**      this list of conditions and the following disclaimer in the documentation
31
+**      and/or other materials provided with the distribution.
32
+**   3. Neither the name of Ac6 nor the names of its contributors
33
+**      may be used to endorse or promote products derived from this software
34
+**      without specific prior written permission.
35
+**
36
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
37
+** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38
+** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39
+** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
40
+** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
41
+** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
42
+** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
43
+** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44
+** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46
+**
47
+*****************************************************************************
48
+*/
49
+
50
+/* Entry Point */
51
+ENTRY(Reset_Handler)
52
+
53
+/* Highest address of the user mode stack */
54
+_estack = 0x20018000;    /* end of RAM */
55
+/* Generate a link error if heap and stack don't fit into RAM */
56
+_Min_Heap_Size = 0x200;      /* required amount of heap  */
57
+_Min_Stack_Size = 0x400; /* required amount of stack */
58
+
59
+/* Specify the memory areas */
60
+MEMORY
61
+{
62
+FLASH (rx)      : ORIGIN = 0x08000000, LENGTH = 512K
63
+RAM (xrw)      : ORIGIN = 0x20000000, LENGTH = 96K
64
+}
65
+
66
+/* Define output sections */
67
+SECTIONS
68
+{
69
+  /* The startup code goes first into FLASH */
70
+  .isr_vector :
71
+  {
72
+    . = ALIGN(4);
73
+    KEEP(*(.isr_vector)) /* Startup code */
74
+    . = ALIGN(4);
75
+  } >FLASH
76
+
77
+  /* The program code and other data goes into FLASH */
78
+  .text :
79
+  {
80
+    . = ALIGN(4);
81
+    *(.text)           /* .text sections (code) */
82
+    *(.text*)          /* .text* sections (code) */
83
+    *(.glue_7)         /* glue arm to thumb code */
84
+    *(.glue_7t)        /* glue thumb to arm code */
85
+    *(.eh_frame)
86
+
87
+    KEEP (*(.init))
88
+    KEEP (*(.fini))
89
+
90
+    . = ALIGN(4);
91
+    _etext = .;        /* define a global symbols at end of code */
92
+  } >FLASH
93
+
94
+  /* Constant data goes into FLASH */
95
+  .rodata :
96
+  {
97
+    . = ALIGN(4);
98
+    *(.rodata)         /* .rodata sections (constants, strings, etc.) */
99
+    *(.rodata*)        /* .rodata* sections (constants, strings, etc.) */
100
+    . = ALIGN(4);
101
+  } >FLASH
102
+
103
+  .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
104
+  .ARM : {
105
+    __exidx_start = .;
106
+    *(.ARM.exidx*)
107
+    __exidx_end = .;
108
+  } >FLASH
109
+
110
+  .preinit_array     :
111
+  {
112
+    PROVIDE_HIDDEN (__preinit_array_start = .);
113
+    KEEP (*(.preinit_array*))
114
+    PROVIDE_HIDDEN (__preinit_array_end = .);
115
+  } >FLASH
116
+  .init_array :
117
+  {
118
+    PROVIDE_HIDDEN (__init_array_start = .);
119
+    KEEP (*(SORT(.init_array.*)))
120
+    KEEP (*(.init_array*))
121
+    PROVIDE_HIDDEN (__init_array_end = .);
122
+  } >FLASH
123
+  .fini_array :
124
+  {
125
+    PROVIDE_HIDDEN (__fini_array_start = .);
126
+    KEEP (*(SORT(.fini_array.*)))
127
+    KEEP (*(.fini_array*))
128
+    PROVIDE_HIDDEN (__fini_array_end = .);
129
+  } >FLASH
130
+
131
+  /* used by the startup to initialize data */
132
+  _sidata = LOADADDR(.data);
133
+
134
+  /* Initialized data sections goes into RAM, load LMA copy after code */
135
+  .data :
136
+  {
137
+    . = ALIGN(4);
138
+    _sdata = .;        /* create a global symbol at data start */
139
+    *(.data)           /* .data sections */
140
+    *(.data*)          /* .data* sections */
141
+
142
+    . = ALIGN(4);
143
+    _edata = .;        /* define a global symbol at data end */
144
+  } >RAM AT> FLASH
145
+
146
+
147
+  /* Uninitialized data section */
148
+  . = ALIGN(4);
149
+  .bss :
150
+  {
151
+    /* This is used by the startup in order to initialize the .bss secion */
152
+    _sbss = .;         /* define a global symbol at bss start */
153
+    __bss_start__ = _sbss;
154
+    *(.bss)
155
+    *(.bss*)
156
+    *(COMMON)
157
+
158
+    . = ALIGN(4);
159
+    _ebss = .;         /* define a global symbol at bss end */
160
+    __bss_end__ = _ebss;
161
+  } >RAM
162
+
163
+  /* User_heap_stack section, used to check that there is enough RAM left */
164
+  ._user_heap_stack :
165
+  {
166
+    . = ALIGN(4);
167
+    PROVIDE ( end = . );
168
+    PROVIDE ( _end = . );
169
+    . = . + _Min_Heap_Size;
170
+    . = . + _Min_Stack_Size;
171
+    . = ALIGN(4);
172
+  } >RAM
173
+
174
+
175
+
176
+  /* Remove information from the standard libraries */
177
+  /DISCARD/ :
178
+  {
179
+    libc.a ( * )
180
+    libm.a ( * )
181
+    libgcc.a ( * )
182
+  }
183
+
184
+  .ARM.attributes 0 : { *(.ARM.attributes) }
185
+}
186
+
187
+

+ 315
- 0
buildroot/share/PlatformIO/variants/STEVAL_F401VE/variant.h Datei anzeigen

@@ -0,0 +1,315 @@
1
+/*
2
+ *******************************************************************************
3
+ * Copyright (c) 2017, STMicroelectronics
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ *
9
+ * 1. Redistributions of source code must retain the above copyright notice,
10
+ *    this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ *    this list of conditions and the following disclaimer in the documentation
13
+ *    and/or other materials provided with the distribution.
14
+ * 3. Neither the name of STMicroelectronics nor the names of its contributors
15
+ *    may be used to endorse or promote products derived from this software
16
+ *    without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *******************************************************************************
29
+ */
30
+
31
+#ifndef _VARIANT_ARDUINO_STM32_
32
+#define _VARIANT_ARDUINO_STM32_
33
+/*----------------------------------------------------------------------------
34
+ *        Headers
35
+ *----------------------------------------------------------------------------*/
36
+
37
+#ifdef __cplusplus
38
+extern "C" {
39
+#endif // __cplusplus
40
+
41
+/*----------------------------------------------------------------------------
42
+ *        Pins
43
+ *----------------------------------------------------------------------------*/
44
+#if defined(ARDUINO_STEVAL)
45
+
46
+
47
+/*----------------------------------------------------------------------------
48
+ *        Pins
49
+ *----------------------------------------------------------------------------*/
50
+// USART1_MAIN
51
+#define PA9  0 //TX
52
+#define PA10 1 //RX
53
+
54
+// WIFI
55
+#define PD3   2 // CTS
56
+#define PD4   3 // RTS
57
+#define PD5   4 // TX
58
+#define PD6   5 // RX
59
+#define PB5   6 // WIFI_WAKEUP
60
+#define PE11  7 // WIFI_RESET
61
+#define PE12  8 // WIFI_BOOT
62
+
63
+// STATUS_LED
64
+#define PE1   9 // STATUS_LED
65
+
66
+// SPI USER
67
+#define PB12 10 // SPI_CS
68
+#define PB15 11 // SPI_MOSI
69
+#define PB14 12 // SPI_MISO
70
+#define PB13 13 // SPI_SCK
71
+
72
+// I2C USER
73
+#define PB7  14 // SDA
74
+#define PB6  15 // SCL
75
+
76
+// SPI
77
+#define PA4  16 // SPI_CS
78
+#define PA5  17 // SPI_SCK
79
+#define PA6  18 // SPI_MISO
80
+#define PA7  19 // SPI_MOSI
81
+
82
+// JTAG
83
+#define PA13 20 // JTAG_TMS/SWDIO
84
+#define PA14 21 // JTAG_TCK/SWCLK
85
+#define PB3  22 // JTAG_TDO/SWO
86
+
87
+// SDCARD
88
+#define PC8  23 // SDIO_D0
89
+#define PC9  24 // SDIO_D1
90
+#define PA15 25 // SD_CARD_DETECT
91
+#define PC10 26 // SDIO_D2
92
+#define PC11 27 // SDIO_D3
93
+#define PC12 28 // SDIO_CK
94
+#define PD2  29 // SDIO_CMD
95
+
96
+// OTG
97
+#define PA11 30 //OTG_DM
98
+#define PA12 31 //OTG_DP
99
+
100
+// IR/PROBE
101
+#define PD1  32 //IR_OUT
102
+#define PC1  33 //IR_ON
103
+
104
+// USER_PINS
105
+#define PD7  34 // USER3
106
+#define PB9  35 // USER1
107
+#define PE0  36 // USER2
108
+#define PB4  37 // USER4
109
+
110
+// USERKET
111
+#define PE7  38 // USER_BUTTON
112
+
113
+// ENDSTOPS
114
+#define PD8  39 // X_STOP
115
+#define PD9  40 // Y_STOP
116
+#define PD10 41 // Z_STOP
117
+#define PD11 42 // U_STOP
118
+#define PA8  43 // V_STOP
119
+#define PD0  44 // W_STOP
120
+
121
+// HEATERS
122
+#define PD13 45 // BED_HEAT_2
123
+#define PD14 46 // BED_HEAT_1
124
+#define PD15 47 // BED_HEAT_3
125
+#define PC7  48 // E1_HEAT_PWM
126
+#define PB0  49 // E2_HEAT_PWM
127
+#define PB1  50 // E3_HEAT_PWM
128
+
129
+// THERMISTOR
130
+#define PC2  51 // BED_THERMISTOR_1
131
+#define PC3  52 // BED_THERMISTOR_2
132
+#define PA3  53 // BED_THERMISTOR_3
133
+#define PA0  54 // E1_THERMISTOR
134
+#define PA1  55 // E2_THERMISTOR
135
+#define PA2  56 // E3_THERMISTOR
136
+
137
+// FANS
138
+#define PC4  57 // E1_FAN
139
+#define PC5  58 // E2_FAN
140
+#define PE8  59 // E3_FAN
141
+
142
+// X_MOTOR
143
+#define PE13 60 // X_RESET
144
+#define PE14 61 // X_PWM
145
+#define PE15 62 // X_DIR
146
+
147
+// Y_MOTOR
148
+#define PE10 63 // Y_RESET
149
+#define PB10 64 // Y_PWM
150
+#define PE9  65 // Y_DIR
151
+
152
+// Z_MOTOR
153
+#define PC15 66 // Z_RESET
154
+#define PC6  67 // Z_PWM
155
+#define PC0  68 // Z_DIR
156
+
157
+// E1_MOTOR
158
+#define PC14 69 // E1_RESET
159
+#define PC13 70 // E1_DIR
160
+#define PD12 71 // E1_PWM
161
+
162
+// E2_MOTOR
163
+#define PE4  72 // E2_RESET
164
+#define PE5  73 // E2_PWM
165
+#define PE6  74 // E2_DIR
166
+
167
+// E3_MOTOR
168
+#define PE3  75 // E3_RESET
169
+#define PE2  76 // E3_DIR
170
+#define PB8  77 // E3_PWM
171
+
172
+// This must be a literal
173
+#define NUM_DIGITAL_PINS        78
174
+// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
175
+#define NUM_ANALOG_INPUTS       6
176
+#define NUM_ANALOG_FIRST        51
177
+
178
+// On-board LED pin number
179
+#define LED_BUILTIN             PE1
180
+#define LED_GREEN               LED_BUILTIN
181
+
182
+// On-board user button
183
+#define USER_BTN                PE7
184
+
185
+// UART Definitions
186
+#define SERIAL_UART_INSTANCE    1 //Connected to ST-Link
187
+
188
+// Default pin used for 'Serial' instance (ex: ST-Link)
189
+// Mandatory for Firmata
190
+#define PIN_SERIAL_RX           PA10
191
+#define PIN_SERIAL_TX           PA9
192
+
193
+/* SD detect signal */
194
+/*
195
+ * By default, R67 is not provided, so SD card detect is not used.
196
+ * Note: SD CD (pin 16 of expansion connector J23) can be connected
197
+ * to GND in order to be able to use SD_DETECT_PIN
198
+ */
199
+/*#define SD_DETECT_PIN           PA15*/
200
+
201
+/* HAL configuration */
202
+#define HSE_VALUE               25000000U
203
+
204
+/* Extra HAL modules */
205
+#define HAL_SD_MODULE_ENABLED
206
+
207
+#endif
208
+
209
+#ifdef __cplusplus
210
+} // extern "C"
211
+#endif
212
+/*----------------------------------------------------------------------------
213
+ *        Arduino objects - C++ only
214
+ *----------------------------------------------------------------------------*/
215
+
216
+#ifdef __cplusplus
217
+// These serial port names are intended to allow libraries and architecture-neutral
218
+// sketches to automatically default to the correct port name for a particular type
219
+// of use.  For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
220
+// the first hardware serial port whose RX/TX pins are not dedicated to another use.
221
+//
222
+// SERIAL_PORT_MONITOR        Port which normally prints to the Arduino Serial Monitor
223
+//
224
+// SERIAL_PORT_USBVIRTUAL     Port which is USB virtual serial
225
+//
226
+// SERIAL_PORT_LINUXBRIDGE    Port which connects to a Linux system via Bridge library
227
+//
228
+// SERIAL_PORT_HARDWARE       Hardware serial port, physical RX & TX pins.
229
+//
230
+// SERIAL_PORT_HARDWARE_OPEN  Hardware serial ports which are open for use.  Their RX & TX
231
+//                            pins are NOT connected to anything by default.
232
+#define SERIAL_PORT_MONITOR     Serial
233
+#define SERIAL_PORT_HARDWARE    Serial1
234
+#endif
235
+
236
+#endif // _VARIANT_ARDUINO_STM32_
237
+
238
+// PA0  54 // E1_THERMISTOR
239
+// PA1  55 // E2_THERMISTOR
240
+// PA2  56 // E3_THERMISTOR
241
+// PA3  53 // BED_THERMISTOR_3
242
+// PA4  16 // SPI_CS
243
+// PA5  17 // SPI_SCK
244
+// PA6  18 // SPI_MISO
245
+// PA7  19 // SPI_MOSI
246
+// PA8  43 // V_STOP
247
+// PA9   0 //TX
248
+// PA10  1 //RX
249
+// PA11 30 //OTG_DM
250
+// PA12 31 //OTG_DP
251
+// PA13 20 // JTAG_TMS/SWDIO
252
+// PA14 21 // JTAG_TCK/SWCLK
253
+// PA15 25 // SD_CARD_DETECT
254
+// PB0  49 // E2_HEAT_PWM
255
+// PB1  50 // E3_HEAT_PWM
256
+// PB3  22 // JTAG_TDO/SWO
257
+// PB4  37 // USER4
258
+// PB5   6 // WIFI_WAKEUP
259
+// PB6  15 // SCL
260
+// PB7  14 // SDA
261
+// PB8  77 // E3_PWM
262
+// PB9  35 // USER1
263
+// PB10 64 // Y_PWM
264
+// PB12 10 // SPI_CS
265
+// PB13 13 // SPI_SCK
266
+// PB14 12 // SPI_MISO
267
+// PB15 11 // SPI_MOSI
268
+// PC0  68 // Z_DIR
269
+// PC1  33 //IR_ON
270
+// PC2  51 // BED_THERMISTOR_1
271
+// PC3  52 // BED_THERMISTOR_2
272
+// PC4  57 // E1_FAN
273
+// PC5  58 // E2_FAN
274
+// PC6  67 // Z_PWM
275
+// PC7  48 // E1_HEAT_PWM
276
+// PC8  23 // SDIO_D0
277
+// PC9  24 // SDIO_D1
278
+// PC10 26 // SDIO_D2
279
+// PC11 27 // SDIO_D3
280
+// PC12 28 // SDIO_CK
281
+// PC13 70 // E1_DIR
282
+// PC14 69 // E1_RESET
283
+// PC15 66 // Z_RESET
284
+// PD0  44 // W_STOP
285
+// PD1  32 //IR_OUT
286
+// PD2  29 // SDIO_CMD
287
+// PD3   2 // CTS
288
+// PD4   3 // RTS
289
+// PD5   4 // TX
290
+// PD6   5 // RX
291
+// PD7  34 // USER3
292
+// PD8  39 // X_STOP
293
+// PD9  40 // Y_STOP
294
+// PD10 41 // Z_STOP
295
+// PD11 42 // U_STOP
296
+// PD12 71 // E1_PWM
297
+// PD13 45 // BED_HEAT_2
298
+// PD14 46 // BED_HEAT_1
299
+// PD15 47 // BED_HEAT_3
300
+// PE0  36 // USER2
301
+// PE1   9 // STATUS_LED
302
+// PE2  76 // E3_DIR
303
+// PE3  75 // E3_RESET
304
+// PE4  72 // E2_RESET
305
+// PE5  73 // E2_PWM
306
+// PE6  74 // E2_DIR
307
+// PE7  38 // USER_BUTTON
308
+// PE8  59 // E3_FAN
309
+// PE9  65 // Y_DIR
310
+// PE10 63 // Y_RESET
311
+// PE11  7 // WIFI_RESET
312
+// PE12  8 // WIFI_BOOT
313
+// PE13 60 // X_RESET
314
+// PE14 61 // X_PWM
315
+// PE15 62 // X_DIR

+ 19
- 0
platformio.ini Datei anzeigen

@@ -581,6 +581,25 @@ src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
581 581
 lib_ignore    = Adafruit NeoPixel
582 582
 monitor_speed = 250000
583 583
 
584
+#
585
+# STM32F401VE
586
+# 'STEVAL-3DP001)' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
587
+#
588
+[env:STM32F401VE_STEVAL]
589
+platform          = ststm32
590
+board             = STEVAL_STM32F401VE
591
+platform_packages = framework-arduinoststm32@>=3.10700.191028
592
+build_flags       = ${common.build_flags}
593
+ -DTARGET_STM32F4 -DARDUINO_STEVAL -DSTM32F401xE
594
+ -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STEVAL_F401VE\"
595
+ -DDISABLE_GENERIC_SERIALUSB
596
+ -IMarlin/src/HAL/HAL_STM32
597
+build_unflags     = -std=gnu++11
598
+extra_scripts     = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
599
+  buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
600
+lib_ignore        = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, SoftwareSerial
601
+src_filter        = ${common.default_src_filter} +<src/HAL/HAL_STM32>
602
+monitor_speed     = 250000
584 603
 
585 604
 #
586 605
 # FLYF407ZG

Laden…
Abbrechen
Speichern