Hello,
I am using AM64 and I want to read the value of a timer, how do I read it, I use the _t TimerP_getCount(uint32_t baseAddr) API, but the read data is messy, what do I do now this problem?
while(1) { GPIO_pinWriteHigh(gpioBaseAddr, pinNum); /* Sleep for user specified usecs */ ClockP_usleep(delayuSec); NowTime = TimerP_getCount(gTimerBaseAddr[CONFIG_TIMER0]); DebugP_log("NowTime = %d!!\r\n",NowTime); /* Set gpio output low level */ GPIO_pinWriteLow(gpioBaseAddr, pinNum); /* Sleep for user specified usecs */ ClockP_usleep(delayuSec); }
Regards,
Gary