zephyr/drivers/counter/Kconfig.esp32
Felipe Neves b50cb2a537 drivers: counter: esp32: add support for esp32c3
to the unified esp32 counter driver.

Signed-off-by: Felipe Neves <felipe.neves@espressif.com>
2021-11-11 19:14:15 -05:00

25 lines
567 B
Plaintext

# ESP32 Timer configuration
# Copyright (c) 2020 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ESP32_TIMER := espressif,esp32-timer
menuconfig COUNTER_ESP32
bool "ESP32 Counter Driver"
depends on SOC_ESP32 || SOC_ESP32S2 || SOC_ESP32C3
default $(dt_compat_enabled,$(DT_COMPAT_ESP32_TIMER))
help
Enable Counter driver for ESP32 series devices.
if COUNTER_ESP32
config COUNTER_ESP32_PRESCALER
int "Prescaling value for counter device"
range 2 65336
default 2
help
Sets prescaler value for Timer clock.
endif