summaryrefslogtreecommitdiff
path: root/src/ao_intflash.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-07-06 15:52:25 -0700
committerKeith Packard <keithp@keithp.com>2011-07-06 15:52:25 -0700
commitb65140a0139075adeddaccf0f4d5c7a75fac4757 (patch)
treef28af9331c7ff90b604532bab473ffc3e5216a87 /src/ao_intflash.c
parent038d7b25ba833da4be458409670d3f95e8aaf17b (diff)
altos: Switch flash drivers __xdata to __pdata
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_intflash.c')
-rw-r--r--src/ao_intflash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ao_intflash.c b/src/ao_intflash.c
index 88d1f7f6..d76d954e 100644
--- a/src/ao_intflash.c
+++ b/src/ao_intflash.c
@@ -47,16 +47,16 @@
__xdata __at(AO_INTFLASH_LOCATION) uint8_t ao_intflash[AO_INTFLASH_SIZE];
/* Total bytes of available storage */
-__xdata uint32_t ao_storage_total = sizeof(ao_intflash);
+__pdata uint32_t ao_storage_total = sizeof(ao_intflash);
/* Block size - device is erased in these units. */
-__xdata uint32_t ao_storage_block = AO_INTFLASH_BLOCK;
+__pdata uint32_t ao_storage_block = AO_INTFLASH_BLOCK;
/* Byte offset of config block. Will be ao_storage_block bytes long */
-__xdata uint32_t ao_storage_config = sizeof(ao_intflash) - AO_INTFLASH_BLOCK;
+__pdata uint32_t ao_storage_config = sizeof(ao_intflash) - AO_INTFLASH_BLOCK;
/* Storage unit size - device reads and writes must be within blocks of this size. */
-__xdata uint16_t ao_storage_unit = AO_INTFLASH_BLOCK;
+__pdata uint16_t ao_storage_unit = AO_INTFLASH_BLOCK;
__xdata static uint8_t ao_intflash_dma_done;
static uint8_t ao_intflash_dma;