Browse Source

🏗️ Define HAL_STM32 for HAL/STM32 (#22537)

Scott Lahteine 2 years ago
parent
commit
76c10b3e02
No account linked to committer's email address

+ 4
- 2
Marlin/src/HAL/STM32/HAL.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "HAL.h"
26 28
 #include "usb_serial.h"
@@ -165,4 +167,4 @@ void HAL_SYSTICK_Callback() {
165 167
   if (systick_user_callback) systick_user_callback();
166 168
 }
167 169
 
168
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
170
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/HAL_MinSerial.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "../../inc/MarlinConfigPre.h"
26 28
 
@@ -149,4 +151,4 @@ extern "C" {
149 151
 #endif
150 152
 
151 153
 #endif // POSTMORTEM_DEBUGGING
152
-#endif // ARDUINO_ARCH_STM32
154
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/HAL_SPI.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "../../inc/MarlinConfig.h"
26 28
 
@@ -224,4 +226,4 @@ static SPISettings spiConfig;
224 226
 
225 227
 #endif // SOFTWARE_SPI
226 228
 
227
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
229
+#endif // HAL_STM32

+ 2
- 2
Marlin/src/HAL/STM32/MarlinSPI.cpp View File

@@ -19,7 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1) && !defined(STM32H7xx)
22
+#if defined(HAL_STM32) && !defined(STM32H7xx)
23 23
 
24 24
 #include "MarlinSPI.h"
25 25
 
@@ -165,4 +165,4 @@ uint8_t MarlinSPI::dmaSend(const void * transmitBuf, uint16_t length, bool minc)
165 165
   return 1;
166 166
 }
167 167
 
168
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1 && !STM32H7xx
168
+#endif // HAL_STM32 && !STM32H7xx

+ 4
- 2
Marlin/src/HAL/STM32/MarlinSerial.cpp View File

@@ -16,7 +16,9 @@
16 16
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17 17
  *
18 18
  */
19
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
19
+#include "../platforms.h"
20
+
21
+#ifdef HAL_STM32
20 22
 
21 23
 #include "../../inc/MarlinConfig.h"
22 24
 #include "MarlinSerial.h"
@@ -101,4 +103,4 @@ void MarlinSerial::_rx_complete_irq(serial_t *obj) {
101 103
   }
102 104
 }
103 105
 
104
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
106
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/Sd2Card_sdio_stm32duino.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../inc/MarlinConfig.h"
25 27
 
@@ -320,4 +322,4 @@ extern "C" void SDIO_IRQHandler(void) { HAL_SD_IRQHandler(&hsd); }
320 322
 extern "C" void DMA_IRQ_HANDLER(void) { HAL_DMA_IRQHandler(&hdma_sdio); }
321 323
 
322 324
 #endif // SDIO_SUPPORT
323
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
325
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/Servo.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "../../inc/MarlinConfig.h"
26 28
 
@@ -107,4 +109,4 @@ void libServo::setInterruptPriority(uint32_t preemptPriority, uint32_t subPriori
107 109
 }
108 110
 
109 111
 #endif // HAS_SERVOS
110
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
112
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/eeprom_flash.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "../../inc/MarlinConfig.h"
26 28
 
@@ -272,4 +274,4 @@ bool PersistentStore::read_data(int &pos, uint8_t *value, size_t size, uint16_t
272 274
 }
273 275
 
274 276
 #endif // FLASH_EEPROM_EMULATION
