Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
bb6458bf
Commit
bb6458bf
authored
May 03, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs/machine: More generic description of sleep's, WiPy details to its genref.
parent
db99ae00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
docs/library/machine.rst
docs/library/machine.rst
+6
-4
docs/wipy/general.rst
docs/wipy/general.rst
+7
-5
No files found.
docs/library/machine.rst
View file @
bb6458bf
...
...
@@ -63,13 +63,15 @@ Power related functions
.. 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``.
the point where the sleep was requested. For wake up to actually happen, wake sources
should be configured first.
.. 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``.
Stops the CPU and all peripherals (including networking interfaces, if any). Execution
is resumed from the main script, just as with a reset. The reset cause can be checked
to know that we are coming from ``machine.DEEPSLEEP``. For wake up to actually happen,
wake sources should be configured first, like ``Pin`` change or ``RTC`` timeout.
.. only:: port_wipy
...
...
docs/wipy/general.rst
View file @
bb6458bf
...
...
@@ -170,9 +170,11 @@ 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
----------------------
------------------
Details on
sleep modes
----------------------
* ``machine.idle()`` - ~12mA (in WLAN STA mode)
* ``machine.sleep()`` - 950uA (in WLAN STA mode)
* ``machine.deepsleep()`` - ~5uA
* ``machine.idle()``: Power consumption: ~12mA (in WLAN STA mode). Wake sources:
any hardware interrupt, no special configuration required.
* ``machine.sleep()``: 950uA (in WLAN STA mode). Wake sources are ``Pin``, ``RTC``
and ``WLAN``
* ``machine.deepsleep()``: ~5uA. Wake sources are ``Pin`` and ``RTC``.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment