Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7090c5e

Browse files
committed
Initial commit, Working smartconfig example
1 parent e07d48d commit 7090c5e

26 files changed

+4961
-0
lines changed

‎.devcontainer/Dockerfile‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 dialout $CONTAINER_USER
40+
USER ${CONTAINER_USER}
41+
ENV USER=${CONTAINER_USER}
42+
WORKDIR /home/${CONTAINER_USER}
43+
44+
RUN echo "source /opt/esp/idf/export.sh > /dev/null 2>&1" >> ~/.bashrc
45+
46+
ENTRYPOINT [ "/opt/esp/entrypoint.sh" ]
47+
48+
CMD ["/bin/bash", "-c"]

‎.devcontainer/devcontainer.json‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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.1_py3.8_env/bin/python",
23+
"idf.toolsPath": "/opt/esp",
24+
"idf.gitPath": "/usr/bin/git"
25+
},
26+
"extensions": [
27+
"ms-vscode.cpptools",
28+
"espressif.esp-idf-extension"
29+
],
30+
},
31+
"codespaces": {
32+
"settings": {
33+
"terminal.integrated.defaultProfile.linux": "bash",
34+
"idf.espIdfPath": "/opt/esp/idf",
35+
"idf.customExtraPaths": "",
36+
"idf.pythonBinPath": "/opt/esp/python_env/idf5.1_py3.8_env/bin/python",
37+
"idf.toolsPath": "/opt/esp",
38+
"idf.gitPath": "/usr/bin/git"
39+
},
40+
"extensions": [
41+
"ms-vscode.cpptools",
42+
"espressif.esp-idf-extension"
43+
],
44+
}
45+
},
46+
"runArgs": ["--privileged"]
47+
}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

‎.vscode/c_cpp_properties.json‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "ESP-IDF",
5+
"compilerPath": "${config:idf.toolsPath}/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",
6+
"includePath": [
7+
"${config:idf.espIdfPath}/components/**",
8+
"${config:idf.espIdfPathWin}/components/**",
9+
"${config:idf.espAdfPath}/components/**",
10+
"${config:idf.espAdfPathWin}/components/**",
11+
"${workspaceFolder}/**"
12+
],
13+
"browse": {
14+
"path": [
15+
"${config:idf.espIdfPath}/components",
16+
"${config:idf.espIdfPathWin}/components",
17+
"${config:idf.espAdfPath}/components/**",
18+
"${config:idf.espAdfPathWin}/components/**",
19+
"${workspaceFolder}"
20+
],
21+
"limitSymbolsToIncludedHeaders": false
22+
}
23+
}
24+
],
25+
"version": 4
26+
}

‎.vscode/launch.json‎

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+
}

‎.vscode/settings.json‎

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"C_Cpp.intelliSenseEngine": "default",
3+
"idf.flashType": "UART",
4+
"idf.adapterTargetName": "esp32",
5+
"idf.port": "/dev/ttyUSB0",
6+
"files.associations": {
7+
"string_view": "cpp",
8+
"complex": "cpp",
9+
"array": "cpp",
10+
"atomic": "cpp",
11+
"bit": "cpp",
12+
"*.tcc": "cpp",
13+
"bitset": "cpp",
14+
"cctype": "cpp",
15+
"chrono": "cpp",
16+
"clocale": "cpp",
17+
"cmath": "cpp",
18+
"compare": "cpp",
19+
"concepts": "cpp",
20+
"condition_variable": "cpp",
21+
"cstdarg": "cpp",
22+
"cstddef": "cpp",
23+
"cstdint": "cpp",
24+
"cstdio": "cpp",
25+
"cstdlib": "cpp",
26+
"cstring": "cpp",
27+
"ctime": "cpp",
28+
"cwchar": "cpp",
29+
"cwctype": "cpp",
30+
"deque": "cpp",
31+
"list": "cpp",
32+
"map": "cpp",
33+
"set": "cpp",
34+
"string": "cpp",
35+
"unordered_map": "cpp",
36+
"vector": "cpp",
37+
"exception": "cpp",
38+
"algorithm": "cpp",
39+
"functional": "cpp",
40+
"iterator": "cpp",
41+
"memory": "cpp",
42+
"memory_resource": "cpp",
43+
"netfwd": "cpp",
44+
"numeric": "cpp",
45+
"random": "cpp",
46+
"ratio": "cpp",
47+
"regex": "cpp",
48+
"system_error": "cpp",
49+
"tuple": "cpp",
50+
"type_traits": "cpp",
51+
"utility": "cpp",
52+
"fstream": "cpp",
53+
"future": "cpp",
54+
"initializer_list": "cpp",
55+
"iosfwd": "cpp",
56+
"iostream": "cpp",
57+
"istream": "cpp",
58+
"limits": "cpp",
59+
"mutex": "cpp",
60+
"new": "cpp",
61+
"numbers": "cpp",
62+
"ostream": "cpp",
63+
"semaphore": "cpp",
64+
"sstream": "cpp",
65+
"stdexcept": "cpp",
66+
"stop_token": "cpp",
67+
"streambuf": "cpp",
68+
"thread": "cpp",
69+
"cinttypes": "cpp",
70+
"typeinfo": "cpp"
71+
}
72+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /