Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
JahazielLem committed Nov 12, 2024
2 parents de90968 + 72b6403 commit d88905e
Show file tree
Hide file tree
Showing 131 changed files with 17,024 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ hardware/Template-KiCAD-Project-CI-backups/
hardware/eko-badge-2024/eko-badge-2024-backups/

*.zip

build/
.DS_Store
/**/managed_components/
.vscode/c_cpp_properties.json
firmware/sdkconfig
.vscode/settings.json
firmware/dependencies.lock
firmware/sdkconfig.old
.vscode/**
*.kicad_sch.lck
27 changes: 27 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"configurations": [
{
"name": "ESP-IDF",
"includePath": [
"${config:idf.espIdfPath}/components/**",
"${config:idf.espIdfPathWin}/components/**",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${workspaceFolder}/**",
"${MININO_PATH}/**"
],
"browse": {
"path": [
"${config:idf.espIdfPath}/components",
"${config:idf.espIdfPathWin}/components",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${workspaceFolder}",
"${MININO_PATH}/**"
],
"limitSymbolsToIncludedHeaders": false
}
}
],
"version": 4
}
25 changes: 25 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"files.associations": {
"zigbee_screens_module.h": "c",
"thread_broadcast.h": "c",
"locale": "c",
"string.h": "c",
"oled_screen.h": "c",
"hid_module.h": "c",
"trackers_scanner.h": "c",
"trackers_module.h": "c",
"menus_module.h": "c",
"general_screens.h": "c",
"menu_screens_modules.h": "c",
"preferences.h": "c",
"keyboard_module.h": "c",
"bitmaps_general.h": "c",
"hid_screens.h": "c",
"__node_handle": "c",
"regex": "c",
"freertos.h": "c",
"llamaneitor.h": "c",
"typeinfo": "c"
},
"cmake.sourceDirectory": "/Users/seecwinter/Documents/Electronic_cats/Minino/firmware/**"
}
3 changes: 3 additions & 0 deletions firmware/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"idf.adapterTargetName": "esp32c6"
}
14 changes: 14 additions & 0 deletions firmware/CMakeLists.txt
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(eko)
37 changes: 37 additions & 0 deletions firmware/Makefile
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
Loading

0 comments on commit d88905e

Please sign in to comment.