diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-03-31 12:35:42 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-03-31 12:35:42 +0000 |
commit | 91e4dee81eef472b69d7b5fe321d8c16b4a0ac59 (patch) | |
tree | d83dcdad84d5f3395533dbb9c05f92e7bfd3c05c /os/hal | |
parent | a58a524d4c7e58d03a0fa3698f09fb17985a70bc (diff) | |
download | ChibiOS-91e4dee81eef472b69d7b5fe321d8c16b4a0ac59.tar.gz ChibiOS-91e4dee81eef472b69d7b5fe321d8c16b4a0ac59.tar.bz2 ChibiOS-91e4dee81eef472b69d7b5fe321d8c16b4a0ac59.zip |
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
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/include/gpt.h | 12 | ||||
-rw-r--r-- | os/hal/platforms/LPC11xx/gpt_lld.h | 16 | ||||
-rw-r--r-- | os/hal/platforms/LPC13xx/gpt_lld.h | 12 | ||||
-rw-r--r-- | os/hal/platforms/STM32/gpt_lld.h | 12 |
4 files changed, 12 insertions, 40 deletions
diff --git a/os/hal/include/gpt.h b/os/hal/include/gpt.h index c65cd7cee..5bb385078 100644 --- a/os/hal/include/gpt.h +++ b/os/hal/include/gpt.h @@ -58,6 +58,18 @@ typedef enum { GPT_ONESHOT = 4 /**< Active in one shot mode. */
} gptstate_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);
+
#include "gpt_lld.h"
/*===========================================================================*/
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 @@ -127,18 +127,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.
*/
@@ -171,10 +159,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.
*/
LPC_TMR_TypeDef *tmr;
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 @@ -127,18 +127,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 @@ -164,18 +164,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.
*/
|