From ae1ce0ea2bcad5962831dae78afde8575b9d7675 Mon Sep 17 00:00:00 2001 From: barthess Date: Thu, 5 Mar 2015 15:59:32 +0300 Subject: EICU. Timer widht (16-32 bits) now stored in driver field and detected durign startup --- os/hal/ports/STM32/LLD/eicu_lld.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (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 4f10893..9b04ab2 100644 --- a/os/hal/ports/STM32/LLD/eicu_lld.h +++ b/os/hal/ports/STM32/LLD/eicu_lld.h @@ -281,6 +281,14 @@ typedef enum { EICU_INPUT_BOTH } eicucapturemode_t; +/** + * @brief Timer registers width in bits. + */ +typedef enum { + EICU_WIDTH_16, + EICU_WIDTH_32 +} eicutimerwidth_t; + /** * @brief EICU frequency type. */ @@ -390,6 +398,10 @@ struct EICUDriver { * @brief Timer base clock. */ uint32_t clock; + /** + * @brief Timer registers width in bits. + */ + eicutimerwidth_t width; /** * @brief Pointer to configuration for the driver. */ -- cgit v1.2.3