1. 09 Oct, 2014 1 commit
  2. 07 Oct, 2014 1 commit
  3. 06 Oct, 2014 1 commit
  4. 05 Oct, 2014 6 commits
  5. 04 Oct, 2014 2 commits
    • Damien George's avatar
      stmhal: Allow pyb.freq() function to change SYSCLK frequency. · 24119176
      Damien George authored
      Eg pyb.freq(120000000) sets the CPU to 120MHz.  The frequency can be set
      at any point in the code, and can be changed as many times as you like.
      Note that any active timers will need to be reconfigured after a freq
      change.
      
      Valid range is 24MHz to 168MHz (but not all freqs are supported).  The
      code maintains a 48MHz clock for the USB at all times and it's possible
      to change the frequency at a USB REPL and keep the REPL alive (well,
      most of the time it stays, sometimes it resets the USB for some reason).
      Note that USB does not work with pyb.freq of 24MHz.
      24119176
    • Damien George's avatar
  6. 02 Oct, 2014 3 commits
  7. 01 Oct, 2014 1 commit
  8. 30 Sep, 2014 7 commits
  9. 29 Sep, 2014 3 commits
  10. 28 Sep, 2014 2 commits
  11. 26 Sep, 2014 1 commit
  12. 25 Sep, 2014 4 commits
  13. 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
      53d5fa64
  14. 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.
      52b5d76a
    • 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
      alloca.
      
      This patch also updates some debug printing code.
      
      Addresses issue #872 (among many other undiscovered issues).
      eaaebf32
  15. 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.
      0e58c581
  16. 19 Sep, 2014 1 commit
  17. 17 Sep, 2014 2 commits
  18. 15 Sep, 2014 1 commit