w4kpm
bd476acd41
extmod/vfs_fat_file: Allow file obj to respond to ioctl flush request.
2016-12-02 17:26:37 +11:00
Paul Sokolovsky
59a1201da9
all: Remove readall() method, which is equivalent to read() w/o args.
...
Its addition was due to an early exploration on how to add CPython-like
stream interface. It's clear that it's not needed and just takes up
bytes in all ports.
2016-11-14 00:24:22 +03:00
Damien George
5694201930
extmod/vfs_fat_file: Make file.close() a no-op if file already closed.
...
As per CPython semantics. In particular, file.__del__() should not raise
an exception if the file is already closed.
2016-10-24 12:59:20 +11:00
Alex March
84679e0c06
extmod/vfs_fat_file: Check fatfs f_sync() and f_close() returns for errors.
2016-10-19 15:57:07 +11:00
Damien George
dc43508cc2
extmod/vfs_fat_file: Use MP_Exxx errno constants.
2016-10-07 14:14:41 +11:00
Damien George
620c4c32bf
extmod/vfs_fat: Use mp_raise_OSError helper function.
2016-10-07 13:44:55 +11:00
Paul Sokolovsky
07209f8592
all: Rename mp_obj_type_t::stream_p to protocol.
...
It's now used for more than just stream protocol (e.g. pin protocol), so
don't use false names.
2016-06-18 18:44:57 +03:00
Damien George
0be6359f39
py: When printf'ing an object as a pointer, pass the concrete pointer.
2016-03-14 22:41:14 +00:00
Paul Sokolovsky
4cd45f48b1
cc3200: Fix breakage after VfsFat refactor.
2016-02-15 10:39:56 +02:00
Paul Sokolovsky
6b0c88256b
extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file.
2016-02-15 00:16:46 +02:00