From db99ae00a2a37fbe3ec92f306e43c5c1e3fe18b0 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Tue, 3 May 2016 12:26:55 +0300
Subject: [PATCH] docs/machine: Move WiPy-specific hardware details to its
 general reference.

---
 docs/library/machine.rst | 5 +----
 docs/wipy/general.rst    | 6 ++++++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/docs/library/machine.rst b/docs/library/machine.rst
index 3af86db81..f9dca2987 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 bcbbe53d7..13d9a97f3 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
-- 
GitLab