- 30 Jan, 2017 2 commits
-
-
Damien George authored
-
Damien George authored
vfs.h is for generic VFS declarations, and vfs_fat.h is for VfsFat specific things.
-
- 27 Jan, 2017 1 commit
-
-
Damien George authored
This patch makes the following configuration changes: - MICROPY_FSUSERMOUNT is disabled, removing old mounting infrastructure - MICROPY_VFS is enabled, giving new VFS sub-system - MICROPY_VFS_FAT is enabled, giving uos.VfsFat type - MICROPY_FATFS_OO is enabled, to use new ooFatFs lib, R0.12b User facing API should be almost unchanged. Most notable changes are removal of os.mkfs (use os.VfsFat.mkfs instead) and pyb.mount doesn't allow unmounting by passing None as the device.
-
- 24 Jan, 2017 1 commit
-
-
Damien George authored
To use this feature a port should define MICROPY_HW_SPIFLASH_SIZE_BITS along with x_CS, x_SCK, x_MOSI, x_MISO (x=MICROPY_HW_SPIFLASH). This will then use external SPI flash on those pins instead of the internal flash. The SPI is done using the software implementation. There is currently only support for standard SPI (ie not dual or quad mode).
-
- 13 Dec, 2016 2 commits
- 26 Nov, 2016 1 commit
-
-
Dave Hylands authored
-
- 04 Oct, 2016 1 commit
-
-
Dave Hylands authored
In particular, this makes the L4 .isr_vector section 16K in size so it's the same as the F4/F7 MCUs. The patch also moves the L4 filesystem to the end of flash, which allows for 512K filesystem on the 1Mb devices like the STM32L476DISC.
-
- 21 Apr, 2016 1 commit
-
-
Tobias Badertscher authored
The way to lookup the flash sector now uses a much simpler table for all MCUs.
-
- 09 Mar, 2016 1 commit
-
-
Ryan Shaw authored
-
- 10 Feb, 2016 3 commits
-
-
Damien George authored
-
Damien George authored
This patch adds support to fsusermount for multiple block devices (instead of just one). The maximum allowed is fixed at compile time by the size of the fs_user_mount array accessed via MP_STATE_PORT, which in turn is set by MICROPY_FATFS_VOLUMES. With this patch, stmhal (which is still tightly coupled to fsusermount) is also modified to support mounting multiple devices And the flash and SD card are now just two block devices that are mounted at start up if they exist (and they have special native code to make them more efficient).
-
Damien George authored
You can now create (singleton) objects representing the flash and SD card, using: flash = pyb.Flash() sdcard = pyb.SDCard() These objects provide the block protocol.
-
- 25 Nov, 2015 1 commit
-
-
Tobias Badertscher authored
-
- 01 Nov, 2015 1 commit
-
-
Dave Curtis authored
-
- 02 Aug, 2015 1 commit
-
-
Dave Hylands authored
USB serial is now working for F7. Internal file storage is now working for F7. The flash is laid out a bit differently to the F4 - 4 x 32K, 1 x 128K with the rest 256K, so the internal storage is 96K. Added more pind definitions for STM32F7DISC board. Made USART1 be the default HWUART repl. The STLINK usb connector also looks like a USB serial port which is attached to USART1 on the STM32F7DISC.
-
- 29 Jul, 2015 2 commits
-
-
Dave Hylands authored
-
Dave Hylands authored
-
- 27 Jun, 2015 1 commit
-
-
Damien George authored
When enabled this allows the internal storage to be split over 2 contiguous regions of flash (two segments), and so the storage can be increased. This option is disabled by default, giving original behaviour.
-
- 18 Apr, 2015 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
It uses a 16k cache buffer and so the filesystem size is limited.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 28 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
It defines types used by all other headers. Fixes #691.
-
- 03 May, 2014 1 commit
-
-
Damien George authored
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
-
- 16 Apr, 2014 1 commit
-
-
Damien George authored
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.
-
- 17 Mar, 2014 1 commit
-
-
Damien George authored
-
- 08 Feb, 2014 1 commit
-
-
Damien George authored
If SD card is present on (soft) reset then it's mounted on 1:/ and files can be openned using, eg, open('1:/test.txt', 'r'), or 'w' for writing.
-
- 21 Jan, 2014 1 commit
-
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 06 Jan, 2014 2 commits
- 04 Jan, 2014 2 commits
-
-
Damien George authored
-
stevie67 authored
Use the storage cache not only for writing but also for reading. This avoids reading stale data and thus data loss.
-
- 21 Dec, 2013 1 commit
-
-
Damien authored
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
-
- 20 Dec, 2013 1 commit
-
-
Damien authored
-
- 17 Dec, 2013 1 commit
-
-
Damien authored
-
- 11 Dec, 2013 1 commit
-
-
Damien authored
-
- 23 Oct, 2013 1 commit
-
-
Damien authored
-
- 19 Oct, 2013 2 commits