Atmel ATxmega MCU

Implementation of Atmel's ATxmega MCU. More...

Detailed Description

Implementation of Atmel's ATxmega MCU.


 Atmel ATxmega MCU Peripherals


file  cpu_clock.h
 Common implementations and headers for ATxmega family based micro-controllers.
file  cpu_conf.h
 Implementation specific CPU configuration options.
file  cpu_pm.h
 Power Management and Power Reduction API.
file  periph_cpu.h
 CPU specific definitions for internal peripheral handling.
#define nvm_get_production_signature_row_offset(regname)   offsetof(NVM_PROD_SIGNATURES_t, regname)
 Non Volatile Memory (NVM) internal API. More...
uint8_t nvm_read_production_signature_row (uint8_t address)
 Read one byte from the production signature row. More...

Macro Definition Documentation

◆ nvm_get_production_signature_row_offset

#define nvm_get_production_signature_row_offset (   regname)    offsetof(NVM_PROD_SIGNATURES_t, regname)

Non Volatile Memory (NVM) internal API.

Gerson Fernando Budke Get offset of calibration bytes in the production signature row
In some distributions may require most recent vendor headers, even more recent than the upstream avr-libc. The headers can be download directly from Microchip web site. In general, Microchip have a dedicated page at Tools and Software / AVR and SAM Downloads Archive. The most recent version is AVR 8-bit Toolchain (3.4.4)

The official RIOT-OS docker container, Debian and Ubuntu are distributions that already had updated versions of those files.

regnameName of register within the production signature row
Return values
Offsetof register into the production signature row

Definition at line 41 of file cpu_nvm.h.

Function Documentation

◆ nvm_read_production_signature_row()

uint8_t nvm_read_production_signature_row ( uint8_t  address)

Read one byte from the production signature row.

This function reads one byte from the production signature row of the device at the given address.

This function is modifying the NVM.CMD register. If the application are using program space access in interrupts (__flash pointers in IAR EW or pgm_read_byte in GCC) interrupts needs to be disabled when running EEPROM access functions. If not the program space reads will be corrupted.
addressByte offset into the signature row