From d873bd379bbda2780c02ba111499c4b299122039 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 12 Jul 2024 18:11:03 +0200 Subject: [PATCH] examples/leds_shell: change application name --- examples/{LEDs => leds_shell}/Makefile | 2 +- examples/{LEDs => leds_shell}/README.md | 24 ++++++++++++------------ examples/{LEDs => leds_shell}/main.c | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) rename examples/{LEDs => leds_shell}/Makefile (98%) rename examples/{LEDs => leds_shell}/README.md (81%) rename examples/{LEDs => leds_shell}/main.c (99%) diff --git a/examples/LEDs/Makefile b/examples/leds_shell/Makefile similarity index 98% rename from examples/LEDs/Makefile rename to examples/leds_shell/Makefile index c289a2d81261b..f74f22516cf41 100644 --- a/examples/LEDs/Makefile +++ b/examples/leds_shell/Makefile @@ -7,7 +7,7 @@ #### # Set the name of your application: -APPLICATION = LEDs +APPLICATION = leds_shell # If no BOARD is found in the environment, use this default: BOARD ?= native diff --git a/examples/LEDs/README.md b/examples/leds_shell/README.md similarity index 81% rename from examples/LEDs/README.md rename to examples/leds_shell/README.md index 59856eb6942fc..a70b537065243 100644 --- a/examples/LEDs/README.md +++ b/examples/leds_shell/README.md @@ -2,9 +2,9 @@ ## Description -This basic example allows easy, interactive control of internal board LEDs, -and basic GPIO for externally connected simple devices (for e.g. additional -LEDs, relay, motors - via dedicated drivers, etc.). +The application `leds_shell` is a basic example, which allows easy, interactive +control of internal board LEDs, and basic GPIO for externally connected simple +devices (for e.g. additional LEDs, relay, motors - via dedicated drivers, etc.). In particular, this example shows: - on/off and toggle internal board LEDs. @@ -35,24 +35,24 @@ RIOT native interrupts/signals initialized. RIOT native board initialized. RIOT native hardware initialization complete. -main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-LEDs) -LEDs, version 1.0.0 +main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-leds_shell) +leds_shell, version 1.0.0 > ``` -Or run it directly without terminal. Go to `RIOT/examples/LEDs` and run +Or run it directly without terminal. Go to `RIOT/examples/leds_shell` and run commands: ``` $ make [...] -$ ./bin/native/LEDs.elf +$ ./bin/native/leds_shell.elf RIOT native interrupts/signals initialized. RIOT native board initialized. RIOT native hardware initialization complete. -main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-LEDs) -LEDs, version 1.0.0 +main(): This is RIOT! (Version: 2021.07-devel-10893-gb2e97-example-leds_shell) +leds_shell, version 1.0.0 > ``` @@ -82,14 +82,14 @@ LED_GREEN_ON ``` ## Example on sample board - stm32f469i-disco -- Build and flash `LEDs` example application on sample board, for example +- Build and flash `leds_shell` example application on sample board, for example `stm32f469i-disco` target, which has 4 internal LEDs: ``` $ make BOARD=stm32f469i-disco flash term [...] -main(): This is RIOT! (Version: 2021.07-devel-10894-g2ad22b9-example-LEDs) -LEDs, version 1.0.0 +main(): This is RIOT! (Version: 2021.07-devel-10894-g2ad22b9-example-leds_shell) +leds_shell, version 1.0.0 > help help Command Description diff --git a/examples/LEDs/main.c b/examples/leds_shell/main.c similarity index 99% rename from examples/LEDs/main.c rename to examples/leds_shell/main.c index 9413b2a90bb38..b5500c2bea5d9 100644 --- a/examples/LEDs/main.c +++ b/examples/leds_shell/main.c @@ -320,7 +320,7 @@ static const shell_command_t commands[] = { int main(void) { char line_buf[SHELL_DEFAULT_BUFSIZE]; - printf("LEDs, version 1.0.0\n"); + printf("leds_shell, version 1.0.0\n"); shell_run(commands, line_buf, SHELL_DEFAULT_BUFSIZE);