- 11 Apr, 2014 8 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
Pairs are limited to tuples so far.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
A specific target can define either MP_ENDIANNESS_LITTLE or MP_ENDIANNESS_BIG to 1. Default is MP_ENDIANNESS_LITTLE. TODO: Autodetect based on compiler predefined macros?
-
Paul Sokolovsky authored
-
- 10 Apr, 2014 29 commits
-
-
Damien George authored
Update .gitignore
-
Damien George authored
Tweak pybcdc.inf to match recent changes to pybcdc.h
-
Damien George authored
Also contains raw memory read/write functions, read8, read16, read32, write8, write16, write32. Can now do: stm.write16(stm.GPIOA + stm.GPIO_BSRRL, 1 << 13) This turns on the red LED. With the new constant folding, the above constants for the GPIO address are actually compiled to constants (and the addition done) at compile time. For viper code and inline assembler, this optimisation will make a big difference. In the inline assembler, using these constants would not be possible without this constant folding.
-
Damien George authored
Working towards trying to support compile-time constants (see discussion in issue #227), this patch allows the compiler to look inside arbitrary uPy objects at compile time. The objects to search are given by the macro MICROPY_EXTRA_CONSTANTS (so they must be constant/ROM objects), and the constant folding occures on forms base.attr (both base and attr must be id's). It works, but it breaks strict CPython compatibility, since the lookup will succeed even without importing the namespace.
-
Andrew Scheller authored
Add test failure logs
-
Damien George authored
-
Damien George authored
-
Damien George authored
Can do this now that the stack size calculation is improved.
-
Damien George authored
Much less of a hack now. Hopefully it's correct!
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Previously, a failed malloc/realloc would throw an exception, which was not caught. I think it's better to keep the parser free from NLR (exception throwing), hence this patch.
-
Damien George authored
Now reads in small chunks at a time.
-
Damien George authored
-
Damien George authored
Labels should never be negative, and this modified type signature reflects that.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Eg, in CPython stdlib, email/header.py has a form-feed character.
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Andrew Scheller authored
-
Paul Sokolovsky authored
Only calcsize() and unpack() functions provided so far, for little-endian byte order. Format strings don't support repition spec (like "2b3i"). Unfortunately, dealing with all the various binary type sizes and alignments will lead to quite a bloated "binary" helper functions - if optimizing for speed. Need to think if using dynamic parametrized algos makes more sense.
-
Paul Sokolovsky authored
Syntax is usual C #if*/#endif, but each qstr must be wrapped individually.
-
- 09 Apr, 2014 3 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-