Skip to content

Commit 48eca34

Browse files
author
EternityFOR
committed
first commit
0 parents  commit 48eca34

File tree

5,360 files changed

+849591
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,360 files changed

+849591
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build
2+
Debug
3+
Release
4+
.launch
5+
.metadata
6+
3.Purchase

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"idf.adapterTargetName": "esp32s3",
3+
"idf.openOcdConfigs": [
4+
"interface/ftdi/esp32_devkitj_v1.cfg",
5+
"target/esp32s3.cfg"
6+
]
7+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM espressif/idf
2+
3+
ARG DEBIAN_FRONTEND=nointeractive
4+
ARG CONTAINER_USER=esp
5+
ARG USER_UID=1000
6+
ARG USER_GID=$USER_UID
7+
8+
RUN apt-get update \
9+
&& apt install -y -q \
10+
cmake \
11+
git \
12+
hwdata \
13+
libglib2.0-0 \
14+
libnuma1 \
15+
libpixman-1-0 \
16+
linux-tools-virtual \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
RUN update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20
20+
21+
# QEMU
22+
ENV QEMU_REL=esp-develop-20220919
23+
ENV QEMU_SHA256=f6565d3f0d1e463a63a7f81aec94cce62df662bd42fc7606de4b4418ed55f870
24+
ENV QEMU_DIST=qemu-${QEMU_REL}.tar.bz2
25+
ENV QEMU_URL=https://github.com/espressif/qemu/releases/download/${QEMU_REL}/${QEMU_DIST}
26+
27+
ENV LC_ALL=C.UTF-8
28+
ENV LANG=C.UTF-8
29+
30+
RUN wget --no-verbose ${QEMU_URL} \
31+
&& echo "${QEMU_SHA256} *${QEMU_DIST}" | sha256sum --check --strict - \
32+
&& tar -xf $QEMU_DIST -C /opt \
33+
&& rm ${QEMU_DIST}
34+
35+
ENV PATH=/opt/qemu/bin:${PATH}
36+
37+
RUN groupadd --gid $USER_GID $CONTAINER_USER \
38+
&& adduser --uid $USER_UID --gid $USER_GID --disabled-password --gecos "" ${CONTAINER_USER} \
39+
&& usermod -a -G root $CONTAINER_USER && usermod -a -G dialout $CONTAINER_USER
40+
41+
RUN chmod -R 775 /opt/esp/python_env/
42+
43+
USER ${CONTAINER_USER}
44+
ENV USER=${CONTAINER_USER}
45+
WORKDIR /home/${CONTAINER_USER}
46+
47+
RUN echo "source /opt/esp/idf/export.sh > /dev/null 2>&1" >> ~/.bashrc
48+
49+
ENTRYPOINT [ "/opt/esp/entrypoint.sh" ]
50+
51+
CMD ["/bin/bash", "-c"]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/ubuntu
3+
{
4+
"name": "ESP-IDF QEMU",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
},
8+
// Add the IDs of extensions you want installed when the container is created
9+
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",
10+
/* the path of workspace folder to be opened after container is running
11+
*/
12+
"workspaceFolder": "${localWorkspaceFolder}",
13+
"mounts": [
14+
"source=extensionCache,target=/root/.vscode-server/extensions,type=volume"
15+
],
16+
"customizations": {
17+
"vscode": {
18+
"settings": {
19+
"terminal.integrated.defaultProfile.linux": "bash",
20+
"idf.espIdfPath": "/opt/esp/idf",
21+
"idf.customExtraPaths": "",
22+
"idf.pythonBinPath": "/opt/esp/python_env/idf5.3_py3.10_env/bin/python",
23+
"idf.toolsPath": "/opt/esp",
24+
"idf.gitPath": "/usr/bin/git"
25+
},
26+
"extensions": [
27+
"espressif.esp-idf-extension"
28+
],
29+
},
30+
"codespaces": {
31+
"settings": {
32+
"terminal.integrated.defaultProfile.linux": "bash",
33+
"idf.espIdfPath": "/opt/esp/idf",
34+
"idf.customExtraPaths": "",
35+
"idf.pythonBinPath": "/opt/esp/python_env/idf5.3_py3.10_env/bin/python",
36+
"idf.toolsPath": "/opt/esp",
37+
"idf.gitPath": "/usr/bin/git"
38+
},
39+
"extensions": [
40+
"espressif.esp-idf-extension"
41+
],
42+
}
43+
},
44+
"runArgs": ["--privileged"]
45+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "ESP-IDF",
5+
"compilerPath": "${config:idf.toolsPathWin}\\tools\\xtensa-esp32s3-elf\\esp-2022r1-11.2.0\\xtensa-esp32s3-elf\\bin\\xtensa-esp32s3-elf-gcc.exe",
6+
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
7+
"includePath": [
8+
"${config:idf.espIdfPath}/components/**",
9+
"${config:idf.espIdfPathWin}/components/**",
10+
"${config:idf.espAdfPath}/components/**",
11+
"${config:idf.espAdfPathWin}/components/**",
12+
"${workspaceFolder}/**"
13+
],
14+
"browse": {
15+
"path": [
16+
"${config:idf.espIdfPath}/components",
17+
"${config:idf.espIdfPathWin}/components",
18+
"${config:idf.espAdfPath}/components/**",
19+
"${config:idf.espAdfPathWin}/components/**",
20+
"${workspaceFolder}"
21+
],
22+
"limitSymbolsToIncludedHeaders": false
23+
}
24+
}
25+
],
26+
"version": 4
27+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "espidf",
6+
"name": "Launch",
7+
"request": "launch"
8+
}
9+
]
10+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"C_Cpp.intelliSenseEngine": "default",
3+
"idf.flashType": "UART",
4+
"idf.adapterTargetName": "esp32s3",
5+
"idf.portWin": "COM20",
6+
"files.associations": {
7+
"system_error": "c",
8+
"array": "c",
9+
"functional": "c",
10+
"tuple": "c",
11+
"type_traits": "c",
12+
"utility": "c",
13+
"esp_gap_ble_api.h": "c"
14+
},
15+
"idf.openOcdConfigs": [
16+
"interface/ftdi/esp32_devkitj_v1.cfg",
17+
"target/esp32s3.cfg"
18+
],
19+
"idf.espIdfPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3\\esp-idf",
20+
"idf.pythonBinPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\python_env\\idf5.0_py3.11_env\\Scripts\\python.exe",
21+
"idf.toolsPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL",
22+
"idf.customExtraPaths": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp-elf-gdb\\11.2_20220823\\xtensa-esp-elf-gdb\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\riscv32-esp-elf-gdb\\11.2_20220823\\riscv32-esp-elf-gdb\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp32-elf\\esp-2022r1-11.2.0\\xtensa-esp32-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp32s2-elf\\esp-2022r1-11.2.0\\xtensa-esp32s2-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp32s3-elf\\esp-2022r1-11.2.0\\xtensa-esp32s3-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\riscv32-esp-elf\\esp-2022r1-11.2.0\\riscv32-esp-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\esp32ulp-elf\\2.35_20220830\\esp32ulp-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\cmake\\3.24.0\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\openocd-esp32\\v0.12.0-esp32-20230419\\openocd-esp32\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\ninja\\1.10.2;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\idf-exe\\1.0.3;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\ccache\\4.6.2\\ccache-4.6.2-windows-x86_64;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\dfu-util\\0.9\\dfu-util-0.9-win64;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\esp-rom-elfs\\20220823",
23+
"idf.customExtraVars": {
24+
"OPENOCD_SCRIPTS": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\openocd-esp32\\v0.12.0-esp32-20230419/openocd-esp32/share/openocd/scripts",
25+
"IDF_CCACHE_ENABLE": "1",
26+
"ESP_ROM_ELF_DIR": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\esp-rom-elfs\\20220823/"
27+
},
28+
"idf.gitPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\idf-git\\2.39.2\\cmd\\git.exe"
29+
}

0 commit comments

Comments
 (0)