summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-05-23 13:56:22 +1000
committerjacqueline <me@jacqueline.id.au>2023-05-23 13:56:22 +1000
commita4f94c812a4da7254d31af4061a8f234a1e0e23d (patch)
treee8f629a45251dd486ae57f78279243e1f1728d44 /src/drivers
parentd71f726c42963d55809605b4dc4144970ca0f230 (diff)
downloadtangara-fw-a4f94c812a4da7254d31af4061a8f234a1e0e23d.tar.gz
Annote E V E R Y T H I N G with license info
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/CMakeLists.txt4
-rw-r--r--src/drivers/battery.cpp6
-rw-r--r--src/drivers/dac.cpp6
-rw-r--r--src/drivers/display.cpp6
-rw-r--r--src/drivers/display_init.cpp6
-rw-r--r--src/drivers/driver_cache.cpp6
-rw-r--r--src/drivers/gpio_expander.cpp6
-rw-r--r--src/drivers/i2c.cpp6
-rw-r--r--src/drivers/include/a2dp_audio_output.hpp6
-rw-r--r--src/drivers/include/battery.hpp6
-rw-r--r--src/drivers/include/dac.hpp6
-rw-r--r--src/drivers/include/display.hpp6
-rw-r--r--src/drivers/include/display_init.hpp6
-rw-r--r--src/drivers/include/driver_cache.hpp6
-rw-r--r--src/drivers/include/fatfs_audio_input.hpp6
-rw-r--r--src/drivers/include/gpio_expander.hpp6
-rw-r--r--src/drivers/include/i2c.hpp6
-rw-r--r--src/drivers/include/spi.hpp6
-rw-r--r--src/drivers/include/storage.hpp6
-rw-r--r--src/drivers/include/touchwheel.hpp6
-rw-r--r--src/drivers/spi.cpp6
-rw-r--r--src/drivers/storage.cpp6
-rw-r--r--src/drivers/test/CMakeLists.txt4
-rw-r--r--src/drivers/test/test_battery.cpp6
-rw-r--r--src/drivers/test/test_dac.cpp6
-rw-r--r--src/drivers/test/test_gpio_expander.cpp6
-rw-r--r--src/drivers/test/test_storage.cpp6
-rw-r--r--src/drivers/touchwheel.cpp6
28 files changed, 164 insertions, 0 deletions
diff --git a/src/drivers/CMakeLists.txt b/src/drivers/CMakeLists.txt
index 072a8b68..8e130c3a 100644
--- a/src/drivers/CMakeLists.txt
+++ b/src/drivers/CMakeLists.txt
@@ -1,3 +1,7 @@
+# Copyright 2023 jacqueline <me@jacqueline.id.au>
+#
+# SPDX-License-Identifier: GPL-3.0-only
+
idf_component_register(
SRCS "touchwheel.cpp" "dac.cpp" "gpio_expander.cpp" "battery.cpp" "storage.cpp" "i2c.cpp"
"spi.cpp" "display.cpp" "display_init.cpp" "driver_cache.cpp"
diff --git a/src/drivers/battery.cpp b/src/drivers/battery.cpp
index 8d747c07..91323312 100644
--- a/src/drivers/battery.cpp
+++ b/src/drivers/battery.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "battery.hpp"
#include <cstdint>
diff --git a/src/drivers/dac.cpp b/src/drivers/dac.cpp
index e82f0d27..3d8e0702 100644
--- a/src/drivers/dac.cpp
+++ b/src/drivers/dac.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "dac.hpp"
#include <cstdint>
diff --git a/src/drivers/display.cpp b/src/drivers/display.cpp
index f8594a5a..52208aa3 100644
--- a/src/drivers/display.cpp
+++ b/src/drivers/display.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "display.hpp"
#include <cstdint>
diff --git a/src/drivers/display_init.cpp b/src/drivers/display_init.cpp
index 293ea5a2..ce70069c 100644
--- a/src/drivers/display_init.cpp
+++ b/src/drivers/display_init.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "display_init.hpp"
namespace drivers {
diff --git a/src/drivers/driver_cache.cpp b/src/drivers/driver_cache.cpp
index 650e6f16..9c21b83c 100644
--- a/src/drivers/driver_cache.cpp
+++ b/src/drivers/driver_cache.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "driver_cache.hpp"
#include <memory>
diff --git a/src/drivers/gpio_expander.cpp b/src/drivers/gpio_expander.cpp
index a7613b2e..87c5d038 100644
--- a/src/drivers/gpio_expander.cpp
+++ b/src/drivers/gpio_expander.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "gpio_expander.hpp"
#include <cstdint>
diff --git a/src/drivers/i2c.cpp b/src/drivers/i2c.cpp
index 6c6fc407..814c5140 100644
--- a/src/drivers/i2c.cpp
+++ b/src/drivers/i2c.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "i2c.hpp"
#include <cstdint>
diff --git a/src/drivers/include/a2dp_audio_output.hpp b/src/drivers/include/a2dp_audio_output.hpp
index a77d011b..010470c6 100644
--- a/src/drivers/include/a2dp_audio_output.hpp
+++ b/src/drivers/include/a2dp_audio_output.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <cstdint>
diff --git a/src/drivers/include/battery.hpp b/src/drivers/include/battery.hpp
index d50bb20f..fb2b8818 100644
--- a/src/drivers/include/battery.hpp
+++ b/src/drivers/include/battery.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <cstdint>
diff --git a/src/drivers/include/dac.hpp b/src/drivers/include/dac.hpp
index 4952c992..22d6c855 100644
--- a/src/drivers/include/dac.hpp
+++ b/src/drivers/include/dac.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <stdint.h>
diff --git a/src/drivers/include/display.hpp b/src/drivers/include/display.hpp
index 9e4a0224..842775fa 100644
--- a/src/drivers/include/display.hpp
+++ b/src/drivers/include/display.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <cstdint>
diff --git a/src/drivers/include/display_init.hpp b/src/drivers/include/display_init.hpp
index f7d287f7..f6c28b54 100644
--- a/src/drivers/include/display_init.hpp
+++ b/src/drivers/include/display_init.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <cstdint>
diff --git a/src/drivers/include/driver_cache.hpp b/src/drivers/include/driver_cache.hpp
index c56ebc3f..a8017cbe 100644
--- a/src/drivers/include/driver_cache.hpp
+++ b/src/drivers/include/driver_cache.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <memory>
diff --git a/src/drivers/include/fatfs_audio_input.hpp b/src/drivers/include/fatfs_audio_input.hpp
index 110651d8..e1f62811 100644
--- a/src/drivers/include/fatfs_audio_input.hpp
+++ b/src/drivers/include/fatfs_audio_input.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
namespace drivers {
diff --git a/src/drivers/include/gpio_expander.hpp b/src/drivers/include/gpio_expander.hpp
index cd3719a0..9e011863 100644
--- a/src/drivers/include/gpio_expander.hpp
+++ b/src/drivers/include/gpio_expander.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <stdint.h>
diff --git a/src/drivers/include/i2c.hpp b/src/drivers/include/i2c.hpp
index 811c9333..bc6b3686 100644
--- a/src/drivers/include/i2c.hpp
+++ b/src/drivers/include/i2c.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <cstdint>
diff --git a/src/drivers/include/spi.hpp b/src/drivers/include/spi.hpp
index e58656a2..7dbc2aae 100644
--- a/src/drivers/include/spi.hpp
+++ b/src/drivers/include/spi.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include "esp_err.h"
diff --git a/src/drivers/include/storage.hpp b/src/drivers/include/storage.hpp
index c19ec935..4090e67a 100644
--- a/src/drivers/include/storage.hpp
+++ b/src/drivers/include/storage.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <memory>
diff --git a/src/drivers/include/touchwheel.hpp b/src/drivers/include/touchwheel.hpp
index 2bbc8e94..669d22c4 100644
--- a/src/drivers/include/touchwheel.hpp
+++ b/src/drivers/include/touchwheel.hpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#pragma once
#include <stdint.h>
diff --git a/src/drivers/spi.cpp b/src/drivers/spi.cpp
index 66c78e8a..9c112bb5 100644
--- a/src/drivers/spi.cpp
+++ b/src/drivers/spi.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "spi.hpp"
#include "driver/sdspi_host.h"
diff --git a/src/drivers/storage.cpp b/src/drivers/storage.cpp
index d90bd811..9b8b1045 100644
--- a/src/drivers/storage.cpp
+++ b/src/drivers/storage.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "storage.hpp"
#include <atomic>
diff --git a/src/drivers/test/CMakeLists.txt b/src/drivers/test/CMakeLists.txt
index c2f7ea65..90e7b3a1 100644
--- a/src/drivers/test/CMakeLists.txt
+++ b/src/drivers/test/CMakeLists.txt
@@ -1,3 +1,7 @@
+# Copyright 2023 jacqueline <me@jacqueline.id.au>
+#
+# SPDX-License-Identifier: GPL-3.0-only
+
idf_component_register(
SRCS "test_storage.cpp" "test_gpio_expander.cpp" "test_battery.cpp" "test_dac.cpp"
INCLUDE_DIRS "." REQUIRES catch2 cmock drivers fixtures)
diff --git a/src/drivers/test/test_battery.cpp b/src/drivers/test/test_battery.cpp
index 4a52300d..690eb2b7 100644
--- a/src/drivers/test/test_battery.cpp
+++ b/src/drivers/test/test_battery.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "battery.hpp"
#include <cstdint>
diff --git a/src/drivers/test/test_dac.cpp b/src/drivers/test/test_dac.cpp
index 01583e34..edf9e1e9 100644
--- a/src/drivers/test/test_dac.cpp
+++ b/src/drivers/test/test_dac.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "dac.hpp"
#include <cstdint>
diff --git a/src/drivers/test/test_gpio_expander.cpp b/src/drivers/test/test_gpio_expander.cpp
index 791c0a71..2a31d9c7 100644
--- a/src/drivers/test/test_gpio_expander.cpp
+++ b/src/drivers/test/test_gpio_expander.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "gpio_expander.hpp"
#include "catch2/catch.hpp"
diff --git a/src/drivers/test/test_storage.cpp b/src/drivers/test/test_storage.cpp
index 54f9a467..90f2843a 100644
--- a/src/drivers/test/test_storage.cpp
+++ b/src/drivers/test/test_storage.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "storage.hpp"
#include <dirent.h>
diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp
index 3c2e9438..cd189388 100644
--- a/src/drivers/touchwheel.cpp
+++ b/src/drivers/touchwheel.cpp
@@ -1,3 +1,9 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
#include "touchwheel.hpp"
#include <stdint.h>