Skip to content
Snippets Groups Projects
  1. Nov 16, 2017
  2. Nov 15, 2017
    • Damien George's avatar
    • Damien George's avatar
      stm32/boards/NUCLEO_F429ZI: Incr CPU freq to 168MHz to get USB working. · 2cafef85
      Damien George authored
      At the original frequency of 90MHz there's no way to get a 48MHz USB clock.
      These new setting mirror those of the STM32F429DISC board.
      2cafef85
    • Christopher Arndt's avatar
      py/mkenv.mk: Use $(PYTHON) consistently when calling Python tools. · 1871a924
      Christopher Arndt authored
      Rationale:
      
      * Calling Python build tool scripts from makefiles should be done
        consistently using `python </path/to/script>`, instead of relying on the
        correct she-bang line in the script [1] and the executable bit on the
        script being set. This is more platform-independent.
      * The name/path of the Python executable should always be used via the
        makefile variable `PYTHON` set in `py/mkenv.mk`. This way it can be
        easily overwritten by the user with `make PYTHON=/path/to/my/python`.
      * The Python executable name should be part of the value of the makefile
        variable, which stands for the build tool command (e.g. `MAKE_FROZEN` and
        `MPY_TOOL`), not part of the command line where it is used. If a Python
        tool is substituted by another (non-python) program, no change to the
        Makefiles is necessary, except in `py/mkenv.mk`.
      * This also solves #3369 and #1616.
      
      [1] There are systems, where even the assumption that `/usr/bin/env` always
      exists, doesn't hold true, for example on Android (where otherwise the unix
      port compiles perfectly well).
      1871a924
    • Damien George's avatar
      py/emitnative: Clean up asm macro names so they have dest as first arg. · 564a95cb
      Damien George authored
      All the asm macro names that convert a particular architecture to a generic
      interface now follow the convention whereby the "destination" (usually a
      register) is specified first.
      564a95cb
  3. Nov 14, 2017
  4. Nov 12, 2017
  5. Nov 10, 2017
  6. Nov 09, 2017
  7. Nov 08, 2017
  8. Nov 07, 2017
  9. Nov 06, 2017
  10. Nov 05, 2017
  11. Nov 04, 2017
  12. Nov 03, 2017
  13. Nov 01, 2017
  14. Oct 31, 2017
  15. Oct 30, 2017
  16. Oct 29, 2017
  17. Oct 28, 2017
    • Paul Sokolovsky's avatar
      unix: Enable MICROPY_PY_REVERSE_SPECIAL_METHODS. · 24c8eda7
      Paul Sokolovsky authored
      With inplace methods now disabled by default, it makes sense to enable
      reverse methods, as they allow for more useful features, e.g. allow
      for datetime module to implement both 2 * HOUR and HOUR * 2 (where
      HOUR is e.g. timedelta object).
      24c8eda7
  18. Oct 27, 2017
    • Paul Sokolovsky's avatar
      py/objtype: Introduce MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS. · 0e80f345
      Paul Sokolovsky authored
      This allows to configure support for inplace special methods separately,
      similar to "normal" and reverse special methods. This is useful, because
      inplace methods are "the most optional" ones, for example, if inplace
      methods aren't defined, the operation will be executed using normal
      methods instead.
      
      As a caveat, __iadd__ and __isub__ are implemented even if
      MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS isn't defined. This is similar
      to the state of affairs before binary operations refactor, and allows
      to run existing tests even if MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS
      isn't defined.
      0e80f345
    • Paul Sokolovsky's avatar
      py/objtype: Define all special methods if requested. · 9b9dbc58
      Paul Sokolovsky authored
      If MICROPY_PY_ALL_SPECIAL_METHODS is defined, actually define all special
      methods (still subject to gating by e.g. MICROPY_PY_REVERSE_SPECIAL_METHODS).
      
      This adds quite a number of qstr's, so should be used sparingly.
      9b9dbc58
Loading