Skip to content

Commit 595b05c

Browse files
committed
[examples] Deduplicate USB FATFS example
1 parent e6162b6 commit 595b05c

File tree

9 files changed

+23
-318
lines changed

9 files changed

+23
-318
lines changed

examples/black_pill_f411/usbfatfs/project.xml

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

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/generic/usbfatfs/project.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<library>
2+
<extends>modm:black-pill-f411</extends>
3+
<!-- <extends>modm:nucleo-f429zi</extends> -->
4+
<options>
5+
<option name="modm:build:build.path">../../../build/generic/usb_fatfs</option>
6+
<option name="modm:tinyusb:config">device.msc, device.cdc</option>
7+
</options>
8+
<modules>
9+
<module>modm:processing:timer</module>
10+
<module>modm:tinyusb</module>
11+
<module>modm:fatfs</module>
12+
<module>modm:platform:flash</module>
13+
<module>modm:build:scons</module>
14+
<module>modm:math:utils</module>
15+
<!-- Required when using CFG_TUSB_DEBUG on e.g. modm:nucleo-f429zi -->
16+
<!-- <module>modm:printf</module> -->
17+
</modules>
18+
<collectors>
19+
<!-- For debug output via STLink on e.g. modm:nucleo-f429zi -->
20+
<!-- <collect name="modm:build:cppdefines">CFG_TUSB_DEBUG=2</collect> -->
21+
</collectors>
22+
</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)