zephyr/drivers/counter/Kconfig.sam0
Derek Hageman a4f3e628e5 drivers: counter: Add SAM0 basic counter support
This adds support for the basic timer counter (TC) found on SAM0
series parts.  This driver only supports running the counter
in 32 bit wide mode.  Since this mode explicitly slaves the odd
counters to the even ones, only instances of the even ones are
defined.

Tested with tests/drivers/counter/counter_basic_api on SAMD21.

Signed-off-by: Derek Hageman <hageman@inthat.cloud>
2019-05-28 09:23:44 -04:00

29 lines
598 B
Plaintext

# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud>
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig COUNTER_SAM0_TC32
bool "SAM0 series 32-bit basic timer driver"
default y
depends on SOC_FAMILY_SAM0
help
Enable the SAM0 series timer counter (TC) driver in 32-bit wide
mode.
if COUNTER_SAM0_TC32
index = 0
source "drivers/counter/Kconfig.template.sam0_tc32"
index = 2
source "drivers/counter/Kconfig.template.sam0_tc32"
index = 4
source "drivers/counter/Kconfig.template.sam0_tc32"
index = 6
source "drivers/counter/Kconfig.template.sam0_tc32"
endif # COUNTER_SAM0_TC32