circuitpython/ports
Maureen Helm 7a5752a748 zephyr: Enable littlefs.
Enables the littlefs (v1 and v2) filesystems in the zephyr port.

Example usage with the internal flash on the reel_board or the
rv32m1_vega_ri5cy board:

import os
from zephyr import FlashArea
bdev = FlashArea(FlashArea.STORAGE, 4096)
os.VfsLfs2.mkfs(bdev)
os.mount(bdev, '/flash')
with open('/flash/hello.txt','w') as f:
    f.write('Hello world')
print(open('/flash/hello.txt').read())

Things get a little trickier with the frdm_k64f due to the micropython
application spilling into the default flash storage partition defined
for this board. The zephyr build system doesn't enforce the flash
partitioning when mcuboot is not enabled (which it is not for
micropython). For now we can demonstrate that the littlefs filesystem
works on frdm_k64f by constructing the FlashArea block device on the
mcuboot scratch partition instead of the storage partition. Do this by
replacing the FlashArea.STORAGE constant above with the value 4.
2020-02-07 11:24:06 +11:00
..
bare-arm ports: Allow overriding CROSS_COMPILE in a custom makefile. 2019-12-27 23:53:16 +11:00
cc3200 py/mpthread.h: Use strong type for mp_thread_set_state() argument. 2020-01-29 17:10:32 +11:00
esp32 esp32/Makefile: Reorder includes to build with latest toolchain. 2020-02-04 18:06:14 +11:00
esp8266 esp8266/modules/ntptime.py: Add comment about configuring NTP host. 2020-01-31 23:54:11 +11:00
javascript py: Automatically provide weak links from "foo" to "ufoo" module name. 2019-10-22 15:30:52 +11:00
minimal ports: Allow overriding CROSS_COMPILE in a custom makefile. 2019-12-27 23:53:16 +11:00
nrf nrf/boards/common.ld: Add ENTRY(Reset_Handler) in linker script. 2020-02-01 00:09:44 +11:00
pic16bit ports: Allow overriding CROSS_COMPILE in a custom makefile. 2019-12-27 23:53:16 +11:00
powerpc ports: Allow overriding CROSS_COMPILE in a custom makefile. 2019-12-27 23:53:16 +11:00
qemu-arm qemu-arm/Makefile: Allow overriding CROSS_COMPILE from another makefile. 2019-12-19 17:59:32 +11:00
samd ports: Add new make target "submodules" which inits required modules. 2019-10-15 17:14:41 +11:00
stm32 stm32/usbd_conf: Allow boards to configure USB HS ULPI NXT/DIR pins. 2020-02-04 23:15:55 +11:00
teensy ports: Modify mp_hal_pin_write macro so it can be used as a function. 2020-01-14 23:48:42 +11:00
unix unix/modos: Implement putenv and unsetenv to complement getenv. 2020-02-04 17:54:31 +11:00
windows windows/windows_mphal: Release GIL during system calls. 2020-01-26 23:27:40 +11:00
zephyr zephyr: Enable littlefs. 2020-02-07 11:24:06 +11:00