1. 10 Feb, 2016 6 commits
  2. 09 Feb, 2016 4 commits
  3. 08 Feb, 2016 3 commits
  4. 06 Feb, 2016 8 commits
  5. 03 Feb, 2016 2 commits
    • Damien George's avatar
      py/mpz: Add commented-out mpz_pow3_inpl function, to compute (x**y)%z. · ff1a96ce
      Damien George authored
      This function computes (x**y)%z in an efficient way.  For large arguments
      this operation is otherwise not computable by doing x**y and then %z.
      It's currently not used, but is added in case it's useful one day.
    • Doug Currie's avatar
      py/mpz: Complete implementation of mpz_{and,or,xor} for negative args. · 2e2e15ce
      Doug Currie authored
      For these 3 bitwise operations there are now fast functions for
      positive-only arguments, and general functions for arbitrary sign
      arguments (the fast functions are the existing implementation).
      By default the fast functions are not used (to save space) and instead
      the general functions are used for all operations.
      Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive
  6. 02 Feb, 2016 5 commits
  7. 01 Feb, 2016 3 commits
  8. 31 Jan, 2016 1 commit
  9. 30 Jan, 2016 3 commits
  10. 29 Jan, 2016 5 commits
    • Damien George's avatar
      tests: Update pyboard LED test. · 3cfb15cf
      Damien George authored
    • 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.
    • 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.
    • 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
      Thanks to Martin Fischer, aka @hoihu, for the idea and initial prototype.
      See PR #1713.