1. 30 Sep, 2014 3 commits
    • Damien George's avatar
      stmhal: Add network and usocket module. · 3a1c4c5b
      Damien George authored
      As per issue #876, the network module is used to configure NICs
      (hardware modules) and configure routing.  The usocket module is
      supposed to implement the normal Python socket module and selects the
      underlying NIC using routing logic.
      Right now the routing logic is brain dead: first-initialised,
      first-used.  And the routing table is just a list of registered NICs.
      cc3k and wiznet5k work, but not at the same time due to C name clashes
      (to be fixed).
      Note that the usocket module has alias socket, so that one can import
      socket and it works as normal.  But you can also override socket with
      your own module, using usocket at the backend.
    • Damien George's avatar
      stmhal: For spi_init, add argument to select if NSS pin is enabled. · bfa7b480
      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's avatar
      py: Remove IOError since it's deprecated; use OSError instead. · 8b03d944
      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.
  2. 29 Sep, 2014 3 commits
  3. 28 Sep, 2014 2 commits
  4. 26 Sep, 2014 1 commit
  5. 25 Sep, 2014 4 commits
  6. 24 Sep, 2014 1 commit
    • Dave Hylands's avatar
      Add pulse_width_percent to teensy. · 53d5fa64
      Dave Hylands authored
      Fix stmhal and teensy print routines to report actual prescaler an period.
      Fix teensy build to use soft-float
      Add USE_ARDUINO_TOOLCHAIN option to teensy build
  7. 23 Sep, 2014 2 commits
    • Damien George's avatar
      py: Free non-interned strings in the parser when not needed. · 52b5d76a
      Damien George authored
      mp_parse_node_free now frees the memory associated with non-interned
      strings.  And the parser calls mp_parse_node_free when discarding a
      non-used node (such as a doc string).
      Also, the compiler now frees the parse tree explicitly just before it
      exits (as opposed to relying on the caller to do this).
      Addresses issue #708 as best we can.
    • Damien George's avatar
      stmhal: Initialise stack pointer correctly. · eaaebf32
      Damien George authored
      Stack is full descending and must be 8-byte aligned.  It must start off
      pointing to just above the last byte of RAM.
      Previously, stack started pointed to last byte of RAM (eg 0x2001ffff)
      and so was not 8-byte aligned.  This caused a bug in combination with
      This patch also updates some debug printing code.
      Addresses issue #872 (among many other undiscovered issues).
  8. 21 Sep, 2014 1 commit
    • Damien George's avatar
      stmhal: Add pulse_width_ratio to timer channel object. · 0e58c581
      Damien George authored
      This allows to set the pulse width (for PWM mode) as a ratio relative to
      the period of the timer.  Eg, 0.5 is a 50% duty cycle.  You can set the
      ratio in the channel init, or using channel.pulse_width_ratio; the
      latter can also read the pulse width as a ratio.
  9. 19 Sep, 2014 1 commit
  10. 17 Sep, 2014 2 commits
  11. 15 Sep, 2014 4 commits
  12. 13 Sep, 2014 1 commit
  13. 12 Sep, 2014 1 commit
  14. 11 Sep, 2014 4 commits
  15. 07 Sep, 2014 5 commits
  16. 01 Sep, 2014 2 commits
  17. 29 Aug, 2014 2 commits
  18. 26 Aug, 2014 1 commit