diff options
author | barthess <barthess@yandex.ru> | 2015-03-03 22:43:25 +0300 |
---|---|---|
committer | barthess <barthess@yandex.ru> | 2015-03-03 22:43:25 +0300 |
commit | e75668f53b3347044e5029d296ee6a7915627063 (patch) | |
tree | 921cd974650003b5af7ff81e204aa395663ff589 /os/hal/ports/STM32/LLD/eicu_lld.h | |
parent | 35c48df91058d84572e5169bea9d98c24a2792bc (diff) | |
download | ChibiOS-Contrib-e75668f53b3347044e5029d296ee6a7915627063.tar.gz ChibiOS-Contrib-e75668f53b3347044e5029d296ee6a7915627063.tar.bz2 ChibiOS-Contrib-e75668f53b3347044e5029d296ee6a7915627063.zip |
EICU. Cosmetical cleanup
Diffstat (limited to 'os/hal/ports/STM32/LLD/eicu_lld.h')
-rw-r--r-- | os/hal/ports/STM32/LLD/eicu_lld.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/os/hal/ports/STM32/LLD/eicu_lld.h b/os/hal/ports/STM32/LLD/eicu_lld.h index 5c6c3fa..4f10893 100644 --- a/os/hal/ports/STM32/LLD/eicu_lld.h +++ b/os/hal/ports/STM32/LLD/eicu_lld.h @@ -256,17 +256,29 @@ * @brief Active level selector. */ typedef enum { - EICU_INPUT_ACTIVE_HIGH = 0, /**< Trigger on rising edge. */ - EICU_INPUT_ACTIVE_LOW = 1, /**< Trigger on falling edge. */ + EICU_INPUT_ACTIVE_HIGH, /**< Trigger on rising edge. */ + EICU_INPUT_ACTIVE_LOW, /**< Trigger on falling edge. */ } eicuactivelevel_t; /** * @brief Input type selector. */ typedef enum { - EICU_INPUT_EDGE = 0, /**< Measures time between consequent edges.*/ - EICU_INPUT_PULSE = 1, /**< Measures pulse width.*/ - EICU_INPUT_BOTH = 2 /**< Measures both period and width. */ + /** + * @brief Measures time between consequent edges. + * @details Callback fires on every _active_ edge. + */ + EICU_INPUT_EDGE, + /** + * @brief Measures pulse width. + * @details Callback fires on _idle_ edge of pulse. + */ + EICU_INPUT_PULSE, + /** + * @brief Measures both period and width.. + * @details Callback fires on _active_ edge of pulse. + */ + EICU_INPUT_BOTH } eicucapturemode_t; /** |