summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-03 12:26:55 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-03 12:26:55 +0300
commitdb99ae00a2a37fbe3ec92f306e43c5c1e3fe18b0 (patch)
treebdde90b6c0798909e26e9a5fe0d9c3c0965fe6c4
parent06ec96b47b3777dbad0c76291b1bc128036cf3e5 (diff)
downloadmicropython-db99ae00a2a37fbe3ec92f306e43c5c1e3fe18b0.tar.gz
micropython-db99ae00a2a37fbe3ec92f306e43c5c1e3fe18b0.zip
docs/machine: Move WiPy-specific hardware details to its general reference.
-rw-r--r--docs/library/machine.rst5
-rw-r--r--docs/wipy/general.rst6
2 files changed, 7 insertions, 4 deletions
diff --git a/docs/library/machine.rst b/docs/library/machine.rst
index 3af86db819..f9dca29875 100644
--- a/docs/library/machine.rst
+++ b/docs/library/machine.rst
@@ -59,20 +59,17 @@ Power related functions
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
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()
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``.
- Current consumption is reduced to 950uA (in WLAN STA mode).
.. function:: deepsleep()
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
- ``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``. Current consumption
- is reduced to ~5uA.
+ ``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``.
.. only:: port_wipy
diff --git a/docs/wipy/general.rst b/docs/wipy/general.rst
index bcbbe53d7d..13d9a97f36 100644
--- a/docs/wipy/general.rst
+++ b/docs/wipy/general.rst
@@ -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
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