- 30 Sep, 2014 2 commits
-
-
Damien George authored
Most of the time you don't use the NSS pin of the SPI bus, and so it shouldn't be enabled by default (this gave some bugs in the past).
-
Damien George authored
In CPython IOError (and EnvironmentError) is deprecated and aliased to OSError. All modules that used to raise IOError now raise OSError (or a derived exception). In Micro Python we never used IOError (except 1 place, incorrectly) and so don't need to keep it. See http://legacy.python.org/dev/peps/pep-3151/ for background.
-
- 29 Sep, 2014 18 commits
-
-
Damien George authored
Fixes bug with x86-64 viper ptr16.
-
Damien George authored
-
Damien George authored
Viper can now do the following: def store(p:ptr8, c:int): p[0] = c This does a store of c to the memory pointed to by p using a machine instructions inline in the code.
-
Damien George authored
-
Damien George authored
This included a bit of restructuring of the assembler backends. Note that the ARM backend is missing a few functions and won't compile.
-
Damien George authored
Allows things like: if 1: ...
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
We save some code bytes by using builtin string functions.
-
Damien George authored
-
Damien George authored
Also improve precision of calculating PWM percent in integer mode. Also update teensy with edge case fix.
-
Damien George authored
Added pyb.elapsed_millis and pyb.elapsed_micros
-
Damien George authored
teensy: Enable 8-byte stack alignment for IRQ Handlers.
-
Damien George authored
Fix error: unknown type name 'size_t'
-
Damien George authored
Fix timer overflow code.
-
- 28 Sep, 2014 4 commits
-
-
Dave Hylands authored
tested using: stmhal: https://github.com/dhylands/upy-examples/blob/master/elapsed.py teensy: https://github.com/dhylands/upy-examples/blob/master/teensy/elapsed.py
-
Dave Hylands authored
-
bvernoux authored
-
Dave Hylands authored
Teensy doesn't need to worry about overflows since all of its timers are only 16-bit. For PWM, the pulse width needs to be able to vary from 0..period+1 (pulse-width == period+1 corresponds to 100% PWM) I couldn't test the 0xffffffff cases since we can't currently get a period that big in python. With a prescaler of 0, that corresponds to a freq of 0.039 (i.e. cycle every 25.56 seconds), and we can't set that using freq or period. I also tested both stmhal and teensy with floats disabled, which required a few other code changes to compile.
-
- 26 Sep, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
It seems that newer versions of clang don't like the .bss directive, so we don't use it for OSX. Addressing issues #865 and #875.
-
- 25 Sep, 2014 14 commits
-
-
Damien George authored
Pulled in and modified work done by mux/iabdalkader on cc3k driver, from iabdalkader-cc3k-update branch. That branch was terribly messy and had too many conflicts to merge neatly.
-
Damien George authored
-
Damien George authored
Images are currently served from micropython.org/static. I don't know if there is a better way to handle images.
-
Damien George authored
The JSON specs are relatively flexible and allow us to use one function to print strings, be they ascii, bytes or utf-8 encoded.
-
Damien George authored
-
Damien George authored
-
blmorris authored
-
Damien George authored
-
Damien George authored
Addresses issue #864.
-
Damien George authored
-
Damien George authored
It seems most sensible to use size_t for measuring "number of bytes" in malloc and vstr functions (since that's what size_t is for). We don't use mp_uint_t because malloc and vstr are not Micro Python specific.
-
Damien George authored
-
Damien George authored
Also do the same for teensy timer code.
-
Damien George authored
Add pulse_width_percent to teensy.
-