Better a KISS approach.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2790 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2011-03-04 16:56:01 +00:00
parent e0c20340f0
commit 2de96c4c57
1 changed files with 0 additions and 15 deletions

View File

@ -38,22 +38,10 @@
/* Driver pre-compile time settings. */ /* Driver pre-compile time settings. */
/*===========================================================================*/ /*===========================================================================*/
/**
* @brief Enables synchronous APIs.
* @note Disabling this option saves both code and data space.
*/
#if !defined(GPT_USE_WAIT) || defined(__DOXYGEN__)
#define GPT_USE_WAIT TRUE
#endif
/*===========================================================================*/ /*===========================================================================*/
/* Derived constants and error checks. */ /* Derived constants and error checks. */
/*===========================================================================*/ /*===========================================================================*/
#if GPT_USE_WAIT && !CH_USE_SEMAPHORES
#error "GPT driver requires CH_USE_SEMAPHORES when GPT_USE_WAIT is enabled"
#endif
/*===========================================================================*/ /*===========================================================================*/
/* Driver data structures and types. */ /* Driver data structures and types. */
/*===========================================================================*/ /*===========================================================================*/
@ -93,9 +81,6 @@ extern "C" {
void gptStopTimer(GPTDriver *gptp); void gptStopTimer(GPTDriver *gptp);
void gptStopTimerI(GPTDriver *gptp); void gptStopTimerI(GPTDriver *gptp);
void gptPolledDelay(GPTDriver *gptp, gptcnt_t interval); void gptPolledDelay(GPTDriver *gptp, gptcnt_t interval);
#if GPT_USE_WAIT
void gptDelay(GPTDriver *gptp, gptcnt_t interval);
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif