1. 31 Jan, 2016 1 commit
  2. 30 Jan, 2016 3 commits
  3. 29 Jan, 2016 7 commits
    • Damien George's avatar
      tests: Update pyboard LED test. · 3cfb15cf
      Damien George authored
      3cfb15cf
    • Damien George's avatar
    • Damien George's avatar
      stmhal: Add PWM capability for LED(3) and LED(4) on pyboards. · a8a4b01a
      Damien George authored
      USB CDC no longer needs TIM3 (which was originally used for LED(4) PWM)
      and so TIM3 has been freed for general purpose use by the user.  Hence
      LED(4) lost its PWM capabilities.
      
      This patch reinstates the PWM capabilities using a semi-generic piece
      of code which allows to configure a timer and PWM channel to use for any
      LED.  But the PWM capability is only configured if the LED is set to an
      intensity between 1 and 254 (ie only when needed).  In that case the
      relevant timer is configured for PWM.  It's up to the user to make sure
      the timers are not used if PWM is active.
      
      This patch also makes sure that PWM LEDs are turned off using standard
      GPIO when calling led.off() or led.intensity(0), instead of just setting
      the PWM counter to zero.
      a8a4b01a
    • Damien George's avatar
      stmhal: Make TIM3 available for use by the user. · ea89b80f
      Damien George authored
      TIM3 is no longer used by USB CDC for triggering outgoing data, so we
      can now make it available to the user.
      
      PWM fading on LED(4) is now gone, but will be reinstated in a new way.
      ea89b80f
    • Damien George's avatar
      stmhal: Make USB CDC driver use SOF instead of TIM3 for outgoing data. · d3631339
      Damien George authored
      Previous to this patch the USB CDC driver used TIM3 to trigger the
      sending of outgoing data over USB serial.  This patch changes the
      behaviour so that the USB SOF interrupt is used to trigger the processing
      of the sending.  This reduces latency and increases bandwidth of outgoing
      data.
      
      Thanks to Martin Fischer, aka @hoihu, for the idea and initial prototype.
      
      See PR #1713.
      d3631339
    • Damien George's avatar
      py/formatfloat: Add ability to format doubles with exponents > 99. · 7417ccfb
      Damien George authored
      For single prec, exponents never get larger than about 37.  For double
      prec, exponents can be larger than 99 and need 3 bytes to format.  This
      patch makes the number of bytes needed configurable.
      
      Addresses issue #1772.
      7417ccfb
    • Paul Sokolovsky's avatar
      py/runtime: mp_stack_ctrl_init() should be called immediately on startup. · d3b1f0b6
      Paul Sokolovsky authored
      Calling it from mp_init() is too late for some ports (like Unix), and leads
      to incomplete stack frame being captured, with following GC issues. So, now
      each port should call mp_stack_ctrl_init() on its own, ASAP after startup,
      and taking special precautions so it really was called before stack variables
      get allocated (because if such variable with a pointer is missed, it may lead
      to over-collecting (typical symptom is segfaulting)).
      d3b1f0b6
  4. 28 Jan, 2016 3 commits
  5. 27 Jan, 2016 3 commits
  6. 26 Jan, 2016 5 commits
  7. 24 Jan, 2016 3 commits
  8. 23 Jan, 2016 2 commits
  9. 21 Jan, 2016 1 commit
  10. 19 Jan, 2016 2 commits
  11. 17 Jan, 2016 3 commits
  12. 16 Jan, 2016 1 commit
  13. 15 Jan, 2016 5 commits
  14. 14 Jan, 2016 1 commit
    • chrysn's avatar
      builtin property: accept keyword arguments · f8ba2eca
      chrysn authored
      this allows python code to use property(lambda:..., doc=...) idiom.
      
      named versions for the fget, fset and fdel arguments are left out in the
      interest of saving space; they are rarely used and easy to enable when
      actually needed.
      
      a test case is included.
      f8ba2eca