Go to the documentation of this file.
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); \
uint16_t gptcnt_t
GPT counter type.
void gptStopTimerI(GPTDriver *gptp)
Stops the timer.
void gptStart(GPTDriver *gptp, const GPTConfig *config)
Configures and activates the GPT peripheral.
void gptObjectInit(GPTDriver *gptp)
Initializes the standard part of a GPTDriver structure.
void gptChangeInterval(GPTDriver *gptp, gptcnt_t interval)
Changes the interval of GPT peripheral.
Structure representing a GPT driver.
void gptStartOneShotI(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in one shot mode.
void(* gptcallback_t)(GPTDriver *gptp)
GPT notification callback type.
void gptPolledDelay(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in one shot mode and waits for completion.
void gptStartOneShot(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in one shot mode.
void gptStopTimer(GPTDriver *gptp)
Stops the timer.
void gptStop(GPTDriver *gptp)
Deactivates the GPT peripheral.
void gptInit(void)
GPT Driver initialization.
Driver configuration structure.
const GPTConfig * config
Current configuration data.
void gptStartContinuous(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in continuous mode.
void gptStartContinuousI(GPTDriver *gptp, gptcnt_t interval)
Starts the timer in continuous mode.
gptstate_t
Driver state machine possible states.
PLATFORM GPT subsystem low level driver header.