avrdudes / avr-libc

The AVR-LibC package provides a subset of the standard C library for AVR 8-bit RISC microcontrollers.
https://avrdudes.github.io/avr-libc/
Other
261 stars 56 forks source link

[bug #44977] Incorrect PORT_t and CRC_t definitions for ATxmega64A1U and 128A1U #611

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

Fri 01 May 2015 01:50:51 PM CEST

Incorrect structure definitions for PORT_t and CRC_t. PORT_t is missing REMAP and has no reserved register at this offset, resulting in the PINxCTRL registers effectively being inaccessible via the struct. CRC_t register has a reserved address at offset 0x02 according to datasheet which is not reflected in CRC_t definition.

Attached patch generated from a modified header for which these two functions now work as tested with xmega 128A1U hardware. Should the patch be broken these errors can easily be resolved with reference to a recent datasheet.

At first glance, these changes do not appear in the recent 1.8.1 release.

file #33855: patch_avrlibc_1_05_2015.patch file #33856: patch_avrlibc_1_05_2015.patch

This issue was migrated from https://savannah.nongnu.org/bugs/?44977

avrs-admin commented 2 years ago

Pitchumani Mon 22 Jun 2015 08:10:50 AM CEST

Committed. http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2478