275
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
277
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/eeprom_sdcard.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 /**
25 27
  * Implementation of EEPROM settings in SD Card
@@ -88,4 +90,4 @@ bool PersistentStore::read_data(int &pos, uint8_t *value, const size_t size, uin
88 90
 }
89 91
 
90 92
 #endif // SDCARD_EEPROM_EMULATION
91
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
93
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/eeprom_sram.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "../../inc/MarlinConfig.h"
26 28
 
@@ -65,4 +67,4 @@ bool PersistentStore::read_data(int &pos, uint8_t *value, size_t size, uint16_t
65 67
 }
66 68
 
67 69
 #endif // SRAM_EEPROM_EMULATION
68
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
70
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/eeprom_wired.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "../../inc/MarlinConfig.h"
26 28
 
@@ -75,4 +77,4 @@ bool PersistentStore::read_data(int &pos, uint8_t *value, size_t size, uint16_t
75 77
 }
76 78
 
77 79
 #endif // USE_WIRED_EEPROM
78
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
80
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/fast_pwm.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../inc/MarlinConfigPre.h"
25 27
 
@@ -56,4 +58,4 @@ void set_pwm_duty(const pin_t pin, const uint16_t v, const uint16_t v_size/*=255
56 58
 }
57 59
 
58 60
 #endif // NEEDS_HARDWARE_PWM
59
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
61
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/fastio.cpp View File

@@ -20,7 +20,9 @@
20 20
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 21
  *
22 22
  */
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
23
+#include "../platforms.h"
24
+
25
+#ifdef HAL_STM32
24 26
 
25 27
 #include "../../inc/MarlinConfig.h"
26 28
 
@@ -31,4 +33,4 @@ void FastIO_init() {
31 33
     FastIOPortMap[STM_PORT(digitalPin[i])] = get_GPIO_Port(STM_PORT(digitalPin[i]));
32 34
 }
33 35
 
34
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
36
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/msc_sd.cpp View File

@@ -13,7 +13,9 @@
13 13
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
14 14
  *
15 15
  */
16
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
16
+#include "../platforms.h"
17
+
18
+#ifdef HAL_STM32
17 19
 
18 20
 #include "../../inc/MarlinConfigPre.h"
19 21
 
@@ -125,4 +127,4 @@ void MSC_SD_init() {
125 127
 }
126 128
 
127 129
 #endif // HAS_SD_HOST_DRIVE
128
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
130
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/tft/gt911.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../../inc/MarlinConfig.h"
25 27
 
@@ -199,4 +201,4 @@ bool GT911::getPoint(int16_t *x, int16_t *y) {
199 201
 }
200 202
 
201 203
 #endif // TFT_TOUCH_DEVICE_GT911
202
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
204
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/tft/tft_fsmc.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../../inc/MarlinConfig.h"
25 27
 
@@ -178,4 +180,4 @@ void TFT_FSMC::TransmitDMA(uint32_t MemoryIncrease, uint16_t *Data, uint16_t Cou
178 180
 }
179 181
 
180 182
 #endif // HAS_FSMC_TFT
181
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
183
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/tft/tft_ltdc.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../../inc/MarlinConfig.h"
25 27
 
@@ -384,4 +386,4 @@ void TFT_LTDC::TransmitDMA(uint32_t MemoryIncrease, uint16_t *Data, uint16_t Cou
384 386
 }
385 387
 
386 388
 #endif // HAS_LTDC_TFT
387
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
389
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/tft/tft_spi.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../../inc/MarlinConfig.h"
25 27
 
@@ -240,4 +242,4 @@ void TFT_SPI::TransmitDMA(uint32_t MemoryIncrease, uint16_t *Data, uint16_t Coun
240 242
 }
241 243
 
242 244
 #endif // HAS_SPI_TFT
243
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
245
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/tft/xpt2046.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../../inc/MarlinConfig.h"
25 27
 
@@ -167,4 +169,4 @@ uint16_t XPT2046::SoftwareIO(uint16_t data) {
167 169
 }
168 170
 
169 171
 #endif // HAS_TFT_XPT2046
170
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
172
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/timers.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../inc/MarlinConfig.h"
25 27
 
