URL: <http://savannah.nongnu.org/bugs/?32723>
Summary: Add NVM_PROD_SIGNATURES_t in Xmega header files Project: AVR C Runtime Library Submitted by: aboyapati Submitted on: Wed 09 Mar 2011 07:03:03 AM GMT Category: Header Severity: 3 - Normal Priority: 5 - Normal Item Group: Header files Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.7.1 Fixed Release: None _______________________________________________________ Details: AVR-GCC has a NVM_PROD_SIGNATURES_t which contains all the registers of the production signature row. However, when loading from the signature row, you need the offset. Can we please add an enum the same way as IAR does it? /* Offset definitions for Production Signatures */ typedef enum NVM_PROD_SIGNATURES_offsets { RCOSC2M_offset = 0x00, ///< RCOSC 2MHz Calibration Value RCOSC32K_offset = 0x02, ///< RCOSC 32kHz Calibration Value RCOSC32M_offset = 0x03, ///< RCOSC 32MHz Calibration Value LOTNUM0_offset = 0x08, ///< Lot Number Byte 0, ASCII LOTNUM1_offset = 0x09, ///< Lot Number Byte 1, ASCII LOTNUM2_offset = 0x0A, ///< Lot Number Byte 2, ASCII LOTNUM3_offset = 0x0B, ///< Lot Number Byte 3, ASCII LOTNUM4_offset = 0x0C, ///< Lot Number Byte 4, ASCII LOTNUM5_offset = 0x0D, ///< Lot Number Byte 5, ASCII WAFNUM_offset = 0x10, ///< Wafer Number COORDX0_offset = 0x12, ///< Wafer Coordinate X Byte 0 COORDX1_offset = 0x13, ///< Wafer Coordinate X Byte 1 COORDY0_offset = 0x14, ///< Wafer Coordinate Y Byte 0 COORDY1_offset = 0x15, ///< Wafer Coordinate Y Byte 1 ADCACAL0_offset = 0x20, ///< ADCA Calibration Byte 0 ADCACAL1_offset = 0x21, ///< ADCA Calibration Byte 1 ADCBCAL0_offset = 0x24, ///< ADCB Calibration Byte 0 ADCBCAL1_offset = 0x25, ///< ADCB Calibration Byte 1 TEMPSENSE0_offset = 0x2E, ///< Temperature Sensor Calibration Byte 0 TEMPSENSE1_offset = 0x2F, ///< Temperature Sensor Calibration Byte 0 DACAOFFCAL_offset = 0x30, ///< DACA Calibration Byte 0 DACACAINCAL_offset = 0x31, ///< DACA Calibration Byte 1 DACBOFFCAL_offset = 0x32, ///< DACB Calibration Byte 0 DACBGAINCAL_offset = 0x33, ///< DACB Calibration Byte 1 } NVM_PROD_SIGNATURES_offsets_t; This goes for all XMEGA devices. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?32723> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev