diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-08-28 15:25:37 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-08-28 15:25:37 +0200 |
commit | 3a66ae51c3f34108428e582ef693866d71496d16 (patch) | |
tree | 6a8ab3774af1b1077720671a92f40a92d5425bcf /src/app/shell | |
parent | e12d6d528705344628568000dc2fddb919457411 (diff) |
Expose configuration via Kconfig
Diffstat (limited to 'src/app/shell')
-rw-r--r-- | src/app/shell/Kconfig | 2 | ||||
-rw-r--r-- | src/app/shell/Makefile.inc | 7 | ||||
-rw-r--r-- | src/app/shell/main.cc | 1 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/app/shell/Kconfig b/src/app/shell/Kconfig new file mode 100644 index 0000000..a4626d6 --- /dev/null +++ b/src/app/shell/Kconfig @@ -0,0 +1,2 @@ +prompt "Shell / UART Echo" +depends on meta_driver_stdin && wakeup diff --git a/src/app/shell/Makefile.inc b/src/app/shell/Makefile.inc index 66d80ec..3d73351 100644 --- a/src/app/shell/Makefile.inc +++ b/src/app/shell/Makefile.inc @@ -1,2 +1,5 @@ -arch_drivers += ,stdin -wakeup ?= 1 +ifdef app + override loop = 0 + override wakeup = 1 + override arch_drivers += ,stdin +endif diff --git a/src/app/shell/main.cc b/src/app/shell/main.cc index 33896e4..0a7d4ca 100644 --- a/src/app/shell/main.cc +++ b/src/app/shell/main.cc @@ -2,7 +2,6 @@ #include "driver/gpio.h" #include "driver/stdout.h" #include "driver/stdin.h" -#include "driver/uptime.h" /* void check_command(unsigned char argc, char** argv) |