Contiki 2.5
Macros | Functions
eeprom.c File Reference

EEPROM functions. More...

#include "contiki.h"
#include "dev/eeprom.h"

Go to the source code of this file.

Macros

#define SDA_HIGH   (P5OUT |= 0x04)
 EEPROM data line high.
 
#define SDA_LOW   (P5OUT &= 0xFB)
 EEPROM data line low.
 
#define SCL_HIGH   (P5OUT |= 0x08)
 EEPROM clock line high.
 
#define SCL_LOW   (P5OUT &= 0xF7)
 EEPROM clock line low.
 

Functions

void eeprom_read (unsigned short addr, unsigned char *buf, int size)
 Read bytes from the EEPROM using sequential read. More...
 
void eeprom_write (unsigned short addr, unsigned char *buf, int size)
 Write bytes to EEPROM using sequencial write. More...
 

Detailed Description

EEPROM functions.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file eeprom.c.