From 49c06fceb5ef53e512bc81b7ea0453f2f025aaf0 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 21 May 2022 01:11:57 +0200 Subject: [PATCH] Reorganized project --- .gitignore | 4 +-- receiver/CMakeLists.txt => CMakeLists.txt | 0 README.md | 3 ++ main/CMakeLists.txt | 3 ++ {receiver/main => main/assets}/connect.wav | Bin {receiver/main => main/assets}/disconnect.wav | Bin {receiver/main => main/include}/a2dp.h | 0 {receiver/main => main/include}/avrcp.h | 0 {receiver/main => main/include}/bluetooth.h | 0 {receiver/main => main/include}/helper.h | 0 {receiver/main => main/include}/i2s.h | 0 {receiver/main => main/include}/storage.h | 0 {receiver/main => main/include}/wav.h | 0 {receiver/main => main/src}/a2dp.cpp | 0 {receiver/main => main/src}/avrcp.cpp | 0 {receiver/main => main/src}/bluetooth.cpp | 0 {receiver/main => main/src}/helper.cpp | 0 {receiver/main => main/src}/i2s.cpp | 0 {receiver/main => main/src}/main.cpp | 0 {receiver/main => main/src}/storage.cpp | 0 {receiver/main => main/src}/wav.cpp | 0 receiver/README.md | 32 ------------------ receiver/main/CMakeLists.txt | 3 -- receiver/sdkconfig => sdkconfig | 0 24 files changed, 8 insertions(+), 37 deletions(-) rename receiver/CMakeLists.txt => CMakeLists.txt (100%) create mode 100644 README.md create mode 100644 main/CMakeLists.txt rename {receiver/main => main/assets}/connect.wav (100%) rename {receiver/main => main/assets}/disconnect.wav (100%) rename {receiver/main => main/include}/a2dp.h (100%) rename {receiver/main => main/include}/avrcp.h (100%) rename {receiver/main => main/include}/bluetooth.h (100%) rename {receiver/main => main/include}/helper.h (100%) rename {receiver/main => main/include}/i2s.h (100%) rename {receiver/main => main/include}/storage.h (100%) rename {receiver/main => main/include}/wav.h (100%) rename {receiver/main => main/src}/a2dp.cpp (100%) rename {receiver/main => main/src}/avrcp.cpp (100%) rename {receiver/main => main/src}/bluetooth.cpp (100%) rename {receiver/main => main/src}/helper.cpp (100%) rename {receiver/main => main/src}/i2s.cpp (100%) rename {receiver/main => main/src}/main.cpp (100%) rename {receiver/main => main/src}/storage.cpp (100%) rename {receiver/main => main/src}/wav.cpp (100%) delete mode 100644 receiver/README.md delete mode 100644 receiver/main/CMakeLists.txt rename receiver/sdkconfig => sdkconfig (100%) diff --git a/.gitignore b/.gitignore index bbfd100..eeb5e74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ tools -receiver/build -receiver/.cache +build +.cache sdkconfig.old diff --git a/receiver/CMakeLists.txt b/CMakeLists.txt similarity index 100% rename from receiver/CMakeLists.txt rename to CMakeLists.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..4170a6e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Peugeot 207 Bluetooth music receiver +My Peugeot has bluetooth, but only for calling. +This project aims to build a bluetooth receiver to attached to the aux in in the glovebox. diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt new file mode 100644 index 0000000..7906b21 --- /dev/null +++ b/main/CMakeLists.txt @@ -0,0 +1,3 @@ +idf_component_register(SRCS "src/main.cpp" "src/helper.cpp" "src/wav.cpp" "src/storage.cpp" "src/i2s.cpp" "src/bluetooth.cpp" "src/avrcp.cpp" "src/a2dp.cpp" + INCLUDE_DIRS "include" + EMBED_FILES "assets/connect.wav" "assets/disconnect.wav") diff --git a/receiver/main/connect.wav b/main/assets/connect.wav similarity index 100% rename from receiver/main/connect.wav rename to main/assets/connect.wav diff --git a/receiver/main/disconnect.wav b/main/assets/disconnect.wav similarity index 100% rename from receiver/main/disconnect.wav rename to main/assets/disconnect.wav diff --git a/receiver/main/a2dp.h b/main/include/a2dp.h similarity index 100% rename from receiver/main/a2dp.h rename to main/include/a2dp.h diff --git a/receiver/main/avrcp.h b/main/include/avrcp.h similarity index 100% rename from receiver/main/avrcp.h rename to main/include/avrcp.h diff --git a/receiver/main/bluetooth.h b/main/include/bluetooth.h similarity index 100% rename from receiver/main/bluetooth.h rename to main/include/bluetooth.h diff --git a/receiver/main/helper.h b/main/include/helper.h similarity index 100% rename from receiver/main/helper.h rename to main/include/helper.h diff --git a/receiver/main/i2s.h b/main/include/i2s.h similarity index 100% rename from receiver/main/i2s.h rename to main/include/i2s.h diff --git a/receiver/main/storage.h b/main/include/storage.h similarity index 100% rename from receiver/main/storage.h rename to main/include/storage.h diff --git a/receiver/main/wav.h b/main/include/wav.h similarity index 100% rename from receiver/main/wav.h rename to main/include/wav.h diff --git a/receiver/main/a2dp.cpp b/main/src/a2dp.cpp similarity index 100% rename from receiver/main/a2dp.cpp rename to main/src/a2dp.cpp diff --git a/receiver/main/avrcp.cpp b/main/src/avrcp.cpp similarity index 100% rename from receiver/main/avrcp.cpp rename to main/src/avrcp.cpp diff --git a/receiver/main/bluetooth.cpp b/main/src/bluetooth.cpp similarity index 100% rename from receiver/main/bluetooth.cpp rename to main/src/bluetooth.cpp diff --git a/receiver/main/helper.cpp b/main/src/helper.cpp similarity index 100% rename from receiver/main/helper.cpp rename to main/src/helper.cpp diff --git a/receiver/main/i2s.cpp b/main/src/i2s.cpp similarity index 100% rename from receiver/main/i2s.cpp rename to main/src/i2s.cpp diff --git a/receiver/main/main.cpp b/main/src/main.cpp similarity index 100% rename from receiver/main/main.cpp rename to main/src/main.cpp diff --git a/receiver/main/storage.cpp b/main/src/storage.cpp similarity index 100% rename from receiver/main/storage.cpp rename to main/src/storage.cpp diff --git a/receiver/main/wav.cpp b/main/src/wav.cpp similarity index 100% rename from receiver/main/wav.cpp rename to main/src/wav.cpp diff --git a/receiver/README.md b/receiver/README.md deleted file mode 100644 index 455eb90..0000000 --- a/receiver/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# _Sample project_ - -(See the README.md file in the upper level 'examples' directory for more information about examples.) - -This is the simplest buildable example. The example is used by command `idf.py create-project` -that copies the project to user specified path and set it's name. For more information follow the [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project) - - - -## How to use example -We encourage the users to use the example as a template for the new projects. -A recommended way is to follow the instructions on a [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project). - -## Example folder contents - -The project **sample_project** contains one source file in C language [main.c](main/main.c). The file is located in folder [main](main). - -ESP-IDF projects are built using CMake. The project build configuration is contained in `CMakeLists.txt` -files that provide set of directives and instructions describing the project's source files and targets -(executable, library, or both). - -Below is short explanation of remaining files in the project folder. - -``` -├── CMakeLists.txt -├── main -│   ├── CMakeLists.txt -│   └── main.c -└── README.md This is the file you are currently reading -``` -Additionally, the sample project contains Makefile and component.mk files, used for the legacy Make based build system. -They are not used or needed when building with CMake and idf.py. diff --git a/receiver/main/CMakeLists.txt b/receiver/main/CMakeLists.txt deleted file mode 100644 index f022d60..0000000 --- a/receiver/main/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -idf_component_register(SRCS "main.cpp" "helper.cpp" "wav.cpp" "storage.cpp" "i2s.cpp" "bluetooth.cpp" "avrcp.cpp" "a2dp.cpp" - INCLUDE_DIRS "." - EMBED_FILES "connect.wav" "disconnect.wav") diff --git a/receiver/sdkconfig b/sdkconfig similarity index 100% rename from receiver/sdkconfig rename to sdkconfig