summaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-06-03 13:51:13 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-06-03 13:51:13 +0300
commit1ce44f30467e4882580ca8545f15ba7d882cb428 (patch)
tree8e42b4e646a5d3d323cbf0ccdf8d057df1dfc792 /docs
parent92206a78aeddf81eca08fb25589231e5a62df69c (diff)
downloadmicropython-1ce44f30467e4882580ca8545f15ba7d882cb428.tar.gz
micropython-1ce44f30467e4882580ca8545f15ba7d882cb428.zip
docs/uos: Deconditionalize, remove minor port-specific details.
For a couple of ports, there was information which directory is set as current after boot. This information doesn't belong to "uos" module, and is moved to boards' references (which actually already contained information on which directory is chosen for boot, even if without explicit mentioning that it becomes current directory, which is now done).
Diffstat (limited to 'docs')
-rw-r--r--docs/library/uos.rst21
-rw-r--r--docs/pyboard/general.rst4
-rw-r--r--docs/wipy/general.rst2
3 files changed, 5 insertions, 22 deletions
diff --git a/docs/library/uos.rst b/docs/library/uos.rst
index d1f83d2cc3..82ed5dbc93 100644
--- a/docs/library/uos.rst
+++ b/docs/library/uos.rst
@@ -4,28 +4,9 @@
.. module:: uos
:synopsis: basic "operating system" services
-The ``os`` module contains functions for filesystem access and ``urandom``
+The ``uos`` module contains functions for filesystem access and ``urandom``
function.
-Port specifics
---------------
-
-The filesystem has ``/`` as the root directory and the
-available physical drives are accessible from here. They are currently:
-
- ``/flash`` -- the internal flash filesystem
-
- ``/sd`` -- the SD card (if it exists)
-
-.. only:: port_pyboard
-
- On boot up, the current directory is ``/flash`` if no SD card is inserted,
- otherwise it is ``/sd``.
-
-.. only:: port_wipy
-
- On boot up, the current directory is ``/flash``.
-
Functions
---------
diff --git a/docs/pyboard/general.rst b/docs/pyboard/general.rst
index 48e0146442..1d040f6ccc 100644
--- a/docs/pyboard/general.rst
+++ b/docs/pyboard/general.rst
@@ -10,7 +10,9 @@ is inserted into the slot, it is available as ``/sd``.
When the pyboard boots up, it needs to choose a filesystem to boot from. If
there is no SD card, then it uses the internal filesystem ``/flash`` as the boot
-filesystem, otherwise, it uses the SD card ``/sd``.
+filesystem, otherwise, it uses the SD card ``/sd``. After the boot, the current
+directory is set to one of the directories above.
+
If needed, you can prevent the use of the SD card by creating an empty file
called ``/flash/SKIPSD``. If this file exists when the pyboard boots
up then the SD card will be skipped and the pyboard will always boot from the
diff --git a/docs/wipy/general.rst b/docs/wipy/general.rst
index ca6f77ab05..1e396518e0 100644
--- a/docs/wipy/general.rst
+++ b/docs/wipy/general.rst
@@ -53,7 +53,7 @@ which is stored within the external serial flash memory. If a micro SD card
is hooked-up and mounted, it will be available as well.
When the WiPy starts up, it always boots from the ``boot.py`` located in the
-``/flash`` file system.
+``/flash`` file system. On boot up, the current directory is ``/flash``.
The file system is accessible via the native FTP server running in the WiPy.
Open your FTP client of choice and connect to: