docs/library/machine: Add machine.bootloader docs.

This is provide by a few ports now, and is very useful.

Signed-off-by: Damien George <damien@micropython.org>
pull/7201/head
Damien George 2021-04-30 16:55:55 +10:00
rodzic 9e1b25a99e
commit dd5c831a0b
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -37,6 +37,14 @@ Reset related functions
Get the reset cause. See :ref:`constants <machine_constants>` for the possible return values.
.. function:: bootloader([value])
Reset the device and enter its bootloader. This is typically used to put the
device into a state where it can be programmed with new firmware.
Some ports support passing in an optional *value* argument which can control
which bootloader to enter, what to pass to it, or other things.
Interrupt related functions
---------------------------