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. | |
EEPROM functions.
Definition in file eeprom.c.