I'm trying to build the example for the Adadfruit PDC8544 LDC display: http://ladyada.net/products/nokia5110/#testing. First the compiler could not find util\delay.h and util\delay_basic.h. Then when copied and placed them directly in the example directory it complained about some inline assembly in delay_basic.h. Sure enough delay_basic.h contains some assembly delay loops that are probably AVR assembly.
_delay_loop_1(uint8_t __count)
{
__asm__ volatile (
"1: dec %0" "\n\t"
"brne 1b"
: "=r" (__count)
: "0" (__count)
);
}
I couldn't find and ARM version of this include file. Any ideas would be appreciated. Should I expect this to be part of the Arduino ARM port? I guess given some time I could figure out the ARM assembly for this decrement/branch delay loop.
Thanks,
SteveC
_delay_loop_1(uint8_t __count)
{
__asm__ volatile (
"1: dec %0" "\n\t"
"brne 1b"
: "=r" (__count)
: "0" (__count)
);
}
I couldn't find and ARM version of this include file. Any ideas would be appreciated. Should I expect this to be part of the Arduino ARM port? I guess given some time I could figure out the ARM assembly for this decrement/branch delay loop.
Thanks,
SteveC