drivers: counter: Counter API implementation for STM32F4 Series (TIMER).

- Shim for counter API using LL_TIM driver.
- Supports all general-purpose (TIMx) timers.

Signed-off-by: Kent Hall <kjh2166@columbia.edu>
This commit is contained in:
Kent Hall 2021-10-06 11:55:26 -04:00 committed by Anas Nashif
commit ba37d5935e
9 changed files with 749 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# Copyright (c) 2021 Kent Hall
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_STM32_COUNTER := st,stm32-counter
config COUNTER_TIMER_STM32
bool "STM32 counter driver"
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_COUNTER))
select USE_STM32_LL_TIM
help
Enable the counter driver for STM32 family of processors.