Skip to content

Commit db99ae0

Browse files
committed
docs/machine: Move WiPy-specific hardware details to its general reference.
1 parent 06ec96b commit db99ae0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/library/machine.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,17 @@ Power related functions
5959
Gates the clock to the CPU, useful to reduce power consumption at any time during
6060
short or long periods. Peripherals continue working and execution resumes as soon
6161
as any interrupt is triggered (including the systick which has a period of 1ms).
62-
Current consumption is reduced to ~12mA (in WLAN STA mode)
6362

6463
.. function:: sleep()
6564

6665
Stops the CPU and disables all peripherals except for WLAN. Execution is resumed from
6766
the point where the sleep was requested. Wake sources are ``Pin``, ``RTC`` and ``WLAN``.
68-
Current consumption is reduced to 950uA (in WLAN STA mode).
6967

7068
.. function:: deepsleep()
7169

7270
Stops the CPU and all peripherals including WLAN. Execution is resumed from main, just
7371
as with a reset. The reset cause can be checked to know that we are coming from
74-
``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``. Current consumption
75-
is reduced to ~5uA.
72+
``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``.
7673

7774
.. only:: port_wipy
7875

docs/wipy/general.rst

+6
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,9 @@ There are currently 2 kinds of errors that you might see:
170170
2. If the heartbeat LED stays on, then there was a hard fault, you cannot
171171
recover from this, the only way out is to press the reset switch.
172172

173+
Power consumption in various sleep modes
174+
----------------------------------------
175+
176+
* ``machine.idle()`` - ~12mA (in WLAN STA mode)
177+
* ``machine.sleep()`` - 950uA (in WLAN STA mode)
178+
* ``machine.deepsleep()`` - ~5uA

0 commit comments

Comments
 (0)