zephyr/drivers/counter/Kconfig.esp32

42 lines
937 B
Plaintext

# ESP32 Timer configuration
# Copyright (c) 2020 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
menuconfig COUNTER_ESP32
bool "ESP32 Counter Driver"
depends on SOC_ESP32 || SOC_ESP32S2
help
Enable Counter driver for ESP32 series devices.
if COUNTER_ESP32
config COUNTER_ESP32_TG0_T0
bool "TG0_T0 enable/disable option"
help
Enables Timer 0 peripheral from Timer Group 0.
config COUNTER_ESP32_TG0_T1
bool "TG0_T1 enable/disable option"
help
Enables Timer 1 peripheral from Timer Group 0.
config COUNTER_ESP32_TG1_T0
bool "TG1_T0 enable/disable option"
help
Enables Timer 0 peripheral from Timer Group 1.
config COUNTER_ESP32_TG1_T1
bool "TG1_T1 enable/disable option"
help
Enables Timer 1 peripheral from Timer Group 1.
config COUNTER_ESP32_PRESCALER
int "Prescaling value for counter device"
range 2 65336
default 2
help
Sets prescaler value for Timer clock.
endif