From e27fe1ebfe1ff0c02700e05f93a6398074823fd0 Mon Sep 17 00:00:00 2001 From: Matthias Mitscherlich Date: Thu, 12 Jan 2023 19:54:39 +0100 Subject: [PATCH] Initial project creation, blank without any custom code --- code/.cproject | 17 +++++++++++++++++ code/.gitignore | 1 + code/.project | 20 ++++++++++++++++++++ code/CMakeLists.txt | 8 ++++++++ code/LICENSE | 5 +++++ code/README.md | 11 +++++++++++ code/main/CMakeLists.txt | 10 ++++++++++ code/main/Kconfig.projbuild | 14 ++++++++++++++ code/main/main.c | 11 +++++++++++ 9 files changed, 97 insertions(+) create mode 100644 code/.cproject create mode 100644 code/.gitignore create mode 100644 code/.project create mode 100644 code/CMakeLists.txt create mode 100644 code/LICENSE create mode 100644 code/README.md create mode 100644 code/main/CMakeLists.txt create mode 100644 code/main/Kconfig.projbuild create mode 100644 code/main/main.c diff --git a/code/.cproject b/code/.cproject new file mode 100644 index 0000000..a566ec8 --- /dev/null +++ b/code/.cproject @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/code/.gitignore b/code/.gitignore new file mode 100644 index 0000000..84c048a --- /dev/null +++ b/code/.gitignore @@ -0,0 +1 @@ +/build/ diff --git a/code/.project b/code/.project new file mode 100644 index 0000000..d150c0c --- /dev/null +++ b/code/.project @@ -0,0 +1,20 @@ + + + wordclock + + + + + + org.eclipse.cdt.core.cBuilder + clean,full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + com.espressif.idf.core.idfNature + + diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt new file mode 100644 index 0000000..6b4e5b0 --- /dev/null +++ b/code/CMakeLists.txt @@ -0,0 +1,8 @@ +# 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.5) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +get_filename_component(ProjectId ${CMAKE_CURRENT_LIST_DIR} NAME) +string(REPLACE " " "_" ProjectId ${ProjectId}) +project(${ProjectId}) diff --git a/code/LICENSE b/code/LICENSE new file mode 100644 index 0000000..17fb21c --- /dev/null +++ b/code/LICENSE @@ -0,0 +1,5 @@ +Code in this repository is in the Public Domain (or CC0 licensed, at your option.) + +Unless required by applicable law or agreed to in writing, this +software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. diff --git a/code/README.md b/code/README.md new file mode 100644 index 0000000..27ddf0d --- /dev/null +++ b/code/README.md @@ -0,0 +1,11 @@ +ESP-IDF template app +==================== + +This is a template application to be used with [Espressif IoT Development Framework](https://github.com/espressif/esp-idf). + +Please check [ESP-IDF docs](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html) for getting started instructions. + +*Code in this repository is in the Public Domain (or CC0 licensed, at your option.) +Unless required by applicable law or agreed to in writing, this +software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied.* diff --git a/code/main/CMakeLists.txt b/code/main/CMakeLists.txt new file mode 100644 index 0000000..e8c04db --- /dev/null +++ b/code/main/CMakeLists.txt @@ -0,0 +1,10 @@ +# See the build system documentation in IDF programming guide +# for more information about component CMakeLists.txt files. + +idf_component_register( + SRCS main.c # list the source files of this component + INCLUDE_DIRS # optional, add here public include directories + PRIV_INCLUDE_DIRS # optional, add here private include directories + REQUIRES # optional, list the public requirements (component names) + PRIV_REQUIRES # optional, list the private requirements +) diff --git a/code/main/Kconfig.projbuild b/code/main/Kconfig.projbuild new file mode 100644 index 0000000..7e23439 --- /dev/null +++ b/code/main/Kconfig.projbuild @@ -0,0 +1,14 @@ +# put here your custom config value +menu "Example Configuration" +config ESP_WIFI_SSID + string "WiFi SSID" + default "myssid" + help + SSID (network name) for the example to connect to. + +config ESP_WIFI_PASSWORD + string "WiFi Password" + default "mypassword" + help + WiFi password (WPA or WPA2) for the example to use. +endmenu diff --git a/code/main/main.c b/code/main/main.c new file mode 100644 index 0000000..d62235a --- /dev/null +++ b/code/main/main.c @@ -0,0 +1,11 @@ +#include +#include +#include + +void app_main(void) +{ + while (true) { + printf("Hello from app_main!\n"); + sleep(1); + } +}