From a59e8518cc5aa67cfa0bc8cc26c0193efb1eb422 Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Thu, 3 Jul 2025 10:02:53 +0200 Subject: [PATCH] Rename hello_world app to stm32g431_tests --- software/CMakeLists.txt | 2 +- software/apps/stm32g431_tests/CMakeLists.txt | 6 ++++++ software/apps/stm32g431_tests/prj.conf | 4 ++++ software/apps/stm32g431_tests/src/main.c | 9 +++++++++ 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 software/apps/stm32g431_tests/CMakeLists.txt create mode 100644 software/apps/stm32g431_tests/prj.conf create mode 100644 software/apps/stm32g431_tests/src/main.c diff --git a/software/CMakeLists.txt b/software/CMakeLists.txt index ccd0e02..a032c4a 100644 --- a/software/CMakeLists.txt +++ b/software/CMakeLists.txt @@ -5,4 +5,4 @@ project(software) add_subdirectory(modules/modbus_server) add_subdirectory(modules/valve) add_subdirectory(modules/fwu) -add_subdirectory(apps/hello_world) +add_subdirectory(apps/stm32g431_tests) diff --git a/software/apps/stm32g431_tests/CMakeLists.txt b/software/apps/stm32g431_tests/CMakeLists.txt new file mode 100644 index 0000000..76964d1 --- /dev/null +++ b/software/apps/stm32g431_tests/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.20) + +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(stm32g431_tests) + +target_sources(app PRIVATE src/main.c) diff --git a/software/apps/stm32g431_tests/prj.conf b/software/apps/stm32g431_tests/prj.conf new file mode 100644 index 0000000..bfb4912 --- /dev/null +++ b/software/apps/stm32g431_tests/prj.conf @@ -0,0 +1,4 @@ + +CONFIG_CONSOLE=y +CONFIG_LOG=y +CONFIG_UART_CONSOLE=y \ No newline at end of file diff --git a/software/apps/stm32g431_tests/src/main.c b/software/apps/stm32g431_tests/src/main.c new file mode 100644 index 0000000..dbec9a8 --- /dev/null +++ b/software/apps/stm32g431_tests/src/main.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) +{ + printk("Hello World! %s\n", CONFIG_BOARD); + return 0; +} +