presets v0.2
This commit is contained in:
6
eeprom.h
6
eeprom.h
@ -1,8 +1,7 @@
|
||||
void EEPROM_write_char(uint16_t address, unsigned char data)
|
||||
{
|
||||
/* Wait for completion of previous write */
|
||||
while(EECR & (1<<EEPE))
|
||||
;
|
||||
while(EECR & (1<<EEPE));
|
||||
/* Set up address and Data Registers */
|
||||
EEAR = address;
|
||||
EEDR = data;
|
||||
@ -15,8 +14,7 @@ void EEPROM_write_char(uint16_t address, unsigned char data)
|
||||
unsigned char EEPROM_read_char(uint16_t uiAddress)
|
||||
{
|
||||
/* Wait for completion of previous write */
|
||||
while(EECR & (1<<EEPE))
|
||||
;
|
||||
while(EECR & (1<<EEPE));
|
||||
/* Set up address register */
|
||||
EEAR = uiAddress;
|
||||
/* Start eeprom read by writing EERE */
|
||||
|
Reference in New Issue
Block a user