Skip to content

Commit 92fa105

Browse files
committed
Allow changing size of the filesystem on samd21 per board
As the CircuitPython grows, it may at some point no longer be possible to squeeze it on some of the flash-less SAMD21 boards, so it would be good to have the option of shrinking the filesystem size on per-board basis. This change allows to define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE inside the board's mpconfigborard.h file.
1 parent 53c0117 commit 92fa105

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/atmel-samd/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@
9292

9393
#ifdef SAMD21
9494

95+
#ifndef CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE
9596
#if INTERNAL_FLASH_FILESYSTEM
9697
#define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (64 * 1024)
9798
#else
9899
#define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (0)
99100
#endif
101+
#endif
100102

101103
#ifndef CIRCUITPY_INTERNAL_NVM_SIZE
102104
#define CIRCUITPY_INTERNAL_NVM_SIZE (256)

0 commit comments

Comments
 (0)