From ca6cad61f095e670be2cdcc39a198fc850d1fedc Mon Sep 17 00:00:00 2001 From: Greg Green Date: Fri, 5 Feb 2021 14:21:46 -0800 Subject: [PATCH] atmega328p, pb: Split EIMSK INT field into 2 The INT0 and INT1 fields in the EIMSK register were incorrectly combined into a 2 bit field, split into individual bits. Also allow write access to PRR0 and PRR1 in ATmega328PB. --- patch/atmega328p.yaml | 7 +++++++ patch/atmega328pb.yaml | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/patch/atmega328p.yaml b/patch/atmega328p.yaml index 9ca0852b8cbb060b193e1e594f51fbc5191439e0..fe001af2f9b6aa47a1f7c9fa24c28926b54fa1fd 100644 --- a/patch/atmega328p.yaml +++ b/patch/atmega328p.yaml @@ -15,3 +15,10 @@ CPU: _modify: PRR: access: read-write + +EXINT: + EIMSK: + _modify: + INT: + description: External Interrupt Request Enable + _split: [INT] diff --git a/patch/atmega328pb.yaml b/patch/atmega328pb.yaml index aaedc6317ab3fc86a7f6eecea482097bc2d4da55..8c756e8a5cf205abb837966f14404cdb3b2d33c4 100644 --- a/patch/atmega328pb.yaml +++ b/patch/atmega328pb.yaml @@ -58,4 +58,18 @@ _include: - "timer/atmega328pb.yaml" +CPU: + _modify: + PRR0: + access: read-write + PRR1: + access: read-write + +EXINT: + EIMSK: + _modify: + INT: + description: External Interrupt Request Enable + _split: [INT] +