From 97d5df858e524b9691c4577b609a5338042a4607 Mon Sep 17 00:00:00 2001 From: rkcf Date: Thu, 9 Feb 2023 15:26:32 -0600 Subject: [PATCH] Add: esp-idf project skeleton --- src/CMakeLists.txt | 8 ++++++++ src/main/CMakeLists.txt | 2 ++ src/main/s151_clock.c | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 src/CMakeLists.txt create mode 100644 src/main/CMakeLists.txt create mode 100644 src/main/s151_clock.c diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..3ce2ac3 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,8 @@ +# 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) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +project(s151_clock) diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt new file mode 100644 index 0000000..0809ec9 --- /dev/null +++ b/src/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "s151_clock.c" + INCLUDE_DIRS ".") diff --git a/src/main/s151_clock.c b/src/main/s151_clock.c new file mode 100644 index 0000000..7b66f33 --- /dev/null +++ b/src/main/s151_clock.c @@ -0,0 +1,6 @@ +#include + +void app_main(void) +{ + +}