From 9459de21bab97c58847f35f9bf3328ac6bf90cbc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 31 Dec 2021 17:33:42 +0100 Subject: atmega2560: add i2c driver (identical with atmega328 version) --- include/arch/atmega2560/driver/i2c.h | 1 + src/arch/atmega2560/Kconfig | 8 ++++++++ src/arch/atmega2560/driver/i2c.cc | 1 + 3 files changed, 10 insertions(+) create mode 120000 include/arch/atmega2560/driver/i2c.h create mode 100644 src/arch/atmega2560/Kconfig create mode 120000 src/arch/atmega2560/driver/i2c.cc 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 -- cgit v1.2.3