Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

eeprom.c File Reference


Detailed Description

EEPROM functions.

Author:
Adam Dunkels <adam@sics.se>

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

Defines

#define SDA_HIGH   (P5OUT |= 0x04) /**< EEPROM data line high */
 EEPROM data line high.

#define SDA_LOW   (P5OUT &= 0xFB) /**< EEPROM data line low */
 EEPROM data line low.

#define SCL_HIGH   (P5OUT |= 0x08) /**< EEPROM clock line high */
 EEPROM clock line high.

#define SCL_LOW   (P5OUT &= 0xF7) /**< EEPROM clock line low */
 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.


Define Documentation

#define SDA_HIGH   (P5OUT |= 0x04) /**< EEPROM data line high */
 

EEPROM data line high.

For internal use only.

Macros for accessing the clock and data lines. Data is on P56 and clock on P57.


Generated on Wed Jul 6 01:19:01 2005 for Contiki/ESB by doxygen 1.3.6