1. 21 Sep, 2016 1 commit
  2. 07 Jan, 2016 1 commit
  3. 19 Dec, 2015 1 commit
  4. 26 Nov, 2015 1 commit
    • Dave Hylands's avatar
      stmhal: Make stm.mem* support large integers. · 30484338
      Dave Hylands authored
      With these you can now do things like:
      stm.mem32[0x20000000] = 0x80000000
      and read 32-bit values. You can also read all the way to the end
      of memory using either stm.mem32[0xfffffffc] or stm.mem32[-4].
      IRQs shouldn't use mem32 at all since they'd fail if the top 2 bits
      weren't equal, so IRQs should be using 16-bit I/O.
  5. 07 Aug, 2015 1 commit
  6. 29 Jul, 2015 1 commit
  7. 16 Apr, 2015 1 commit
    • Damien George's avatar
      py: Overhaul and simplify printf/pfenv mechanism. · 7f9d1d6a
      Damien George authored
      Previous to this patch the printing mechanism was a bit of a tangled
      mess.  This patch attempts to consolidate printing into one interface.
      All (non-debug) printing now uses the mp_print* family of functions,
      mainly mp_printf.  All these functions take an mp_print_t structure as
      their first argument, and this structure defines the printing backend
      through the "print_strn" function of said structure.
      Printing from the uPy core can reach the platform-defined print code via
      two paths: either through mp_sys_stdout_obj (defined pert port) in
      conjunction with mp_stream_write; or through the mp_plat_print structure
      which uses the MP_PLAT_PRINT_STRN macro to define how string are printed
      on the platform.  The former is only used when MICROPY_PY_IO is defined.
      With this new scheme printing is generally more efficient (less layers
      to go through, less arguments to pass), and, given an mp_print_t*
      structure, one can call mp_print_str for efficiency instead of
      mp_printf("%s", ...).  Code size is also reduced by around 200 bytes on
      Thumb2 archs.
  8. 01 Jan, 2015 1 commit
  9. 29 Nov, 2014 1 commit
  10. 19 Jun, 2014 1 commit
  11. 21 May, 2014 1 commit
  12. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
  13. 02 May, 2014 1 commit
  14. 26 Apr, 2014 1 commit
  15. 18 Apr, 2014 2 commits
  16. 10 Apr, 2014 1 commit
    • Damien George's avatar
      stmhal: Add stm module, which contains some constants for the MCU. · 3f489845
      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.