summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_string.c
Commit message (Collapse)AuthorAge
* altos: Need to use 16-bit counts for ao_xmem functionsKeith Packard2012-09-14
| | | | | | | | | Trying to use 8-bit counts is a nice optimization which fails when the count is larger than 255, as is the case with clearing the flash block in the AT45 driver. This bug resulted in the inability to erase flights on TeleMetrum v1.0 boards. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_xmem funcs require __xdata void * instead of castingKeith Packard2011-11-11
| | | | | | | | | | | | Having an explicit cast in the ao_xmem wrapper macros caused the compiler to generate garbage values for pdata addresses, making the upper byte 0x00 instead of the required 0xf0. Removing the casts from the ao_xmem macros exposed this problem, so a new PDATA_TO_XDATA macros was added, along with a CODE_TO_XDATA macro which serve to cast pointers, with suitable address modifications, so that things work again. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: oops -- forgot to add the cc1111 string codeKeith Packard2011-10-11
This is required for all cc1111 builds now; it provides xdata string functions. Signed-off-by: Keith Packard <keithp@keithp.com>