Initial commit
This commit is contained in:
32
.gitignore
vendored
Normal file
32
.gitignore
vendored
Normal file
@@ -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
|
||||||
9
CMakeLists.txt
Normal file
9
CMakeLists.txt
Normal file
@@ -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)
|
||||||
29
README.md
Normal file
29
README.md
Normal file
@@ -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)
|
||||||
3
main/CMakeLists.txt
Normal file
3
main/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
idf_component_register(SRCS "main.c"
|
||||||
|
PRIV_REQUIRES spi_flash
|
||||||
|
INCLUDE_DIRS "")
|
||||||
3
main/main.c
Normal file
3
main/main.c
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
void app_main(void) { printf("Hello world!\n"); }
|
||||||
Reference in New Issue
Block a user