2015-09-22 06:39:22 +08:00
|
|
|
# Kconfig - PWM configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-09-22 06:39:22 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig PWM
|
|
|
|
bool "PWM (Pulse Width Modulation) Drivers"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable config options for PWM drivers.
|
2015-09-22 07:28:58 +08:00
|
|
|
|
2016-03-18 02:37:41 +08:00
|
|
|
if PWM
|
2016-02-27 04:27:38 +08:00
|
|
|
|
2017-07-18 03:59:00 +08:00
|
|
|
config SYS_LOG_PWM_LEVEL
|
|
|
|
int
|
|
|
|
prompt "PWM Driver Log level"
|
|
|
|
depends on SYS_LOG
|
|
|
|
default 0
|
|
|
|
range 0 4
|
|
|
|
help
|
|
|
|
Sets log level for PWM drivers.
|
|
|
|
Levels are:
|
|
|
|
0 OFF, do not write
|
|
|
|
1 ERROR, only write SYS_LOG_ERR
|
|
|
|
2 WARNING, write SYS_LOG_WRN in addition to previous level
|
|
|
|
3 INFO, write SYS_LOG_INF in addition to previous levels
|
|
|
|
4 DEBUG, write SYS_LOG_DBG in addition to previous levels
|
|
|
|
|
|
|
|
config PWM_0
|
|
|
|
bool "Enable PWM port 0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config PWM_1
|
|
|
|
bool "Enable PWM port 1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config PWM_2
|
|
|
|
bool "Enable PWM port 2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config PWM_3
|
|
|
|
bool "Enable PWM port 3"
|
|
|
|
default n
|
|
|
|
|
2016-03-18 02:37:41 +08:00
|
|
|
source "drivers/pwm/Kconfig.pca9685"
|
2016-02-27 04:27:38 +08:00
|
|
|
|
2016-03-18 02:37:41 +08:00
|
|
|
source "drivers/pwm/Kconfig.qmsi"
|
2016-02-27 04:27:38 +08:00
|
|
|
|
2016-03-18 02:37:41 +08:00
|
|
|
source "drivers/pwm/Kconfig.dw"
|
2016-02-27 04:27:38 +08:00
|
|
|
|
2016-03-18 02:37:41 +08:00
|
|
|
source "drivers/pwm/Kconfig.k64"
|
2016-02-27 04:27:38 +08:00
|
|
|
|
2016-11-26 00:21:26 +08:00
|
|
|
source "drivers/pwm/Kconfig.stm32"
|
|
|
|
|
2017-04-11 11:08:52 +08:00
|
|
|
source "drivers/pwm/Kconfig.nrf5_sw"
|
|
|
|
|
2016-03-18 02:37:41 +08:00
|
|
|
endif # PWM
|