28#if (HAL_USE_GPT == TRUE) || defined(__DOXYGEN__)
86#define gptChangeIntervalI(gptp, interval) { \
87 gpt_lld_change_interval(gptp, interval); \
99#define gptGetIntervalX(gptp) gpt_lld_get_interval(gptp)
112#define gptGetCounterX(gptp) gpt_lld_get_counter(gptp)
121#define _gpt_isr_invoke_cb(gptp) do { \
122 if ((gptp)->state == GPT_ONESHOT) { \
123 (gptp)->state = GPT_READY; \
124 gpt_lld_stop_timer(gptp); \
126 if ((gptp)->config->callback != NULL) { \
127 (gptp)->config->callback(gptp); \
void gptPolledDelay(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in one shot mode and waits for completion.
void gptObjectInit(GPTDriver *gptp)
Initializes the standard part of a GPTDriver structure.
void(* gptcallback_t)(GPTDriver *gptp)
GPT notification callback type.
void gptInit(void)
GPT Driver initialization.
void gptStop(GPTDriver *gptp)
Deactivates the GPT peripheral.
void gptStartOneShot(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in one shot mode.
void gptStartOneShotI(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in one shot mode.
uint16_t gptcnt_t
GPT counter type.
gptstate_t
Driver state machine possible states.
void gptChangeInterval(GPTDriver *gptp, gptcnt_t interval)
Changes the interval of GPT peripheral.
void gptStopTimer(GPTDriver *gptp)
Stops the timer.
void gptStartContinuous(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in continuous mode.
void gptStopTimerI(GPTDriver *gptp)
Stops the timer.
void gptStartContinuousI(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in continuous mode.
msg_t gptStart(GPTDriver *gptp, const GPTConfig *config)
Configures and activates the GPT peripheral.
int32_t msg_t
Type of a message.
PLATFORM GPT subsystem low level driver header.
Driver configuration structure.
Structure representing a GPT driver.
const GPTConfig * config
Current configuration data.