summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_arch.h
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_arch.h
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_arch.h')
-rw-r--r--src/cc1111/ao_arch.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cc1111/ao_arch.h b/src/cc1111/ao_arch.h
index 8a41791f..02e36189 100644
--- a/src/cc1111/ao_arch.h
+++ b/src/cc1111/ao_arch.h
@@ -204,4 +204,21 @@ struct ao_adc {
#define AO_ADC_RING 32
+/* ao_string.c */
+
+void
+_ao_xmemcpy(__xdata uint8_t *dst, __xdata uint8_t *src, uint8_t count);
+
+#define ao_xmemcpy(d,s,c) _ao_xmemcpy((__xdata uint8_t *) (d), (__xdata uint8_t *) (s), (c))
+
+void
+_ao_xmemset(__xdata uint8_t *dst, uint8_t value, uint8_t count);
+
+#define ao_xmemset(d,v,c) _ao_xmemset((__xdata uint8_t *) (d), (v), (c))
+
+int8_t
+_ao_xmemcmp(__xdata uint8_t *a, __xdata uint8_t *b, uint8_t count);
+
+#define ao_xmemcmp(d,s,c) _ao_xmemcmp((__xdata uint8_t *) (d), (__xdata uint8_t *) (s), (c))
+
#endif /* _AO_ARCH_H_ */