circuitpython/supervisor/shared
Jeff Epler 7f744a2369 Supervisor: move most of systick to the supervisor
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-11-18 11:01:23 -06:00
..
external_flash Add board configuration for Winterbloom Sol 2019-11-04 23:11:42 -08:00
usb cleanup adapter.address; add uniquish suffix to BLE device name 2019-07-31 00:30:24 -04:00
autoreload.c Refine _bleio 2019-10-21 18:57:03 -07:00
autoreload.h Refine _bleio 2019-10-21 18:57:03 -07:00
bluetooth.c Fix build by removing unused vars 2019-10-22 17:24:04 -07:00
bluetooth.h Refine _bleio 2019-10-21 18:57:03 -07:00
display.c Add .hidden to TileGrid and Group 2019-09-03 16:15:27 -07:00
display.h Track a dirty area for in-memory bitmaps 2019-07-18 16:47:28 -07:00
filesystem.c Rework based on Dan's review 2019-08-23 15:27:21 -07:00
flash.c Add option to disable the concurrent write protection 2019-02-21 10:45:41 -08:00
memory.c Use get top and limit stack functions 2019-10-18 11:05:08 +02:00
micropython.c Add feature conditionals and clean up 2019-07-22 12:58:28 -04:00
rgb_led_colors.h Reduce DotStar status brightness; macros for status colors 2019-11-01 13:37:36 -04:00
rgb_led_status.c Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00
rgb_led_status.h Disable bitbangio on Itsy M0 2019-08-27 15:21:47 -07:00
safe_mode.c Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00
safe_mode.h Refine _bleio 2019-10-21 18:57:03 -07:00
serial.c @hathach's changes; check cdc connected during string write 2019-04-04 18:58:35 -04:00
stack.c Use get top and limit stack functions 2019-10-18 11:05:08 +02:00
stack.h Rework safe mode and have heap overwrite trigger it. 2018-12-06 14:24:20 -08:00
status_leds.c Add feature conditionals and clean up 2019-07-22 12:58:28 -04:00
status_leds.h Move atmel-samd to tinyusb and support nRF flash. 2018-11-08 17:25:30 -08:00
tick.c Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00
tick.h Supervisor: move most of systick to the supervisor 2019-11-18 11:01:23 -06:00
translate.c Rework safe mode and have heap overwrite trigger it. 2018-12-06 14:24:20 -08:00
translate.h Rework safe mode and have heap overwrite trigger it. 2018-12-06 14:24:20 -08:00