AM243x MCU+ SDK  11.00.00
GPTIMER Overflow Callback

Introduction

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.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
r5fss0-0 freertos
Toolchain ti-arm-clang
Boards am243x-evm, am243x-lp
Example folder examples/drivers/gp_timer/gp_timer_overflow_callback

Steps to Run the Example

See Also

GPTIMER

Sample Output

Shown below is a sample output when the application is run,

GP Timer Overflow Callback Test Started ...
Overflow Interrupt triggered !!
All tests have passed!!