blob: f3a7ed70f7e37435f4349f5f94b5855cb4e04e8b [file] [log] [blame]
# 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