commit 9f1b1ba5a014b649ac4de6154cd2b6854cd5f96d Author: dcorral Date: Sat Nov 8 13:20:09 2025 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c552a93 --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +# Build directories +build*/ +build.clang/ +build.gcc/ + +# SDK configuration +sdkconfig +sdkconfig.old + +# Components +components/ +managed_components/ + +# IDE files +.vscode/ +.idea/ +*.swp +*.swo + +# OS files +.DS_Store +Thumbs.db + +# Logs +*.log + +# Cache +.cache/ + +# Temporary files +*.tmp +*.bak \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a4bbd5c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +# 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) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) +project(main) diff --git a/README.md b/README.md new file mode 100644 index 0000000..edd2f5b --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# ESP-IDF Template + +A minimal ESP-IDF project template. + +## Project Structure + +``` +├── CMakeLists.txt +├── sdkconfig +├── main/ +│ ├── CMakeLists.txt +│ └── main.c +└── README.md +``` + +## Getting Started + +1. Install ESP-IDF +2. Copy this template +3. Configure with `idf.py menuconfig` +4. Build with `idf.py build` +5. Flash with `idf.py flash` + +## Clangd Setup + +For enhanced code intelligence with clangd: + +1. Install ESP-specific clangd: `idf_tools.py install esp-clang` +2. Configure the project for clangd: `idf.py -B build.clang -D IDF_TOOLCHAIN=clang reconfigure` (or use the `:ESPReconfigure` command in VSCode) diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt new file mode 100644 index 0000000..6692d62 --- /dev/null +++ b/main/CMakeLists.txt @@ -0,0 +1,3 @@ +idf_component_register(SRCS "main.c" + PRIV_REQUIRES spi_flash + INCLUDE_DIRS "") diff --git a/main/main.c b/main/main.c new file mode 100644 index 0000000..0320de4 --- /dev/null +++ b/main/main.c @@ -0,0 +1,3 @@ +#include + +void app_main(void) { printf("Hello world!\n"); }