summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-12-31 17:33:42 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-12-31 17:33:42 +0100
commit9459de21bab97c58847f35f9bf3328ac6bf90cbc (patch)
tree02c68a0f9d7cfceda71c08368c51fdee960b658f
parent44c73e7330aaa7d1411a8fd48b85d1b95bdc2b6b (diff)
atmega2560: add i2c driver (identical with atmega328 version)
l---------include/arch/atmega2560/driver/i2c.h1
-rw-r--r--src/arch/atmega2560/Kconfig8
l---------src/arch/atmega2560/driver/i2c.cc1
3 files changed, 10 insertions, 0 deletions
diff --git a/include/arch/atmega2560/driver/i2c.h b/include/arch/atmega2560/driver/i2c.h
new file mode 120000
index 0000000..50f5291
--- /dev/null
+++ b/include/arch/atmega2560/driver/i2c.h
@@ -0,0 +1 @@
+../../arduino-nano/driver/i2c.h \ No newline at end of file
diff --git a/src/arch/atmega2560/Kconfig b/src/arch/atmega2560/Kconfig
new file mode 100644
index 0000000..f2d83f8
--- /dev/null
+++ b/src/arch/atmega2560/Kconfig
@@ -0,0 +1,8 @@
+# Copyright 2021 Daniel Friesel
+#
+# SPDX-License-Identifier: CC0-1.0
+
+config arch_atmega2560_driver_i2c
+bool "I2C"
+select meta_driver_hardware_i2c
+select meta_driver_i2c
diff --git a/src/arch/atmega2560/driver/i2c.cc b/src/arch/atmega2560/driver/i2c.cc
new file mode 120000
index 0000000..d31e7a1
--- /dev/null
+++ b/src/arch/atmega2560/driver/i2c.cc
@@ -0,0 +1 @@
+../../arduino-nano/driver/i2c.cc \ No newline at end of file