From 91e4dee81eef472b69d7b5fe321d8c16b4a0ac59 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 31 Mar 2011 12:35:42 +0000 Subject: Generic improvements to the GPT driver organization. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2854 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC11xx/gpt_lld.h | 16 ---------------- os/hal/platforms/LPC13xx/gpt_lld.h | 12 ------------ os/hal/platforms/STM32/gpt_lld.h | 12 ------------ 3 files changed, 40 deletions(-) (limited to 'os/hal/platforms') diff --git a/os/hal/platforms/LPC11xx/gpt_lld.h b/os/hal/platforms/LPC11xx/gpt_lld.h index a1a516d6e..1aa1e3b90 100644 --- a/os/hal/platforms/LPC11xx/gpt_lld.h +++ b/os/hal/platforms/LPC11xx/gpt_lld.h @@ -126,18 +126,6 @@ typedef uint32_t gptfreq_t; */ typedef uint32_t gptcnt_t; -/** - * @brief Type of a structure representing a GPT driver. - */ -typedef struct GPTDriver GPTDriver; - -/** - * @brief GPT notification callback type. - * - * @param[in] gptp pointer to a @p GPTDriver object - */ -typedef void (*gptcallback_t)(GPTDriver *gptp); - /** * @brief Driver configuration structure. * @note It could be empty on some architectures. @@ -170,10 +158,6 @@ struct GPTDriver { */ const GPTConfig *config; /* End of the mandatory fields.*/ - /** - * @brief Timer base clock. - */ - uint32_t clock; /** * @brief Pointer to the CTxxBy registers block. */ diff --git a/os/hal/platforms/LPC13xx/gpt_lld.h b/os/hal/platforms/LPC13xx/gpt_lld.h index 8ea7f375b..e4a53224b 100644 --- a/os/hal/platforms/LPC13xx/gpt_lld.h +++ b/os/hal/platforms/LPC13xx/gpt_lld.h @@ -126,18 +126,6 @@ typedef uint32_t gptfreq_t; */ typedef uint32_t gptcnt_t; -/** - * @brief Type of a structure representing a GPT driver. - */ -typedef struct GPTDriver GPTDriver; - -/** - * @brief GPT notification callback type. - * - * @param[in] gptp pointer to a @p GPTDriver object - */ -typedef void (*gptcallback_t)(GPTDriver *gptp); - /** * @brief Driver configuration structure. * @note It could be empty on some architectures. diff --git a/os/hal/platforms/STM32/gpt_lld.h b/os/hal/platforms/STM32/gpt_lld.h index 2d7fd13f1..cf749077f 100644 --- a/os/hal/platforms/STM32/gpt_lld.h +++ b/os/hal/platforms/STM32/gpt_lld.h @@ -163,18 +163,6 @@ typedef uint32_t gptfreq_t; */ typedef uint16_t gptcnt_t; -/** - * @brief Type of a structure representing a GPT driver. - */ -typedef struct GPTDriver GPTDriver; - -/** - * @brief GPT notification callback type. - * - * @param[in] gptp pointer to a @p GPTDriver object - */ -typedef void (*gptcallback_t)(GPTDriver *gptp); - /** * @brief Driver configuration structure. * @note It could be empty on some architectures. -- cgit v1.2.3