bugAVR C Runtime Library - Bugs: bug #54977, ATtiny4313 missing PCMSK0


You are not allowed to post comments on this tracker with your current authentication level.

bug #54977: ATtiny4313 missing PCMSK0

Submitter:  Paul Evans <leonerd>
Submitted:  Tue 06 Nov 2018 11:04:29 PM UTC
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  None Percent Complete:  0%
Assigned to:  None Open/Closed:  Open
Release:  2.0.0 Fixed Release:  None

Sat 12 Dec 2020 05:14:08 PM UTC, comment #1: 

The data sheet explicitly mentions PCMSK0 for the tiny2313A and tiny4313. There is no mention of PCMSK.

Adding PCMSK0 while leaving PCMSK in place for compatibility with older 2313 code should not cause any issues.

In the hopes of getting more attention, I'm attaching a patch to add the missing macro.

(file #50447)

Gregor Riepl <onitake>
Tue 06 Nov 2018 11:04:29 PM UTC, original submission:  

The data sheet defines registers PCMSK0, PCMSK1 and PCMSK2

iotn2313a.h correctly provides all three (with PCMSK being another name for PCMSK0):

  #define PCMSK _SFR_IO8(0x020)
  #define PCMSK0 _SFR_IO8(0x020)

iotn4313.h is missing PCMSK0, and has only PCMSK:

   #define PCMSK _SFR_IO8(0x020)

The PCMSK0 definition ought to be added

Paul Evans <leonerd>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #50447:  0001-Added-missing-PCMSK0-macro-for-ATtiny4313.patch added by onitake (639B - text/x-patch - PCMSK0 macro for ATtiny4313)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by onitake (Updated the item)
  • -email is unavailable- added by leonerd (Submitted the item)



    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-12 onitake Attached File- Added 0001-Added-missing-PCMSK0-macro-for-ATtiny4313.patch, #50447

    Back to the top

    Powered by Savane 3.11