presets v0.2
This commit is contained in:
parent
f37e2add81
commit
75a980ee6a
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 */
|
||||
|
|
Loading…
Reference in a new issue