Merge branch 'upstream-fixes'
[mw/micromonitor-lm32.git] / umon_ports / bf537 / phyeeprom.h
1 #ifndef __EEPROMVDK
2 #define __EEPROMVDK
3
4 #include <cdefBF537.h>
5
6 extern unsigned char eeprom_address;
7
8 /*in VDK it might be necessary to make these functions atomic...
9   surround these functions with VDK_PushUnscheduledRegion() and VDK_PopUnscheduledRegion() */
10 void eeprom_select(unsigned char select);
11 void eeprom_init(void);
12 void eeprom_write_byte(unsigned short address, unsigned char data);
13 void eeprom_set_address(unsigned short address);
14 unsigned char eeprom_read_byte(void);
15
16 /* VDK-friendly functions */
17 void eeprom_getMAC(unsigned char *addressArray);
18 #if 0
19 void eeprom_init_(void);
20 #endif
21
22 void eeprom_paranoidDelay(void);
23
24 #endif /* EEPROM */