summaryrefslogtreecommitdiff
path: root/apps/examples/pwm/pwm_main.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-09-05 18:30:39 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-09-05 18:30:39 -0600
commitee4c5214f959943c196dbeaaab9ed038f4dbd0f1 (patch)
treeac7e68488a79a92f621005461db87d62eb57d8d8 /apps/examples/pwm/pwm_main.c
parent26b761fcac72cb7b46740b5a92fd8ff27eb947b7 (diff)
downloadpx4-nuttx-ee4c5214f959943c196dbeaaab9ed038f4dbd0f1.tar.gz
px4-nuttx-ee4c5214f959943c196dbeaaab9ed038f4dbd0f1.tar.bz2
px4-nuttx-ee4c5214f959943c196dbeaaab9ed038f4dbd0f1.zip
apps/examples/pwm: Clean up some configuration confusion
Diffstat (limited to 'apps/examples/pwm/pwm_main.c')
-rw-r--r--apps/examples/pwm/pwm_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/examples/pwm/pwm_main.c b/apps/examples/pwm/pwm_main.c
index a46c10f55..447daf7d9 100644
--- a/apps/examples/pwm/pwm_main.c
+++ b/apps/examples/pwm/pwm_main.c
@@ -123,16 +123,16 @@ static void pwm_help(FAR struct pwm_state_s *pwm)
message(" [-p devpath] selects the PWM device. "
"Default: %s Current: %s\n",
CONFIG_EXAMPLES_PWM_DEVPATH, pwm->devpath ? pwm->devpath : "NONE");
- message(" [-f addr] selects the pulse frequency. "
+ message(" [-f frequency] selects the pulse frequency. "
"Default: %d Hz Current: %d Hz\n",
CONFIG_EXAMPLES_PWM_FREQUENCY, pwm->freq);
- message(" [-d duty] selcts the pulse duty as a percentage. "
+ message(" [-d duty] selects the pulse duty as a percentage. "
"Default: %d %% Current: %d %%\n",
CONFIG_EXAMPLES_PWM_DUTYPCT, pwm->duty);
#ifdef CONFIG_PWM_PULSECOUNT
message(" [-n count] selects the pulse count. "
"Default: %d Current: %d\n",
- CONFIG_EXAMPLES_PWM_COUNT, pwm->count);
+ CONFIG_EXAMPLES_PWM_PULSECOUNT, pwm->count);
#endif
message(" [-t duration] is the duration of the pulse train in seconds. "
"Default: %d Current: %d\n",
@@ -287,7 +287,7 @@ int pwm_main(int argc, char *argv[])
g_pwmstate.freq = CONFIG_EXAMPLES_PWM_FREQUENCY;
g_pwmstate.duration = CONFIG_EXAMPLES_PWM_DURATION;
#ifdef CONFIG_PWM_PULSECOUNT
- g_pwmstate.count = CONFIG_EXAMPLES_PWM_COUNT;
+ g_pwmstate.count = CONFIG_EXAMPLES_PWM_PULSECOUNT;
#endif
g_pwmstate.initialized = true;
}