Skip to content

Commit 57841dc

Browse files
authored
Merge pull request #5171 from tannewt/unicode_filenames
Turn on unicode for FATFS
2 parents 78769b8 + 94b0205 commit 57841dc

File tree

27 files changed

+209
-23
lines changed

27 files changed

+209
-23
lines changed

lib/oofatfs/ff.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ static DWORD get_fat ( /* 0xFFFFFFFF:Disk error, 1:Internal error, 2..0x7FF
11751175
break;
11761176
}
11771177
}
1178+
MP_FALLTHROUGH
11781179
/* go to default */
11791180
#endif
11801181
default:
@@ -5518,6 +5519,7 @@ FRESULT f_mkfs (
55185519
}
55195520
st = 1; /* Do not compress short run */
55205521
/* go to next case */
5522+
MP_FALLTHROUGH
55215523
case 1:
55225524
ch = si++; /* Fill the short run */
55235525
if (--j == 0) st = 0;

lib/oofatfs/ffconf.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@
163163
/ memory for the working buffer, memory management functions, ff_memalloc() and
164164
/ ff_memfree() in ffsystem.c, need to be added to the project. */
165165

166-
166+
#ifdef MICROPY_FATFS_LFN_UNICODE
167+
#define FF_LFN_UNICODE (MICROPY_FATFS_LFN_UNICODE)
168+
#else
167169
#define FF_LFN_UNICODE 0
170+
#endif
168171
/* This option switches the character encoding on the API when LFN is enabled.
169172
/
170173
/ 0: ANSI/OEM in current CP (TCHAR = char)

locale/fr.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ msgstr "l'objet %s ne supporte pas l'assignation d'éléments"
266266
#: py/obj.c
267267
#, c-format
268268
msgid "'%s' object doesn't support item deletion"
269-
msgstr "Lobjet '%s' ne prend pas en charge la suppression déléments"
269+
msgstr "L'objet '%s' ne prend pas en charge la suppression d'éléments"
270270

271271
#: py/runtime.c
272272
msgid "'%s' object has no attribute '%q'"

ports/atmel-samd/boards/arduino_zero/mpconfigboard.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// SWD-only
28+
#define IGNORE_PIN_PA30 1
29+
#define IGNORE_PIN_PA31 1

ports/atmel-samd/boards/datum_distance/mpconfigboard.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,24 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-Distance.pdf
29+
#define IGNORE_PIN_PA03 1
30+
#define IGNORE_PIN_PA02 1
31+
#define IGNORE_PIN_PB08 1
32+
#define IGNORE_PIN_PB09 1
33+
#define IGNORE_PIN_PA04 1
34+
#define IGNORE_PIN_PA05 1
35+
#define IGNORE_PIN_PB02 1
36+
#define IGNORE_PIN_PA14 1
37+
#define IGNORE_PIN_PA15 1
38+
#define IGNORE_PIN_PB03 1
39+
#define IGNORE_PIN_PA28 1
40+
#define IGNORE_PIN_PB22 1
41+
#define IGNORE_PIN_PB23 1
42+
#define IGNORE_PIN_PA13 1

ports/atmel-samd/boards/datum_imu/mpconfigboard.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,22 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-IMU.pdf
29+
#define IGNORE_PIN_PB08 1
30+
#define IGNORE_PIN_PB09 1
31+
#define IGNORE_PIN_PA04 1
32+
#define IGNORE_PIN_PA05 1
33+
#define IGNORE_PIN_PB02 1
34+
#define IGNORE_PIN_PA14 1
35+
#define IGNORE_PIN_PA15 1
36+
#define IGNORE_PIN_PB03 1
37+
#define IGNORE_PIN_PA28 1
38+
#define IGNORE_PIN_PB22 1
39+
#define IGNORE_PIN_PB23 1
40+
#define IGNORE_PIN_PA13 1

ports/atmel-samd/boards/datum_light/mpconfigboard.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,24 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-Light.pdf
29+
#define IGNORE_PIN_PA03 1
30+
#define IGNORE_PIN_PA02 1
31+
#define IGNORE_PIN_PB08 1
32+
#define IGNORE_PIN_PB09 1
33+
#define IGNORE_PIN_PA04 1
34+
#define IGNORE_PIN_PA05 1
35+
#define IGNORE_PIN_PB02 1
36+
#define IGNORE_PIN_PA14 1
37+
#define IGNORE_PIN_PA15 1
38+
#define IGNORE_PIN_PB03 1
39+
#define IGNORE_PIN_PA28 1
40+
#define IGNORE_PIN_PB22 1
41+
#define IGNORE_PIN_PB23 1
42+
#define IGNORE_PIN_PA13 1

ports/atmel-samd/boards/datum_weather/mpconfigboard.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,24 @@
1919
// USB is always used internally so skip the pin objects for it.
2020
#define IGNORE_PIN_PA24 1
2121
#define IGNORE_PIN_PA25 1
22+
23+
// Connected to a crystal
24+
#define IGNORE_PIN_PA00 1
25+
#define IGNORE_PIN_PA01 1
26+
27+
// Unconnected
28+
// Schematic at: https://jandjstudios.io/assets/pdfs/datum-Weather.pdf
29+
#define IGNORE_PIN_PA03 1
30+
#define IGNORE_PIN_PA02 1
31+
#define IGNORE_PIN_PB08 1
32+
#define IGNORE_PIN_PB09 1
33+
#define IGNORE_PIN_PA04 1
34+
#define IGNORE_PIN_PA05 1
35+
#define IGNORE_PIN_PB02 1
36+
#define IGNORE_PIN_PA14 1
37+
#define IGNORE_PIN_PA15 1
38+
#define IGNORE_PIN_PB03 1
39+
#define IGNORE_PIN_PA28 1
40+
#define IGNORE_PIN_PB22 1
41+
#define IGNORE_PIN_PB23 1
42+
#define IGNORE_PIN_PA13 1

ports/atmel-samd/boards/feather_m0_adalogger/mpconfigboard.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,21 @@
1717
// USB is always used internally so skip the pin objects for it.
1818
#define IGNORE_PIN_PA24 1
1919
#define IGNORE_PIN_PA25 1
20+
21+
// Connected to a crystal
22+
#define IGNORE_PIN_PA00 1
23+
#define IGNORE_PIN_PA01 1
24+
25+
// Unconnected
26+
#define IGNORE_PIN_PB03 1
27+
#define IGNORE_PIN_PB22 1
28+
#define IGNORE_PIN_PB23 1
29+
#define IGNORE_PIN_PA09 1
30+
#define IGNORE_PIN_PA13 1
31+
#define IGNORE_PIN_PA14 1
32+
#define IGNORE_PIN_PA27 1
33+
#define IGNORE_PIN_PA28 1
34+
35+
// SWD-only
36+
#define IGNORE_PIN_PA30 1
37+
#define IGNORE_PIN_PA31 1

ports/atmel-samd/boards/feather_m0_basic/mpconfigboard.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,24 @@
1717
// USB is always used internally so skip the pin objects for it.
1818
#define IGNORE_PIN_PA24 1
1919
#define IGNORE_PIN_PA25 1
20+
21+
// Connected to a crystal
22+
#define IGNORE_PIN_PA00 1
23+
#define IGNORE_PIN_PA01 1
24+
25+
// Unconnected
26+
#define IGNORE_PIN_PB03 1
27+
#define IGNORE_PIN_PB22 1
28+
#define IGNORE_PIN_PB23 1
29+
#define IGNORE_PIN_PA06 1
30+
#define IGNORE_PIN_PA08 1
31+
#define IGNORE_PIN_PA09 1
32+
#define IGNORE_PIN_PA13 1
33+
#define IGNORE_PIN_PA14 1
34+
#define IGNORE_PIN_PA21 1
35+
#define IGNORE_PIN_PA27 1
36+
#define IGNORE_PIN_PA28 1
37+
38+
// SWD-only
39+
#define IGNORE_PIN_PA30 1
40+
#define IGNORE_PIN_PA31 1

0 commit comments

Comments
 (0)