docs/machine: Move WiPy-specific hardware details to its general reference.
This commit is contained in:
parent
06ec96b47b
commit
db99ae00a2
@ -59,20 +59,17 @@ Power related functions
|
|||||||
Gates the clock to the CPU, useful to reduce power consumption at any time during
|
Gates the clock to the CPU, useful to reduce power consumption at any time during
|
||||||
short or long periods. Peripherals continue working and execution resumes as soon
|
short or long periods. Peripherals continue working and execution resumes as soon
|
||||||
as any interrupt is triggered (including the systick which has a period of 1ms).
|
as any interrupt is triggered (including the systick which has a period of 1ms).
|
||||||
Current consumption is reduced to ~12mA (in WLAN STA mode)
|
|
||||||
|
|
||||||
.. function:: sleep()
|
.. function:: sleep()
|
||||||
|
|
||||||
Stops the CPU and disables all peripherals except for WLAN. Execution is resumed from
|
Stops the CPU and disables all peripherals except for WLAN. Execution is resumed from
|
||||||
the point where the sleep was requested. Wake sources are ``Pin``, ``RTC`` and ``WLAN``.
|
the point where the sleep was requested. Wake sources are ``Pin``, ``RTC`` and ``WLAN``.
|
||||||
Current consumption is reduced to 950uA (in WLAN STA mode).
|
|
||||||
|
|
||||||
.. function:: deepsleep()
|
.. function:: deepsleep()
|
||||||
|
|
||||||
Stops the CPU and all peripherals including WLAN. Execution is resumed from main, just
|
Stops the CPU and all peripherals including WLAN. Execution is resumed from main, just
|
||||||
as with a reset. The reset cause can be checked to know that we are coming from
|
as with a reset. The reset cause can be checked to know that we are coming from
|
||||||
``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``. Current consumption
|
``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``.
|
||||||
is reduced to ~5uA.
|
|
||||||
|
|
||||||
.. only:: port_wipy
|
.. only:: port_wipy
|
||||||
|
|
||||||
|
@ -170,3 +170,9 @@ There are currently 2 kinds of errors that you might see:
|
|||||||
2. If the heartbeat LED stays on, then there was a hard fault, you cannot
|
2. If the heartbeat LED stays on, then there was a hard fault, you cannot
|
||||||
recover from this, the only way out is to press the reset switch.
|
recover from this, the only way out is to press the reset switch.
|
||||||
|
|
||||||
|
Power consumption in various sleep modes
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
* ``machine.idle()`` - ~12mA (in WLAN STA mode)
|
||||||
|
* ``machine.sleep()`` - 950uA (in WLAN STA mode)
|
||||||
|
* ``machine.deepsleep()`` - ~5uA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user