1. 22 Sep, 2016 1 commit
  2. 19 Sep, 2016 1 commit
  3. 14 Sep, 2016 1 commit
  4. 04 Sep, 2016 1 commit
  5. 25 Aug, 2016 1 commit
  6. 11 Aug, 2016 1 commit
  7. 04 Aug, 2016 1 commit
  8. 06 Jun, 2016 1 commit
  9. 13 May, 2016 1 commit
  10. 10 May, 2016 1 commit
  11. 05 May, 2016 2 commits
  12. 16 Apr, 2016 1 commit
  13. 13 Mar, 2016 3 commits
  14. 09 Mar, 2016 2 commits
  15. 07 Mar, 2016 3 commits
  16. 15 Feb, 2016 2 commits
  17. 11 Feb, 2016 3 commits
  18. 10 Feb, 2016 1 commit
  19. 06 Feb, 2016 1 commit
  20. 29 Jan, 2016 2 commits
    • 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
  21. 27 Jan, 2016 1 commit
  22. 18 Dec, 2015 1 commit
  23. 16 Dec, 2015 1 commit
  24. 12 Dec, 2015 1 commit
  25. 09 Dec, 2015 1 commit
    • neilh10's avatar
      stmhal: Enable two USB phys to be supported together. · 1be0fde4
      neilh10 authored
      This is refactoring to enable support for the two USB PHYs available on
      some STM32F4 processors to be used at the same time. The F405/7 & F429
      have two USB PHYs, others such as the F411 only have one PHY.
      
      This has been tested separately on a pyb10 (USB_FS PHY) and F429DISC
      (USB_HS PHY) to be able to invoke a REPL/USB.  I have modified a PYBV10
      to support two PHYs.
      
      The long term objective is to support a 2nd USB PHY to be brought up as a
      USB HOST, and possibly a single USB PHY to be OTG.
      1be0fde4
  26. 04 Dec, 2015 1 commit
    • Damien George's avatar
      stmhal: Add option to free up TIM3 from USB VCP polling. · 66b96822
      Damien George authored
      This is a hack to free up TIM3 so that it can be used by the user.
      Instead we use the PVD irq to call the USB VCP polling function, and
      trigger it from SysTick (so SysTick itself does not do any processing).
      
      The feature is enabled for pyboard lite only, since it lacks timers.
      66b96822
  27. 02 Dec, 2015 1 commit
  28. 26 Nov, 2015 1 commit
  29. 25 Nov, 2015 1 commit
  30. 23 Nov, 2015 1 commit
    • T S's avatar
      stmhal: Implement delayed RTC initialization with LSI fallback. · 86aa16be
      T S authored
      If RTC is already running at boot then it's left alone.  Otherwise, RTC is
      started at boot but startup function returns straight away.  RTC startup
      is then finished the first time it is used.  Fallback to LSI if LSE fails
      to start in a certain time.
      
      Also included:
       MICROPY_HW_CLK_LAST_FREQ
              hold pyb.freq() parameters in RTC backup reg
       MICROPY_HW_RTC_USE_US
              option to present datetime sub-seconds in microseconds
       MICROPY_HW_RTC_USE_CALOUT
              option to enable RTC calibration output
      
      CLK_LAST_FREQ and RTC_USE_CALOUT are enabled for PYBv1.0.
      86aa16be