1. 22 Dec, 2015 1 commit
    • Damien George's avatar
      stmhal: Add pyb.irq_stats() to get statistics about IRQ calls. · 401af50d
      Damien George authored
      Adds a lot of code, makes IRQs a bit less efficient, but is very useful
      for debugging.  Usage: pyb.irq_stats() returns a memory view that can be
      read and written, eg:
      
          list(pyb.irq_stats())
          pyb.irq_stats()[0]
          pyb.irq_stats()[0] = 0
      
      The patch provides general IRQ_ENTER() and IRQ_EXIT() macros that can be
      modified to provide further IRQ statistics if desired.
      401af50d
  2. 21 Dec, 2015 3 commits
  3. 20 Dec, 2015 4 commits
  4. 19 Dec, 2015 2 commits
    • stijn's avatar
      py/mpprint: Fix printing of 64bit integers for 64bit windows builds · 0a4eb4db
      stijn authored
      This makes all tests pass again for 64bit windows builds which would
      previously fail for anything printing ranges (builtin_range/unpack1)
      because they were printed as range( ld, ld ).
      
      This is done by reusing the mp_vprintf implementation for MICROPY_OBJ_REPR_D
      for 64bit windows builds (both msvc and mingw-w64) since the format specifier
      used for 64bit integers is also %lld, or %llu for the unsigned version.
      
      Note these specifiers used to be fetched from inttypes.h, which is the
      C99 way of working with printf/scanf in a portable way, but mingw-w64
      wants to be backwards compatible with older MS C runtimes and uses
      the non-portable %I64i instead of %lld in inttypes.h, so remove the use
      of said header again in mpconfig.h and define the specifiers manually.
      0a4eb4db
    • Dave Hylands's avatar
      stmhal: Add mem8/mem16/mem32 operations to machine module. · b6133648
      Dave Hylands authored
      This uses the newly factored machine_mem functions.
      b6133648
  5. 18 Dec, 2015 12 commits
  6. 17 Dec, 2015 17 commits
  7. 16 Dec, 2015 1 commit