@@ -319,4 +321,4 @@ static constexpr bool verify_no_timer_conflicts() {
319 321
 // when hovering over it, making it easy to identify the conflicting timers.
320 322
 static_assert(verify_no_timer_conflicts(), "One or more timer conflict detected. Examine \"timers_in_use\" to help identify conflict.");
321 323
 
322
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
324
+#endif // HAL_STM32

+ 3
- 2
Marlin/src/HAL/STM32/usb_host.cpp View File

@@ -19,8 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#include "../platforms.h"
22 23
 
23
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
24
+#ifdef HAL_STM32
24 25
 
25 26
 #include "../../inc/MarlinConfig.h"
26 27
 
@@ -114,4 +115,4 @@ uint8_t BulkStorage::Write(uint8_t lun, uint32_t addr, uint16_t bsize, uint8_t b
114 115
 }
115 116
 
116 117
 #endif // USE_OTG_USB_HOST && USBHOST
117
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
118
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/usb_serial.cpp View File

@@ -16,7 +16,9 @@
16 16
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17 17
  *
18 18
  */
19
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
19
+#include "../platforms.h"
20
+
21
+#ifdef HAL_STM32
20 22
 
21 23
 #include "../../inc/MarlinConfigPre.h"
22 24
 
@@ -51,4 +53,4 @@ void USB_Hook_init() {
51 53
 }
52 54
 
53 55
 #endif // EMERGENCY_PARSER && USBD_USE_CDC
54
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
56
+#endif // HAL_STM32

+ 4
- 2
Marlin/src/HAL/STM32/watchdog.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../inc/MarlinConfigPre.h"
25 27
 
@@ -46,4 +48,4 @@ void HAL_watchdog_refresh() {
46 48
 }
47 49
 
48 50
 #endif // USE_WATCHDOG
49
-#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC && !MAPLE_STM32F1
51
+#endif // HAL_STM32

+ 3
- 0
Marlin/src/HAL/platforms.h View File

@@ -38,6 +38,9 @@
38 38
 #elif defined(__STM32F1__) || defined(TARGET_STM32F1)
39 39
   #define HAL_PATH(PATH, NAME) XSTR(PATH/STM32F1/NAME)
40 40
 #elif defined(ARDUINO_ARCH_STM32)
41
+  #ifndef HAL_STM32
42
+    #define HAL_STM32
43
+  #endif
41 44
   #define HAL_PATH(PATH, NAME) XSTR(PATH/STM32/NAME)
42 45
 #elif defined(ARDUINO_ARCH_ESP32)
43 46
   #define HAL_PATH(PATH, NAME) XSTR(PATH/ESP32/NAME)

+ 1
- 1
Marlin/src/lcd/extui/ftdi_eve_touch_ui/ftdi_eve_lib/compat.h View File

@@ -288,7 +288,7 @@
288 288
 
289 289
   // Remove compiler warning on an unused variable
290 290
   #ifndef UNUSED
291
-    #if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
291
+    #ifdef HAL_STM32
292 292
       #define UNUSED(X) (void)X
293 293
     #else
294 294
       #define UNUSED(x) ((void)(x))

+ 4
- 2
Marlin/src/lcd/extui/mks_ui/wifiSerial_STM32.cpp View File

@@ -19,7 +19,9 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
-#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
22
+#include "../../../HAL/platforms.h"
23
+
24
+#ifdef HAL_STM32
23 25
 
24 26
 #include "../../../inc/MarlinConfigPre.h"
25 27
 
@@ -349,4 +351,4 @@ int WifiSerial::write(uint8_t c) {
349 351
 }
350 352
 
351 353
 #endif // HAS_TFT_LVGL_UI && MKS_WIFI_MODULE
352
-#endif // !__STM32F1__
354
+#endif // HAL_STM32

+ 1
- 1
ini/features.ini View File

@@ -31,7 +31,7 @@ LIB_INTERNAL_MAX31865                  = src_filter=+<src/libs/MAX31865.cpp>
31 31
 NEOPIXEL_LED                           = adafruit/Adafruit NeoPixel@~1.8.0
32 32
                                          src_filter=+<src/feature/leds/neopixel.cpp>
33 33
 I2C_AMMETER                            = peterus/INA226Lib@1.1.2
34
-USES_LIQUIDCRYSTAL                     = fmalpartida/LiquidCrystal@1.5.0
34
+USES_LIQUIDCRYSTAL                     = LiquidCrystal=https://github.com/MarlinFirmware/New-LiquidCrystal/archive/1.5.1.zip
35 35
 USES_LIQUIDCRYSTAL_I2C                 = marcoschwartz/LiquidCrystal_I2C@1.1.4
36 36
 USES_LIQUIDTWI2                        = LiquidTWI2@1.2.7
37 37
 HAS_WIRED_LCD                          = src_filter=+<src/lcd/lcdprint.cpp>

+ 1
- 1
ini/stm32-common.ini View File

@@ -13,7 +13,7 @@
13 13
 platform         = ststm32@~12.1
14 14
 board_build.core = stm32
15 15
 build_flags      = ${common.build_flags}
16
-                   -std=gnu++14
16
+                   -std=gnu++14 -DHAL_STM32
17 17
                    -DUSBCON -DUSBD_USE_CDC
18 18
                    -DTIM_IRQ_PRIO=13
19 19
                    -DADC_RESOLUTION=12

+ 1
- 1
ini/stm32f0.ini View File

@@ -10,7 +10,7 @@
10 10
 # Naming Example: STM32F070CBT6
11 11
 #
12 12
 #   F : Foundation
13
-#   0 : Cortex M0 core
13
+#   0 : Cortex M0 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
14 14
 #  70 : Line/Features
15 15
 #   C : 48 pins  (R:64 or 66, F:20)
16 16
 #   B : 128KB Flash-memory  (C:256KB, D:384KB, E:512KB, G:1024KB)

+ 1
- 1
ini/stm32f1-maple.ini View File

@@ -10,7 +10,7 @@
10 10
 # Naming Example: STM32F103RCT6
11 11
 #
12 12
 #   F : Foundation (sometimes High Performance F2/F4)
13
-#   1 : Cortex M1 core
13
+#   1 : Cortex M3 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
14 14
 #  03 : Line/Features
15 15
 #   R : 64 or 66 pins  (V:100, Z:144, I:176)
16 16
 #   C : 256KB Flash-memory  (D:384KB, E:512KB, G:1024KB)

+ 1
- 1
ini/stm32f1.ini View File

@@ -10,7 +10,7 @@
10 10
 # Naming Example: STM32F103RCT6
11 11
 #
12 12
 #   F : Foundation (sometimes High Performance F2/F4)
13
-#   1 : Cortex M3 core
13
+#   1 : Cortex M3 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
14 14
 #  03 : Line/Features
15 15
 #   R : 64 or 66 pins  (T:36, C:48, V:100, Z:144, I:176)
16 16
 #   C : 256KB Flash-memory  (B: 128KB, D:384KB, E:512KB, G:1024KB)

+ 1
- 1
ini/stm32f4.ini View File

@@ -10,7 +10,7 @@
10 10
 # Naming Example: STM32F401RGT6
11 11
 #
12 12
 #   F : Foundation (sometimes High Performance F2/F4)
13
-#   4 : Cortex M4 core
13
+#   4 : Cortex M4 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
14 14
 #  01 : Line/Features
15 15
 #   R : 64 or 66 pins  (T:36, C:48 or 49, M:81, V:100, Z:144, I:176)
16 16
 #   G : 1024KB Flash-memory  (B:128KB, C:256KB, D:384KB, E:512KB)

+ 1
- 1
ini/stm32f7.ini View File

@@ -10,7 +10,7 @@
10 10
 # Naming Example: STM32F767ZIT6
11 11
 #
12 12
 #   F : Foundation (sometimes High Performance F2/F4)
13
-#   7 : Cortex M7 core
13
+#   7 : Cortex M7 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
14 14
 #  67 : Line/Features
15 15
 #   Z : 144 pins
16 16
 #   I : 4096KB Flash-memory

+ 1
- 1
ini/stm32h7.ini View File

@@ -10,7 +10,7 @@
10 10
 # Naming Example: STM32H743IIT6
11 11
 #
12 12
 #   H : High Performance
13
-#   7 : Cortex M7 core
13
+#   7 : Cortex M7 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
14 14
 #  43 : Line/Features
15 15
 #   I : 176 pins
16 16
 #   I : 2048KB Flash-memory

Loading…
Cancel
Save