Skip to content
Snippets Groups Projects
Commit db99ae00 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 06ec96b4
No related branches found
No related tags found
No related merge requests found
...@@ -59,20 +59,17 @@ Power related functions ...@@ -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: ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment