In order to bring consistency in-tree, migrate all samples to the use
the new prefix <zephyr/...>. Note that the conversion has been scripted:
```python
from pathlib import Path
import re
EXTENSIONS = ("c", "h", "cpp", "rst")
for p in Path(".").glob("samples/**/*"):
if not p.is_file() or p.suffix and p.suffix[1:] not in EXTENSIONS:
continue
content = ""
with open(p) as f:
for line in f:
m = re.match(r"^(.*)#include <(.*)>(.*)$", line)
if (m and
not m.group(2).startswith("zephyr/") and
(Path(".") / "include" / "zephyr" / m.group(2)).exists()):
content += (
m.group(1) +
"#include <zephyr/" + m.group(2) +">" +
m.group(3) + "\n"
)
else:
content += line
with open(p, "w") as f:
f.write(content)
```
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
|
||
|---|---|---|
| .. | ||
| boards | ||
| src | ||
| CMakeLists.txt | ||
| prj.conf | ||
| README.rst | ||
| sample.yaml | ||
.. _fat_fs: FAT Filesystem Sample Application ################################### Overview ******** This sample app demonstrates use of the filesystem API and uses the FAT file system driver to mount an SDHC card connected over a SPI bus or to an on-chip SDHC controller. Requirements ************ This project requires SD card support and microSD card formatted with FAT filesystem. See the :ref:`disk_access_api` documentation for Zephyr implementation details. Building and Running ******************** This sample can be built for a variety of boards, including ``nrf52840_blip``, ``mimxrt1050_evk``, ``olimexino_stm32`` and ``esp_wrover_kit``. .. zephyr-app-commands:: :zephyr-app: samples/subsys/fs/fat_fs :board: nrf52840_blip :goals: build :compact: To run this sample, a FAT formatted microSD card should be present in the microSD slot. If there are any files or directories present in the card, the sample lists them out on the debug serial output.