Skip to content

Commit 7b2918f

Browse files
committed
comit init:
Funcionando bmp280 y componente
0 parents  commit 7b2918f

File tree

16 files changed

+4657
-0
lines changed

16 files changed

+4657
-0
lines changed

.devcontainer/Dockerfile

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"]

.devcontainer/devcontainer.json

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

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
/build/*
3+
/build/*/*
4+
/build/*/*/*
5+
6+
!/.devcontainer/
7+
!/.vscode/
8+
!/components/
9+
!/main/
10+
!/.gitignore
11+
!/CMakeLists.txt
12+
!/README.md
13+
!/sdkconfig
14+
!/sdkconfig.old
15+
!/dependencies.lock

.vscode/c_cpp_properties.json

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-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin\\xtensa-esp32-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+
}

.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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"C_Cpp.intelliSenseEngine": "default",
3+
"idf.adapterTargetName": "esp32",
4+
"idf.customExtraPaths": "c:\\Espressif\\tools\\tools\\xtensa-esp-elf-gdb\\12.1_20231023\\xtensa-esp-elf-gdb\\bin;c:\\Espressif\\tools\\tools\\riscv32-esp-elf-gdb\\12.1_20231023\\riscv32-esp-elf-gdb\\bin;c:\\Espressif\\tools\\tools\\xtensa-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin;c:\\Espressif\\tools\\tools\\riscv32-esp-elf\\esp-13.2.0_20230928\\riscv32-esp-elf\\bin;c:\\Espressif\\tools\\tools\\esp32ulp-elf\\2.35_20220830\\esp32ulp-elf\\bin;c:\\Espressif\\tools\\tools\\cmake\\3.24.0\\bin;c:\\Espressif\\tools\\tools\\openocd-esp32\\v0.12.0-esp32-20230921\\openocd-esp32\\bin;c:\\Espressif\\tools\\tools\\ninja\\1.11.1;c:\\Espressif\\tools\\tools\\idf-exe\\1.0.3;c:\\Espressif\\tools\\tools\\ccache\\4.8\\ccache-4.8-windows-x86_64;c:\\Espressif\\tools\\tools\\dfu-util\\0.11\\dfu-util-0.11-win64;c:\\Espressif\\tools\\tools\\esp-rom-elfs\\20230320",
5+
"idf.customExtraVars": {
6+
"OPENOCD_SCRIPTS": "c:\\Espressif\\tools\\tools\\openocd-esp32\\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts",
7+
"IDF_CCACHE_ENABLE": "1",
8+
"ESP_ROM_ELF_DIR": "c:\\Espressif\\tools\\tools\\esp-rom-elfs\\20230320/"
9+
},
10+
"idf.espIdfPathWin": "c:\\Espressif\\v5.2\\esp-idf",
11+
"idf.openOcdConfigs": [
12+
"board/esp32-wrover-kit-3.3v.cfg"
13+
],
14+
"idf.portWin": "COM11",
15+
"idf.pythonBinPathWin": "c:\\Espressif\\tools\\python_env\\idf5.2_py3.11_env\\Scripts\\python.exe",
16+
"idf.toolsPathWin": "c:\\Espressif\\tools",
17+
"idf.flashType": "UART"
18+
}

0 commit comments

Comments
 (0)