Defines | Functions

# eep_drv.h File Reference

Routines to control EEPROM. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Defines
#define | Enable_eeprom()
#define | Disable_eeprom()
#define | eeprom_busy() (EECR &(1<<EEPE))
#define | eeprom_wr(addr, b) (EEAR=addr, EEDR=b, EECR |= (1<<EEMPE),EECR |= (1<<EEPE))
## Functions
Byte | eeprom_rd (Uint16 addr)

## Detailed Description

Routines to control EEPROM.

- Compiler: IAR EWAVR and GNU GCC for AVR
- Supported devices: ATmega32U4

Author:
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

Definition in file eep_drv.h.

## Define Documentation

#define Enable_eeprom | ( | ) |

Definition at line 50 of file eep_drv.h.

#define Disable_eeprom | ( | ) |

Definition at line 52 of file eep_drv.h.

#define eeprom_busy | ( | ) | (EECR &(1<<EEPE))

Definition at line 62 of file eep_drv.h.

#define eeprom_wr | ( |  | addr,
|  |  | b
| ) |  | (EEAR=addr, EEDR=b, EECR |= (1<<EEMPE),EECR |= (1<<EEPE))

Definition at line 74 of file eep_drv.h.

## Function Documentation

Byte eeprom_rd | ( | Uint16 | addr ) |

Definition at line 60 of file eep_drv.c.

    {
      EEAR = addr;
      EECR |= (1<<EERE);
      return(EEDR);
    }