Skip to content

Commit c4ef965

Browse files
committed
[examples] Deduplicate USB FATFS example
1 parent 87bca70 commit c4ef965

File tree

8 files changed

+8
-302
lines changed

8 files changed

+8
-302
lines changed

examples/black_pill_f411/usbfatfs/main.cpp renamed to examples/ext/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/ext/usbfatfs/project.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<library>
22
<extends>modm:black-pill-f411</extends>
3+
<!-- <extends>modm:nucleo-f429zi</extends> -->
34
<options>
45
<option name="modm:tinyusb:config">device.msc, device.cdc</option>
56
</options>
@@ -10,5 +11,11 @@
1011
<module>modm:platform:flash</module>
1112
<module>modm:build:scons</module>
1213
<module>modm:math:utils</module>
14+
<!-- Required when using CFG_TUSB_DEBUG on e.g. modm:nucleo-f429zi -->
15+
<!-- <module>modm:printf</module> -->
1316
</modules>
17+
<collectors>
18+
<!-- For debug output via STLink on e.g. modm:nucleo-f429zi -->
19+
<!-- <collect name="modm:build:cppdefines">CFG_TUSB_DEBUG=2</collect> -->
20+
</collectors>
1421
</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 & 17 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)