diff --git a/examples/default_example/.devcontainer/Dockerfile b/examples/default_example/.devcontainer/Dockerfile deleted file mode 100644 index f146d1d..0000000 --- a/examples/default_example/.devcontainer/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -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"] \ No newline at end of file diff --git a/examples/default_example/.devcontainer/devcontainer.json b/examples/default_example/.devcontainer/devcontainer.json deleted file mode 100644 index e7b6546..0000000 --- a/examples/default_example/.devcontainer/devcontainer.json +++ /dev/null @@ -1,47 +0,0 @@ -// 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"] -} \ No newline at end of file diff --git a/examples/default_example/.gitignore b/examples/default_example/.gitignore deleted file mode 100644 index 51c9513..0000000 --- a/examples/default_example/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -build/ -sdkconfig -sdkconfig.old \ No newline at end of file diff --git a/examples/default_example/main/CMakeLists.txt b/examples/default_example/main/CMakeLists.txt deleted file mode 100644 index 6f17445..0000000 --- a/examples/default_example/main/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -idf_component_register(SRCS "xgzf4000-poll-data.c" - INCLUDE_DIRS ".") diff --git a/examples/default_example/sdkconfig.defaults b/examples/default_example/sdkconfig.defaults deleted file mode 100644 index e69de29..0000000 diff --git a/examples/default_example/CMakeLists.txt b/examples/xgzf4000-example/CMakeLists.txt similarity index 91% rename from examples/default_example/CMakeLists.txt rename to examples/xgzf4000-example/CMakeLists.txt index 73e5824..19b5299 100644 --- a/examples/default_example/CMakeLists.txt +++ b/examples/xgzf4000-example/CMakeLists.txt @@ -6,4 +6,4 @@ cmake_minimum_required(VERSION 3.16) set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -project(xgzf4000-default-example) +project(xgzf4000-example) diff --git a/examples/default_example/README.md b/examples/xgzf4000-example/README.md similarity index 100% rename from examples/default_example/README.md rename to examples/xgzf4000-example/README.md diff --git a/examples/xgzf4000-example/main/CMakeLists.txt b/examples/xgzf4000-example/main/CMakeLists.txt new file mode 100644 index 0000000..3b72849 --- /dev/null +++ b/examples/xgzf4000-example/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "xgzf4000-example.c" + INCLUDE_DIRS ".") diff --git a/examples/default_example/main/Kconfig b/examples/xgzf4000-example/main/Kconfig similarity index 100% rename from examples/default_example/main/Kconfig rename to examples/xgzf4000-example/main/Kconfig diff --git a/examples/default_example/main/idf_component.yml b/examples/xgzf4000-example/main/idf_component.yml similarity index 95% rename from examples/default_example/main/idf_component.yml rename to examples/xgzf4000-example/main/idf_component.yml index 86517b4..f13d4a2 100644 --- a/examples/default_example/main/idf_component.yml +++ b/examples/xgzf4000-example/main/idf_component.yml @@ -1,4 +1,4 @@ -dependencies: - hayschan/xgzf4000: - version: "*" - override_path: '../../../' +dependencies: + hayschan/xgzf4000: + version: "*" + override_path: '../../../' diff --git a/examples/default_example/main/xgzf4000-poll-data.c b/examples/xgzf4000-example/main/xgzf4000-example.c similarity index 100% rename from examples/default_example/main/xgzf4000-poll-data.c rename to examples/xgzf4000-example/main/xgzf4000-example.c