summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-05-24 07:20:16 +1000
committerjacqueline <me@jacqueline.id.au>2023-05-24 07:20:16 +1000
commit3041e48ca6ebcbe107927e4b7c212ef1a829fab0 (patch)
tree4d5b6382fed84ef475fb10b509aa8dd47d1ac17f /src/drivers
parent876e5e70e93e3031e2acb32ddedc3b262d737ded (diff)
parenta4f94c812a4da7254d31af4061a8f234a1e0e23d (diff)
downloadtangara-fw-3041e48ca6ebcbe107927e4b7c212ef1a829fab0.tar.gz
Merge branch 'main' of git.sr.ht:~jacqueline/tangara-fw
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/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/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
26 files changed, 152 insertions, 0 deletions
diff --git a/src/drivers/CMakeLists.txt b/src/drivers/CMakeLists.txt
index 67dc0236..43e67786 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" "samd.cpp"
diff --git a/src/drivers/battery.cpp b/src/drivers/battery.cpp
index 92b269de..445e9c23 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 a8aeb935..a503d0e9 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/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 302271b2..f0b8c8b3 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 68ddf9fe..d2e0c14b 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/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 de1c8aba..da682848 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 1b51ff7d..daee13c4 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 9daf572e..1468fc65 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 49b817f2..211b1484 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>