Update pwm.h

Fix nxstyle
This commit is contained in:
simbit18 2023-03-06 20:12:25 +01:00 committed by Xiang Xiao
parent 5854208e55
commit 4a9752ed3d

View File

@ -30,17 +30,23 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
/* CONFIG_NSH_BUILTIN_APPS - Build the PWM test as an NSH built-in function. /* CONFIG_NSH_BUILTIN_APPS - Build the PWM test as an NSH built-in function.
* CONFIG_EXAMPLES_PWM_DEVPATH - The path to the PWM device. Default: /dev/pwm0 * CONFIG_EXAMPLES_PWM_DEVPATH - The path to the PWM device.
* CONFIG_EXAMPLES_PWM_FREQUENCY - The initial PWM frequency. Default: 100 Hz * Default: /dev/pwm0
* CONFIG_EXAMPLES_PWM_DUTYPCT - The initial PWM duty as a percentage. Default: 50% * CONFIG_EXAMPLES_PWM_FREQUENCY - The initial PWM frequency.
* CONFIG_EXAMPLES_PWM_DURATION - The initial PWM pulse train duration in seconds. * Default: 100 Hz
* Used only if the current pulse count is zero (pulse count is only supported * CONFIG_EXAMPLES_PWM_DUTYPCT - The initial PWM duty as a percentage.
* if CONFIG_PWM_PULSECOUNT is defined). Default: 5 seconds * Default: 50%
* CONFIG_EXAMPLES_PWM_PULSECOUNT - The initial PWM pulse count. This option is * CONFIG_EXAMPLES_PWM_DURATION - The initial PWM pulse train duration
* only available if CONFIG_PWM_PULSECOUNT is defined. Default: 0 (i.e., use * in seconds. Used only if the current pulse count is zero
* the duration, not the count). * (pulse count is only supported if CONFIG_PWM_PULSECOUNT is defined).
* Default: 5 seconds
* CONFIG_EXAMPLES_PWM_PULSECOUNT - The initial PWM pulse count.
* This option is only available if CONFIG_PWM_PULSECOUNT is defined.
* Default: 0 (i.e., use the duration, not the count).
*/ */
#ifndef CONFIG_PWM #ifndef CONFIG_PWM