micropython/stmhal
Damien George 6d983539bc stmhal: Improve flash storage cache management.
Internal flash used for the filesystem is now written (from the cache)
only after a 5s delay, or when a file is closed, or when the drive is
unmounted from the host.  This delay means that multiple writes can
accumulate in the cache, and leads to less writes to the flash, making
it last longer.

It's implemented by a high-priority interrupt that takes care of flash
erase and write, and flushing the cache.

This is still only an interim solution for the flash filesystem.  It
eventually needs to be replaced with something that uses less RAM for
the cache, something that can use more of the flash, and something that
does proper wear levelling.
2014-04-16 23:08:36 +01:00
..
boards
cmsis
fatfs stmhal: Move fatfs volume/partition lookup table to ROM. 2014-04-12 00:51:57 +01:00
hal
usbdev stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
usbhost
Makefile Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
accel.c
accel.h
adc.c stmhal: Add ADC function to read data at a given frequency. 2014-04-15 19:52:56 +01:00
adc.h
autoflash
dac.c stmhal: Add ADC function to read data at a given frequency. 2014-04-15 19:52:56 +01:00
dac.h
diskio.c stmhal: Move fatfs volume/partition lookup table to ROM. 2014-04-12 00:51:57 +01:00
diskio.h
exti.c
exti.h
ffconf.h
file.c
file.h
flash.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
flash.h stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
font_petme128_8x8.h
gccollect.c stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. 2014-04-12 18:50:20 +01:00
gccollect.h
gchelper.s
gpio.c
gpio.h
help.c stmhal: Improve help() function. 2014-04-09 01:16:29 +01:00
i2c.c stmhal: Fix C bindings of I2C.read/write. 2014-04-16 10:43:03 +01:00
i2c.h
import.c
input.c
lcd.c
lcd.h
led.c
led.h
lexerfatfs.c
lexerfatfs.h
main.c Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
malloc0.c
math.c
modos.c
modos.h
modpyb.c stmhal: Add pyb.have_cdc function to check if USB CDC device is enabled. 2014-04-16 15:52:50 +01:00
modpyb.h
modstm.c stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01:00
modstm.h stmhal: Add stm module, which contains some constants for the MCU. 2014-04-10 22:46:40 +01:00
modtime.c
modtime.h
mpconfigport.h stmhal: Add stdin/stdout/stderr objects. 2014-04-13 19:00:56 +01:00
pendsv.c
pendsv.h
pin.c
pin.h
pin_map.c
pin_named_pins.c
printf.c
pybcdc.inf_template Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
pybstdio.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
pybstdio.h
pyexec.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
pyexec.h
qstrdefsport.h stmhal: Add pyb.have_cdc function to check if USB CDC device is enabled. 2014-04-16 15:52:50 +01:00
readline.c
readline.h
rng.c
rng.h
rtc.c
rtc.h
sdcard.c
sdcard.h
servo.c stmhal: Add functionality to Servo object. 2014-04-09 00:45:45 +01:00
servo.h
startup_stm32f40xx.s
std.h
stm32f4xx_hal_msp.c
stm32f4xx_it.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
stm32f4xx_it.h
stm32f405.ld
storage.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
storage.h stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
string0.c
system_stm32f4xx.c
systick.c
systick.h
timer.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
timer.h stmhal: Add ADC function to read data at a given frequency. 2014-04-15 19:52:56 +01:00
usart.c stmhal: Wrap skin-named-usarts in PYBV10 #if. 2014-04-15 11:52:47 +01:00
usart.h stmhal: Improved usart module a bit. 2014-04-14 01:45:58 +01:00
usb.c stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. 2014-04-12 18:50:20 +01:00
usb.h
usbd_cdc_interface.c stmhal: Fix USB CDC buffer overrun error. 2014-04-16 15:51:27 +01:00
usbd_cdc_interface.h
usbd_conf.c
usbd_conf.h
usbd_desc.h stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. 2014-04-12 18:50:20 +01:00
usbd_desc_cdc_msc.c stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. 2014-04-12 18:50:20 +01:00
usbd_msc_storage.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
usbd_msc_storage.h
usrsw.c
usrsw.h