examples/dac/dac_main.c: Appease nxstyle
This commit is contained in:
parent
b2299b4c8f
commit
31118b0a94
@ -208,7 +208,8 @@ static int dac_put(FAR const char *devpath,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("wrote: chan=%d, data=%d\n", msg[i].am_channel, msg[i].am_data);
|
printf("wrote: chan=%d, data=%d\n", msg[i].am_channel,
|
||||||
|
msg[i].am_data);
|
||||||
i++;
|
i++;
|
||||||
retries = 0;
|
retries = 0;
|
||||||
ret = OK;
|
ret = OK;
|
||||||
@ -277,7 +278,8 @@ static int cmd_dac_putv(int argc, FAR const char *argv[])
|
|||||||
static void dac_help(void)
|
static void dac_help(void)
|
||||||
{
|
{
|
||||||
printf("Usage: dac [OPTIONS] command [CMD OPTIONS]\n");
|
printf("Usage: dac [OPTIONS] command [CMD OPTIONS]\n");
|
||||||
printf("\nGlobal arguments are \"sticky\". For example, once the DAC device is\n");
|
printf("\nGlobal arguments are \"sticky\". "
|
||||||
|
"For example, once the DAC device is\n");
|
||||||
printf("specified, that device will be re-used until it is changed.\n");
|
printf("specified, that device will be re-used until it is changed.\n");
|
||||||
printf("\n\"sticky\" OPTIONS include:\n");
|
printf("\n\"sticky\" OPTIONS include:\n");
|
||||||
printf(" [-c channel] selects the DAC channel. "
|
printf(" [-c channel] selects the DAC channel. "
|
||||||
@ -288,7 +290,8 @@ static void dac_help(void)
|
|||||||
"Default: 1 Current: %d\n", g_dacstate.count);
|
"Default: 1 Current: %d\n", g_dacstate.count);
|
||||||
printf(" [-p devpath] selects the DAC device. "
|
printf(" [-p devpath] selects the DAC device. "
|
||||||
"Default: %s Current: %s\n",
|
"Default: %s Current: %s\n",
|
||||||
CONFIG_EXAMPLES_DAC_DEVPATH, g_dacstate.devpath ? g_dacstate.devpath : "NONE");
|
CONFIG_EXAMPLES_DAC_DEVPATH,
|
||||||
|
g_dacstate.devpath ? g_dacstate.devpath : "NONE");
|
||||||
print_cmds("\nCommands:\n", commands, ARRAY_SIZE(commands), "\n");
|
print_cmds("\nCommands:\n", commands, ARRAY_SIZE(commands), "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -408,8 +411,8 @@ int main(int argc, FAR const char *argv[])
|
|||||||
|
|
||||||
if (!g_dacstate.initialized)
|
if (!g_dacstate.initialized)
|
||||||
{
|
{
|
||||||
/* Initialization of the DAC hardware must be performed by board-specific
|
/* Initialization of the DAC hardware must be performed by
|
||||||
* logic prior to running this test.
|
* board-specific logic prior to running this test.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Set the default values */
|
/* Set the default values */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user