aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/eicu_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/eicu_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/eicu_lld.h22
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;
/**