-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3351e9
commit 9cc0541
Showing
1,293 changed files
with
132,501 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
<storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
<cconfiguration id="org.eclipse.cdt.core.default.config.138384038"> | ||
<storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="org.eclipse.cdt.core.default.config.138384038" moduleId="org.eclipse.cdt.core.settings" name="Configuration"> | ||
<externalSettings/> | ||
<extensions/> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
</cconfiguration> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.pathentry"> | ||
<pathentry excluding="**/CMakeFiles/**" kind="out" path="build"/> | ||
</storageModule> | ||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
</cproject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>hello_world</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.cdt.core.cBuilder</name> | ||
<triggers>clean,full,incremental,</triggers> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.cdt.core.cnature</nature> | ||
<nature>org.eclipse.cdt.core.ccnature</nature> | ||
<nature>com.espressif.idf.core.idfNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# The following lines of boilerplate have to be in your project's | ||
# CMakeLists in this exact order for cmake to work correctly | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(hello_world) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-S2 | ESP32-S3 | | ||
| ----------------- | ----- | -------- | -------- | -------- | -------- | | ||
|
||
# Hello World Example | ||
|
||
Starts a FreeRTOS task to print "Hello World". | ||
|
||
(See the README.md file in the upper level 'examples' directory for more information about examples.) | ||
|
||
## How to use example | ||
|
||
Follow detailed instructions provided specifically for this example. | ||
|
||
Select the instructions depending on Espressif chip installed on your development board: | ||
|
||
- [ESP32 Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/stable/get-started/index.html) | ||
- [ESP32-S2 Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/get-started/index.html) | ||
|
||
|
||
## Example folder contents | ||
|
||
The project **hello_world** contains one source file in C language [hello_world_main.c](main/hello_world_main.c). The file is located in folder [main](main). | ||
|
||
ESP-IDF projects are built using CMake. The project build configuration is contained in `CMakeLists.txt` files that provide set of directives and instructions describing the project's source files and targets (executable, library, or both). | ||
|
||
Below is short explanation of remaining files in the project folder. | ||
|
||
``` | ||
├── CMakeLists.txt | ||
├── pytest_hello_world.py Python script used for automated testing | ||
├── main | ||
│ ├── CMakeLists.txt | ||
│ └── hello_world_main.c | ||
└── README.md This is the file you are currently reading | ||
``` | ||
|
||
For more information on structure and contents of ESP-IDF projects, please refer to Section [Build System](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html) of the ESP-IDF Programming Guide. | ||
|
||
## Troubleshooting | ||
|
||
* Program upload failure | ||
|
||
* Hardware connection is not correct: run `idf.py -p PORT monitor`, and reboot your board to see if there are any output logs. | ||
* The baud rate for downloading is too high: lower your baud rate in the `menuconfig` menu, and try again. | ||
|
||
## Technical support and feedback | ||
|
||
Please use the following feedback channels: | ||
|
||
* For technical queries, go to the [esp32.com](https://esp32.com/) forum | ||
* For a feature request or bug report, create a [GitHub issue](https://github.com/espressif/esp-idf/issues) | ||
|
||
We will get back to you as soon as possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM espressif/idf | ||
|
||
ARG DEBIAN_FRONTEND=nointeractive | ||
ARG CONTAINER_USER=esp | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
RUN apt-get update \ | ||
&& apt install -y -q \ | ||
cmake \ | ||
git \ | ||
hwdata \ | ||
libglib2.0-0 \ | ||
libnuma1 \ | ||
libpixman-1-0 \ | ||
linux-tools-virtual \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20 | ||
|
||
# QEMU | ||
ENV QEMU_REL=esp-develop-20220919 | ||
ENV QEMU_SHA256=f6565d3f0d1e463a63a7f81aec94cce62df662bd42fc7606de4b4418ed55f870 | ||
ENV QEMU_DIST=qemu-${QEMU_REL}.tar.bz2 | ||
ENV QEMU_URL=https://github.com/espressif/qemu/releases/download/${QEMU_REL}/${QEMU_DIST} | ||
|
||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
|
||
RUN wget --no-verbose ${QEMU_URL} \ | ||
&& echo "${QEMU_SHA256} *${QEMU_DIST}" | sha256sum --check --strict - \ | ||
&& tar -xf $QEMU_DIST -C /opt \ | ||
&& rm ${QEMU_DIST} | ||
|
||
ENV PATH=/opt/qemu/bin:${PATH} | ||
|
||
RUN groupadd --gid $USER_GID $CONTAINER_USER \ | ||
&& adduser --uid $USER_UID --gid $USER_GID --disabled-password --gecos "" ${CONTAINER_USER} \ | ||
&& usermod -a -G dialout $CONTAINER_USER | ||
USER ${CONTAINER_USER} | ||
ENV USER=${CONTAINER_USER} | ||
WORKDIR /home/${CONTAINER_USER} | ||
|
||
RUN echo "source /opt/esp/idf/export.sh > /dev/null 2>&1" >> ~/.bashrc | ||
|
||
ENTRYPOINT [ "/opt/esp/entrypoint.sh" ] | ||
|
||
CMD ["/bin/bash", "-c"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/ubuntu | ||
{ | ||
"name": "ESP-IDF QEMU", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created | ||
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", | ||
/* the path of workspace folder to be opened after container is running | ||
*/ | ||
"workspaceFolder": "${localWorkspaceFolder}", | ||
"mounts": [ | ||
"source=extensionCache,target=/root/.vscode-server/extensions,type=volume" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "bash", | ||
"idf.espIdfPath": "/opt/esp/idf", | ||
"idf.customExtraPaths": "", | ||
"idf.pythonBinPath": "/opt/esp/python_env/idf5.1_py3.8_env/bin/python", | ||
"idf.toolsPath": "/opt/esp", | ||
"idf.gitPath": "/usr/bin/git" | ||
}, | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"espressif.esp-idf-extension" | ||
], | ||
}, | ||
"codespaces": { | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "bash", | ||
"idf.espIdfPath": "/opt/esp/idf", | ||
"idf.customExtraPaths": "", | ||
"idf.pythonBinPath": "/opt/esp/python_env/idf5.1_py3.8_env/bin/python", | ||
"idf.toolsPath": "/opt/esp", | ||
"idf.gitPath": "/usr/bin/git" | ||
}, | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"espressif.esp-idf-extension" | ||
], | ||
} | ||
}, | ||
"runArgs": ["--privileged"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "ESP-IDF", | ||
"compilerPath": "C:\\Espressif\\tools\\xtensa-esp32s3-elf\\esp-12.2.0_20230208\\xtensa-esp32s3-elf\\bin\\xtensa-esp32s3-elf-gcc.exe", | ||
"includePath": [ | ||
"${config:idf.espIdfPath}/components/**", | ||
"${config:idf.espIdfPathWin}/components/**", | ||
"${config:idf.espAdfPath}/components/**", | ||
"${config:idf.espAdfPathWin}/components/**", | ||
"${workspaceFolder}/**" | ||
], | ||
"browse": { | ||
"path": [ | ||
"${config:idf.espIdfPath}/components", | ||
"${config:idf.espIdfPathWin}/components", | ||
"${config:idf.espAdfPath}/components/**", | ||
"${config:idf.espAdfPathWin}/components/**", | ||
"${workspaceFolder}" | ||
], | ||
"limitSymbolsToIncludedHeaders": false | ||
} | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "espidf", | ||
"name": "Launch", | ||
"request": "launch" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"C_Cpp.intelliSenseEngine": "default" | ||
} |
Oops, something went wrong.