- 20 Oct, 2015 11 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
If VT100 support is not available then a given implementation of mp_hal_erase_line_from_cursor might need to know the number of characters to erase. This patch does not change generated code when VT100 is supported, since compiler can optimise away the argument.
-
Damien George authored
-
Damien George authored
This saves around 1000 bytes (Thumb2 arch) because in repr "C" it is costly to check and extract a qstr. So making such check/extract a function instead of a macro saves lots of code space.
-
Damien George authored
This new object representation puts floats into the object word instead of on the heap, at the expense of reducing their precision to 30 bits. It only makes sense when the word size is 32-bits.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Peter Hinch authored
-
Paul Sokolovsky authored
-
- 19 Oct, 2015 23 commits
-
-
Paul Sokolovsky authored
Simple smoke tests, mostly for coverage. Added to extmod based on the fact that they're extensions to standard modules.
-
Paul Sokolovsky authored
-
Tom Soulanille authored
-
Damien George authored
-
Damien George authored
Looks like we can use the same Pin class for legacy pyb module and new machine module.
-
Paul Sokolovsky authored
Instead of return 0, which means EOF. There's no good way to detect EOF on continuously active bus like UART, and treat timeout as just temporary unvailability of data. .read() method of UART object will return None in this case (instead of 0, which again measn EOF). This is fully compliant with unix port.
-
Damien George authored
pyb.repl_uart still exists but points to os.dupterm.
-
Damien George authored
pyb module still has pyb.delay and pyb.udelay, but these now point to time.sleep_ms and time.sleep_us respectively.
-
Dave Hylands authored
-
Paul Sokolovsky authored
This requires makeinfo installed and wastes time (especially in CI).
-
danicampora authored
-
danicampora authored
-
danicampora authored
-
danicampora authored
-
danicampora authored
-
danicampora authored
-
danicampora authored
-
danicampora authored
The heartbeat is now controllable via a single function within the wipy module.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too.
-
Paul Sokolovsky authored
All of these functions return positive small int, thus range is 2 bits less than word size (30 bit on 32-bit systems, 62 bit on 64-bit systems).
-
Paul Sokolovsky authored
-
Damien George authored
-
- 18 Oct, 2015 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 17 Oct, 2015 3 commits
-
-
Paul Sokolovsky authored
E.g. Windows lacks this header.
-
danicampora authored
-
Paul Sokolovsky authored
Another function (like stat) which is problematic to deal with on ABI level (FFI), as struct statvfs layout may differ unpredictably between OSes and even different versions of a same OS. So, implement it in C, returning a 10-element tuple of f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail, f_flag, f_namemax. This is exactly the order described in Python3 docs, https://docs.python.org/3/library/os.html#os.statvfs (but note that os.statvfs() should make these values available as attributes).
-