summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_adc.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-10-07 09:53:09 -0600
committerKeith Packard <keithp@keithp.com>2011-10-07 09:54:32 -0600
commit258b75498916183ed250d3abb3282fe3d843e7a1 (patch)
treed71a42f289a8fb31caf40c51746a1c42d8886ba3 /src/cc1111/ao_adc.c
parent128bbfa150f88c09f7adde2434b7bf0b5a9ed556 (diff)
altos: Write xdata versions of memory functions1.0.9.1
These are significantly smaller than the general pointer versions from libc on the cc1111. Signed-off-by: Keith Packard <keithp@keithp.com> Conflicts: src/Makefile.proto src/cc1111/ao_adc.c src/cc1111/ao_packet_master.c src/core/ao.h Fix up the new makefiles
Diffstat (limited to 'src/cc1111/ao_adc.c')
-rw-r--r--src/cc1111/ao_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc1111/ao_adc.c b/src/cc1111/ao_adc.c
index 6aa6e018..1688eceb 100644
--- a/src/cc1111/ao_adc.c
+++ b/src/cc1111/ao_adc.c
@@ -46,7 +46,7 @@ ao_adc_get(__xdata struct ao_adc *packet)
#else
uint8_t i = ao_adc_ring_prev(ao_adc_head);
#endif
- memcpy(packet, &ao_adc_ring[i], sizeof (struct ao_adc));
+ ao_xmemcpy(packet, &ao_adc_ring[i], sizeof (struct ao_adc));
}
void