From 7030af46ce10cedaebef8977ca42d148e9934dc8 Mon Sep 17 00:00:00 2001 From: dalpil <47555+dalpil@users.noreply.github.com> Date: Sat, 4 Jun 2022 09:37:44 +0200 Subject: [PATCH] Use the same timer patch for atmega1280 as for atmega2560 --- patch/atmega1280.yaml | 2 ++ patch/atmega2560.yaml | 2 +- patch/timer/atmega1280-2560.yaml | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 patch/timer/atmega1280-2560.yaml diff --git a/patch/atmega1280.yaml b/patch/atmega1280.yaml index 0b746f3..d66b208 100644 --- a/patch/atmega1280.yaml +++ b/patch/atmega1280.yaml @@ -7,3 +7,5 @@ _include: - "common/twi.yaml" - "common/usart.yaml" - "common/wdt.yaml" + + - "timer/atmega1280-2560.yaml" diff --git a/patch/atmega2560.yaml b/patch/atmega2560.yaml index d415104..d10b31d 100644 --- a/patch/atmega2560.yaml +++ b/patch/atmega2560.yaml @@ -8,4 +8,4 @@ _include: - "common/usart.yaml" - "common/wdt.yaml" - - "timer/atmega2560.yaml" + - "timer/atmega1280-2560.yaml" diff --git a/patch/timer/atmega1280-2560.yaml b/patch/timer/atmega1280-2560.yaml new file mode 100644 index 0000000..35f0d90 --- /dev/null +++ b/patch/timer/atmega1280-2560.yaml @@ -0,0 +1,14 @@ +# This intermediate file is needed because peripheral-level includes are not +# supported in top-level files. + +TC0: + _include: + - "dev/8bit.yaml" + +TC1,TC3,TC4,TC5: + _include: + - "dev/16bit.yaml" + +TC2: + _include: + - "dev/8bit-async.yaml" -- 2.49.0