aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/eicu_lld.h
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2015-03-05 15:59:32 +0300
committerbarthess <barthess@yandex.ru>2015-03-05 15:59:32 +0300
commitae1ce0ea2bcad5962831dae78afde8575b9d7675 (patch)
treec2f112006a506b32dac0d98e0f0d5db8aa833b96 /os/hal/ports/STM32/LLD/eicu_lld.h
parente75668f53b3347044e5029d296ee6a7915627063 (diff)
downloadChibiOS-Contrib-ae1ce0ea2bcad5962831dae78afde8575b9d7675.tar.gz
ChibiOS-Contrib-ae1ce0ea2bcad5962831dae78afde8575b9d7675.tar.bz2
ChibiOS-Contrib-ae1ce0ea2bcad5962831dae78afde8575b9d7675.zip
EICU. Timer widht (16-32 bits) now stored in driver field and detected durign startup
Diffstat (limited to 'os/hal/ports/STM32/LLD/eicu_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/eicu_lld.h12
1 files changed, 12 insertions, 0 deletions
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
@@ -282,6 +282,14 @@ typedef enum {
} eicucapturemode_t;
/**
+ * @brief Timer registers width in bits.
+ */
+typedef enum {
+ EICU_WIDTH_16,
+ EICU_WIDTH_32
+} eicutimerwidth_t;
+
+/**
* @brief EICU frequency type.
*/
typedef uint32_t eicufreq_t;
@@ -391,6 +399,10 @@ struct EICUDriver {
*/
uint32_t clock;
/**
+ * @brief Timer registers width in bits.
+ */
+ eicutimerwidth_t width;
+ /**
* @brief Pointer to configuration for the driver.
*/
const EICUConfig *config;