1. 13 Nov, 2019 2 commits
    • Rahix's avatar
      feat(utime): Implement ticks_ms() and ticks_us() · 8926fd02
      Rahix authored
      
      
      Implement the hal functions necessary for utime.ticks_ms() and
      utime.ticks_us().  This enables much more accurate measurements of time
      taken in Pycardium (useful for profiling).
      
      Please note that the tick counter will reset whenever a new app is
      loaded.
      Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
      8926fd02
    • Rahix's avatar
      fix(pycardium): Fix delay implementation · dbeec980
      Rahix authored
      
      
      Rewrite the delay implementation to be more accurate and properly handle
      incoming MicroPython interrupts (See issue #177).
      
      For this, the delay is split into two functions:
      
      - systick_delay_precise(): Delay with microsecond accuracy for delays
            less than 1 ms.
      - systick_delay_sleep(): Sleep for a potentially very long time, using
            WFI to put the CPU to sleep.  Whenever the CPU wakes up, this
            function will poll the MicroPython scheduler so it can execute
            pending interrupts.
      
      Ontop, this implementation allows for a future, fast, tick-based
      monotonic time implementation (e.g. mp_hal_ticks_ms).
      Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
      dbeec980
  2. 21 Aug, 2019 1 commit
  3. 03 Aug, 2019 1 commit
  4. 26 Jul, 2019 1 commit
  5. 25 Jul, 2019 3 commits
  6. 24 Jul, 2019 2 commits
  7. 21 Jul, 2019 1 commit
  8. 20 Jul, 2019 1 commit
  9. 17 Jul, 2019 1 commit
  10. 09 Jul, 2019 1 commit
  11. 08 Jul, 2019 1 commit
  12. 06 Jul, 2019 1 commit
  13. 05 Jul, 2019 2 commits
  14. 04 Jul, 2019 2 commits
  15. 03 Jul, 2019 1 commit
  16. 28 Jun, 2019 1 commit
  17. 23 Jun, 2019 1 commit
  18. 19 Jun, 2019 1 commit
  19. 18 Jun, 2019 2 commits
  20. 16 Jun, 2019 1 commit