Hello,
I try example dmTimercount and it works. After I create a new empty project and I import all files I need.
For example GPIO blink led I do it and it works but for dmtimer I have a problem with "cpu.c"
When I import it and I build I have error#18 expected a ")"
code come from starterware, no modification. Error is on line ...(stat));
unsigned int CPUIntStatus(void)
{
unsigned int stat;
/* IRQ and FIQ in CPSR */
asm(" mrs r0, CPSR\n\t"
" and %[result], r0, #0xC0" : [result] "=r" (stat));
return stat;
}
I found there's two files cpu.c in gcc and cgt but in cgt folder this function doesn't exist.
Thanks