mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-12 21:50:17 +00:00
More trailing whilespace removal
This commit is contained in:
parent
7d961b6c93
commit
b9cf7acb1a
285 changed files with 769 additions and 769 deletions
|
|
@ -72,7 +72,7 @@ STACKSIZE2 = 2048
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context clean depend distclean
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ STACKSIZE2 = 2048
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context clean depend distclean
|
||||
|
|
|
|||
|
|
@ -793,7 +793,7 @@ int conn_main(int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
/* Dump debug memory usage */
|
||||
|
||||
|
||||
message("conn_main: Exiting\n");
|
||||
#if !defined(CONFIG_NSH_BUILTIN_APPS) && !defined(CONFIG_DISABLE_SIGNALS)
|
||||
close(g_composite.infd);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ endif
|
|||
endif
|
||||
|
||||
ROOTDEPPATH = --dep-path .
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
APPNAME = i2c
|
||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ int arg_hex(FAR char **arg, FAR long *value)
|
|||
{
|
||||
FAR char *string;
|
||||
int ret;
|
||||
|
||||
|
||||
ret = arg_string(arg, &string);
|
||||
*value = strtol(string, NULL, 16);
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ int i2ccmd_dev(FAR struct i2ctool_s *i2ctool, int argc, char **argv)
|
|||
i2ctool_printf(i2ctool, " ");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
/* Set the I2C address */
|
||||
|
||||
I2C_SETADDRESS(dev, addr, 7);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ static int i2ccmd_unrecognized(FAR struct i2ctool_s *i2ctool, int argc, char **a
|
|||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
struct i2ctool_s g_i2ctool;
|
||||
|
||||
static const struct cmdmap_s g_i2ccmds[] =
|
||||
|
|
@ -379,7 +379,7 @@ int i2c_main(int argc, char *argv[])
|
|||
{
|
||||
g_i2ctool.freq = CONFIG_I2CTOOL_DEFFREQ;
|
||||
}
|
||||
|
||||
|
||||
/* Parse process the command line */
|
||||
|
||||
i2c_setup(&g_i2ctool);
|
||||
|
|
@ -406,7 +406,7 @@ int i2ctool_printf(FAR struct i2ctool_s *i2ctool, const char *fmt, ...)
|
|||
va_start(ap, fmt);
|
||||
ret = vfprintf(OUTSTREAM(i2ctool), fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ endif
|
|||
endif
|
||||
|
||||
ROOTDEPPATH = --dep-path .
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
# Build targets
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ the program memory (flash) area into free area and creates a start-up
|
|||
script into selected directory (i.e. /usr/bin/progname).
|
||||
|
||||
Usage:
|
||||
install [--stack RequiredStackSpace] [--priority Priority]
|
||||
install [--stack RequiredStackSpace] [--priority Priority]
|
||||
source-file destination-directory
|
||||
|
||||
|
||||
If stackspace is not given default stack space of 4096 Bytes is used.
|
||||
If priority is not given system default is used.
|
||||
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ static int nxplayer_opendevice(FAR struct nxplayer_s *pPlayer, int format,
|
|||
|
||||
caps.ac_subtype = format;
|
||||
caps.ac_format[0] = 0;
|
||||
while (ioctl(pPlayer->devFd, AUDIOIOC_GETCAPS,
|
||||
while (ioctl(pPlayer->devFd, AUDIOIOC_GETCAPS,
|
||||
(unsigned long) &caps) == caps.ac_len)
|
||||
{
|
||||
/* Check the next set of 4 controls to find the subformat */
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -51,10 +51,10 @@ int poweroff_main(int argc, char *argv[])
|
|||
* a new process with nsh poweroff)
|
||||
* - wait for some time (~0.5 second for VSN), that SDcard is flashed and synced
|
||||
* - call poweroff
|
||||
*
|
||||
*
|
||||
* TODO on boot:
|
||||
* - if external key is pressed, do not start the nsh! but wait until it is released
|
||||
* (to get rid of bad mounts of the sdcard etc.) this could be handled in the
|
||||
* (to get rid of bad mounts of the sdcard etc.) this could be handled in the
|
||||
* button driver immediately on system boot
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ int ramtron_start(int spino)
|
|||
int retval;
|
||||
|
||||
/* Get the SPI port */
|
||||
|
||||
|
||||
spi = up_spiinitialize(spino);
|
||||
if (!spi)
|
||||
{
|
||||
|
|
@ -86,17 +86,17 @@ int ramtron_start(int spino)
|
|||
int ramtron_main(int argc, char *argv[])
|
||||
{
|
||||
int spino;
|
||||
|
||||
|
||||
if (argc == 3)
|
||||
{
|
||||
spino = atoi(argv[2]);
|
||||
|
||||
|
||||
if (!strcmp(argv[1], "start"))
|
||||
{
|
||||
return ramtron_start(spino);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* todo: write protect */
|
||||
|
||||
printf("%s: <start> <spino>\n", argv[0]);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ int stackmonitor_start(int argc, char **argv)
|
|||
int ret;
|
||||
|
||||
/* No.. start it now */
|
||||
|
||||
|
||||
/* Then start the stack monitoring daemon */
|
||||
|
||||
g_stackmonitor.started = true;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ int usbmonitor_start(int argc, char **argv)
|
|||
int ret;
|
||||
|
||||
/* No.. start it now */
|
||||
|
||||
|
||||
#ifdef CONFIG_USBDEV_TRACE
|
||||
/* First, initialize any USB tracing options that were requested */
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ STACKSIZE2 = $(CONFIG_SYSTEM_USBMSC_CMD_STACKSIZE)
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context clean depend distclean
|
||||
|
|
|
|||
|
|
@ -549,11 +549,11 @@ int msconn_main(int argc, char *argv[])
|
|||
#else /* defined(CONFIG_DISABLE_SIGNALS) */
|
||||
|
||||
/* Just exit */
|
||||
|
||||
|
||||
message("mcsonn_main: Exiting\n");
|
||||
|
||||
/* Dump debug memory usage */
|
||||
|
||||
|
||||
final_memory_usage("Final memory usage");
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ ROOTDEPPATH = --dep-path .
|
|||
|
||||
# Common build
|
||||
|
||||
VPATH =
|
||||
VPATH =
|
||||
|
||||
all: .built
|
||||
.PHONY: context depend clean distclean
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
/************************************************************************************************
|
||||
* Private Data
|
||||
************************************************************************************************/
|
||||
|
||||
|
||||
static const uint32_t crc32_tab[] =
|
||||
{
|
||||
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
*/
|
||||
|
||||
# define naked_function __attribute__ ((naked,no_instrument_function))
|
||||
|
||||
|
||||
/* The inline_function attribute informs GCC that the function should always
|
||||
* be inlined, regardless of the level of optimization. The noinline_function
|
||||
* indicates that the function should never be inlined.
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ int zm_sendhexhdr(FAR struct zm_state_s *pzm, int type,
|
|||
}
|
||||
|
||||
/* crc-1 crc-2 */
|
||||
|
||||
|
||||
crc = crc16part(g_zeroes, 2, crc);
|
||||
ptr = zm_puthex8(ptr, (crc >> 8) & 0xff);
|
||||
ptr = zm_puthex8(ptr, crc & 0xff);
|
||||
|
|
@ -346,7 +346,7 @@ int zm_sendhexhdr(FAR struct zm_state_s *pzm, int type,
|
|||
* 16-bit binary header:
|
||||
* ZPAD ZDLE ZBIN type f3/p0 f2/p1 f1/p2 f0/p3 crc-1 crc-2
|
||||
* Payload length: 7 (type, 4 bytes data, 2 byte CRC)
|
||||
*
|
||||
*
|
||||
* Input Parameters:
|
||||
* pzm - Zmodem session state
|
||||
* type - Header type {ZSINIT, ZFILE, ZDATA, ZDATA}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue