1. 06 May, 2017 1 commit
  2. 28 Apr, 2017 1 commit
  3. 22 Apr, 2017 1 commit
  4. 18 Apr, 2017 1 commit
    • Henrik Sölver's avatar
      stmhal/timer: Clear interrupt flag before setting callback. · 1f3887dc
      Henrik Sölver authored
      Sometimes when setting a channel callback the callback fires immediately,
      even if the compare register is set to a value far into the future. This
      happens when the free running counter has previously been equal to what
      happens to be in the compare register.
      This patch make sure that there is no pending interrupt when setting a
  5. 11 Apr, 2017 1 commit
  6. 04 Apr, 2017 2 commits
  7. 01 Apr, 2017 1 commit
  8. 31 Mar, 2017 3 commits
  9. 30 Mar, 2017 7 commits
  10. 29 Mar, 2017 3 commits
  11. 28 Mar, 2017 5 commits
  12. 24 Mar, 2017 1 commit
    • Damien George's avatar
      py/modbuiltins: For round() builtin use nearbyint instead of round. · 125eae1b
      Damien George authored
      The C nearbyint function has exactly the semantics that Python's round()
      requires, whereas C's round() requires extra steps to handle rounding of
      numbers half way between integers.  So using nearbyint reduces code size
      and potentially eliminates any source of errors in the handling of half-way
      Also, bare-metal implementations of nearbyint can be more efficient than
      round, so further code size is saved (and efficiency improved).
      nearbyint is provided in the C99 standard so it should be available on all
      supported platforms.
  13. 23 Mar, 2017 1 commit
  14. 22 Mar, 2017 3 commits
  15. 20 Mar, 2017 2 commits
    • Damien George's avatar
      stmhal/pendsv: Disable interrupts during a thread switch. · ebbaf7ee
      Damien George authored
      We can actually handle interrupts during a thread switch (because we always
      have a valid stack), but only if those interrupts don't access any of the
      thread state (because the state may not correspond to the stack pointer).
      So to be on the safe side we disable interrupts during the very short
      period of the thread state+stack switch.
    • Damien George's avatar
      stmhal: Enable micropython.schedule(). · a5159edc
      Damien George authored
      ExtInt, Timer and CAN IRQ callbacks are made to work with the scheduler.
      They are still hard IRQs by default, but one can now call
      micropython.schedule within the hard IRQ to schedule a soft callback.
  16. 10 Mar, 2017 3 commits
  17. 02 Mar, 2017 4 commits