projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/ms5607: Use ao_gpio_set instead of stm_gpio_set
[fw/altos]
/
src
/
drivers
/
ao_at24c.c
diff --git
a/src/drivers/ao_at24c.c
b/src/drivers/ao_at24c.c
index 8f91e3ca9533f600bf8eb1e9b748b279595dba62..16141c735d9b026eef1d6684461f530f6c0cf289 100644
(file)
--- a/
src/drivers/ao_at24c.c
+++ b/
src/drivers/ao_at24c.c
@@
-25,10
+25,10
@@
#define AO_AT24C_PAGE_LEN 128
/* Total bytes of available storage */
#define AO_AT24C_PAGE_LEN 128
/* Total bytes of available storage */
-
__pdata
ao_pos_t ao_storage_total = 64l * 1024l;
+ao_pos_t ao_storage_total = 64l * 1024l;
/* Storage unit size - device reads and writes must be within blocks of this size. */
/* Storage unit size - device reads and writes must be within blocks of this size. */
-
__pdata
uint16_t ao_storage_unit = 128;
+uint16_t ao_storage_unit = 128;
static void
ao_at24c_set_address(uint8_t addr, ao_pos_t pos)
static void
ao_at24c_set_address(uint8_t addr, ao_pos_t pos)
@@
-45,7
+45,7
@@
ao_at24c_set_address(uint8_t addr, ao_pos_t pos)
* Erase the specified sector
*/
uint8_t
* Erase the specified sector
*/
uint8_t
-ao_storage_erase(ao_pos_t pos)
__reentrant
+ao_storage_erase(ao_pos_t pos)
{
if (pos >= ao_storage_total || pos + AO_AT24C_PAGE_LEN > ao_storage_total)
return 0;
{
if (pos >= ao_storage_total || pos + AO_AT24C_PAGE_LEN > ao_storage_total)
return 0;
@@
-61,7
+61,7
@@
ao_storage_erase(ao_pos_t pos) __reentrant
* Write to flash
*/
uint8_t
* Write to flash
*/
uint8_t
-ao_storage_device_write(ao_pos_t pos,
__xdata void *d, uint16_t len) __reentrant
+ao_storage_device_write(ao_pos_t pos,
void *d, uint16_t len)
{
if (pos >= ao_storage_total || pos + len > ao_storage_total)
return 0;
{
if (pos >= ao_storage_total || pos + len > ao_storage_total)
return 0;
@@
-77,7
+77,7
@@
ao_storage_device_write(ao_pos_t pos, __xdata void *d, uint16_t len) __reentrant
* Read from flash
*/
uint8_t
* Read from flash
*/
uint8_t
-ao_storage_device_read(ao_pos_t pos,
__xdata void *d, uint16_t len) __reentrant
+ao_storage_device_read(ao_pos_t pos,
void *d, uint16_t len)
{
if (pos >= ao_storage_total || pos + len > ao_storage_total)
return 0;
{
if (pos >= ao_storage_total || pos + len > ao_storage_total)
return 0;
@@
-89,7
+89,7
@@
ao_storage_device_read(ao_pos_t pos, __xdata void *d, uint16_t len) __reentrant
}
void
}
void
-ao_storage_flush(void)
__reentrant
+ao_storage_flush(void)
{
}
{
}