Loading...
Searching...
No Matches
Atmel ATxmega MCU

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

Detailed Description

Implementation of Atmel's ATxmega MCU.

Modules

 Atmel ATxmega MCU Peripherals
 

Files

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_ebi.h
 External Bus Interface API.
 
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.
 
uint8_t nvm_read_production_signature_row (uint8_t address)
 Read one byte from the production signature row.
 

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.

Author
Gerson Fernando Budke nando.nosp@m.jve@.nosp@m.gmail.nosp@m..com

Get offset of calibration bytes in the production signature row

Note
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) 6.2.0.334. http://ww1.microchip.com/downloads/archive/avr8-headers-6.2.0.334.zip

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

Parameters
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.

Note
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.
Parameters
addressByte offset into the signature row