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 Fix make-pins.py to support having multiple names for a pin. 2014-04-08 15:45:47 -07:00
cmsis Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
fatfs stmhal: Move fatfs volume/partition lookup table to ROM. 2014-04-12 00:51:57 +01:00
hal stmhal - More systick cleanup. Fix HAL_Delay 2014-03-13 16:17:01 -07:00
usbdev stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
usbhost Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
accel.c py: Remove old "run time" functions that were 1 liners. 2014-03-31 16:28:13 +01:00
accel.h stmhal: Shuffle around some init functions in main(). 2014-03-25 23:33:47 +00:00
adc.c stmhal: Add ADC function to read data at a given frequency. 2014-04-15 19:52:56 +01:00
adc.h stmhal: Make pyb.ADC the ADC class (not a function). 2014-03-24 19:27:13 +00:00
autoflash stmhal: autoflash now enters serial comms after flashing. 2014-04-05 17:16:00 +01:00
dac.c stmhal: Add ADC function to read data at a given frequency. 2014-04-15 19:52:56 +01:00
dac.h stmhal: Add DAC driver. 2014-03-24 15:15:33 +00:00
diskio.c stmhal: Move fatfs volume/partition lookup table to ROM. 2014-04-12 00:51:57 +01:00
diskio.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
exti.c stmhal: Make USRSW re-register the EXTI callback each time it's set. 2014-04-08 22:35:42 +01:00
exti.h stmhal: Make USRSW re-register the EXTI callback each time it's set. 2014-04-08 22:35:42 +01:00
ffconf.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
file.c unix, stmhal: Consistently use "FileIO" as class name for file objects. 2014-04-08 04:08:16 +03:00
file.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
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 stmhal: Add LCD driver. 2014-03-19 13:11:59 +00:00
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 REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
gchelper.s REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
gpio.c Rename rt_* to mp_*. 2014-03-30 13:35:08 +01:00
gpio.h stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
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 stmhal: Add I2C support; change accel driver to use new I2C. 2014-03-25 23:26:14 +00:00
import.c stmhal: Add accelerometer driver; fix bug with LFN. 2014-03-20 23:33:30 +00:00
input.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
lcd.c Rename rt_* to mp_*. 2014-03-30 13:35:08 +01:00
lcd.h stmhal: Add LCD driver. 2014-03-19 13:11:59 +00:00
led.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
led.h stmhal: Make Led, Servo and Accel their class, not a function. 2014-03-24 11:48:39 +00:00
lexerfatfs.c stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
lexerfatfs.h REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
main.c Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
Makefile Auto-generate the stmhal/pybcdc_inf header file from static files 2014-04-16 02:41:26 +01:00
malloc0.c Improve GC finalisation code; add option to disable it. 2014-04-05 20:35:48 +01:00
math.c stmhal: Add powf, logf, log2f, log10f. 2014-04-03 22:11:28 +01:00
modos.c py: Change module globals from mp_map_t* to mp_obj_dict_t*. 2014-04-05 21:53:54 +01:00
modos.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
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 Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
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 py: Change module globals from mp_map_t* to mp_obj_dict_t*. 2014-04-05 21:53:54 +01:00
modtime.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
mpconfigport.h stmhal: Add stdin/stdout/stderr objects. 2014-04-13 19:00:56 +01:00
pendsv.c stmhal: Get USB enumerating a CDC device. 2014-03-14 00:30:37 +00:00
pendsv.h stmhal: Get USB enumerating a CDC device. 2014-03-14 00:30:37 +00:00
pin.c REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
pin.h stmhal - fixed up adc stuff 2014-03-24 11:16:35 -07:00
pin_map.c py: Change nlr_jump to nlr_raise, to aid in debugging. 2014-04-05 18:32:08 +01:00
pin_named_pins.c stmhal - add pin mapping, gpio, exti, usrsw 2014-03-14 23:41:28 -07:00
printf.c Enhance str.format support 2014-04-01 01:17:33 -07:00
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 stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
pyexec.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
pyexec.h stmhal: Improve REPL CTRL commands. 2014-03-24 12:23:37 +00:00
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 stmhal: Add more escape seqs; add debugging output for escape seq. 2014-04-05 11:45:59 +01:00
readline.h stmhal: Factor out stdio and readline to separate files. 2014-03-29 14:20:05 +00:00
rng.c stmhal: Add os module with a few basic functions. 2014-03-22 14:56:32 +00:00
rng.h stmhal: Add os module with a few basic functions. 2014-03-22 14:56:32 +00:00
rtc.c stmhal: Get RTC working. 2014-03-15 12:54:48 +00:00
rtc.h stmhal: Get RTC working. 2014-03-15 12:54:48 +00:00
sdcard.c Merge map.h into obj.h. 2014-03-30 13:54:02 +01:00
sdcard.h stmhal: Add fatfs support, working with flash and SD card. 2014-03-17 14:04:19 +00:00
servo.c stmhal: Add functionality to Servo object. 2014-04-09 00:45:45 +01:00
servo.h stmhal: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01:00
startup_stm32f40xx.s Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
std.h Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
stm32f4xx_hal_msp.c stmhal: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01:00
stm32f4xx_it.c stmhal: Improve flash storage cache management. 2014-04-16 23:08:36 +01:00
stm32f4xx_it.h stmhal: Get USB enumerating a CDC device. 2014-03-14 00:30:37 +00:00
stm32f405.ld Initial checkin with STM HAL 2014-03-11 23:55:41 -07:00
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 REPl working on UART6 with STMHAL 2014-03-12 18:15:55 -07:00
system_stm32f4xx.c stmhal: Disable redundant SystemCoreClockUpdate function. 2014-03-15 14:45:51 +00:00
systick.c stmhal - More systick cleanup. Fix HAL_Delay 2014-03-13 16:17:01 -07:00
systick.h stmhal - More systick cleanup. Fix HAL_Delay 2014-03-13 16:17:01 -07:00
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 stmhal: Add home/end cursor support in readline. 2014-04-03 23:30:24 +01:00
usbd_cdc_interface.c stmhal: Fix USB CDC buffer overrun error. 2014-04-16 15:51:27 +01:00
usbd_cdc_interface.h stmhal: Add timer module; move servo PWM from TIM2 to TIM5. 2014-04-02 15:09:36 +01:00
usbd_conf.c stmhal: USB CDC and MSC device work together. 2014-03-22 12:32:54 +00:00
usbd_conf.h stmhal: Tidy up USB device configuration. Make it use less RAM. 2014-03-22 12:46:23 +00:00
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 stmhal: Add support for USB MSC device. 2014-03-21 23:32:01 +00:00
usrsw.c stmhal: Make USRSW re-register the EXTI callback each time it's set. 2014-04-08 22:35:42 +01:00
usrsw.h stmhal: Implement selector for USB device mode; improve boot up. 2014-03-30 00:00:15 +00:00