Definition in file eeprom.c.
#include <msp430x14x.h>
#include <io.h>
#include "dev/eeprom.h"
Go to the source code of this file.
Defines | |
#define | EEPROMADDRESS (0x00) |
#define | EEPROMPAGEMASK (0x7F) |
#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 data from the EEPROM. | |
void | eeprom_write (unsigned short addr, unsigned char *buf, int size) |
Write a buffer into EEPROM. |