Azure Sphere MT3620 M4 API Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

These sections introduce the Generic Purpose Timer (GPT), including terms and acronyms, supported features. More...

Overview

These sections introduce the Generic Purpose Timer (GPT), including terms and acronyms, supported features.

And any simple usage with these APIs and current system case of GPT are introduced in the section on how to use this driver.

Terms and Acronyms

Terms Details
GPT Generic Purpose Timer
ISR Interrupt Service Routines

Supported Features

Each IO-CM4 has one GPT device (which is placed on APB bus) respectively to support time calculation application.
Those GPT device units are the same. And each GPT device unit contains five timers which are designed as follows:

ID Mode Clock Source Clock speed Interrupt signal
GPT0one-shot and repeat32kHz 1kHz or 32kHz GPT
GPT1one-shot and repeat32kHz 1kHz or 32kHz GPT
GPT2free-run 32kHz 1kHz or 32kHz n/a
GPT3one-shot XTAL Clock 1MHz GPT3
GPT4free-run Bus Clock 1/2 or 1 * Bus Clock n/a

For more details, please refer to the GPT datasheet.

How to Use This Driver

Modules

 Define
 This section introduces the macro definitions which are used by GPT M-HAL's APIs error return type.
 
 Enum
 This section introduces the enumerations that GPT M-HAL used.
 
 Function
 This section provides Fixed APIs(defined as Common Interface) to fully control the MediaTek GPT HW.
 
 Struct
 This section introduces the structure used by GPT M-HAL used.