aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/gpt_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/gpt_lld.h')
-rw-r--r--os/hal/templates/gpt_lld.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/os/hal/templates/gpt_lld.h b/os/hal/templates/gpt_lld.h
index 9dd1f4a9a..97671cf42 100644
--- a/os/hal/templates/gpt_lld.h
+++ b/os/hal/templates/gpt_lld.h
@@ -25,7 +25,7 @@
#ifndef _GPT_LLD_H_
#define _GPT_LLD_H_
-#if HAL_USE_GPT || defined(__DOXYGEN__)
+#if (HAL_USE_GPT == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -42,10 +42,10 @@
/**
* @brief GPTD1 driver enable switch.
* @details If set to @p TRUE the support for GPTD1 is included.
- * @note The default is @p TRUE.
+ * @note The default is @p FALSE.
*/
-#if !defined(STM32_GPT_USE_TIM1) || defined(__DOXYGEN__)
-#define STM32_GPT_USE_TIM1 FALSE
+#if !defined(PLATFORM_GPT_USE_GPT1) || defined(__DOXYGEN__)
+#define PLATFORM_GPT_USE_GPT1 FALSE
#endif
/** @} */
@@ -130,23 +130,24 @@ struct GPTDriver {
/* External declarations. */
/*===========================================================================*/
-#if STM32_GPT_USE_TIM1 && !defined(__DOXYGEN__)
+#if (PLATFORM_GPT_USE_GPT1 == TRUE) && !defined(__DOXYGEN__)
extern GPTDriver GPTD1;
#endif
+
#ifdef __cplusplus
extern "C" {
#endif
void gpt_lld_init(void);
void gpt_lld_start(GPTDriver *gptp);
void gpt_lld_stop(GPTDriver *gptp);
- void gpt_lld_start_timer(GPTDriver *gptp, gptcnt_t period);
+ void gpt_lld_start_timer(GPTDriver *gptp, gptcnt_t interval);
void gpt_lld_stop_timer(GPTDriver *gptp);
void gpt_lld_polled_delay(GPTDriver *gptp, gptcnt_t interval);
#ifdef __cplusplus
}
#endif
-#endif /* HAL_USE_GPT */
+#endif /* HAL_USE_GPT == TRUE */
#endif /* _GPT_LLD_H_ */