~ruther/avr-device

ca6cad61f095e670be2cdcc39a198fc850d1fedc — Greg Green 4 years ago f40d65e
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.
2 files changed, 21 insertions(+), 0 deletions(-)

M patch/atmega328p.yaml
M patch/atmega328pb.yaml
M patch/atmega328p.yaml => patch/atmega328p.yaml +7 -0
@@ 15,3 15,10 @@ CPU:
  _modify:
    PRR:
      access: read-write

EXINT:
  EIMSK:
    _modify:
      INT:
        description: External Interrupt Request Enable
    _split: [INT]

M patch/atmega328pb.yaml => patch/atmega328pb.yaml +14 -0
@@ 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]