summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples')
-rw-r--r--apps/examples/Makefile2
-rw-r--r--apps/examples/adc/Makefile2
-rw-r--r--apps/examples/adc/adc_main.c4
-rw-r--r--apps/examples/buttons/Kconfig2
-rw-r--r--apps/examples/buttons/Makefile2
-rw-r--r--apps/examples/buttons/buttons_main.c2
-rw-r--r--apps/examples/can/Makefile2
-rw-r--r--apps/examples/can/can_main.c8
-rw-r--r--apps/examples/cc3000/board.h30
-rw-r--r--apps/examples/configdata/Makefile2
-rw-r--r--apps/examples/cxxtest/Makefile2
-rw-r--r--apps/examples/cxxtest/cxxtest_main.cxx2
-rw-r--r--apps/examples/dhcpd/Makefile2
-rw-r--r--apps/examples/dhcpd/target.c4
-rw-r--r--apps/examples/discover/Makefile2
-rw-r--r--apps/examples/elf/tests/Makefile4
-rw-r--r--apps/examples/elf/tests/hello/Makefile2
-rw-r--r--apps/examples/elf/tests/helloxx/Makefile2
-rw-r--r--apps/examples/elf/tests/helloxx/hello++2.cpp2
-rw-r--r--apps/examples/elf/tests/longjmp/Makefile2
-rw-r--r--apps/examples/elf/tests/longjmp/longjmp.c2
-rw-r--r--apps/examples/elf/tests/mutex/Makefile2
-rw-r--r--apps/examples/elf/tests/pthread/Makefile2
-rw-r--r--apps/examples/elf/tests/signal/Makefile2
-rw-r--r--apps/examples/elf/tests/struct/Makefile2
-rw-r--r--apps/examples/elf/tests/struct/struct_main.c2
-rw-r--r--apps/examples/flash_test/Makefile2
-rw-r--r--apps/examples/flash_test/README.txt2
-rw-r--r--apps/examples/flash_test/flash_test.c12
-rw-r--r--apps/examples/ftpc/Makefile2
-rw-r--r--apps/examples/ftpc/ftpc_main.c2
-rw-r--r--apps/examples/ftpd/Makefile2
-rw-r--r--apps/examples/ftpd/ftpd_main.c4
-rw-r--r--apps/examples/hello/Makefile2
-rw-r--r--apps/examples/helloxx/Makefile2
-rw-r--r--apps/examples/helloxx/helloxx_main.cxx2
-rw-r--r--apps/examples/hidkbd/Makefile2
-rw-r--r--apps/examples/i2schar/Makefile2
-rw-r--r--apps/examples/i2schar/i2schar_main.c4
-rw-r--r--apps/examples/i2schar/i2schar_receiver.c2
-rw-r--r--apps/examples/i2schar/i2schar_transmitter.c2
-rw-r--r--apps/examples/igmp/Makefile2
-rw-r--r--apps/examples/igmp/igmp.c2
-rw-r--r--apps/examples/json/Makefile2
-rw-r--r--apps/examples/json/README18
-rw-r--r--apps/examples/json/json_main.c12
-rw-r--r--apps/examples/lcdrw/Makefile4
-rw-r--r--apps/examples/lcdrw/lcdrw_main.c4
-rw-r--r--apps/examples/mm/Makefile2
-rw-r--r--apps/examples/modbus/Makefile2
-rw-r--r--apps/examples/modbus/modbus_main.c8
-rw-r--r--apps/examples/mount/Makefile2
-rw-r--r--apps/examples/mount/ramdisk.c2
-rwxr-xr-xapps/examples/mtdpart/Makefile2
-rw-r--r--apps/examples/mtdpart/mtdpart_main.c2
-rw-r--r--apps/examples/nettest/Makefile4
-rw-r--r--apps/examples/nrf24l01_term/Makefile2
-rw-r--r--apps/examples/nsh/Makefile2
-rw-r--r--apps/examples/null/Makefile2
-rw-r--r--apps/examples/nx/Makefile2
-rw-r--r--apps/examples/nxconsole/Makefile2
-rw-r--r--apps/examples/nxconsole/nxcon_main.c4
-rw-r--r--apps/examples/nxffs/Makefile2
-rw-r--r--apps/examples/nxffs/nxffs_main.c2
-rw-r--r--apps/examples/nxflat/Makefile2
-rw-r--r--apps/examples/nxflat/tests/Makefile4
-rw-r--r--apps/examples/nxflat/tests/errno/Makefile2
-rw-r--r--apps/examples/nxflat/tests/hello++/Makefile2
-rw-r--r--apps/examples/nxflat/tests/hello++/hello++2.cpp2
-rw-r--r--apps/examples/nxflat/tests/hello/Makefile2
-rw-r--r--apps/examples/nxflat/tests/longjmp/Makefile2
-rw-r--r--apps/examples/nxflat/tests/longjmp/longjmp.c2
-rw-r--r--apps/examples/nxflat/tests/mutex/Makefile2
-rw-r--r--apps/examples/nxflat/tests/pthread/Makefile2
-rw-r--r--apps/examples/nxflat/tests/signal/Makefile2
-rw-r--r--apps/examples/nxflat/tests/struct/Makefile2
-rw-r--r--apps/examples/nxflat/tests/struct/struct_main.c2
-rw-r--r--apps/examples/nxflat/tests/task/Makefile2
-rw-r--r--apps/examples/nxhello/Makefile2
-rw-r--r--apps/examples/nximage/Makefile2
-rw-r--r--apps/examples/nximage/nximage_bitmap.c8
-rw-r--r--apps/examples/nximage/nximage_bkgd.c2
-rw-r--r--apps/examples/nxlines/Makefile2
-rw-r--r--apps/examples/nxlines/nxlines_main.c2
-rw-r--r--apps/examples/nxtext/Makefile2
-rw-r--r--apps/examples/nxtext/nxtext_bkgd.c2
-rw-r--r--apps/examples/nxtext/nxtext_main.c2
-rw-r--r--apps/examples/nxtext/nxtext_popup.c2
-rw-r--r--apps/examples/nxtext/nxtext_putc.c6
-rw-r--r--apps/examples/ostest/Makefile6
-rw-r--r--apps/examples/ostest/fpu.c2
-rw-r--r--apps/examples/ostest/ostest_main.c2
-rw-r--r--apps/examples/ostest/prioinherit.c10
-rw-r--r--apps/examples/ostest/rmutex.c4
-rw-r--r--apps/examples/ostest/sem.c2
-rw-r--r--apps/examples/pashello/Makefile2
-rw-r--r--apps/examples/pipe/Makefile2
-rw-r--r--apps/examples/pipe/interlock_test.c4
-rw-r--r--apps/examples/poll/Makefile2
-rw-r--r--apps/examples/poll/poll_listener.c2
-rw-r--r--apps/examples/posix_spawn/filesystem/hello/Makefile2
-rw-r--r--apps/examples/posix_spawn/filesystem/redirect/Makefile2
-rw-r--r--apps/examples/posix_spawn/spawn_main.c2
-rw-r--r--apps/examples/pwm/Makefile2
-rw-r--r--apps/examples/pwm/pwm_main.c8
-rw-r--r--apps/examples/qencoder/Makefile2
-rw-r--r--apps/examples/qencoder/qe_main.c2
-rw-r--r--apps/examples/relays/Makefile2
-rw-r--r--apps/examples/relays/relays_main.c6
-rw-r--r--apps/examples/rgmp/Makefile2
-rw-r--r--apps/examples/rgmp/rgmp_main.c2
-rw-r--r--apps/examples/romfs/Makefile2
-rw-r--r--apps/examples/romfs/romfs_main.c2
-rw-r--r--apps/examples/romfs/testdir.txt4
-rw-r--r--apps/examples/sendmail/Makefile2
-rw-r--r--apps/examples/serloop/Makefile2
-rw-r--r--apps/examples/slcd/Makefile2
-rw-r--r--apps/examples/smart/Makefile2
-rw-r--r--apps/examples/smart/smart_main.c2
-rw-r--r--apps/examples/smart_test/Makefile2
-rw-r--r--apps/examples/smart_test/README.txt2
-rw-r--r--apps/examples/smart_test/smart_test.c8
-rw-r--r--apps/examples/telnetd/Makefile2
-rw-r--r--apps/examples/thttpd/Makefile2
-rw-r--r--apps/examples/thttpd/content/Makefile2
-rw-r--r--apps/examples/thttpd/content/hello/Makefile2
-rw-r--r--apps/examples/thttpd/content/hello/hello.c2
-rw-r--r--apps/examples/thttpd/content/index.html2
-rw-r--r--apps/examples/thttpd/content/netstat/Makefile2
-rw-r--r--apps/examples/thttpd/content/style.css18
-rw-r--r--apps/examples/thttpd/content/tasks/Makefile2
-rw-r--r--apps/examples/thttpd/content/tasks/tasks.c12
-rw-r--r--apps/examples/tiff/Makefile2
-rw-r--r--apps/examples/tiff/tiff_main.c2
-rw-r--r--apps/examples/touchscreen/Makefile2
-rw-r--r--apps/examples/udp/Makefile4
-rw-r--r--apps/examples/udp/udp-server.c8
-rw-r--r--apps/examples/uip/Makefile2
-rw-r--r--apps/examples/uip/httpd-fs/header.html4
-rw-r--r--apps/examples/uip/httpd-fs/style.css20
-rw-r--r--apps/examples/usbserial/Makefile2
-rw-r--r--apps/examples/usbserial/Makefile.host2
-rw-r--r--apps/examples/usbterm/Makefile2
-rw-r--r--apps/examples/usbterm/usbterm_main.c2
-rw-r--r--apps/examples/watchdog/Makefile2
-rw-r--r--apps/examples/wget/Makefile2
-rw-r--r--apps/examples/wget/target.c4
-rw-r--r--apps/examples/wgetjson/Makefile2
-rw-r--r--apps/examples/wgetjson/webserver/wgetjson/json_cmd.php24
-rw-r--r--apps/examples/xmlrpc/Makefile2
-rw-r--r--apps/examples/xmlrpc/calls.c48
-rw-r--r--apps/examples/xmlrpc/xmlrpc_main.c48
152 files changed, 307 insertions, 307 deletions
diff --git a/apps/examples/Makefile b/apps/examples/Makefile
index 8b7b56b3d..3691ca664 100644
--- a/apps/examples/Makefile
+++ b/apps/examples/Makefile
@@ -40,7 +40,7 @@
SUBDIRS = adc buttons can cc3000 cxxtest dhcpd discover elf flash_test
SUBDIRS += ftpc ftpd hello helloxx hidkbd igmp i2schar json keypadtest
SUBDIRS += lcdrw mm modbus mount mtdpart nettest nrf24l01_term nsh null nx
-SUBDIRS += nxconsole nxffs nxflat nxhello nximage nxlines nxtext ostest
+SUBDIRS += nxconsole nxffs nxflat nxhello nximage nxlines nxtext ostest
SUBDIRS += pashello pipe poll posix_spawn pwm qencoder random relays rgmp
SUBDIRS += romfs sendmail serloop slcd smart smart_test tcpecho telnetd
SUBDIRS += thttpd tiff touchscreen udp uip usbserial usbterm watchdog
diff --git a/apps/examples/adc/Makefile b/apps/examples/adc/Makefile
index 3cbe843f6..d786ea6dc 100644
--- a/apps/examples/adc/Makefile
+++ b/apps/examples/adc/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/adc/adc_main.c b/apps/examples/adc/adc_main.c
index b0ed43897..e78c00eac 100644
--- a/apps/examples/adc/adc_main.c
+++ b/apps/examples/adc/adc_main.c
@@ -176,7 +176,7 @@ static void parse_args(FAR struct adc_state_s *adc, int argc, FAR char **argv)
long value;
int index;
int nargs;
-
+
for (index = 1; index < argc; )
{
ptr = argv[index];
@@ -209,7 +209,7 @@ static void parse_args(FAR struct adc_state_s *adc, int argc, FAR char **argv)
case 'h':
adc_help(adc);
exit(0);
-
+
default:
message("Unsupported option: %s\n", ptr);
adc_help(adc);
diff --git a/apps/examples/buttons/Kconfig b/apps/examples/buttons/Kconfig
index d145867fc..104cbe002 100644
--- a/apps/examples/buttons/Kconfig
+++ b/apps/examples/buttons/Kconfig
@@ -18,7 +18,7 @@ config EXAMPLES_BUTTONS_MAX
int "Highest Button Number"
default 7
-if ARCH_IRQBUTTONS
+if ARCH_IRQBUTTONS
config EXAMPLES_IRQBUTTONS_MIN
int "Lowest Interrupting Button Number"
default 0
diff --git a/apps/examples/buttons/Makefile b/apps/examples/buttons/Makefile
index a2e8679d4..b7e4965df 100644
--- a/apps/examples/buttons/Makefile
+++ b/apps/examples/buttons/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/buttons/buttons_main.c b/apps/examples/buttons/buttons_main.c
index ab17cb5bc..04db19068 100644
--- a/apps/examples/buttons/buttons_main.c
+++ b/apps/examples/buttons/buttons_main.c
@@ -297,7 +297,7 @@ static void show_buttons(uint8_t oldset, uint8_t newset)
}
else
{
- state = "released";
+ state = "released";
}
/* Use lowsyslog() because we make be executing from an
diff --git a/apps/examples/can/Makefile b/apps/examples/can/Makefile
index 548c6702c..2abdd845b 100644
--- a/apps/examples/can/Makefile
+++ b/apps/examples/can/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/can/can_main.c b/apps/examples/can/can_main.c
index ff9e0a6ec..b3dd5aa48 100644
--- a/apps/examples/can/can_main.c
+++ b/apps/examples/can/can_main.c
@@ -250,9 +250,9 @@ int can_main(int argc, char *argv[])
if (memcmp(&txmsg.cm_hdr, &rxmsg.cm_hdr, sizeof(struct can_hdr_s)) != 0)
{
message("ERROR: Sent header does not match received header:\n");
- lib_dumpbuffer("Sent header", (FAR const uint8_t*)&txmsg.cm_hdr,
+ lib_dumpbuffer("Sent header", (FAR const uint8_t*)&txmsg.cm_hdr,
sizeof(struct can_hdr_s));
- lib_dumpbuffer("Received header", (FAR const uint8_t*)&rxmsg.cm_hdr,
+ lib_dumpbuffer("Received header", (FAR const uint8_t*)&rxmsg.cm_hdr,
sizeof(struct can_hdr_s));
errval = 4;
goto errout_with_dev;
@@ -270,7 +270,7 @@ int can_main(int argc, char *argv[])
}
/* Report success */
-
+
message(" ID: %4d DLC: %d -- OK\n", msgid, msgdlc);
#endif
@@ -278,7 +278,7 @@ int can_main(int argc, char *argv[])
#ifndef CONFIG_EXAMPLES_CAN_READONLY
msgdata += msgdlc;
-
+
if (++msgid >= MAX_ID)
{
msgid = 1;
diff --git a/apps/examples/cc3000/board.h b/apps/examples/cc3000/board.h
index 61976b346..1646095dc 100644
--- a/apps/examples/cc3000/board.h
+++ b/apps/examples/cc3000/board.h
@@ -3,7 +3,7 @@
* This file is part of the ArduinoCC3000 library.
* Version 1.0.1b
-*
+*
* Copyright (C) 2013 Chris Magagna - cmagagna@yahoo.com
*
* Redistribution and use in source and binary forms, with or without
@@ -15,10 +15,10 @@
*
* This file is the main module for the Arduino CC3000 library.
* Your program must call CC3000_Init() before any other API calls.
-*
+*
****************************************************************************/
-/*
+/*
Some things are different for the Teensy 3.0, so set a flag if we're using
that hardware.
*/
@@ -39,7 +39,7 @@
to send the bits manually. For the Uno, Nano, etc. you can probably leave
this unchanged. If your Arduino can't talk to the CC3000 and you're sure
your wiring is OK then try changing this. */
-
+
#ifdef TEENSY3
#define USE_HARDWARE_SPI false
#else
@@ -54,7 +54,7 @@
-// These are the Arduino pins that connect to the CC3000
+// These are the Arduino pins that connect to the CC3000
// (in addition to standard SPI pins MOSI, MISO, and SCK)
//
// The WLAN_IRQ pin must be supported by attachInterrupt
@@ -95,7 +95,7 @@
/*
The timing between setting the CS pin and reading the IRQ pin is very
tight on the CC3000, and sometimes the default Arduino digitalRead()
- and digitalWrite() functions are just too slow.
+ and digitalWrite() functions are just too slow.
For many of the CC3000 library functions this isn't a big deal because the
IRQ pin is tied to an interrupt routine but some of them of them disable
@@ -170,26 +170,26 @@
/* If you uncomment the line below the library will leave out a lot of the
higher level functions but use a lot less memory. From:
-
+
http://processors.wiki.ti.com/index.php/Tiny_Driver_Support
-
+
CC3000's new driver has flexible memory compile options.
-
+
This feature comes in handy when we want to use a limited RAM size MCU.
-
+
Using The Tiny Driver Compilation option will create a tiny version of our
host driver with lower data, stack and code consumption.
-
+
By enabling this feature, host driver's RAM consumption can be reduced to
minimum of 251 bytes.
-
+
The Tiny host driver version will limit the host driver API to the most
essential ones.
-
+
Code size depends on actual APIs used.
-
+
RAM size depends on the largest packet sent and received.
-
+
CC3000 can now be used with ultra low cost MCUs, consuming 251 byte of RAM
and 2K to 6K byte of code size, depending on the API usage. */
diff --git a/apps/examples/configdata/Makefile b/apps/examples/configdata/Makefile
index e24a59d9a..cc989284a 100644
--- a/apps/examples/configdata/Makefile
+++ b/apps/examples/configdata/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/cxxtest/Makefile b/apps/examples/cxxtest/Makefile
index ecdc1d4fb..833cf0cc7 100644
--- a/apps/examples/cxxtest/Makefile
+++ b/apps/examples/cxxtest/Makefile
@@ -70,7 +70,7 @@ STACKSIZE = 4096
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean chkcxx
diff --git a/apps/examples/cxxtest/cxxtest_main.cxx b/apps/examples/cxxtest/cxxtest_main.cxx
index 8c75e0fb8..364dc12ce 100644
--- a/apps/examples/cxxtest/cxxtest_main.cxx
+++ b/apps/examples/cxxtest/cxxtest_main.cxx
@@ -259,7 +259,7 @@ extern "C"
#ifdef CONFIG_UCLIBCXX_EXCEPTION
test_exception();
#endif
-
+
return 0;
}
}
diff --git a/apps/examples/dhcpd/Makefile b/apps/examples/dhcpd/Makefile
index d718d79e1..73058dcaa 100644
--- a/apps/examples/dhcpd/Makefile
+++ b/apps/examples/dhcpd/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/dhcpd/target.c b/apps/examples/dhcpd/target.c
index 37758d041..1434ae287 100644
--- a/apps/examples/dhcpd/target.c
+++ b/apps/examples/dhcpd/target.c
@@ -36,7 +36,7 @@
/****************************************************************************
* Included Files
****************************************************************************/
-
+
#include <nuttx/config.h>
#include <stdint.h>
@@ -124,7 +124,7 @@ int dhcpd_main(int argc, char *argv[])
uip_setnetmask("eth0", &addr);
/* Then start the server */
-
+
dhcpd_run();
return 0;
}
diff --git a/apps/examples/discover/Makefile b/apps/examples/discover/Makefile
index 033ab1131..a0fac4acf 100644
--- a/apps/examples/discover/Makefile
+++ b/apps/examples/discover/Makefile
@@ -69,7 +69,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/elf/tests/Makefile b/apps/examples/elf/tests/Makefile
index 755199506..17732c775 100644
--- a/apps/examples/elf/tests/Makefile
+++ b/apps/examples/elf/tests/Makefile
@@ -76,7 +76,7 @@ $(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all)))
$(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean)))
$(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),install,install)))
-# Build program(s) in each sud-directory
+# Build program(s) in each sud-directory
build: $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_build)
@@ -103,7 +103,7 @@ $(ROMFS_IMG): populate
$(ROMFS_HDR) : $(ROMFS_IMG)
$(Q) (cd $(TESTS_DIR); xxd -i romfs.img | sed -e "s/^unsigned/static const unsigned/g" >$@)
-# Create the dirlist.h header file from the romfs directory
+# Create the dirlist.h header file from the romfs directory
$(DIRLIST_HDR) : populate
$(Q) $(TESTS_DIR)/mkdirlist.sh $(ROMFS_DIR) >$@
diff --git a/apps/examples/elf/tests/hello/Makefile b/apps/examples/elf/tests/hello/Makefile
index 5cd80411b..07f97bee9 100644
--- a/apps/examples/elf/tests/hello/Makefile
+++ b/apps/examples/elf/tests/hello/Makefile
@@ -50,7 +50,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call CLEAN)
diff --git a/apps/examples/elf/tests/helloxx/Makefile b/apps/examples/elf/tests/helloxx/Makefile
index cce33d843..260475c5d 100644
--- a/apps/examples/elf/tests/helloxx/Makefile
+++ b/apps/examples/elf/tests/helloxx/Makefile
@@ -104,7 +104,7 @@ endif
# @echo "LD: $<"
# $(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN1))
$(call DELFILE, $(BIN2))
$(call DELFILE, $(BIN3))
diff --git a/apps/examples/elf/tests/helloxx/hello++2.cpp b/apps/examples/elf/tests/helloxx/hello++2.cpp
index f1268dda5..5d4ba9923 100644
--- a/apps/examples/elf/tests/helloxx/hello++2.cpp
+++ b/apps/examples/elf/tests/helloxx/hello++2.cpp
@@ -61,7 +61,7 @@ public:
printf("CThingSayer::CThingSayer: I am!\n");
szWhatToSay = (const char*)NULL;
}
-
+
~CThingSayer(void)
{
printf("CThingSayer::~CThingSayer: I cease to be\n");
diff --git a/apps/examples/elf/tests/longjmp/Makefile b/apps/examples/elf/tests/longjmp/Makefile
index 6ddbf9b8d..a0100b247 100644
--- a/apps/examples/elf/tests/longjmp/Makefile
+++ b/apps/examples/elf/tests/longjmp/Makefile
@@ -50,7 +50,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call CLEAN)
diff --git a/apps/examples/elf/tests/longjmp/longjmp.c b/apps/examples/elf/tests/longjmp/longjmp.c
index 74d5594c4..8965440dc 100644
--- a/apps/examples/elf/tests/longjmp/longjmp.c
+++ b/apps/examples/elf/tests/longjmp/longjmp.c
@@ -77,7 +77,7 @@ static int leaf(int *some_arg)
/* We should not get here */
- return -ERROR;
+ return -ERROR;
}
static int function(int some_arg)
diff --git a/apps/examples/elf/tests/mutex/Makefile b/apps/examples/elf/tests/mutex/Makefile
index 04c1e8975..e3085ad8e 100644
--- a/apps/examples/elf/tests/mutex/Makefile
+++ b/apps/examples/elf/tests/mutex/Makefile
@@ -50,7 +50,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call CLEAN)
diff --git a/apps/examples/elf/tests/pthread/Makefile b/apps/examples/elf/tests/pthread/Makefile
index 05c7c4650..f201b12f5 100644
--- a/apps/examples/elf/tests/pthread/Makefile
+++ b/apps/examples/elf/tests/pthread/Makefile
@@ -50,7 +50,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call CLEAN)
diff --git a/apps/examples/elf/tests/signal/Makefile b/apps/examples/elf/tests/signal/Makefile
index 55ef2e5b9..53a5d5721 100644
--- a/apps/examples/elf/tests/signal/Makefile
+++ b/apps/examples/elf/tests/signal/Makefile
@@ -50,7 +50,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call CLEAN)
diff --git a/apps/examples/elf/tests/struct/Makefile b/apps/examples/elf/tests/struct/Makefile
index 369fcb368..80117a72f 100644
--- a/apps/examples/elf/tests/struct/Makefile
+++ b/apps/examples/elf/tests/struct/Makefile
@@ -51,7 +51,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call CLEAN)
diff --git a/apps/examples/elf/tests/struct/struct_main.c b/apps/examples/elf/tests/struct/struct_main.c
index 3c8e86e7a..a8c0b83c2 100644
--- a/apps/examples/elf/tests/struct/struct_main.c
+++ b/apps/examples/elf/tests/struct/struct_main.c
@@ -46,7 +46,7 @@
* Public Data
****************************************************************************/
-const struct struct_dummy_s dummy_struct =
+const struct struct_dummy_s dummy_struct =
{
DUMMY_SCALAR_VALUE3
};
diff --git a/apps/examples/flash_test/Makefile b/apps/examples/flash_test/Makefile
index d8c9e5c74..b92a7aaa9 100644
--- a/apps/examples/flash_test/Makefile
+++ b/apps/examples/flash_test/Makefile
@@ -71,7 +71,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context depend clean distclean
diff --git a/apps/examples/flash_test/README.txt b/apps/examples/flash_test/README.txt
index 60fcc4ebb..667903775 100644
--- a/apps/examples/flash_test/README.txt
+++ b/apps/examples/flash_test/README.txt
@@ -12,7 +12,7 @@ NOTE: This test uses internal OS interfaces and so is not available in the NUTT
Usage:
flash_test mtdblock_device
-
+
Additional options:
--force to replace existing installation
diff --git a/apps/examples/flash_test/flash_test.c b/apps/examples/flash_test/flash_test.c
index 7c67580d1..92821040b 100644
--- a/apps/examples/flash_test/flash_test.c
+++ b/apps/examples/flash_test/flash_test.c
@@ -100,9 +100,9 @@ int flash_test_main(int argc, char *argv[])
goto errout_with_driver;
}
- /* Test if the device is formatted. If not, then we must do a
+ /* Test if the device is formatted. If not, then we must do a
* low-level format first */
-
+
if (!(fmt.flags & SMART_FMT_ISFORMATTED))
{
/* Perform a low-level format */
@@ -160,16 +160,16 @@ int flash_test_main(int argc, char *argv[])
{
/* Allocate a new sector */
- logsector = inode->u.i_bops->ioctl(inode, BIOC_ALLOCSECT,
+ logsector = inode->u.i_bops->ioctl(inode, BIOC_ALLOCSECT,
(unsigned long) -1);
if (logsector < 0)
{
fprintf(stderr, "Error allocating sector: %d\n", logsector);
- goto errout_with_driver;
+ goto errout_with_driver;
}
/* Save the sector in our array */
-
+
sectors[x] = (uint16_t) logsector;
seqs[x] = seq++;
@@ -190,7 +190,7 @@ int flash_test_main(int argc, char *argv[])
printf("\r%d ", sectors[x]);
}
- /* Now read the data back to validate everything was written and can
+ /* Now read the data back to validate everything was written and can
* be read. */
printf("\nDoing read verify test\n");
diff --git a/apps/examples/ftpc/Makefile b/apps/examples/ftpc/Makefile
index cc966f8d6..3f1f79da7 100644
--- a/apps/examples/ftpc/Makefile
+++ b/apps/examples/ftpc/Makefile
@@ -66,7 +66,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context depend clean distclean
diff --git a/apps/examples/ftpc/ftpc_main.c b/apps/examples/ftpc/ftpc_main.c
index deba62c1c..a66895e22 100644
--- a/apps/examples/ftpc/ftpc_main.c
+++ b/apps/examples/ftpc/ftpc_main.c
@@ -243,7 +243,7 @@ static int ftpc_execute(SESSION handle, int argc, char *argv[])
*/
cmd = argv[0];
-
+
/* See if the command is one that we understand */
for (cmdmap = g_cmdmap; cmdmap->cmd; cmdmap++)
diff --git a/apps/examples/ftpd/Makefile b/apps/examples/ftpd/Makefile
index 61752931c..d1c4eb6b6 100644
--- a/apps/examples/ftpd/Makefile
+++ b/apps/examples/ftpd/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
diff --git a/apps/examples/ftpd/ftpd_main.c b/apps/examples/ftpd/ftpd_main.c
index 1907da18c..a6f8506f9 100644
--- a/apps/examples/ftpd/ftpd_main.c
+++ b/apps/examples/ftpd/ftpd_main.c
@@ -226,7 +226,7 @@ int ftpd_main(int s_argc, char **s_argv)
if (!g_ftpdglob.initialized)
{
-
+
/* Bring up the network */
printf("Initializing the network\n");
@@ -256,7 +256,7 @@ int ftpd_main(int s_argc, char **s_argv)
{
printf("Starting the FTP daemon\n");
g_ftpdglob.pid = TASK_CREATE("FTP daemon", CONFIG_EXAMPLES_FTPD_PRIO,
- CONFIG_EXAMPLES_FTPD_STACKSIZE,
+ CONFIG_EXAMPLES_FTPD_STACKSIZE,
ftpd_daemon, NULL);
if (g_ftpdglob.pid < 0)
{
diff --git a/apps/examples/hello/Makefile b/apps/examples/hello/Makefile
index d5adb86b0..19692e4bc 100644
--- a/apps/examples/hello/Makefile
+++ b/apps/examples/hello/Makefile
@@ -68,7 +68,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/helloxx/Makefile b/apps/examples/helloxx/Makefile
index 5cbe7dd59..c83ad5a3d 100644
--- a/apps/examples/helloxx/Makefile
+++ b/apps/examples/helloxx/Makefile
@@ -70,7 +70,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean chkcxx
diff --git a/apps/examples/helloxx/helloxx_main.cxx b/apps/examples/helloxx/helloxx_main.cxx
index 27a4e2695..940dccef8 100644
--- a/apps/examples/helloxx/helloxx_main.cxx
+++ b/apps/examples/helloxx/helloxx_main.cxx
@@ -123,7 +123,7 @@ class CHelloWorld
// Define a statically constructed CHellowWorld instance if C++ static
// initializers are supported by the platform
-#ifdef CONFIG_HAVE_CXXINITIALIZE
+#ifdef CONFIG_HAVE_CXXINITIALIZE
static CHelloWorld g_HelloWorld;
#endif
diff --git a/apps/examples/hidkbd/Makefile b/apps/examples/hidkbd/Makefile
index 7663250c7..a9a7aa681 100644
--- a/apps/examples/hidkbd/Makefile
+++ b/apps/examples/hidkbd/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/i2schar/Makefile b/apps/examples/i2schar/Makefile
index dcc51696a..57eb190fc 100644
--- a/apps/examples/i2schar/Makefile
+++ b/apps/examples/i2schar/Makefile
@@ -74,7 +74,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/i2schar/i2schar_main.c b/apps/examples/i2schar/i2schar_main.c
index 01ca7fd15..fa5806cf9 100644
--- a/apps/examples/i2schar/i2schar_main.c
+++ b/apps/examples/i2schar/i2schar_main.c
@@ -173,7 +173,7 @@ static void parse_args(FAR struct i2schar_state_s *i2schar, int argc, FAR char *
long value;
int index;
int nargs;
-
+
for (index = 1; index < argc; )
{
ptr = argv[index];
@@ -218,7 +218,7 @@ static void parse_args(FAR struct i2schar_state_s *i2schar, int argc, FAR char *
case 'h':
i2schar_help(i2schar);
exit(0);
-
+
default:
message("Unsupported option: %s\n", ptr);
i2schar_help(i2schar);
diff --git a/apps/examples/i2schar/i2schar_receiver.c b/apps/examples/i2schar/i2schar_receiver.c
index 279076c6a..4575fd109 100644
--- a/apps/examples/i2schar/i2schar_receiver.c
+++ b/apps/examples/i2schar/i2schar_receiver.c
@@ -114,7 +114,7 @@ pthread_addr_t i2schar_receiver(pthread_addr_t arg)
for (i = 0; i < CONFIG_EXAMPLES_I2SCHAR_TXBUFFERS; i++)
{
/* Allocate an audio buffer of the configured size */
-
+
desc.numbytes = CONFIG_EXAMPLES_I2SCHAR_BUFSIZE;
desc.u.ppBuffer = &apb;
diff --git a/apps/examples/i2schar/i2schar_transmitter.c b/apps/examples/i2schar/i2schar_transmitter.c
index 601f9af39..8170c2956 100644
--- a/apps/examples/i2schar/i2schar_transmitter.c
+++ b/apps/examples/i2schar/i2schar_transmitter.c
@@ -117,7 +117,7 @@ pthread_addr_t i2schar_transmitter(pthread_addr_t arg)
for (i = 0, crap = 0; i < CONFIG_EXAMPLES_I2SCHAR_TXBUFFERS; i++)
{
/* Allocate an audio buffer of the configured size */
-
+
desc.numbytes = CONFIG_EXAMPLES_I2SCHAR_BUFSIZE;
desc.u.ppBuffer = &apb;
diff --git a/apps/examples/igmp/Makefile b/apps/examples/igmp/Makefile
index 8cfe69558..9128453ed 100644
--- a/apps/examples/igmp/Makefile
+++ b/apps/examples/igmp/Makefile
@@ -66,7 +66,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/igmp/igmp.c b/apps/examples/igmp/igmp.c
index ebb4feb07..d50ea4a93 100644
--- a/apps/examples/igmp/igmp.c
+++ b/apps/examples/igmp/igmp.c
@@ -89,7 +89,7 @@ int igmp_main(int argc, char *argv[])
#endif
message("Configuring Ethernet...\n");
-
+
/* Many embedded network interfaces must have a software assigned MAC */
#ifdef CONFIG_EXAMPLES_IGMP_NOMAC
diff --git a/apps/examples/json/Makefile b/apps/examples/json/Makefile
index f6a38fb1a..96144f9ad 100644
--- a/apps/examples/json/Makefile
+++ b/apps/examples/json/Makefile
@@ -66,7 +66,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/json/README b/apps/examples/json/README
index de9a0b2ed..45682e02f 100644
--- a/apps/examples/json/README
+++ b/apps/examples/json/README
@@ -66,12 +66,12 @@ philosophy as JSON itself. Simple, dumb, out of the way.
Some JSON:
{
- "name": "Jack (\"Bee\") Nimble",
+ "name": "Jack (\"Bee\") Nimble",
"format": {
- "type": "rect",
- "width": 1920,
- "height": 1080,
- "interlace": false,
+ "type": "rect",
+ "width": 1920,
+ "height": 1080,
+ "interlace": false,
"frame rate": 24
}
}
@@ -99,7 +99,7 @@ Finished? Delete the root (this takes care of everything else).
That's AUTO mode. If you're going to use Auto mode, you really ought to check pointers
before you dereference them. If you want to see how you'd build this struct in code?
cJSON *root,*fmt;
- root=cJSON_CreateObject();
+ root=cJSON_CreateObject();
cJSON_AddItemToObject(root, "name", cJSON_CreateString("Jack (\"Bee\") Nimble"));
cJSON_AddItemToObject(root, "format", fmt=cJSON_CreateObject());
cJSON_AddStringToObject(fmt,"type", "rect");
@@ -198,7 +198,7 @@ void parse_object(cJSON *item)
int i; for (i=0;i<cJSON_GetArraySize(item);i++)
{
cJSON *subitem=cJSON_GetArrayItem(item,i);
- // handle subitem.
+ // handle subitem.
}
}
@@ -211,7 +211,7 @@ void parse_object(cJSON *item)
{
// handle subitem
if (subitem->child) parse_object(subitem->child);
-
+
subitem=subitem->next;
}
}
@@ -240,7 +240,7 @@ cJSON *Create_array_of_anything(cJSON **items,int num)
}
return root;
}
-
+
and simply: Create_array_of_anything(objects,24);
cJSON doesn't make any assumptions about what order you create things in.
diff --git a/apps/examples/json/json_main.c b/apps/examples/json/json_main.c
index 443be387b..26e6b2855 100644
--- a/apps/examples/json/json_main.c
+++ b/apps/examples/json/json_main.c
@@ -130,7 +130,7 @@ static void create_objects(void)
int i;
/* Our "days of the week" array */
-
+
static const char *strings[7] =
{
"Sunday", "Monday", "Tuesday", "Wednesday",
@@ -138,7 +138,7 @@ static void create_objects(void)
};
/* Our matrix: */
-
+
static const int numbers[3][3] = { {0, -1, 0}, {1, 0, 0}, {0, 0, 1} };
/* Our "gallery" item: */
@@ -229,10 +229,10 @@ static void create_objects(void)
* Public Functions
****************************************************************************/
/****************************************************************************
- * Name:
+ * Name:
*
* Description:
- *
+ *
*
****************************************************************************/
@@ -252,7 +252,7 @@ int json_main(int argc, const char *argv[])
" }\n"
"}";
- static const char text2[] =
+ static const char text2[] =
"[\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]";
static const char text3[] =
@@ -261,7 +261,7 @@ int json_main(int argc, const char *argv[])
" [1, 0, 0],\n"
" [0, 0, 1]\n"
"]\n";
-
+
static const char text4[] =
"{\n"
" \"Image\": {\n"
diff --git a/apps/examples/lcdrw/Makefile b/apps/examples/lcdrw/Makefile
index 59726f7c0..9a394632e 100644
--- a/apps/examples/lcdrw/Makefile
+++ b/apps/examples/lcdrw/Makefile
@@ -61,14 +61,14 @@ endif
ROOTDEPPATH = --dep-path .
# LCD R/W built-in application info
-
+
APPNAME = lcdrw
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/lcdrw/lcdrw_main.c b/apps/examples/lcdrw/lcdrw_main.c
index 0852502f3..709859d1b 100644
--- a/apps/examples/lcdrw/lcdrw_main.c
+++ b/apps/examples/lcdrw/lcdrw_main.c
@@ -181,7 +181,7 @@ int lcdrw_main(int argc, char *argv[])
/* Create a dummy row. The important thing is to try all
* bit combinations in a predictable way.
*/
-
+
ptr = (FAR uint16_t*)inst.pinfo.buffer;
for (col = 0; col < CONFIG_EXAMPLES_LDCRW_XRES; col++)
{
@@ -214,7 +214,7 @@ int lcdrw_main(int argc, char *argv[])
for (row = 0; row < CONFIG_EXAMPLES_LDCRW_YRES; row++)
{
/* Read the row */
-
+
ret = inst.pinfo.getrun(row, 0, inst.pinfo.buffer,
CONFIG_EXAMPLES_LDCRW_XRES);
if (ret < 0)
diff --git a/apps/examples/mm/Makefile b/apps/examples/mm/Makefile
index 5ba7f4eec..d332e3845 100644
--- a/apps/examples/mm/Makefile
+++ b/apps/examples/mm/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/modbus/Makefile b/apps/examples/modbus/Makefile
index b2fba6764..ed1e19fab 100644
--- a/apps/examples/modbus/Makefile
+++ b/apps/examples/modbus/Makefile
@@ -68,7 +68,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/modbus/modbus_main.c b/apps/examples/modbus/modbus_main.c
index 2247fd675..7ff2b5b21 100644
--- a/apps/examples/modbus/modbus_main.c
+++ b/apps/examples/modbus/modbus_main.c
@@ -33,7 +33,7 @@
*
****************************************************************************
* Leveraged from:
- *
+ *
* FreeModbus Libary: Linux Demo Application
* Copyright (C) 2006 Christian Walter <wolti@sil.at>
*
@@ -149,7 +149,7 @@ static const uint8_t g_slaveid[] = { 0xaa, 0xbb, 0xcc };
* Name: modbus_initialize
*
* Description:
- * Called from the ModBus polling thread in order to initialized the
+ * Called from the ModBus polling thread in order to initialized the
* FreeModBus interface.
*
****************************************************************************/
@@ -197,7 +197,7 @@ static inline int modbus_initialize(void)
"ERROR: eMBInit failed: %d\n", mberr);
goto errout_with_mutex;
}
-
+
/* Set the slave ID
*
* 0x34 = Slave ID
@@ -274,7 +274,7 @@ static void *modbus_pollthread(void *pvarg)
do
{
/* Poll */
-
+
mberr = eMBPoll();
if (mberr != MB_ENOERR)
{
diff --git a/apps/examples/mount/Makefile b/apps/examples/mount/Makefile
index 133bdfa1f..8ac82a6c3 100644
--- a/apps/examples/mount/Makefile
+++ b/apps/examples/mount/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/mount/ramdisk.c b/apps/examples/mount/ramdisk.c
index 213a35cc9..21ec4c5e2 100644
--- a/apps/examples/mount/ramdisk.c
+++ b/apps/examples/mount/ramdisk.c
@@ -75,7 +75,7 @@ static struct fat_format_s g_fmt = FAT_FORMAT_INITIALIZER;
/****************************************************************************
* Private Functions
****************************************************************************/
-
+
/****************************************************************************
* Public Functions
****************************************************************************/
diff --git a/apps/examples/mtdpart/Makefile b/apps/examples/mtdpart/Makefile
index 56f9afa84..c3d9b8afe 100755
--- a/apps/examples/mtdpart/Makefile
+++ b/apps/examples/mtdpart/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/mtdpart/mtdpart_main.c b/apps/examples/mtdpart/mtdpart_main.c
index 3c1e98437..2dca73ff3 100644
--- a/apps/examples/mtdpart/mtdpart_main.c
+++ b/apps/examples/mtdpart/mtdpart_main.c
@@ -231,7 +231,7 @@ int mtdpart_main(int argc, char *argv[])
message(" blocksize: %lu\n", (unsigned long)geo.blocksize);
message(" erasesize: %lu\n", (unsigned long)geo.erasesize);
message(" neraseblocks: %lu\n", (unsigned long)geo.neraseblocks);
-
+
/* Determine the size of each partition. Make each partition an even
* multiple of the erase block size (perhaps not using some space at the
* end of the FLASH).
diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile
index 727773f69..f237669f5 100644
--- a/apps/examples/nettest/Makefile
+++ b/apps/examples/nettest/Makefile
@@ -39,7 +39,7 @@ include $(APPDIR)/Make.defs
# Basic TCP networking test
-TARG_ASRCS =
+TARG_ASRCS =
TARG_AOBJS = $(TARG_ASRCS:.S=$(OBJEXT))
TARG_CSRCS = nettest.c
@@ -93,7 +93,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built $(HOST_BIN)
.PHONY: clean depend distclean
diff --git a/apps/examples/nrf24l01_term/Makefile b/apps/examples/nrf24l01_term/Makefile
index bf8ea760a..4274cc157 100644
--- a/apps/examples/nrf24l01_term/Makefile
+++ b/apps/examples/nrf24l01_term/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/nsh/Makefile b/apps/examples/nsh/Makefile
index c7d212fc2..028299183 100644
--- a/apps/examples/nsh/Makefile
+++ b/apps/examples/nsh/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/null/Makefile b/apps/examples/null/Makefile
index 47ec4cdaf..daeb49c27 100644
--- a/apps/examples/null/Makefile
+++ b/apps/examples/null/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/nx/Makefile b/apps/examples/nx/Makefile
index ea802d9e7..17e6e8640 100644
--- a/apps/examples/nx/Makefile
+++ b/apps/examples/nx/Makefile
@@ -71,7 +71,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/nxconsole/Makefile b/apps/examples/nxconsole/Makefile
index aa4cdc518..3e1892785 100644
--- a/apps/examples/nxconsole/Makefile
+++ b/apps/examples/nxconsole/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/nxconsole/nxcon_main.c b/apps/examples/nxconsole/nxcon_main.c
index 02546750e..45223dcb1 100644
--- a/apps/examples/nxconsole/nxcon_main.c
+++ b/apps/examples/nxconsole/nxcon_main.c
@@ -337,7 +337,7 @@ int nxcon_main(int argc, char **argv)
}
/* Sleep a little bit to allow the server to catch up */
-
+
sleep(2);
/* NxConsole Configuration ************************************************/
@@ -388,7 +388,7 @@ int nxcon_main(int argc, char **argv)
/* And start the console task. It will inherit stdin, stdout, and stderr
* from this task.
*/
-
+
g_nxcon_vars.pid = TASK_CREATE("NxConsole", CONFIG_EXAMPLES_NXCONSOLE_PRIO,
CONFIG_EXAMPLES_NXCONSOLE_STACKSIZE,
nxcon_task, NULL);
diff --git a/apps/examples/nxffs/Makefile b/apps/examples/nxffs/Makefile
index 9af03897f..6d9e4a3d8 100644
--- a/apps/examples/nxffs/Makefile
+++ b/apps/examples/nxffs/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/nxffs/nxffs_main.c b/apps/examples/nxffs/nxffs_main.c
index 154714246..443ef52fe 100644
--- a/apps/examples/nxffs/nxffs_main.c
+++ b/apps/examples/nxffs/nxffs_main.c
@@ -279,7 +279,7 @@ static inline void nxffs_randname(FAR struct nxffs_filedesc_s *file)
{
file->name[i] = nxffs_randchar();
}
-
+
file->name[alloclen] = '\0';
}
diff --git a/apps/examples/nxflat/Makefile b/apps/examples/nxflat/Makefile
index 94092bd39..a750c8e2c 100644
--- a/apps/examples/nxflat/Makefile
+++ b/apps/examples/nxflat/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: headers clean depend distclean
diff --git a/apps/examples/nxflat/tests/Makefile b/apps/examples/nxflat/tests/Makefile
index 53e43288f..8a65d6494 100644
--- a/apps/examples/nxflat/tests/Makefile
+++ b/apps/examples/nxflat/tests/Makefile
@@ -57,7 +57,7 @@ $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all)))
$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean)))
$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),install,install)))
-# Build program(s) in each sud-directory
+# Build program(s) in each sud-directory
build: $(foreach DIR, $(SUBDIRS), $(DIR)_build)
@@ -84,7 +84,7 @@ $(ROMFS_IMG): populate
$(ROMFS_HDR) : $(ROMFS_IMG)
@(cd $(TESTS_DIR); xxd -i romfs.img | sed -e "s/^unsigned/static const unsigned/g" >$@)
-# Create the dirlist.h header file from the romfs directory
+# Create the dirlist.h header file from the romfs directory
$(ROMFS_DIRLIST) : populate
@$(TESTS_DIR)/mkdirlist.sh $(ROMFS_DIR) >$@
diff --git a/apps/examples/nxflat/tests/errno/Makefile b/apps/examples/nxflat/tests/errno/Makefile
index d8d75b227..d161a6496 100644
--- a/apps/examples/nxflat/tests/errno/Makefile
+++ b/apps/examples/nxflat/tests/errno/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxflat/tests/hello++/Makefile b/apps/examples/nxflat/tests/hello++/Makefile
index 739562905..fb8922a1b 100644
--- a/apps/examples/nxflat/tests/hello++/Makefile
+++ b/apps/examples/nxflat/tests/hello++/Makefile
@@ -162,7 +162,7 @@ $(BIN3): $(BIN3).r2
# @echo "LD: $<"
# $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN1))
$(call DELFILE, $(BIN2))
$(call DELFILE, $(BIN3))
diff --git a/apps/examples/nxflat/tests/hello++/hello++2.cpp b/apps/examples/nxflat/tests/hello++/hello++2.cpp
index 3a1798a70..1c5a11fc5 100644
--- a/apps/examples/nxflat/tests/hello++/hello++2.cpp
+++ b/apps/examples/nxflat/tests/hello++/hello++2.cpp
@@ -61,7 +61,7 @@ public:
printf("CThingSayer::CThingSayer: I am!\n");
szWhatToSay = (const char*)NULL;
}
-
+
~CThingSayer(void)
{
printf("CThingSayer::~CThingSayer: I cease to be\n");
diff --git a/apps/examples/nxflat/tests/hello/Makefile b/apps/examples/nxflat/tests/hello/Makefile
index b4521a74e..2efa6dbca 100644
--- a/apps/examples/nxflat/tests/hello/Makefile
+++ b/apps/examples/nxflat/tests/hello/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxflat/tests/longjmp/Makefile b/apps/examples/nxflat/tests/longjmp/Makefile
index 76d49417c..dbfd5fc91 100644
--- a/apps/examples/nxflat/tests/longjmp/Makefile
+++ b/apps/examples/nxflat/tests/longjmp/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxflat/tests/longjmp/longjmp.c b/apps/examples/nxflat/tests/longjmp/longjmp.c
index f43096514..12f3d99df 100644
--- a/apps/examples/nxflat/tests/longjmp/longjmp.c
+++ b/apps/examples/nxflat/tests/longjmp/longjmp.c
@@ -77,7 +77,7 @@ static int leaf(int *some_arg)
/* We should not get here */
- return -ERROR;
+ return -ERROR;
}
static int function(int some_arg)
diff --git a/apps/examples/nxflat/tests/mutex/Makefile b/apps/examples/nxflat/tests/mutex/Makefile
index d45c49ddd..526099819 100644
--- a/apps/examples/nxflat/tests/mutex/Makefile
+++ b/apps/examples/nxflat/tests/mutex/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxflat/tests/pthread/Makefile b/apps/examples/nxflat/tests/pthread/Makefile
index fffb13dfb..e16a8f623 100644
--- a/apps/examples/nxflat/tests/pthread/Makefile
+++ b/apps/examples/nxflat/tests/pthread/Makefile
@@ -70,7 +70,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxflat/tests/signal/Makefile b/apps/examples/nxflat/tests/signal/Makefile
index 372100030..43e4742b5 100644
--- a/apps/examples/nxflat/tests/signal/Makefile
+++ b/apps/examples/nxflat/tests/signal/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxflat/tests/struct/Makefile b/apps/examples/nxflat/tests/struct/Makefile
index ff15256af..bee07d1e5 100644
--- a/apps/examples/nxflat/tests/struct/Makefile
+++ b/apps/examples/nxflat/tests/struct/Makefile
@@ -71,7 +71,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxflat/tests/struct/struct_main.c b/apps/examples/nxflat/tests/struct/struct_main.c
index f454b8ae7..8646a0c49 100644
--- a/apps/examples/nxflat/tests/struct/struct_main.c
+++ b/apps/examples/nxflat/tests/struct/struct_main.c
@@ -46,7 +46,7 @@
* Public Data
****************************************************************************/
-const struct struct_dummy_s dummy_struct =
+const struct struct_dummy_s dummy_struct =
{
DUMMY_SCALAR_VALUE3
};
diff --git a/apps/examples/nxflat/tests/task/Makefile b/apps/examples/nxflat/tests/task/Makefile
index a528c60b7..afd4754b6 100644
--- a/apps/examples/nxflat/tests/task/Makefile
+++ b/apps/examples/nxflat/tests/task/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/nxhello/Makefile b/apps/examples/nxhello/Makefile
index 7b8d5ed04..1aa1f5370 100644
--- a/apps/examples/nxhello/Makefile
+++ b/apps/examples/nxhello/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/nximage/Makefile b/apps/examples/nximage/Makefile
index 42ab1adeb..afaf6eb9d 100644
--- a/apps/examples/nximage/Makefile
+++ b/apps/examples/nximage/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/nximage/nximage_bitmap.c b/apps/examples/nximage/nximage_bitmap.c
index a7c304d31..a48c485a2 100644
--- a/apps/examples/nximage/nximage_bitmap.c
+++ b/apps/examples/nximage/nximage_bitmap.c
@@ -1075,7 +1075,7 @@ static const struct pix_run_s g_nuttx[] =
{ 77, 0},
{ 76, 0}, { 1, 5}, { 4, 4}, { 1, 5}, { 78, 0} /* Row 159 */
};
-
+
#elif CONFIG_EXAMPLES_NXIMAGE_BPP == 16
static const struct pix_run_s g_nuttx[] =
@@ -3545,7 +3545,7 @@ nxgl_mxpixel_t nximage_avgcolor(nxgl_mxpixel_t color1, nxgl_mxpixel_t color2)
{
b1 = 0xff;
}
-
+
/* Multiplex */
color1 = r1 << 16 | g1 << 8 | b1;
@@ -3586,7 +3586,7 @@ nxgl_mxpixel_t nximage_avgcolor(nxgl_mxpixel_t color1, nxgl_mxpixel_t color2)
{
b1 = 0x1f;
}
-
+
/* Multiplex */
color1 = r1 << 11 | g1 << 5 | b1;
@@ -3629,7 +3629,7 @@ nxgl_mxpixel_t nximage_avgcolor(nxgl_mxpixel_t color1, nxgl_mxpixel_t color2)
{
b1 = 0x03;
}
-
+
/* Multiplex */
color1 = r1 << 5 | g1 << 2 | b1;
diff --git a/apps/examples/nximage/nximage_bkgd.c b/apps/examples/nximage/nximage_bkgd.c
index 4a028f720..ddd7b4a72 100644
--- a/apps/examples/nximage/nximage_bkgd.c
+++ b/apps/examples/nximage/nximage_bkgd.c
@@ -295,7 +295,7 @@ void nximage_image(NXWINDOW hwnd)
dest.pt1.x = pos.x;
dest.pt2.x = pos.x + SCALED_WIDTH - 1;
-
+
/* Now output the rows */
for (row = 0; row < IMAGE_HEIGHT; row += NINPUT_ROWS)
diff --git a/apps/examples/nxlines/Makefile b/apps/examples/nxlines/Makefile
index 54495b292..fbd61ed44 100644
--- a/apps/examples/nxlines/Makefile
+++ b/apps/examples/nxlines/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/nxlines/nxlines_main.c b/apps/examples/nxlines/nxlines_main.c
index 93e0436d8..d9512391e 100644
--- a/apps/examples/nxlines/nxlines_main.c
+++ b/apps/examples/nxlines/nxlines_main.c
@@ -254,7 +254,7 @@ int nxlines_main(int argc, char *argv[])
message("nxlines_main: Screen resolution (%d,%d)\n", g_nxlines.xres, g_nxlines.yres);
/* Now, say perform the lines (these test does not return so the remaining
- * logic is cosmetic).
+ * logic is cosmetic).
*/
nxlines_test(g_nxlines.hbkgd);
diff --git a/apps/examples/nxtext/Makefile b/apps/examples/nxtext/Makefile
index cabae0520..4091c577b 100644
--- a/apps/examples/nxtext/Makefile
+++ b/apps/examples/nxtext/Makefile
@@ -72,7 +72,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/nxtext/nxtext_bkgd.c b/apps/examples/nxtext/nxtext_bkgd.c
index 7817bf441..2d65cbeae 100644
--- a/apps/examples/nxtext/nxtext_bkgd.c
+++ b/apps/examples/nxtext/nxtext_bkgd.c
@@ -329,7 +329,7 @@ static inline void nxbg_scroll(NXWINDOW hwnd, int lineheight)
bm->pos.y -= lineheight;
/* We are keeping this one so increment to the next character */
-
+
i++;
}
}
diff --git a/apps/examples/nxtext/nxtext_main.c b/apps/examples/nxtext/nxtext_main.c
index 9bb94dcb8..9aa2a810e 100644
--- a/apps/examples/nxtext/nxtext_main.c
+++ b/apps/examples/nxtext/nxtext_main.c
@@ -455,7 +455,7 @@ int nxtext_main(int argc, char **argv)
else if (popcnt == 5)
{
/* Destroy the pop-up window and restart the sequence */
-
+
message("nxtext_main: Close pop-up\n");
(void)nxpu_close(hwnd);
popcnt = 0;
diff --git a/apps/examples/nxtext/nxtext_popup.c b/apps/examples/nxtext/nxtext_popup.c
index 4faaf3a35..f708292e5 100644
--- a/apps/examples/nxtext/nxtext_popup.c
+++ b/apps/examples/nxtext/nxtext_popup.c
@@ -137,7 +137,7 @@ static fb_coord_t nxpu_randpos(fb_coord_t value)
{
ndx = 0;
}
-
+
return (fb_coord_t)(((uint32_t)value * (uint32_t)rand8) >> 8);
}
diff --git a/apps/examples/nxtext/nxtext_putc.c b/apps/examples/nxtext/nxtext_putc.c
index 13a441115..9bfc28f2c 100644
--- a/apps/examples/nxtext/nxtext_putc.c
+++ b/apps/examples/nxtext/nxtext_putc.c
@@ -128,7 +128,7 @@ nxtext_allocglyph(FAR struct nxtext_state_s *st)
* track of the least used glyph as well. We need that if we have to replace
* a glyph in the cache.
*/
-
+
for (i = 0; i < st->maxglyphs; i++)
{
/* Is this glyph in use? */
@@ -153,7 +153,7 @@ nxtext_allocglyph(FAR struct nxtext_state_s *st)
/* If we get here, the glyph cache is full. We replace the least used
* glyph with the one we need now. (luglyph can't be NULL).
*/
-
+
luusecnt = luglyph->usecnt;
nxtext_freeglyph(luglyph);
@@ -164,7 +164,7 @@ nxtext_allocglyph(FAR struct nxtext_state_s *st)
if (luusecnt > 1)
{
uint8_t decr = luusecnt - 1;
-
+
for (i = 0; i < st->maxglyphs; i++)
{
/* Is this glyph in use? */
diff --git a/apps/examples/ostest/Makefile b/apps/examples/ostest/Makefile
index e8b6a176d..d0f347dfb 100644
--- a/apps/examples/ostest/Makefile
+++ b/apps/examples/ostest/Makefile
@@ -77,9 +77,9 @@ endif # CONFIG_DISABLE_SIGNALS
ifneq ($(CONFIG_DISABLE_MQUEUE),y)
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
-CSRCS += mqueue.c
+CSRCS += mqueue.c
ifneq ($(CONFIG_DISABLE_CLOCK),y)
-CSRCS += timedmqueue.c
+CSRCS += timedmqueue.c
endif # CONFIG_DISABLE_CLOCK
endif # CONFIG_DISABLE_PTHREAD
endif # CONFIG_DISABLE_MQUEUE
@@ -122,7 +122,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/ostest/fpu.c b/apps/examples/ostest/fpu.c
index 89a1034ce..2729348ed 100644
--- a/apps/examples/ostest/fpu.c
+++ b/apps/examples/ostest/fpu.c
@@ -215,7 +215,7 @@ static int fpu_task(int argc, char *argv[])
printf("FPU#%d: pass %d\n", id, i+1);
fflush(stdout);
- /* Set the FPU register save arrays to a known-but-illogical values so
+ /* Set the FPU register save arrays to a known-but-illogical values so
* that we can verify that reading of the registers actually occurs.
*/
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c
index 630262d0e..8591c5f3f 100644
--- a/apps/examples/ostest/ostest_main.c
+++ b/apps/examples/ostest/ostest_main.c
@@ -306,7 +306,7 @@ static int user_main(int argc, char *argv[])
#endif
/* Top of test loop */
-
+
#if CONFIG_EXAMPLES_OSTEST_LOOPS > 1
for (i = 0; i < CONFIG_EXAMPLES_OSTEST_LOOPS; i++)
#elif CONFIG_EXAMPLES_OSTEST_LOOPS == 0
diff --git a/apps/examples/ostest/prioinherit.c b/apps/examples/ostest/prioinherit.c
index cd04df7e6..5d0c9b763 100644
--- a/apps/examples/ostest/prioinherit.c
+++ b/apps/examples/ostest/prioinherit.c
@@ -115,7 +115,7 @@ static int nhighpri_waiting(void)
{
int n = 0;
int i;
-
+
for (i = 0; i < NHIGHPRI_THREADS; i++)
{
if (g_highstate[i] == WAITING)
@@ -134,7 +134,7 @@ static int nhighpri_running(void)
{
int n = 0;
int i;
-
+
for (i = 0; i < NHIGHPRI_THREADS; i++)
{
if (g_highstate[i] != DONE)
@@ -268,7 +268,7 @@ static void *lowpri_thread(void *parameter)
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);
- }
+ }
}
g_lowstate[threadno-1] = WAITING;
@@ -378,14 +378,14 @@ static void *lowpri_thread(void *parameter)
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);
- }
+ }
}
sem_enumholders(&g_sem);
printf("lowpri_thread-%d: Okay... I'm done!\n", threadno);
FFLUSH();
g_lowstate[threadno-1] = DONE;
- return retval;
+ return retval;
}
#endif /* CONFIG_PRIORITY_INHERITANCE && !CONFIG_DISABLE_SIGNALS && !CONFIG_DISABLE_PTHREAD */
diff --git a/apps/examples/ostest/rmutex.c b/apps/examples/ostest/rmutex.c
index ffd99c2df..5456cddb7 100644
--- a/apps/examples/ostest/rmutex.c
+++ b/apps/examples/ostest/rmutex.c
@@ -64,7 +64,7 @@ static void thread_inner(int id, int level)
printf("thread_inner[%d, %d]: Locked\n", id, level);
/* Give the other threads a chance */
-
+
pthread_yield();
thread_inner(id, level+1);
pthread_yield();
@@ -127,7 +127,7 @@ void recursive_mutex_test(void)
{
printf("recursive_mutex_test: ERROR pthread_mutexattr_gettype return type=%d\n", type);
}
-
+
/* Initialize the mutex */
printf("recursive_mutex_test: Initializing mutex\n");
diff --git a/apps/examples/ostest/sem.c b/apps/examples/ostest/sem.c
index 6f979dcc7..5c7f39cce 100644
--- a/apps/examples/ostest/sem.c
+++ b/apps/examples/ostest/sem.c
@@ -235,7 +235,7 @@ void sem_test(void)
printf(" Canceling waiter threads\n");
pthread_cancel(waiter_thread1);
- pthread_cancel(waiter_thread2);
+ pthread_cancel(waiter_thread2);
}
#ifdef SDCC
diff --git a/apps/examples/pashello/Makefile b/apps/examples/pashello/Makefile
index bb525c925..d5c482374 100644
--- a/apps/examples/pashello/Makefile
+++ b/apps/examples/pashello/Makefile
@@ -70,7 +70,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/pipe/Makefile b/apps/examples/pipe/Makefile
index bed319085..3efa943b3 100644
--- a/apps/examples/pipe/Makefile
+++ b/apps/examples/pipe/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/pipe/interlock_test.c b/apps/examples/pipe/interlock_test.c
index 9cdfaec5c..0391fe36f 100644
--- a/apps/examples/pipe/interlock_test.c
+++ b/apps/examples/pipe/interlock_test.c
@@ -102,7 +102,7 @@ static void *null_writer(pthread_addr_t pvarg)
fprintf(stderr, "null_writer: close failed: %d\n", errno);
}
sleep(5);
-
+
printf("null_writer: Returning success\n");
return (void*)0;
}
@@ -143,7 +143,7 @@ int interlock_test(void)
ret = 2;
goto errout_with_fifo;
}
-
+
/* Open one end of the FIFO for reading. This open call should block until the
* null_writer thread opens the other end of the FIFO for writing.
*/
diff --git a/apps/examples/poll/Makefile b/apps/examples/poll/Makefile
index 7507e6449..9431398f8 100644
--- a/apps/examples/poll/Makefile
+++ b/apps/examples/poll/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/poll/poll_listener.c b/apps/examples/poll/poll_listener.c
index 4c5e602c3..d7f4bf495 100644
--- a/apps/examples/poll/poll_listener.c
+++ b/apps/examples/poll/poll_listener.c
@@ -249,7 +249,7 @@ void *poll_listener(pthread_addr_t pvarg)
}
while (nbytes > 0);
}
-
+
/* Make sure that everything is displayed */
msgflush();
diff --git a/apps/examples/posix_spawn/filesystem/hello/Makefile b/apps/examples/posix_spawn/filesystem/hello/Makefile
index ac67f84a0..dbb52d760 100644
--- a/apps/examples/posix_spawn/filesystem/hello/Makefile
+++ b/apps/examples/posix_spawn/filesystem/hello/Makefile
@@ -50,7 +50,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, *.dSYM)
$(call CLEAN)
diff --git a/apps/examples/posix_spawn/filesystem/redirect/Makefile b/apps/examples/posix_spawn/filesystem/redirect/Makefile
index 59aba9a75..5d6d499e1 100644
--- a/apps/examples/posix_spawn/filesystem/redirect/Makefile
+++ b/apps/examples/posix_spawn/filesystem/redirect/Makefile
@@ -50,7 +50,7 @@ $(BIN): $(OBJS)
@echo "LD: $<"
$(Q) $(LD) $(LDELFFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, *.dSYM)
$(call CLEAN)
diff --git a/apps/examples/posix_spawn/spawn_main.c b/apps/examples/posix_spawn/spawn_main.c
index 7a39a24b0..efb6c1af1 100644
--- a/apps/examples/posix_spawn/spawn_main.c
+++ b/apps/examples/posix_spawn/spawn_main.c
@@ -404,7 +404,7 @@ int spawn_main(int argc, char *argv[])
err("ERROR: posix_spawn_file_actions_addopen failed: %d\n", ret);
}
posix_spawn_file_actions_dump(&file_actions);
-
+
mm_update(&g_mmstep, "after adding file_actions");
/* If the binary loader does not support the PATH variable, then
diff --git a/apps/examples/pwm/Makefile b/apps/examples/pwm/Makefile
index ece901a99..d51bbf5db 100644
--- a/apps/examples/pwm/Makefile
+++ b/apps/examples/pwm/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/pwm/pwm_main.c b/apps/examples/pwm/pwm_main.c
index c524479b7..956ff04c5 100644
--- a/apps/examples/pwm/pwm_main.c
+++ b/apps/examples/pwm/pwm_main.c
@@ -185,7 +185,7 @@ static void parse_args(FAR struct pwm_state_s *pwm, int argc, FAR char **argv)
long value;
int index;
int nargs;
-
+
for (index = 1; index < argc; )
{
ptr = argv[index];
@@ -256,7 +256,7 @@ static void parse_args(FAR struct pwm_state_s *pwm, int argc, FAR char **argv)
case 'h':
pwm_help(pwm);
exit(0);
-
+
default:
message("Unsupported option: %s\n", ptr);
pwm_help(pwm);
@@ -340,7 +340,7 @@ int pwm_main(int argc, char *argv[])
info.frequency, info.duty);
#endif
-
+
ret = ioctl(fd, PWMIOC_SETCHARACTERISTICS, (unsigned long)((uintptr_t)&info));
if (ret < 0)
{
@@ -362,7 +362,7 @@ int pwm_main(int argc, char *argv[])
/* It a non-zero count was not specified, then wait for the selected
* duration, then stop the PWM output.
*/
-
+
#ifdef CONFIG_PWM_PULSECOUNT
if (info.count == 0)
#endif
diff --git a/apps/examples/qencoder/Makefile b/apps/examples/qencoder/Makefile
index 9668796e6..18a3bb925 100644
--- a/apps/examples/qencoder/Makefile
+++ b/apps/examples/qencoder/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/qencoder/qe_main.c b/apps/examples/qencoder/qe_main.c
index 8c185ea1b..cad5ceb7d 100644
--- a/apps/examples/qencoder/qe_main.c
+++ b/apps/examples/qencoder/qe_main.c
@@ -222,7 +222,7 @@ static void parse_args(int argc, FAR char **argv)
case 'h':
qe_help();
exit(EXIT_SUCCESS);
-
+
default:
message("Unsupported option: %s\n", ptr);
qe_help();
diff --git a/apps/examples/relays/Makefile b/apps/examples/relays/Makefile
index 1ab4c8716..e5afd6fbf 100644
--- a/apps/examples/relays/Makefile
+++ b/apps/examples/relays/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 512
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/relays/relays_main.c b/apps/examples/relays/relays_main.c
index c7ad6db0f..941ac2302 100644
--- a/apps/examples/relays/relays_main.c
+++ b/apps/examples/relays/relays_main.c
@@ -122,15 +122,15 @@ int relays_main(int argc, char *argv[])
printf("usage: relays [ -n <relay id> ] <switch-status>\n");
return -1;
}
-
+
if (optind == argc - 1)
{
stat = argv[optind];
set_stat = (!strcmp(stat,"on") || !strcmp(stat,"ON")) ? true : false ;
}
-
+
up_relaysinit();
-
+
if (n >= 0)
{
printf("set RELAY ID %d to %s\n", n , set_stat ? "ON" : "OFF");
diff --git a/apps/examples/rgmp/Makefile b/apps/examples/rgmp/Makefile
index d94d6ec3c..049ad02a0 100644
--- a/apps/examples/rgmp/Makefile
+++ b/apps/examples/rgmp/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/rgmp/rgmp_main.c b/apps/examples/rgmp/rgmp_main.c
index e026852b8..1cf5a56c7 100644
--- a/apps/examples/rgmp/rgmp_main.c
+++ b/apps/examples/rgmp/rgmp_main.c
@@ -60,7 +60,7 @@
int rgmp_main(int argc, char *argv[])
{
// TODO: add your code here
-
+
return 0;
}
diff --git a/apps/examples/romfs/Makefile b/apps/examples/romfs/Makefile
index 2b02952ed..d3c8e79cc 100644
--- a/apps/examples/romfs/Makefile
+++ b/apps/examples/romfs/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: checkgenromfs clean depend distclean
diff --git a/apps/examples/romfs/romfs_main.c b/apps/examples/romfs/romfs_main.c
index d39c8ec2b..980bd4455 100644
--- a/apps/examples/romfs/romfs_main.c
+++ b/apps/examples/romfs/romfs_main.c
@@ -461,7 +461,7 @@ int romfs_main(int argc, char *argv[])
/* Create a RAM disk for the test */
- ret = romdisk_register(CONFIG_EXAMPLES_ROMFS_RAMDEVNO, testdir_img,
+ ret = romdisk_register(CONFIG_EXAMPLES_ROMFS_RAMDEVNO, testdir_img,
NSECTORS(testdir_img_len), CONFIG_EXAMPLES_ROMFS_SECTORSIZE);
if (ret < 0)
{
diff --git a/apps/examples/romfs/testdir.txt b/apps/examples/romfs/testdir.txt
index e321d6ded..c87815179 100644
--- a/apps/examples/romfs/testdir.txt
+++ b/apps/examples/romfs/testdir.txt
@@ -26,7 +26,7 @@ FILE HEADER 4: Name=adir
00000c0: 616e 6f74 6865 7266 696c 652e 7478 7400 anotherfile.txt.
FILE CONTENT:
- 00000d0: 5468 6973 2069 7320 616e 6f74 6865 7220 This is another
+ 00000d0: 5468 6973 2069 7320 616e 6f74 6865 7220 This is another
00000e0: 6669 6c65 0a00 0000 0000 0000 0000 0000 file............
FILE HEADER 4.2: Name=yafile.txt
@@ -38,7 +38,7 @@ FILE HEADER 4: Name=adir
0000120: 6865 7220 6669 6c65 0a00 0000 0000 0000 her file........
FILE HEADER 4.3: Name=.
- 0000130: 0000 0150 0000 0090 0000 0000 d1ff fe20 ...P...........
+ 0000130: 0000 0150 0000 0090 0000 0000 d1ff fe20 ...P...........
0000140: 2e00 0000 0000 0000 0000 0000 0000 0000 ................
FILE HEADER 4.4: Name=..
diff --git a/apps/examples/sendmail/Makefile b/apps/examples/sendmail/Makefile
index a3b8b7288..57f4e4615 100644
--- a/apps/examples/sendmail/Makefile
+++ b/apps/examples/sendmail/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/serloop/Makefile b/apps/examples/serloop/Makefile
index 4a262884b..20f348269 100644
--- a/apps/examples/serloop/Makefile
+++ b/apps/examples/serloop/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/slcd/Makefile b/apps/examples/slcd/Makefile
index c7ac96950..54252879f 100644
--- a/apps/examples/slcd/Makefile
+++ b/apps/examples/slcd/Makefile
@@ -68,7 +68,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/smart/Makefile b/apps/examples/smart/Makefile
index 60614ca5d..d0a5f738a 100644
--- a/apps/examples/smart/Makefile
+++ b/apps/examples/smart/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/smart/smart_main.c b/apps/examples/smart/smart_main.c
index b373d78cd..d01f814f3 100644
--- a/apps/examples/smart/smart_main.c
+++ b/apps/examples/smart/smart_main.c
@@ -281,7 +281,7 @@ static inline void smart_randname(FAR struct smart_filedesc_s *file)
{
file->name[i] = smart_randchar();
}
-
+
file->name[alloclen] = '\0';
}
diff --git a/apps/examples/smart_test/Makefile b/apps/examples/smart_test/Makefile
index 5864b1cdc..fb6100464 100644
--- a/apps/examples/smart_test/Makefile
+++ b/apps/examples/smart_test/Makefile
@@ -71,7 +71,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context depend clean distclean
diff --git a/apps/examples/smart_test/README.txt b/apps/examples/smart_test/README.txt
index 4102df9e7..3cd9e5536 100644
--- a/apps/examples/smart_test/README.txt
+++ b/apps/examples/smart_test/README.txt
@@ -11,7 +11,7 @@ append and seek-with-write operations.
Usage:
flash_test mtdblock_device
-
+
Additional options:
--force to replace existing installation
diff --git a/apps/examples/smart_test/smart_test.c b/apps/examples/smart_test/smart_test.c
index efce1b0bf..bffb04c2c 100644
--- a/apps/examples/smart_test/smart_test.c
+++ b/apps/examples/smart_test/smart_test.c
@@ -104,12 +104,12 @@ static int smart_create_test_file(char *filename)
sprintf(string, "This is line %d at offset %d\n", x, g_linePos[x]);
g_lineLen[x] = strlen(string);
- fprintf(fd, "%s", string);
+ fprintf(fd, "%s", string);
printf("\r%d", x);
fflush(stdout);
- }
-
+ }
+
/* Close the file */
printf("\r\nDone.\n");
@@ -203,7 +203,7 @@ static int smart_append_test(char *filename)
/* Now seek to the end of the file and ensure that is where
* pos is.
*/
-
+
fseek(fd, 0, SEEK_END);
if (ftell(fd) != pos)
{
diff --git a/apps/examples/telnetd/Makefile b/apps/examples/telnetd/Makefile
index 4391870c0..7ba00ba11 100644
--- a/apps/examples/telnetd/Makefile
+++ b/apps/examples/telnetd/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/thttpd/Makefile b/apps/examples/thttpd/Makefile
index 85a26d39f..b74dc70dd 100644
--- a/apps/examples/thttpd/Makefile
+++ b/apps/examples/thttpd/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: headers clean depend distclean
diff --git a/apps/examples/thttpd/content/Makefile b/apps/examples/thttpd/content/Makefile
index b4deddef5..9ef8fe98a 100644
--- a/apps/examples/thttpd/content/Makefile
+++ b/apps/examples/thttpd/content/Makefile
@@ -56,7 +56,7 @@ $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all)))
$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean)))
$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),install,install)))
-# Build program(s) in each sud-directory
+# Build program(s) in each sud-directory
build: $(foreach DIR, $(SUBDIRS), $(DIR)_build)
diff --git a/apps/examples/thttpd/content/hello/Makefile b/apps/examples/thttpd/content/hello/Makefile
index 2cdead59c..2856490ab 100644
--- a/apps/examples/thttpd/content/hello/Makefile
+++ b/apps/examples/thttpd/content/hello/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/thttpd/content/hello/hello.c b/apps/examples/thttpd/content/hello/hello.c
index 386759fc2..1187852d6 100644
--- a/apps/examples/thttpd/content/hello/hello.c
+++ b/apps/examples/thttpd/content/hello/hello.c
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
"</div>\r\n"
"<div class=\"contentblock\">\r\n");
printf(
- "<h2>Hello, World!</h2><p>Requested by: %s</p>\r\n",
+ "<h2>Hello, World!</h2><p>Requested by: %s</p>\r\n",
getenv("REMOTE_ADDR"));
puts(
"</body>\r\n"
diff --git a/apps/examples/thttpd/content/index.html b/apps/examples/thttpd/content/index.html
index 1fba1fbf6..fba05f407 100644
--- a/apps/examples/thttpd/content/index.html
+++ b/apps/examples/thttpd/content/index.html
@@ -2,7 +2,7 @@
<html>
<head>
<title>NuttX examples/thttpd</title>
- <link rel="stylesheet" type="text/css" href="style.css">
+ <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="#fffeec" text="black">
diff --git a/apps/examples/thttpd/content/netstat/Makefile b/apps/examples/thttpd/content/netstat/Makefile
index 98675bd88..6d89bcd88 100644
--- a/apps/examples/thttpd/content/netstat/Makefile
+++ b/apps/examples/thttpd/content/netstat/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/thttpd/content/style.css b/apps/examples/thttpd/content/style.css
index bfb0997a8..bd3395b34 100644
--- a/apps/examples/thttpd/content/style.css
+++ b/apps/examples/thttpd/content/style.css
@@ -1,10 +1,10 @@
-h1
+h1
{
text-align: center;
font-size:14pt;
font-family:arial,helvetica;
font-weight:bold;
- padding:10px;
+ padding:10px;
}
body
@@ -24,7 +24,7 @@ body
background-color: #fffcd2;
text-align:left;
font-size:9pt;
- font-family:arial,helvetica;
+ font-family:arial,helvetica;
}
div.menubox
@@ -36,14 +36,14 @@ div.menubox
}
.contentblock
-{
+{
margin: 4px;
width:60%;
padding:2px;
border: 1px dotted;
background-color: white;
font-size:8pt;
- font-family:arial,helvetica;
+ font-family:arial,helvetica;
}
p.intro
@@ -51,20 +51,20 @@ p.intro
margin-left:20px;
margin-right:20px;
font-size:10pt;
- font-family:arial,helvetica;
+ font-family:arial,helvetica;
}
p.clink
{
font-size:12pt;
- font-family:courier,monospace;
+ font-family:courier,monospace;
text-align:center;
}
p.clink9
{
font-size:9pt;
- font-family:courier,monospace;
+ font-family:courier,monospace;
text-align:center;
}
@@ -75,6 +75,6 @@ p
p.right
{
- text-align:right;
+ text-align:right;
}
diff --git a/apps/examples/thttpd/content/tasks/Makefile b/apps/examples/thttpd/content/tasks/Makefile
index bf9811524..418fca2b3 100644
--- a/apps/examples/thttpd/content/tasks/Makefile
+++ b/apps/examples/thttpd/content/tasks/Makefile
@@ -69,7 +69,7 @@ $(BIN): $(BIN).r2
@echo "LD: $<"
$(Q) $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
-clean:
+clean:
$(call DELFILE, $(BIN))
$(call DELFILE, $(R2SRC))
$(call DELFILE, *.r1)
diff --git a/apps/examples/thttpd/content/tasks/tasks.c b/apps/examples/thttpd/content/tasks/tasks.c
index 393ef5a23..a6cf14adc 100644
--- a/apps/examples/thttpd/content/tasks/tasks.c
+++ b/apps/examples/thttpd/content/tasks/tasks.c
@@ -64,15 +64,15 @@ static const char *g_statenames[] =
{
"INVALID ",
"PENDING ",
- "READY ",
- "RUNNING ",
- "INACTIVE",
- "WAITSEM ",
+ "READY ",
+ "RUNNING ",
+ "INACTIVE",
+ "WAITSEM ",
#ifndef CONFIG_DISABLE_MQUEUE
- "WAITSIG ",
+ "WAITSIG ",
#endif
#ifndef CONFIG_DISABLE_MQUEUE
- "MQNEMPTY",
+ "MQNEMPTY",
"MQNFULL "
#endif
};
diff --git a/apps/examples/tiff/Makefile b/apps/examples/tiff/Makefile
index 7be74a587..567a5dbe6 100644
--- a/apps/examples/tiff/Makefile
+++ b/apps/examples/tiff/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/tiff/tiff_main.c b/apps/examples/tiff/tiff_main.c
index 357e29bf8..d3169d149 100644
--- a/apps/examples/tiff/tiff_main.c
+++ b/apps/examples/tiff/tiff_main.c
@@ -144,7 +144,7 @@ int tiff_main(int argc, char *argv[])
{
*ptr++ = (green + blue) >> 1;
*ptr++ = green;
- *ptr++ = blue;
+ *ptr++ = blue;
}
ret = tiff_addstrip(&info, strip);
diff --git a/apps/examples/touchscreen/Makefile b/apps/examples/touchscreen/Makefile
index 6a3127f42..b9dea1d39 100644
--- a/apps/examples/touchscreen/Makefile
+++ b/apps/examples/touchscreen/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/udp/Makefile b/apps/examples/udp/Makefile
index 118c42307..60932024e 100644
--- a/apps/examples/udp/Makefile
+++ b/apps/examples/udp/Makefile
@@ -39,7 +39,7 @@ include $(APPDIR)/Make.defs
# UDP Test
-TARG_ASRCS =
+TARG_ASRCS =
TARG_CSRCS = target.c
ifeq ($(CONFIG_EXAMPLES_UDP_SERVER),y)
@@ -84,7 +84,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/udp/udp-server.c b/apps/examples/udp/udp-server.c
index 1f4774deb..191f89cc0 100644
--- a/apps/examples/udp/udp-server.c
+++ b/apps/examples/udp/udp-server.c
@@ -126,14 +126,14 @@ void recv_server(void)
{
message("server: %d. Receiving up 1024 bytes\n", offset);
addrlen = sizeof(struct sockaddr_in);
- nbytes = recvfrom(sockfd, inbuf, 1024, 0,
+ nbytes = recvfrom(sockfd, inbuf, 1024, 0,
(struct sockaddr*)&client, &addrlen);
tmpaddr = ntohl(client.sin_addr.s_addr);
message("server: %d. Received %d bytes from %d.%d.%d.%d:%d\n",
- offset, nbytes,
- tmpaddr >> 24, (tmpaddr >> 16) & 0xff,
- (tmpaddr >> 8) & 0xff, tmpaddr & 0xff,
+ offset, nbytes,
+ tmpaddr >> 24, (tmpaddr >> 16) & 0xff,
+ (tmpaddr >> 8) & 0xff, tmpaddr & 0xff,
ntohs(client.sin_port));
if (nbytes < 0)
diff --git a/apps/examples/uip/Makefile b/apps/examples/uip/Makefile
index b154532b7..11da70050 100644
--- a/apps/examples/uip/Makefile
+++ b/apps/examples/uip/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/uip/httpd-fs/header.html b/apps/examples/uip/httpd-fs/header.html
index 70df07fa6..ce2659cd4 100644
--- a/apps/examples/uip/httpd-fs/header.html
+++ b/apps/examples/uip/httpd-fs/header.html
@@ -2,7 +2,7 @@
<html>
<head>
<title>Welcome to the uIP web server!</title>
- <link rel="stylesheet" type="text/css" href="style.css">
+ <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="#fffeec" text="black">
@@ -12,5 +12,5 @@
<div class="menubox"><a href="stats.shtml">Network statistics</a></div>
<br>
</div>
-
+
<div class="contentblock">
diff --git a/apps/examples/uip/httpd-fs/style.css b/apps/examples/uip/httpd-fs/style.css
index ba6df7f15..b35cd7efc 100644
--- a/apps/examples/uip/httpd-fs/style.css
+++ b/apps/examples/uip/httpd-fs/style.css
@@ -1,10 +1,10 @@
-h1
+h1
{
text-align: center;
font-size:14pt;
font-family:arial,helvetica;
font-weight:bold;
- padding:10px;
+ padding:10px;
}
body
@@ -27,9 +27,9 @@ body
border: solid 1px;
background-color: #fffcd2;
text-align:left;
-
+
font-size:9pt;
- font-family:arial,helvetica;
+ font-family:arial,helvetica;
}
div.menubox
@@ -41,7 +41,7 @@ text-align: center;
}
.contentblock
-{
+{
margin: 4px;
width:60%;
@@ -51,7 +51,7 @@ text-align: center;
background-color: white;
font-size:8pt;
- font-family:arial,helvetica;
+ font-family:arial,helvetica;
}
@@ -62,20 +62,20 @@ p.intro
font-size:10pt;
/* font-weight:bold; */
- font-family:arial,helvetica;
+ font-family:arial,helvetica;
}
p.clink
{
font-size:12pt;
- font-family:courier,monospace;
+ font-family:courier,monospace;
text-align:center;
}
p.clink9
{
font-size:9pt;
- font-family:courier,monospace;
+ font-family:courier,monospace;
text-align:center;
}
@@ -87,6 +87,6 @@ p
p.right
{
- text-align:right;
+ text-align:right;
}
diff --git a/apps/examples/usbserial/Makefile b/apps/examples/usbserial/Makefile
index ec7219505..9f7c7a814 100644
--- a/apps/examples/usbserial/Makefile
+++ b/apps/examples/usbserial/Makefile
@@ -61,7 +61,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/usbserial/Makefile.host b/apps/examples/usbserial/Makefile.host
index a98ed8d5f..2dbaa7e92 100644
--- a/apps/examples/usbserial/Makefile.host
+++ b/apps/examples/usbserial/Makefile.host
@@ -33,7 +33,7 @@
#
############################################################################
-# TOPDIR must be defined on the make command line
+# TOPDIR must be defined on the make command line
-include $(TOPDIR)/Make.defs
diff --git a/apps/examples/usbterm/Makefile b/apps/examples/usbterm/Makefile
index bf27558c5..84608f586 100644
--- a/apps/examples/usbterm/Makefile
+++ b/apps/examples/usbterm/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/usbterm/usbterm_main.c b/apps/examples/usbterm/usbterm_main.c
index a3f6f03e0..4d25ad1ce 100644
--- a/apps/examples/usbterm/usbterm_main.c
+++ b/apps/examples/usbterm/usbterm_main.c
@@ -285,7 +285,7 @@ int usbterm_main(int argc, char *argv[])
/* Start the USB term listener thread */
message("usbterm_main: Starting the listener thread\n");
-
+
ret = pthread_attr_init(&attr);
if (ret != OK)
{
diff --git a/apps/examples/watchdog/Makefile b/apps/examples/watchdog/Makefile
index 076272fe3..f6b80652b 100644
--- a/apps/examples/watchdog/Makefile
+++ b/apps/examples/watchdog/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/wget/Makefile b/apps/examples/wget/Makefile
index 3e5f5d63d..5e6c1480c 100644
--- a/apps/examples/wget/Makefile
+++ b/apps/examples/wget/Makefile
@@ -62,7 +62,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/wget/target.c b/apps/examples/wget/target.c
index 9a1de83b3..62bb08978 100644
--- a/apps/examples/wget/target.c
+++ b/apps/examples/wget/target.c
@@ -36,7 +36,7 @@
/****************************************************************************
* Included Files
****************************************************************************/
-
+
#include <nuttx/config.h>
#include <stdint.h>
@@ -144,7 +144,7 @@ int wget_main(int argc, char *argv[])
uip_setnetmask("eth0", &addr);
/* Then start the server */
-
+
wget(CONFIG_EXAMPLES_WGET_URL, g_iobuffer, 512, callback, NULL);
return 0;
}
diff --git a/apps/examples/wgetjson/Makefile b/apps/examples/wgetjson/Makefile
index 89cb3e11e..f40d86ba9 100644
--- a/apps/examples/wgetjson/Makefile
+++ b/apps/examples/wgetjson/Makefile
@@ -68,7 +68,7 @@ STACKSIZE = 2048
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: context clean depend distclean
diff --git a/apps/examples/wgetjson/webserver/wgetjson/json_cmd.php b/apps/examples/wgetjson/webserver/wgetjson/json_cmd.php
index 2b66ff18f..458c910a4 100644
--- a/apps/examples/wgetjson/webserver/wgetjson/json_cmd.php
+++ b/apps/examples/wgetjson/webserver/wgetjson/json_cmd.php
@@ -1,13 +1,13 @@
-<?php
-/*
-$json = "{\n\"name\": \"Jack (\\\"Bee\\\") Nimble\", \n\"format\": {\"type\": \"rect\", \n\"width\": 1920, \n\"height\": 1080, \n\"interlace\": false,\"frame rate\": 24\n}\n}";
-*/
-$ja["name"] = "Jack (\"Bee\") Nimble";
-$ja["format"]["type"] = "rect";
-$ja["format"]["width"] = 1920;
-$ja["format"]["height"] = 1080;
-$ja["format"]["interlace"] = false;
-$ja["format"]["frame rate"] = 24;
-
-echo json_encode($ja);
+<?php
+/*
+$json = "{\n\"name\": \"Jack (\\\"Bee\\\") Nimble\", \n\"format\": {\"type\": \"rect\", \n\"width\": 1920, \n\"height\": 1080, \n\"interlace\": false,\"frame rate\": 24\n}\n}";
+*/
+$ja["name"] = "Jack (\"Bee\") Nimble";
+$ja["format"]["type"] = "rect";
+$ja["format"]["width"] = 1920;
+$ja["format"]["height"] = 1080;
+$ja["format"]["interlace"] = false;
+$ja["format"]["frame rate"] = 24;
+
+echo json_encode($ja);
?> \ No newline at end of file
diff --git a/apps/examples/xmlrpc/Makefile b/apps/examples/xmlrpc/Makefile
index b103fd7ed..305e94285 100644
--- a/apps/examples/xmlrpc/Makefile
+++ b/apps/examples/xmlrpc/Makefile
@@ -69,7 +69,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/xmlrpc/calls.c b/apps/examples/xmlrpc/calls.c
index bda164f4d..d839404b5 100644
--- a/apps/examples/xmlrpc/calls.c
+++ b/apps/examples/xmlrpc/calls.c
@@ -1,6 +1,6 @@
/****************************************************************************
* apps/examples/xmlrpc/calls.c
- *
+ *
* Copyright (C) 2012 Max Holtzberg. All rights reserved.
* Author: Max Holtzberg <mh@uvc.de>
*
@@ -9,34 +9,34 @@
* an-embeddable-lightweight-xml-rpc-server/184405364
*
* Copyright (c) 2002 Cogito LLC. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, is hereby granted without fee provided
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, is hereby granted without fee provided
* that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above
- * copyright notice, this list of conditions and the
+ *
+ * 1. Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
* following disclaimer.
* 2. Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the
- * following disclaimer in the documentation and/or other
+ * copyright notice, this list of conditions and the
+ * following disclaimer in the documentation and/or other
* materials provided with the distribution.
- * 3. Neither the name of Cogito LLC nor the names of its
- * contributors may be used to endorse or promote products
- * derived from this software without specific prior
+ * 3. Neither the name of Cogito LLC nor the names of its
+ * contributors may be used to endorse or promote products
+ * derived from this software without specific prior
* written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS'
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ *
+ * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS'
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC
+ * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
****************************************************************************/
diff --git a/apps/examples/xmlrpc/xmlrpc_main.c b/apps/examples/xmlrpc/xmlrpc_main.c
index 6c3ddfc24..d28d6eae6 100644
--- a/apps/examples/xmlrpc/xmlrpc_main.c
+++ b/apps/examples/xmlrpc/xmlrpc_main.c
@@ -1,6 +1,6 @@
/****************************************************************************
* apps/examples/xmlrpc/xmlrpc_main.c
- *
+ *
* Copyright (C) 2012 Max Holtzberg. All rights reserved.
* Author: Max Holtzberg <mh@uvc.de>
*
@@ -9,34 +9,34 @@
* an-embeddable-lightweight-xml-rpc-server/184405364
*
* Copyright (c) 2002 Cogito LLC. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, is hereby granted without fee provided
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, is hereby granted without fee provided
* that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above
- * copyright notice, this list of conditions and the
+ *
+ * 1. Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
* following disclaimer.
* 2. Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the
- * following disclaimer in the documentation and/or other
+ * copyright notice, this list of conditions and the
+ * following disclaimer in the documentation and/or other
* materials provided with the distribution.
- * 3. Neither the name of Cogito LLC nor the names of its
- * contributors may be used to endorse or promote products
- * derived from this software without specific prior
+ * 3. Neither the name of Cogito LLC nor the names of its
+ * contributors may be used to endorse or promote products
+ * derived from this software without specific prior
* written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS'
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ *
+ * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS'
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC
+ * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
****************************************************************************/