summaryrefslogtreecommitdiff
path: root/ports/atmel-samd/tick.c
AgeCommit message (Collapse)Author
2020-03-13Initial work on SAMDScott Shawcroft
2019-11-18Supervisor: move most of systick to the supervisorJeff Epler
This code is shared by most parts, except where not all the #ifdefs inside the tick function were present in all ports. This mostly would have broken gamepad tick support on non-samd ports. The "ms32" and "ms64" variants of the tick functions are introduced because there is no 64-bit atomic read. Disabling interrupts avoids a low probability bug where milliseconds could be off by ~49.5 days once every ~49.5 days (2^32 ms). Avoiding disabling interrupts when only the low 32 bits are needed is a minor optimization. Testing performed: on metro m4 express, USB still works and time.monotonic_ns() still counts up
2019-09-09fix atmel-samd filesystem_tick'ing; clear_temp_status() should check for ↵Dan Halbert
status indicator in use
2019-04-16Actually call gamepadshift_tickScott Shawcroft
2018-07-16Merge 3.0.0 final bugfixes and changes to masterDan Halbert
2018-06-08Support M4Scott Shawcroft
2018-06-08Prevent freezing USB during high frequency PulseIn.Scott Shawcroft
We now track the last time the background task ran and bail on the PulseIn if it starves the background work. In practice, this happens after the numbers from pulsein are no longer accurate. This also adjusts interrupt priorities so most are the lowest level except for the tick and USB interrupts. Fixes #516 and #876
2018-06-01atmel-samd: Make ticks more atomic.Scott Shawcroft
Always use current_tick when sub millisecond precision is required. Otherwise getting the ms/us to correspond is tricky.
2018-04-20 cleanup in tick.cJerry Needell
2018-04-20 modify tick.c to simplify - remove interupt disable from ↵Jerry Needell
common_hal_pulseio_pulsein_resume
2018-04-19 modify tic.c to chec if interrupts are enabled, rename us_between_ticks to ↵Jerry Needell
us until_next_tick
2018-04-17 update tick.c (fix LOAD value) update PulseIn.c (do not enable interrupts ↵Jerry Needell
for trigger_duration > 1000
2018-04-16 modify tick.c to work when interrupts disabled - modify PulseIn.c to cast ↵Jerry Needell
argument to common_hal_delay_us
2017-10-31atmel-samd: Add samd21 neopixel support.Scott Shawcroft
Also, fix and enable the status neopixel. Fixes #264
2017-10-24Merge commit 'f869d6b2e339c04469c6c9ea3fb2fabd7bbb2d8c' into nrf2_mergeScott Shawcroft
This is prep for merging in the NRF5 pull request.