- 29 Oct, 2016 10 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
To fix coverage build.
-
Paul Sokolovsky authored
mp_hal_ticks_ms, mp_hal_ticks_us taken from unix port, mp_hal_ticks_cpu dummy.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Ported from unix port.
-
Paul Sokolovsky authored
It's implemented in terms of usleep(), and POSIX doesn't guarantee that usleep() can sleep for more than a second. This restriction unlikely applies to any real-world system, but...
-
Paul Sokolovsky authored
Based on the earlier discussed RFC. Practice showed that the most natural order for arguments corresponds to mathematical subtraction: ticks_diff(x, y) <=> x - y Also, practice showed that in real life, it's hard to order events by time of occurance a priori, events tend to miss deadlines, etc. and the expected order breaks. And then there's a need to detect such cases. And ticks_diff can be used exactly for this purpose, if it returns a signed, instead of unsigned, value. E.g. if x is scheduled time for event, and y is the current time, then if ticks_diff(x, y) < 0 then event has missed a deadline (and e.g. needs to executed ASAP or skipped). Returning in this case a large unsigned number (like ticks_diff behaved previously) doesn't make sense, and such "large unsigned number" can't be reliably detected per our definition of ticks_* function (we don't expose to user level maximum value, it can be anything, relatively small or relatively large).
-
Paul Sokolovsky authored
-
- 28 Oct, 2016 7 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
So, now it's possible to just do normal Python's "import time".
-
Alex March authored
-
Alex March authored
-
Paul Sokolovsky authored
uart_irq_input_hook_set() was renamed to uart_console_in_debug_hook_install() and accepts different params.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 27 Oct, 2016 5 commits
-
-
Alex March authored
-
Paul Sokolovsky authored
-
Alex March authored
-
Alex March authored
-
Alex March authored
-
- 26 Oct, 2016 6 commits
-
-
Daniel Thompson authored
The integration with Zephyr is fairly clean but as MicroPython Hardware API requires pin ID to be a single value, but Zephyr operates GPIO in terms of ports and pins, not just pins, a "hierarchical" ID is required, using tuple of (port, pin). Port is a string, effectively a device name of a GPIO port, per Zephyr conventions these are "GPIO_0", "GPIO_1", etc.; pin is integer number of pin with the port (supposed to be in range 0-31). Example of pin initialization: pin = Pin(("GPIO_1", 21), Pin.OUT) (an LED on FRDM-K64F's Port B, Pin 21). There is support for in/out pins and pull up/pull down but currently there is no interrupt support. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org> Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
-
Vincenzo Frascino authored
This patch modifies the HW macro definition in order to let micropython report correctly the BOARD and the SOC on which it is working on.
-
Paul Sokolovsky authored
With other ports. Other ports declare it in mphalport.h, it can be inline or macro.
-
Paul Sokolovsky authored
This happens with some compilers on some architectures, which don't define size_t as unsigned int. MicroPython's printf() dooesn't support obscure format specifiers for size_t, so the obvious choice is to explicitly cast to unsigned, to match %u used in printf().
-
Vincenzo Frascino authored
This patch removes a compilation warning in pyexec. Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
-
Paul Sokolovsky authored
-
- 25 Oct, 2016 8 commits
-
-
Paul Sokolovsky authored
As part of file naming clean up (moduos_dupterm doesn't implement a full module, so should skip "mod" prefix, similar to other files in extmod/).
-
Paul Sokolovsky authored
Clarify the class implements master side of the protocol, also put adhoc WiPy paramter after the generic, described in the current Hardware API version.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
x86 has bloated alignements, etc. Use ARM binary to catch any code size increases promptly.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Radomir Dopieralski authored
The NeoPixel class now handles 4 bytes-per-pixel LEDs (extra byte is intensity) and arbitrary byte ordering. APA102 class is now derived from NeoPixel to reduce code size and support fill() operation.
-
Damien George authored
-
- 24 Oct, 2016 4 commits
-
-
Paul Sokolovsky authored
To build, "make 512k". Disabled are FatFs support (no space for filesystem), Python functionality related to files, btree module, and recently enabled features. With all this, there's only one free FlashROM page.
-
Paul Sokolovsky authored
Deprecated for long time, pip-micropython now can't install packages optimized for low-heap ports (like whole of micropython-lib).
-
Paul Sokolovsky authored
As we're looking towards adding OTA support, calculation of a FlashROM area which can be used for filesystem (etc.) may become complex, so introduce C function for that. So far it just hardcodes current value, 0x90000. In the future the function may be extended (and renamed) to return the size of area too.
-
Damien George authored
-