Hi,
as far as I understood TI compiler does not support inline assember code like this:
static inline unsigned int get_cyclecount (void)
{
unsigned int value;
// Read CCNT Register
asm volatile ("MRC p15, 0, %0, c9, c13, 0\t\n": "=r"(value));
return value;
}
So I have to put it into a separate file that is processed separately. But: how do I implement the above? How do I write the value read from CCNT register into some variable and return it to the calling C-function?
Thanks :-)