From 74cea2241db5a88f22a6d1f465721ae456278644 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 18 Nov 2022 19:23:03 +0200 Subject: [PATCH] software default reset flag added --- Kconfig | 9 +++++++-- src/SystemConfiguration.c | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index 13d6122..20cd366 100644 --- a/Kconfig +++ b/Kconfig @@ -31,11 +31,16 @@ menu "WebGUIApp" config DEBUG_MODE_ENABLE bool "Enabled JTAG debug" - default n + default y help Switch on JTAG debug mode. Otherwise pins 12-15 used as normal GPIO - + config RESET_MODE_ENABLE + bool "Enabled RESET on boot" + default n + help + This will reset to default settings on every startup + menu "SPI settings" config WEBGUIAPP_SPI_ENABLE bool "Enabled SPI interface" diff --git a/src/SystemConfiguration.c b/src/SystemConfiguration.c index 18a2479..006882a 100644 --- a/src/SystemConfiguration.c +++ b/src/SystemConfiguration.c @@ -45,7 +45,11 @@ #define STORAGE_NAMESPACE "storage" #define TAG "SystemConfiguration" +#ifdef CONFIG_RESET_MODE_ENABLE +#define MANUAL_RESET 1 +#else #define MANUAL_RESET 0 +#endif #ifdef CONFIG_USERDEFINED_MAIN_FUNCTIONAL_BUTTON_GPIO #define MAIN_FUNCTIONAL_BUTTON_GPIO CONFIG_USERDEFINED_MAIN_FUNCTIONAL_BUTTON_GPIO