- 22 Nov, 2015 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This takes previous IEEE-754 single precision float implementation, and converts it to fully portable parametrizable implementation using C99 functions like signbit(), isnan(), isinf(). As long as those functions are available (they can be defined in adhoc manner of course), and compiler can perform standard arithmetic and comparison operations on a float type, this implementation will work with any underlying float type (including types whose mantissa is larger than available intergral integer type).
-
Paul Sokolovsky authored
-
- 21 Nov, 2015 5 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
In other words, unix port now uses overriden printf(), instead of using libc's. This should remove almost all dependency on libc stdio (which is bloated).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This may not seem like the ideal place, but is actually the only place in py/ where it gets referenced, so is just right.
-
Paul Sokolovsky authored
-
- 20 Nov, 2015 8 commits
-
-
Paul Sokolovsky authored
Return tuple of (address_family, net_addr, [port, [extra_data]]). net_addr is still raw network address as bytes object, but suitable for passing to inet_ntop() function. At the very least, sockaddr() will separate address family value from binary socket address (and currently, only AF_INET family is decoded).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Here we are assuming that a thumb2 port will have fatfs, which is only roughly true. We need a better way of enabling specific raw-code file readers.
-
Damien George authored
This can then be passed to mp_raw_code_save_file to save a .mpy file.
-
- 19 Nov, 2015 2 commits
-
-
Igor Gatis authored
-
Damien George authored
This change makes the code behave how it was supposed to work when first written. The avail_slot variable is set to the first free slot when looking for a key (which would come from deleting an entry). So it's more efficient (for subsequent lookups) to insert a new key into such a slot, rather than the very last slot that was searched.
-
- 18 Nov, 2015 7 commits
-
-
danicampora authored
-
danicampora authored
-
Chris Liechti authored
-
Jason Hildebrand authored
Also provide workarounds, link to other revelant sections, and fix some typos.
-
Gary Ashton-Jones authored
-
Noah authored
- The link establishment timeout is infinite by default - Fix typo in notes about the auth kwarg
-
Dave Hylands authored
-
- 17 Nov, 2015 4 commits
-
-
Damien George authored
It can change asynchronously.
-
Damien George authored
Will be included only when MICROPY_PY_MATH_SPECIAL_FUNCTIONS is enabled. Also covers cmath module (but only log10 is there at the moment).
-
Damien George authored
-
Damien George authored
Parameter lists can't be nested so there is no need to save the global state when compiling them.
-
- 16 Nov, 2015 3 commits
-
-
danicampora authored
-
Paul Sokolovsky authored
Underlyingly, uses standard POSIX poll() for portability.
-
Paul Sokolovsky authored
-
- 14 Nov, 2015 6 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
In new hardware API, these classes implement master modes of interfaces, and "mode" parameter is not accepted. Trying to implement new HW API in terms of older pyb module leaves variuos corner cases: In new HW API, I2C(1) means "I2C #1 in master mode" (? depends on interpretation), while in old API, it means "I2C #1, with no settings changes". For I2C class, it's easy to make mode optional, because that's last positional param, but for SPI, there's "baudrate" after it (which is inconsistent with I2C, which requires "baudrate" to be kwonly-arg).
-
Paul Sokolovsky authored
-
- 13 Nov, 2015 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-