Better a KISS approach.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2790 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
e0c20340f0
commit
2de96c4c57
|
@ -38,22 +38,10 @@
|
|||
/* 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. */
|
||||
/*===========================================================================*/
|
||||
|
||||
#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. */
|
||||
/*===========================================================================*/
|
||||
|
@ -93,9 +81,6 @@ extern "C" {
|
|||
void gptStopTimer(GPTDriver *gptp);
|
||||
void gptStopTimerI(GPTDriver *gptp);
|
||||
void gptPolledDelay(GPTDriver *gptp, gptcnt_t interval);
|
||||
#if GPT_USE_WAIT
|
||||
void gptDelay(GPTDriver *gptp, gptcnt_t interval);
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue