View previous topic :: View next topic |
Author |
Message |
lowfinn
Joined: 10 Feb 2008 Posts: 4
|
Posted: Mon Feb 11, 2008 1:59 am Post subject: EEPROM useage question |
|
|
are you required to use 'rb' and 'wb' when accessing EEPROM? I have seen some examples that do this.
ex. (master is a pointer to a struct that is in EEPROM)
can I use
Code: | if (master->count == 10) |
or do i have to use
Code: | if (rb(&master->count) == 10) |
Thanks for your help |
|
Back to top |
|
 |
pz Guest
|
Posted: Mon Feb 18, 2008 8:02 am Post subject: Re: EEPROM useage question |
|
|
lowfinn wrote: | are you required to use 'rb' and 'wb' when accessing EEPROM? I have seen some examples that do this.
ex. (master is a pointer to a struct that is in EEPROM)
can I use
Code: | if (master->count == 10) |
or do i have to use
Code: | if (rb(&master->count) == 10) |
Thanks for your help |
You have to use rb(), please look at devel docs. |
|
Back to top |
|
 |
|