drivers: pwm: add a SAM0 TCC based PWM driver
This runs the Timer/Counter for Control in 'normal' PWM mode. The number of channels and counter width depends on the device and is imported from DeviceTree. Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
parent
4c53e5222f
commit
e362f10d4c
5 changed files with 179 additions and 0 deletions
10
drivers/pwm/Kconfig.sam0
Normal file
10
drivers/pwm/Kconfig.sam0
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Atmel SAM0 TCC as PWM configuration
|
||||
|
||||
# Copyright (c) 2020 Google LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config PWM_SAM0_TCC
|
||||
bool "Atmel SAM0 MCU Family TCC PWM Driver"
|
||||
depends on SOC_FAMILY_SAM0
|
||||
help
|
||||
Enable PWM driver for Atmel SAM0 MCUs using the TCC timer/counter.
|
Loading…
Add table
Add a link
Reference in a new issue