I am trying to use a timer for profiling my bare-metal code on P4080DS but I couldn't find much info on it.
The e500mc Core reference manual says that there are timers like TB which can be configured and used. However, it does not have much info on using them. There is a small code snippet but it is in assembly language:
It will be helpful if I can get either of the two:
1) A code snippet (in C) which shows how to configure and read/write the timer registers.
2) A code snippet on how to embed the above assembly code in my C code.