File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 60
60
X(EISDIR) \
61
61
X(EINVAL) \
62
62
63
- #define MICROPY_FATFS_EXFAT 0
63
+ #define MICROPY_FATFS_EXFAT (0)
64
+ // FAT32 mkfs takes about 500 bytes.
65
+ #define MICROPY_FF_MKFS_FAT32 (0)
64
66
65
67
// Only support simpler HID descriptors on SAMD21.
66
68
#define CIRCUITPY_USB_HID_MAX_REPORT_IDS_PER_DESCRIPTOR (1)
Original file line number Diff line number Diff line change @@ -255,6 +255,10 @@ typedef long mp_off_t;
255
255
#define MICROPY_FATFS_EXFAT (CIRCUITPY_FULL_BUILD)
256
256
#endif
257
257
258
+ #ifndef MICROPY_FF_MKFS_FAT32
259
+ #define MICROPY_FF_MKFS_FAT32 (CIRCUITPY_FULL_BUILD)
260
+ #endif
261
+
258
262
// LONGINT_IMPL_xxx are defined in the Makefile.
259
263
//
260
264
#ifdef LONGINT_IMPL_NONE
Original file line number Diff line number Diff line change @@ -266,8 +266,15 @@ STATIC const mp_rom_map_elem_t storage_module_globals_table[] = {
266
266
//| This property cannot be changed, use `storage.remount` instead."""
267
267
//| ...
268
268
//|
269
+ //| @staticmethod
269
270
//| def mkfs(self) -> None:
270
- //| """Format the block device, deleting any data that may have been there"""
271
+ //| """Format the block device, deleting any data that may have been there.
272
+ //|
273
+ //| **Limitations**: On SAMD21 builds, `mkfs()` will raise ``OSError(22)`` when
274
+ //| attempting to format filesystems larger than 4GB. The extra code to format larger
275
+ //| filesystems will not fit on these builds. You can still access
276
+ //| larger filesystems, but you will need to format the filesystem on another device.
277
+ //| """
271
278
//| ...
272
279
//| def open(self, path: str, mode: str) -> None:
273
280
//| """Like builtin ``open()``"""
You can’t perform that action at this time.
0 commit comments