This example demonstrates the timer's functionality in free run mode. In the Example interrupt is enabled. and a overflow user callback is registered. In the callback a semaphore is posted.
The application sets the counter value to 0xFF000000 and starts the timer and pends semaphore. On overflow event the callback is called and semaphore is posted.
Application stops the timer after semaphore post.
The counter source Clock is set to MCU_HFOSC0 giving it a 25 MHz tick with counter Presacler disabled.
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 nortos |
r5fss0-0 freertos | |
Toolchain | ti-arm-clang |
Board | am64x-evm, am64x-sk |
Example folder | examples/drivers/gp_timer/gp_timer_overflow_callback |
Shown below is a sample output when the application is run,