aboutsummaryrefslogtreecommitdiff
path: root/stmhal/moduos.c
AgeCommit message (Collapse)Author
2016-05-29stmhal/moduos: getcwd(): Use mp_obj_new_exception_arg1().Paul Sokolovsky
Argument types were converted, but old function call of mp_obj_new_exception_msg_varg() remained.
2016-02-28extmod/vfs_fat: Move listdir() method from stmhal for reuse.Paul Sokolovsky
2016-02-15extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file.Paul Sokolovsky
2016-02-10extmod/fsusermount: Support mounting of multiple block devices.Damien George
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).
2016-02-10stmhal: Add mount/umount/mkfs to os module.Damien George
2016-01-19stmhal: Add os.statvfsDave Hylands
Implement enough of statvfs to determine the amount of free space on a volume.
2015-11-25extmod: Move fsusermount.c from stmhal for cross-port reuse.Paul Sokolovsky
2015-10-19stmhal: Implement os.dupterm (was pyb.repl_uart).Damien George
pyb.repl_uart still exists but points to os.dupterm.
2015-07-27stmhal: Put fs_user_mount pointer in root ptr section of global state.Damien George
Should fix issue #1393.
2015-05-13lib: Move time utility functions to common library.Josef Gajdusek
2015-05-12stmhal: Add os.rename function.Steve Zatz
2015-04-28py: Replace py-version.sh with makeversionhdr.py, written in Python.Damien George
Also rename py-version.h to mpversion.h for consistency with mpconfig.h.
2015-04-21stmhal: Implement os.uname() to get details of OS and hardware.Damien George
2015-03-04stmhal: Make os.sync use disk_ioctl exclusively; reuse os.sync in pyb.Damien George
2015-03-04stmhal: Include fatfs headers using lib/fatfs prefix.Damien George
This helps make files reusable across other ports.
2015-01-21py: Remove mp_obj_str_builder and use vstr instead.Damien George
With this patch str/bytes construction is streamlined. Always use a vstr to build a str/bytes object. If the size is known beforehand then use vstr_init_len to allocate only required memory. Otherwise use vstr_init and the vstr will grow as needed. Then use mp_obj_new_str_from_vstr to create a str/bytes object using the vstr memory. Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes on unix x64.
2015-01-01stmhal: Prefix includes with py/; remove need for -I../py.Damien George
2014-12-27stmhal: Add ability to mount custom block device.Damien George
2014-11-29Use MP_DEFINE_CONST_DICT macro to define module dicts.Damien George
This is just a clean-up of the code. Generated code is exactly the same.
2014-10-12stmhal: Rename module files to keep consistency with module name.Damien George