AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/nvm/nvm.c
uint8_t nvm_eeprom_read_byte(eeprom_addr_t addr)
{
    uint8_t data;
    Assert(addr <= EEPROM_SIZE);

    /* Wait until NVM is ready */
    nvm_wait_until_ready();
    eeprom_enable_mapping();
    data = *(uint8_t *) (addr + MAPPED_EEPROM_START), eeprom_disable_mapping();
    return data;
}
/**
 * \brief Read one byte from EEPROM using mapped access.
 *
 * This function reads one byte from EEPROM using mapped access.
 *
 * \param  addr       EEPROM address, between 0 and EEPROM_SIZE
 *
 *  \return  Byte value read from EEPROM.
 */
\brief Read one byte from EEPROM using mapped access.
This function reads one byte from EEPROM using mapped access.

\param  addr       EEPROM address, between 0 and EEPROM_SIZE

\return  Byte value read from EEPROM.
\ brief Read one byte from EEPROM using mapped access . This function reads one byte from EEPROM using mapped access . \ param addr EEPROM address between 0 and EEPROM_SIZE \ return Byte value read from EEPROM .
uint8_t nvm_eeprom_read_byte(eeprom_addr_t addr)
{
    uint8_t data;
    Assert(addr <= EEPROM_SIZE);
    nvm_wait_until_ready();
    eeprom_enable_mapping();
    data = *(uint8_t *) (addr + MAPPED_EEPROM_START), eeprom_disable_mapping();
    return data;
}
uint8_t nvm_eeprom_read_byte ( eeprom_addr_t addr ) { uint8_t data ; Assert ( addr <= EEPROM_SIZE ) ; nvm_wait_until_ready ( ) ; eeprom_enable_mapping ( ) ; data = * ( uint8_t * ) ( addr + MAPPED_EEPROM_START ) , eeprom_disable_mapping ( ) ; return data ; }
\brief Read one byte from EEPROM using mapped access.
\ brief Read one byte from EEPROM using mapped access .
/* Wait until NVM is ready */