generated from ElectronicCats/Template-Project-KiCAD-CI
-
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.
Merge pull request #1 from ElectronicCats/no_infect
publish no infected firmware
- Loading branch information
Showing
72 changed files
with
4,924 additions
and
5 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,16 @@ | ||
--- | ||
# options: https://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
BasedOnStyle: chromium | ||
IndentWidth: 2 | ||
# Must be 80 characters or less! | ||
# ColumnLimit: 80 | ||
# does (int) x instead of (int)x | ||
SpaceAfterCStyleCast: true | ||
# spaces, not tabs! | ||
UseTab: Never | ||
# | ||
AlignTrailingComments: true | ||
# #define SHORT_NAME 42 | ||
# #define LONGER_NAME 0x007f # does nice spacing for macros | ||
AlignConsecutiveMacros: Consecutive | ||
IndentPPDirectives: BeforeHash |
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
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 @@ | ||
[submodule "firmware/components/badge_connect"] | ||
path = firmware/components/badge_connect | ||
url = https://github.com/ElectronicCats/badge_connect_bin.git |
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,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: no-commit-to-branch # This hook prevents direct commits to main branch | ||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v18.1.2 # Use the sha / tag you want to point at | ||
hooks: | ||
- id: clang-format | ||
types_or: [c++, c] | ||
args: ['--style=file'] | ||
exclude: ^firmware/components/openthread | ||
- repo: https://github.com/compilerla/conventional-pre-commit | ||
rev: v3.2.0 | ||
hooks: | ||
- id: conventional-pre-commit | ||
stages: [commit-msg] | ||
args: [] | ||
exclude: ^firmware/components/openthread |
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
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,14 @@ | ||
# 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.16) | ||
|
||
set(EXTRA_COMPONENT_DIRS $ENV{MININO_PATH}/components) | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
set(PROJECT_VERSION_MAJOR(0)) | ||
set(PROJECT_VERSION_MINOR(1)) | ||
set(PROJECT_VERSION_PATCH(0)) | ||
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") | ||
project(minino) |
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 @@ | ||
test_port: | ||
@if [ -z "$(PORT)" ]; then echo "PORT is not set, please set PORT using export, example: 'export PORT=/dev/ttyACM0'"; exit 1; fi | ||
|
||
test_minino_path: | ||
@if [ -z "$(MININO_PATH)" ]; then echo "MININO_PATH is not set, please set MININO_PATH using export, example: 'export MININO_PATH=/path/to/minino/firmware'"; exit 1; fi | ||
|
||
setup: | ||
make test_minino_path | ||
idf.py set-target esp32c6 | ||
pre-commit install | ||
|
||
compile: | ||
make test_minino_path | ||
idf.py build | ||
|
||
flash: | ||
make test_port | ||
idf.py -p $(PORT) flash | ||
|
||
format: | ||
make test_port | ||
idf.py -p $(PORT) erase-flash | ||
|
||
monitor: | ||
make test_port | ||
idf.py -p $(PORT) monitor | ||
|
||
clean: | ||
rm -rf build/ managed_components/ | ||
rm sdkconfig | ||
make setup | ||
|
||
all: flash monitor | ||
|
||
.PHONY: test_port test_minino_path setup compile flash monitor clean all | ||
|
||
ff: format all |
Oops, something went wrong.