9 Commits (66d955c218b66076a3d4300f70388c634c0d3099)

Author SHA1 Message Date
Paul Sokolovsky 59a1201da9 all: Remove readall() method, which is equivalent to read() w/o args. 8 years ago
Damien George 5694201930 extmod/vfs_fat_file: Make file.close() a no-op if file already closed. 8 years ago
Alex March 84679e0c06 extmod/vfs_fat_file: Check fatfs f_sync() and f_close() returns for errors. 8 years ago
Damien George dc43508cc2 extmod/vfs_fat_file: Use MP_Exxx errno constants. 8 years ago
Damien George 620c4c32bf extmod/vfs_fat: Use mp_raise_OSError helper function. 8 years ago
Paul Sokolovsky 07209f8592 all: Rename mp_obj_type_t::stream_p to protocol. 9 years ago
Damien George 0be6359f39 py: When printf'ing an object as a pointer, pass the concrete pointer. 9 years ago
Paul Sokolovsky 4cd45f48b1 cc3200: Fix breakage after VfsFat refactor. 9 years ago
Paul Sokolovsky 6b0c88256b extmod/vfs_fat_file: Reusable FatFs module, move from stmhal/file. 9 years ago
Paul Sokolovsky e3c66a5a67 stmhal/file: Paranoid compiler warnings cleanness. 9 years ago
Paul Sokolovsky baf47c84c4 stmhal/diskio,file: Nanbox cleanness. 9 years ago
Paul Sokolovsky ab0e36b3da stmhal/file: For self-contained usecase, don't define global types. 9 years ago
Paul Sokolovsky 350ab0f570 stmhal/file: Recast as "FatFs file" class, to support other VFS types. 9 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
blmorris bdd78c31b6 py: Add stream_tell method, and use for unix and stmhal file tell. 9 years ago
Dave Hylands 968b7dd173 stmhal: Detect disk full condition 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George 4f94d90d4d stmhal: Include fatfs headers using lib/fatfs prefix. 10 years ago
Damien George 2cf6dfa280 stmhal: Prefix includes with py/; remove need for -I../py. 10 years ago
Damien George 5694cc5490 py: Make stream seek correctly check for ioctl fn; add seek for textio. 10 years ago
Paul Sokolovsky fa2edabc5c stmhal: Switch to file.seek() implementation using stream ioctl. 10 years ago
stijn 2fe4cf7761 Implement kwargs for builtin open() and _io.FileIO 10 years ago
Paul Sokolovsky 1a55b6a787 unix, stmhal: Implement file.readinto() method. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago
Damien George adf0f2ae1a py: Change stream protocol API: fns return uint; is_text for text. 10 years ago
Damien George 02bc882c3d stmhal: Add file.flush and os.stat. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Damien George e79c6696c5 stmhal: Fix file print methods to use print instead of printf. 11 years ago
Damien George 820896746c stmhal, file: Seek to end of file if opened in 'a' mode. 11 years ago
Damien George b7572ad11b stmhal, file: Implement a,x,+ open modes, seek and tell. 11 years ago
Paul Sokolovsky 9e29666bf9 py: Implement proper separation between io.FileIO and io.TextIOWrapper. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George d5f5b2f766 py, stream: Implement readlines for a stream. 11 years ago
Damien George d689430e79 stmhal: Add SPI class. 11 years ago
Paul Sokolovsky 72d70cb045 unix, stmhal: Consistently use "FileIO" as class name for file objects. 11 years ago
Damien George 27e735fd18 py: Replace stream_p with *stream_p in mp_obj_type_t. 11 years ago
Damien George 12bab72d93 Improve GC finalisation code; add option to disable it. 11 years ago
Paul Sokolovsky 1d4d9ddd9e stmhal: Reimplement file support using stream protocol API. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago
Damien George b92d3e1fde stmhal: Add fatfs support, working with flash and SD card. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
mux 8592d85b36 Remove redundant include in file.c 11 years ago
mux 40048adabc Move file obj to separate module 11 years ago