From a17f93be5ea65168cc208f46fa8b1ef45706593b Mon Sep 17 00:00:00 2001 From: Niklas Hauser Date: Sun, 7 Apr 2024 18:30:06 +0200 Subject: [PATCH] [examples] Restructure folder layout --- examples/README.md | 4 ++-- examples/{generic => core}/delay/main.cpp | 0 examples/{generic => core}/delay/project.xml | 0 examples/{generic => core}/resumable/main.cpp | 0 examples/{generic => core}/resumable/project.xml | 0 examples/{generic/rtc_ds1302 => driver/ds1302}/main.cpp | 0 examples/{generic/rtc_ds1302 => driver/ds1302}/project.xml | 0 examples/{generic => driver}/i2c_multiplex/main.cpp | 0 examples/{generic => driver}/i2c_multiplex/project.xml | 0 examples/{generic => driver}/lis3mdl/main.cpp | 0 examples/{generic => driver}/lis3mdl/project.xml | 0 examples/{generic => ext}/etl/main.cpp | 0 examples/{generic => ext}/etl/project.xml | 0 examples/{generic => ext}/ros/README.md | 0 examples/{generic => ext}/ros/can_bridge/README.md | 0 examples/{generic => ext}/ros/can_bridge/main.cpp | 0 examples/{generic => ext}/ros/can_bridge/openocd.cfg | 0 examples/{generic => ext}/ros/can_bridge/project.xml | 0 examples/{generic => ext}/ros/environment/hardware.hpp | 0 examples/{generic => ext}/ros/environment/main.cpp | 0 examples/{generic => ext}/ros/environment/project.xml | 0 examples/{generic => ext}/ros/environment/thread_bme280.cpp | 0 examples/{generic => ext}/ros/environment/thread_bme280.hpp | 0 examples/{generic => ext}/ros/environment/thread_display.cpp | 0 examples/{generic => ext}/ros/environment/thread_display.hpp | 0 examples/{generic => ext}/ros/sub_pub/main.cpp | 0 examples/{generic => ext}/ros/sub_pub/project.xml | 0 27 files changed, 2 insertions(+), 2 deletions(-) rename examples/{generic => core}/delay/main.cpp (100%) rename examples/{generic => core}/delay/project.xml (100%) rename examples/{generic => core}/resumable/main.cpp (100%) rename examples/{generic => core}/resumable/project.xml (100%) rename examples/{generic/rtc_ds1302 => driver/ds1302}/main.cpp (100%) rename examples/{generic/rtc_ds1302 => driver/ds1302}/project.xml (100%) rename examples/{generic => driver}/i2c_multiplex/main.cpp (100%) rename examples/{generic => driver}/i2c_multiplex/project.xml (100%) rename examples/{generic => driver}/lis3mdl/main.cpp (100%) rename examples/{generic => driver}/lis3mdl/project.xml (100%) rename examples/{generic => ext}/etl/main.cpp (100%) rename examples/{generic => ext}/etl/project.xml (100%) rename examples/{generic => ext}/ros/README.md (100%) rename examples/{generic => ext}/ros/can_bridge/README.md (100%) rename examples/{generic => ext}/ros/can_bridge/main.cpp (100%) rename examples/{generic => ext}/ros/can_bridge/openocd.cfg (100%) rename examples/{generic => ext}/ros/can_bridge/project.xml (100%) rename examples/{generic => ext}/ros/environment/hardware.hpp (100%) rename examples/{generic => ext}/ros/environment/main.cpp (100%) rename examples/{generic => ext}/ros/environment/project.xml (100%) rename examples/{generic => ext}/ros/environment/thread_bme280.cpp (100%) rename examples/{generic => ext}/ros/environment/thread_bme280.hpp (100%) rename examples/{generic => ext}/ros/environment/thread_display.cpp (100%) rename examples/{generic => ext}/ros/environment/thread_display.hpp (100%) rename examples/{generic => ext}/ros/sub_pub/main.cpp (100%) rename examples/{generic => ext}/ros/sub_pub/project.xml (100%) diff --git a/examples/README.md b/examples/README.md index 3e59f97f8a..72fae7f3de 100644 --- a/examples/README.md +++ b/examples/README.md @@ -93,7 +93,6 @@ Have a look at the [build system documentation][build_docs] and the - ui - game_of_life - graphics - - lvgl - driver - can - i2c @@ -103,7 +102,6 @@ Have a look at the [build system documentation][build_docs] and the - amnb - ethernet_freertos - nrf24 - - ros - sab - xpcc - ext @@ -114,6 +112,8 @@ Have a look at the [build system documentation][build_docs] and the - usb - usb_dfu - usbfatfs + - lvgl + - ros - board - super custom board-specific examples - ideally we get rid of this section diff --git a/examples/generic/delay/main.cpp b/examples/core/delay/main.cpp similarity index 100% rename from examples/generic/delay/main.cpp rename to examples/core/delay/main.cpp diff --git a/examples/generic/delay/project.xml b/examples/core/delay/project.xml similarity index 100% rename from examples/generic/delay/project.xml rename to examples/core/delay/project.xml diff --git a/examples/generic/resumable/main.cpp b/examples/core/resumable/main.cpp similarity index 100% rename from examples/generic/resumable/main.cpp rename to examples/core/resumable/main.cpp diff --git a/examples/generic/resumable/project.xml b/examples/core/resumable/project.xml similarity index 100% rename from examples/generic/resumable/project.xml rename to examples/core/resumable/project.xml diff --git a/examples/generic/rtc_ds1302/main.cpp b/examples/driver/ds1302/main.cpp similarity index 100% rename from examples/generic/rtc_ds1302/main.cpp rename to examples/driver/ds1302/main.cpp diff --git a/examples/generic/rtc_ds1302/project.xml b/examples/driver/ds1302/project.xml similarity index 100% rename from examples/generic/rtc_ds1302/project.xml rename to examples/driver/ds1302/project.xml diff --git a/examples/generic/i2c_multiplex/main.cpp b/examples/driver/i2c_multiplex/main.cpp similarity index 100% rename from examples/generic/i2c_multiplex/main.cpp rename to examples/driver/i2c_multiplex/main.cpp diff --git a/examples/generic/i2c_multiplex/project.xml b/examples/driver/i2c_multiplex/project.xml similarity index 100% rename from examples/generic/i2c_multiplex/project.xml rename to examples/driver/i2c_multiplex/project.xml diff --git a/examples/generic/lis3mdl/main.cpp b/examples/driver/lis3mdl/main.cpp similarity index 100% rename from examples/generic/lis3mdl/main.cpp rename to examples/driver/lis3mdl/main.cpp diff --git a/examples/generic/lis3mdl/project.xml b/examples/driver/lis3mdl/project.xml similarity index 100% rename from examples/generic/lis3mdl/project.xml rename to examples/driver/lis3mdl/project.xml diff --git a/examples/generic/etl/main.cpp b/examples/ext/etl/main.cpp similarity index 100% rename from examples/generic/etl/main.cpp rename to examples/ext/etl/main.cpp diff --git a/examples/generic/etl/project.xml b/examples/ext/etl/project.xml similarity index 100% rename from examples/generic/etl/project.xml rename to examples/ext/etl/project.xml diff --git a/examples/generic/ros/README.md b/examples/ext/ros/README.md similarity index 100% rename from examples/generic/ros/README.md rename to examples/ext/ros/README.md diff --git a/examples/generic/ros/can_bridge/README.md b/examples/ext/ros/can_bridge/README.md similarity index 100% rename from examples/generic/ros/can_bridge/README.md rename to examples/ext/ros/can_bridge/README.md diff --git a/examples/generic/ros/can_bridge/main.cpp b/examples/ext/ros/can_bridge/main.cpp similarity index 100% rename from examples/generic/ros/can_bridge/main.cpp rename to examples/ext/ros/can_bridge/main.cpp diff --git a/examples/generic/ros/can_bridge/openocd.cfg b/examples/ext/ros/can_bridge/openocd.cfg similarity index 100% rename from examples/generic/ros/can_bridge/openocd.cfg rename to examples/ext/ros/can_bridge/openocd.cfg diff --git a/examples/generic/ros/can_bridge/project.xml b/examples/ext/ros/can_bridge/project.xml similarity index 100% rename from examples/generic/ros/can_bridge/project.xml rename to examples/ext/ros/can_bridge/project.xml diff --git a/examples/generic/ros/environment/hardware.hpp b/examples/ext/ros/environment/hardware.hpp similarity index 100% rename from examples/generic/ros/environment/hardware.hpp rename to examples/ext/ros/environment/hardware.hpp diff --git a/examples/generic/ros/environment/main.cpp b/examples/ext/ros/environment/main.cpp similarity index 100% rename from examples/generic/ros/environment/main.cpp rename to examples/ext/ros/environment/main.cpp diff --git a/examples/generic/ros/environment/project.xml b/examples/ext/ros/environment/project.xml similarity index 100% rename from examples/generic/ros/environment/project.xml rename to examples/ext/ros/environment/project.xml diff --git a/examples/generic/ros/environment/thread_bme280.cpp b/examples/ext/ros/environment/thread_bme280.cpp similarity index 100% rename from examples/generic/ros/environment/thread_bme280.cpp rename to examples/ext/ros/environment/thread_bme280.cpp diff --git a/examples/generic/ros/environment/thread_bme280.hpp b/examples/ext/ros/environment/thread_bme280.hpp similarity index 100% rename from examples/generic/ros/environment/thread_bme280.hpp rename to examples/ext/ros/environment/thread_bme280.hpp diff --git a/examples/generic/ros/environment/thread_display.cpp b/examples/ext/ros/environment/thread_display.cpp similarity index 100% rename from examples/generic/ros/environment/thread_display.cpp rename to examples/ext/ros/environment/thread_display.cpp diff --git a/examples/generic/ros/environment/thread_display.hpp b/examples/ext/ros/environment/thread_display.hpp similarity index 100% rename from examples/generic/ros/environment/thread_display.hpp rename to examples/ext/ros/environment/thread_display.hpp diff --git a/examples/generic/ros/sub_pub/main.cpp b/examples/ext/ros/sub_pub/main.cpp similarity index 100% rename from examples/generic/ros/sub_pub/main.cpp rename to examples/ext/ros/sub_pub/main.cpp diff --git a/examples/generic/ros/sub_pub/project.xml b/examples/ext/ros/sub_pub/project.xml similarity index 100% rename from examples/generic/ros/sub_pub/project.xml rename to examples/ext/ros/sub_pub/project.xml