From ea2ac3d6d651ab58aec2fb320f0d015bdd4826d9 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 20 Nov 2021 13:08:59 -0700 Subject: First commit. Very basic, "Hello, World" infrastructure. For the most part, I did not copy this from an existing example, rather, took inspiration from an existing example. I want to avoid cargo-culting as much as possible. --- main/CMakeLists.txt | 2 ++ main/main.c | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 main/CMakeLists.txt create mode 100644 main/main.c (limited to 'main') diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt new file mode 100644 index 0000000..cd28b28 --- /dev/null +++ b/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "main.c" + INCLUDE_DIRS "") diff --git a/main/main.c b/main/main.c new file mode 100644 index 0000000..9c53c3f --- /dev/null +++ b/main/main.c @@ -0,0 +1,10 @@ +#include "sdkconfig.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include "esp_system.h" +#include "esp_spi_flash.h" + +void app_main(void) +{ + printf("Hello, World!\n"); +} -- cgit