eeprom.c File Reference

EEPROM functions. More...

#include <msp430x14x.h>
#include <io.h>
#include "dev/eeprom.h"

Go to the source code of this file.

Defines

#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.
void eeprom_write (unsigned short addr, unsigned char *buf, int size)
 Write bytes to EEPROM using sequencial write.




Detailed Description

EEPROM functions.

Author:
Adam Dunkels <adam@sics.se>

Definition in file eeprom.c.


Generated on Mon Apr 11 14:23:47 2011 for Contiki 2.5 by  doxygen 1.6.1