Przeglądaj źródła

🔨 Fix Serial+MSC for _USB envs (#22116)

Victor Oliveira 3 lat temu
rodzic
commit
0669053b78
No account linked to committer's email address

+ 1
- 1
buildroot/share/PlatformIO/scripts/generic_create_variant.py Wyświetl plik

@@ -28,7 +28,7 @@ if len(platform_packages) == 0:
28 28
 else:
29 29
     platform_name = PackageSpec(platform_packages[0]).name
30 30
 
31
-if platform_name in [ "usb-host-msc", "usb-host-msc-cdc-msc", "usb-host-msc-cdc-msc-2", "tool-stm32duino" ]:
31
+if platform_name in [ "usb-host-msc", "usb-host-msc-cdc-msc", "usb-host-msc-cdc-msc-2", "usb-host-msc-cdc-msc-3", "tool-stm32duino" ]:
32 32
     platform_name = "framework-arduinoststm32"
33 33
 
34 34
 FRAMEWORK_DIR = platform.get_package_dir(platform_name)

+ 4
- 6
ini/stm32f1.ini Wyświetl plik

@@ -89,14 +89,13 @@ board_upload.offset_address = 0x08007000
89 89
 [env:STM32F103RC_btt_USB]
90 90
 extends           = env:STM32F103RC_btt
91 91
 platform          = ${common_stm32.platform}
92
-platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-2.zip
92
+platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
93 93
 build_unflags     = ${common_stm32.build_unflags} -DUSBD_USE_CDC
94 94
 build_flags       = ${env:STM32F103RC_btt.build_flags} ${env:stm32_flash_drive.build_flags}
95 95
   -DUSBCON
96
-  -DUSE_USBHOST_HS
96
+  -DUSE_USB_FS
97 97
   -DUSBD_IRQ_PRIO=5
98 98
   -DUSBD_IRQ_SUBPRIO=6
99
-  -DUSE_USB_HS_IN_FS
100 99
   -DUSBD_USE_CDC_MSC
101 100
 
102 101
 #
@@ -188,14 +187,13 @@ upload_protocol      = jlink
188 187
 [env:STM32F103RE_btt_USB]
189 188
 extends           = env:STM32F103RE_btt
190 189
 platform          = ${common_stm32.platform}
191
-platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-2.zip
190
+platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
192 191
 build_unflags     = ${common_stm32.build_unflags} -DUSBD_USE_CDC
193 192
 build_flags       = ${env:STM32F103RE_btt.build_flags} ${env:stm32_flash_drive.build_flags}
194 193
   -DUSBCON
195
-  -DUSE_USBHOST_HS
194
+  -DUSE_USB_FS
196 195
   -DUSBD_IRQ_PRIO=5
197 196
   -DUSBD_IRQ_SUBPRIO=6
198
-  -DUSE_USB_HS_IN_FS
199 197
   -DUSBD_USE_CDC_MSC
200 198
 
201 199
 #

+ 2
- 2
ini/stm32f4.ini Wyświetl plik

@@ -145,7 +145,7 @@ debug_init_break  =
145 145
 # USB Flash Drive mix-ins for STM32
146 146
 #
147 147
 [stm_flash_drive]
148
-platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-2.zip
148
+platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
149 149
 build_flags       = ${common_stm32.build_flags}
150 150
   -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
151 151
   -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
@@ -420,7 +420,7 @@ build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
420 420
 [env:mks_robin_nano_v3_usb_flash_drive_msc]
421 421
 platform          = ${common_stm32.platform}
422 422
 extends           = env:mks_robin_nano_v3
423
-platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-2.zip
423
+platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-3.zip
424 424
 build_unflags     = ${common_stm32.build_unflags} -DUSBD_USE_CDC
425 425
 build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
426 426
   -DUSBCON

Ładowanie…
Anuluj
Zapisz