docs/machine: Move WiPy-specific hardware details to its general reference.

pull/1916/merge
Paul Sokolovsky 2016-05-03 12:26:55 +03:00
rodzic 06ec96b47b
commit db99ae00a2
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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