1145986096
Add basic counter driver based on Timer Counter (TC) module for Atmel SAM family. Remarks: - The driver is not thread safe. - The driver does not implement guard periods. - The driver does not guarantee that short relative alarm will trigger the interrupt immediately and not after the full cycle / counter overflow. Tested on Atmel SMART SAM E70 Xplained board Origin: Original Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
13 lines
399 B
Plaintext
13 lines
399 B
Plaintext
# Copyright (c) 2021 Piotr Mienkowski
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
DT_COMPAT_ATMEL_SAM_TC := atmel,sam-tc
|
|
|
|
config COUNTER_SAM_TC
|
|
bool "Atmel SAM MCU family counter (TC) driver"
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM_TC))
|
|
depends on SOC_FAMILY_SAM
|
|
help
|
|
Enable the Atmel SAM MCU family counter (TC) driver.
|