generated from BrandonElectronic/ESP-PROJECT-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2a198a1
Showing
16 changed files
with
294 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[{*.md,*.rst}] | ||
trim_trailing_whitespace = false | ||
|
||
[{Makefile,*.mk,*.bat}] | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
[*.pem] | ||
insert_final_newline = false | ||
|
||
[*.py] | ||
max_line_length = 119 | ||
|
||
[{*.cmake,CMakeLists.txt}] | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 120 | ||
|
||
[{*.sh,*.yml,*.yaml}] | ||
indent_size = 2 | ||
|
||
[*.ini] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Compile ESP-IDF Sketches for v5.1 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/espidf-compile-*.yml" | ||
- "main/**" | ||
- "components/**" | ||
- "CMakeLists.txt" | ||
- "Kconfig" | ||
- "partitions.csv" | ||
- "sdkconfig.defaults" | ||
|
||
push: | ||
paths: | ||
- ".github/workflows/espidf-compile-*.yml" | ||
- "main/**" | ||
- "components/**" | ||
- "CMakeLists.txt" | ||
- "Kconfig" | ||
- "partitions.csv" | ||
- "sdkconfig.defaults" | ||
workflow_dispatch: | ||
repository_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Build default data polling example on v5.1 | ||
uses: espressif/esp-idf-ci-action@v1 | ||
with: | ||
esp_idf_version: v5.1 | ||
target: esp32s3 | ||
path: '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Object files | ||
*.o | ||
*.ko | ||
*.obj | ||
*.elf | ||
|
||
# Linker output | ||
*.ilk | ||
*.map | ||
*.exp | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Libraries | ||
*.lib | ||
*.a | ||
*.la | ||
*.lo | ||
|
||
# Shared objects (inc. Windows DLLs) | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
|
||
# Debug files | ||
*.dSYM/ | ||
*.su | ||
*.idb | ||
*.pdb | ||
|
||
# Kernel Module Compile Results | ||
*.mod* | ||
*.cmd | ||
.tmp_versions/ | ||
modules.order | ||
Module.symvers | ||
Mkfile.old | ||
dkms.conf | ||
|
||
.config | ||
*.o | ||
*.pyc | ||
|
||
# gtags | ||
GTAGS | ||
GRTAGS | ||
GPATH | ||
|
||
# emacs | ||
.dir-locals.el | ||
|
||
# emacs temp file suffixes | ||
*~ | ||
.#* | ||
\#*# | ||
|
||
# eclipse setting | ||
.settings | ||
|
||
# MacOS directory files | ||
.DS_Store | ||
|
||
# cache dir | ||
.cache/ | ||
|
||
# Components Unit Test Apps files | ||
components/**/build/ | ||
components/**/build_*_*/ | ||
components/**/sdkconfig | ||
components/**/sdkconfig.old | ||
|
||
# Example project files | ||
examples/**/build/ | ||
examples/**/build_esp*_*/ | ||
examples/**/sdkconfig | ||
examples/**/sdkconfig.old | ||
|
||
# Doc build artifacts | ||
docs/_build/ | ||
docs/doxygen_sqlite3.db | ||
|
||
# Downloaded font files | ||
docs/_static/DejaVuSans.ttf | ||
docs/_static/NotoSansSC-Regular.otf | ||
|
||
# sdkconfig | ||
sdkconfig.old | ||
sdkconfig | ||
|
||
# Unit test app files | ||
tools/unit-test-app/sdkconfig | ||
tools/unit-test-app/sdkconfig.old | ||
tools/unit-test-app/build | ||
tools/unit-test-app/build_*_*/ | ||
tools/unit-test-app/output | ||
tools/unit-test-app/test_configs | ||
|
||
# Unit Test CMake compile log folder | ||
log_ut_cmake | ||
|
||
# test application build files | ||
tools/test_apps/**/build/ | ||
tools/test_apps/**/build_*_*/ | ||
tools/test_apps/**/sdkconfig | ||
tools/test_apps/**/sdkconfig.old | ||
|
||
TEST_LOGS | ||
|
||
# gcov coverage reports | ||
*.gcda | ||
*.gcno | ||
coverage.info | ||
coverage_report/ | ||
|
||
test_multi_heap_host | ||
|
||
# VS Code Settings | ||
.vscode/ | ||
|
||
# VIM files | ||
*.swp | ||
*.swo | ||
|
||
# Clion IDE CMake build & config | ||
.idea/ | ||
cmake-build-*/ | ||
|
||
# Results for the checking of the Python coding style and static analysis | ||
.mypy_cache | ||
flake8_output.txt | ||
|
||
# ESP-IDF default build directory name | ||
build | ||
|
||
# lock files for examples and components | ||
dependencies.lock | ||
|
||
# managed_components for examples | ||
managed_components | ||
|
||
# pytest log | ||
pytest_embedded_log/ | ||
|
||
# Squareline Studio | ||
SquarelineStudio/SquarelineStudio_Project/backup/ | ||
SquarelineStudio/SquarelineStudio_Project/autosave/ | ||
SquarelineStudio/SquarelineStudio_Project/cache/ | ||
SquarelineStudio/SquarelineStudio_Project/export/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# For more information about build system see | ||
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html | ||
# The following five 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.5) | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
add_compile_options("-Wno-format") | ||
get_filename_component(ProjectId ${CMAKE_CURRENT_LIST_DIR} NAME) | ||
string(REPLACE " " "_" ProjectId ${ProjectId}) | ||
project(${ProjectId}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# ESP-PROJECT-TEMPLATE | ||
用这个作为 ESP 相关的模板 | ||
## c语言开发 | ||
idf_component_register(SRCS "main.c" | ||
INCLUDE_DIRS ".") | ||
|
||
## c++语言开发 | ||
idf_component_register(SRCS "main.cpp" | ||
INCLUDE_DIRS ".") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ESP-PROJECT-TEMPLATE | ||
用这个作为 ESP 相关的模板 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ESP-PROJECT-TEMPLATE | ||
用这个作为 ESP 相关的模板 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#c语言开发 | ||
idf_component_register(SRCS "main.c" | ||
INCLUDE_DIRS ".") | ||
|
||
#c++语言开发 | ||
#idf_component_register(SRCS "main.cpp" | ||
# INCLUDE_DIRS ".") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ESP-PROJECT-TEMPLATE | ||
用这个作为 ESP 相关的模板 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <stdio.h> | ||
/*c语言开发*/ | ||
void app_main(void) | ||
{ | ||
printf("the template successfully created\n"); | ||
} | ||
|
||
|
||
/*c++语言开发*/ | ||
// extern "C" void app_main(void) | ||
// { | ||
|
||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file was generated using idf.py save-defconfig. It can be edited manually. | ||
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration | ||
# | ||
CONFIG_IDF_TARGET="esp32s3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ESP-PROJECT-TEMPLATE | ||
用这个作为 ESP 相关的模板 | ||
|
Empty file.
Empty file.
Empty file.