From e75668f53b3347044e5029d296ee6a7915627063 Mon Sep 17 00:00:00 2001 From: barthess Date: Tue, 3 Mar 2015 22:43:25 +0300 Subject: EICU. Cosmetical cleanup --- os/hal/ports/STM32/LLD/eicu_lld.h | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'os/hal/ports/STM32/LLD/eicu_lld.h') 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; /** -- cgit v1.2.3