Skip to content

Commit df37fff

Browse files
committed
[examples] Deduplicate USB FATFS example
1 parent f488535 commit df37fff

File tree

9 files changed

+7
-305
lines changed

9 files changed

+7
-305
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
- name: Examples STM32F4 Without Discovery Board
213213
if: always()
214214
run: |
215-
(cd examples && ../tools/scripts/examples_compile.py nucleo_f401re nucleo_f411re nucleo_f429zi nucleo_f446re nucleo_f446ze nucleo_f439zi black_pill_f411 stm32f407vet6_devebox stm32_f4ve)
215+
(cd examples && ../tools/scripts/examples_compile.py nucleo_f401re nucleo_f411re nucleo_f429zi nucleo_f446re nucleo_f446ze nucleo_f439zi stm32f407vet6_devebox stm32_f4ve)
216216
217217
avr-examples:
218218
runs-on: ubuntu-22.04

examples/black_pill_f411/usbfatfs/main.cpp renamed to examples/generic/usbfatfs/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ check_for_update()
9393
{
9494
if (is_valid(&fil, fno.fsize))
9595
{
96-
Board::Led::set();
96+
Board::Leds::write(1);
9797
// We first copy the file into the last Flash section of 128kB.
9898
// It's not guaranteed that the file is stored in FatFs in *one*
9999
// continous chunk and we cannot access FatFs code in ram_apply!!!

examples/black_pill_f411/usbfatfs/project.xml renamed to examples/generic/usbfatfs/project.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<library>
22
<extends>modm:black-pill-f411</extends>
3+
<!-- <extends>modm:nucleo-f429zi</extends> -->
34
<options>
4-
<option name="modm:build:build.path">../../../build/black_pill_f411/usb_fatfs</option>
5+
<option name="modm:build:build.path">../../../build/generic/usb_fatfs</option>
56
<option name="modm:tinyusb:config">device.msc, device.cdc</option>
67
</options>
78
<modules>
@@ -12,4 +13,7 @@
1213
<module>modm:build:scons</module>
1314
<module>modm:math:utils</module>
1415
</modules>
16+
<collectors>
17+
<collect name="modm:build:cppdefines">CFG_TUSB_DEBUG=2</collect>
18+
</collectors>
1519
</library>

examples/nucleo_f429zi/usbfatfs/ffconf_local.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/nucleo_f429zi/usbfatfs/main.cpp

Lines changed: 0 additions & 156 deletions
This file was deleted.

examples/nucleo_f429zi/usbfatfs/project.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/nucleo_f429zi/usbfatfs/ramdisk.cpp

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)