summaryrefslogtreecommitdiff
path: root/shared-bindings/supervisor
AgeCommit message (Collapse)Author
2021-03-18implement function to check usb connectionmicroDev
2021-03-15run code formatting scriptmicroDev
2021-02-11merge from upstream; complicated webusb mergeDan Halbert
2021-02-08wipDan Halbert
2020-12-06Make ResetReason and RunReason availableDan Halbert
2020-11-25merge from upstream + wipDan Halbert
2020-11-24some API renaming and bug fixes; fix docsDan Halbert
2020-11-23working, but need to avoid deep sleeping too fast before USB readyDan Halbert
2020-11-22wipDan Halbert
2020-11-21wip: ResetReason to microcontroller.cpuDan Halbert
2020-10-27More API changesScott Shawcroft
2020-09-17supervisor: Improve serial connection detectionJeff Epler
These changes remove the caveat from supervisor.runtime.serial_connected. It appears that _tud_cdc_connected() only tracks explicit changes to the "DTR" bit, which leads to disconnects not being registered. Instead: * when line state is changed explicitly, track the dtr value in _serial_connected * when the USB bus is suspended, set _serial_connected to False Testing performed (using sam e54 xplained): Run a program to show the state of `serial_connected` on the LED: ``` import digitalio import supervisor import board led = digitalio.DigitalInOut(board.LED) while True: led.switch_to_output(not supervisor.runtime.serial_connected) ``` Try all the following: * open, close serial terminal program - LED status tracks whether terminal is open * turn on/off data lines using the switchable charge-only cable - LED turns off when switch is in "charger" position - LED turns back on when switch is in Data position and terminal is opened (but doesn't turn back on just because switch position is changed)
2020-08-07Modify some Python stubsTaku Fukada
2020-07-27Fix several type hintsTaku Fukada
2020-07-22Add externs. GCC10 complains about duplicate definesScott Shawcroft
2020-07-03Fixed init formattingdherrada
2020-07-03Made most of the requested changesdherrada
2020-07-02Removed all 'self, )'dherrada
2020-06-03Fix up end of file and trailing whitespace.Diego Elio Pettenò
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-05-12Did struct, supervisor, terminaliodherrada
2018-12-30Remove nRF52832 supportDan Halbert
2018-10-09Move the docs next to the implementationScott Shawcroft
2018-10-09Added Documentation for the serial_bytes_available attributeATMakersBill
2018-10-09replacing change to input() with separate method to check for USB Serial inputATMakersBill
2018-08-07Support internationalisation.Scott Shawcroft
2018-07-31Remove rogue execute bit. Must a common incorrect shortcut for me. :-)Scott Shawcroft
2018-07-31Allow for resizing the stack area.Scott Shawcroft
2018-07-31Add basic memory allocation outside Python runtimeScott Shawcroft
This allows for the heap to fill all space but the stack. It also allows us to designate space for memory outside the runtime for things such as USB descriptors, flash cache and main filename. Fixes #754
2018-05-16Rephrase the docScott Shawcroft
2018-05-14move reload exception to reload.cRoy Hooper
2018-05-14Rename reload_next_character to reload_requested to make it match it's ↵Roy Hooper
intended use
2018-05-14Initial implementation of supervisor.reload()Roy Hooper
2018-04-06supervisor/Runtime: updated documentation for 'no disconnect'sommersoft
2018-03-091 more sphinx fix; added '.. class::' constructorsommersoft
2018-03-09sphinx fix; incorrect currentmodule refsommersoft
2018-03-09sphinx fix; added toctree to include 'runtime'sommersoft
2018-03-09atmel-samd: changed Status to Runtime; instituted runtime singletonsommersoft
2018-02-19added Status submodule to shared-bindings/supervisor; issue #544sommersoft
2017-11-16Create supervisor module.Scott Shawcroft
It can control autoreload and the rgb status led.