mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
docs: Document the cross-port Timer hard= option.
Update the main machine.Timer specification, and any references to hard/soft interrupts in port-specific documentation. There is a separate copy of the machine.Timer documentation for the pyboard, so update that too to keep everything consistent. Signed-off-by: Chris Webb <chris@arachsys.com>
This commit is contained in:
committed by
Damien George
parent
ec6cdf3718
commit
b9523fd58c
@@ -287,6 +287,10 @@ with a timer ID of 0, 0 and 1, or from 0 to 3 (inclusive)::
|
||||
The period is in milliseconds. When using UART.IRQ_RXIDLE, timer 0 is needed for
|
||||
the IRQ_RXIDLE mechanism and must not be used otherwise.
|
||||
|
||||
Timer callbacks are scheduled as soft interrupts on this port; hard
|
||||
callbacks are not implemented. Specifying ``hard=True`` will raise
|
||||
a ValueError.
|
||||
|
||||
Virtual timers are not currently supported on this port.
|
||||
|
||||
.. _Pins_and_GPIO:
|
||||
|
||||
Reference in New Issue
Block a user