From 174af79c3182e9e8b57ebb575341e85fd484b888 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 5 Aug 2006 16:02:34 +0000 Subject: Initial EEPROM driver for iriver H1xx. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10462 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/eeprom_24cxx.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 firmware/export/eeprom_24cxx.h (limited to 'firmware/export') diff --git a/firmware/export/eeprom_24cxx.h b/firmware/export/eeprom_24cxx.h new file mode 100644 index 0000000000..d4f00818e2 --- /dev/null +++ b/firmware/export/eeprom_24cxx.h @@ -0,0 +1,32 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2006 by Miika Pekkarinen + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#ifndef _EEPROM_24CXX_H +#define _EEPROM_24CXX_H + +#define EEPROM_ADDR 0xA0 +#define EEPROM_SIZE 128 + +void eeprom_24cxx_init(void); +bool eeprom_24cxx_read_byte(unsigned int address, char *c); +bool eeprom_24cxx_read(unsigned char address, void *dest, int length); +bool eeprom_24cxx_write(unsigned char address, const void *src, int length); + +#endif + -- cgit v1.2.3