You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/11/28 11:20:19 UTC

[incubator-nuttx-apps] branch master updated (d64929d -> fe91567)

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git.


    from d64929d  Fix nxstyle warning
     new b5692d80 style/code: remove unnecessary trailing whitespace
     new fe91567  style/Document: remove unnecessary trailing whitespace

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 DISCLAIMER-WIP                          |  22 +-
 LICENSE                                 |  20 +-
 Makefile                                |   4 +-
 README.md                               |   8 +-
 canutils/candump/candump.c              |  18 +-
 canutils/cansend/cansend.c              |   2 +-
 canutils/libcanutils/lib.h              |   4 +-
 examples/README.md                      |   6 +-
 examples/elf/tests/helloxx/hello++5.cpp | 594 ++++++++++++++++----------------
 examples/hdc1008_demo/Kconfig           |   2 +-
 examples/json/README.md                 |  20 +-
 graphics/pdcurs34/pdcurses/README.md    |   2 +-
 nshlib/README.md                        |  60 ++--
 system/trace/README.md                  |   8 +-
 system/usbmsc/README.md                 |   4 +-
 wireless/bluetooth/nimble/Kconfig       |   2 +-
 wireless/bluetooth/nimble/Makefile      |   4 +-
 wireless/bluetooth/nimble/README.md     |   4 +-
 18 files changed, 392 insertions(+), 392 deletions(-)


[incubator-nuttx-apps] 01/02: style/code: remove unnecessary trailing whitespace

Posted by ag...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit b5692d803421b2b3b64d534043f9b0fd5dedbdf6
Author: chao.an <an...@xiaomi.com>
AuthorDate: Sat Nov 28 14:58:55 2020 +0800

    style/code: remove unnecessary trailing whitespace
    
    N/A
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 Makefile                                |   4 +-
 canutils/candump/candump.c              |  18 +-
 canutils/cansend/cansend.c              |   2 +-
 canutils/libcanutils/lib.h              |   4 +-
 examples/elf/tests/helloxx/hello++5.cpp | 594 ++++++++++++++++----------------
 examples/hdc1008_demo/Kconfig           |   2 +-
 wireless/bluetooth/nimble/Kconfig       |   2 +-
 wireless/bluetooth/nimble/Makefile      |   4 +-
 8 files changed, 315 insertions(+), 315 deletions(-)

diff --git a/Makefile b/Makefile
index f8225f0..1df35d3 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ SYMTABOBJ = $(SYMTABSRC:.c=$(OBJEXT))
 all:
 	$(RM) $(BIN)
 	$(MAKE) $(BIN)
-  
+
 .PHONY: import install dirlinks export .depdirs preconfig depend clean distclean
 .PHONY: context clean_context context_all register register_all
 .PRECIOUS: $(BIN)
@@ -106,7 +106,7 @@ $(SYMTABSRC): $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all)
 	$(Q) for app in ${CONFIGURED_APPS}; do \
 		$(MAKE) -C "$${app}" archive ; \
 	done
-	$(Q) $(MAKE) install 
+	$(Q) $(MAKE) install
 	$(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) >$@.tmp
 	$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
 
diff --git a/canutils/candump/candump.c b/canutils/candump/candump.c
index a166356..5bea919 100644
--- a/canutils/candump/candump.c
+++ b/canutils/candump/candump.c
@@ -104,7 +104,7 @@ static __u32 dropcnt[MAXSOCK];
 static __u32 last_dropcnt[MAXSOCK];
 static char devname[MAXIFNAMES][IFNAMSIZ+1];
 static int  dindex[MAXIFNAMES];
-static int  max_devname_len; /* to prevent frazzled device name output */ 
+static int  max_devname_len; /* to prevent frazzled device name output */
 const int canfd_on = 1;
 
 #define MAXANI 4
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
 	struct timeval timeout, timeout_config = { 0, 0 }, *timeout_current = NULL;
 	FILE *logfile = NULL;
 
-#if 0 /* NuttX doesn't support these signals */   
+#if 0 /* NuttX doesn't support these signals */
 	signal(SIGTERM, sigterm);
 	signal(SIGHUP, sigterm);
 #endif
@@ -360,7 +360,7 @@ int main(int argc, char **argv)
 		print_usage(basename(argv[0]));
 		exit(0);
 	}
-	
+
 	if (logfrmt && view) {
 		fprintf(stderr, "Log file format selected: Please disable ASCII/BINARY/SWAP options!\n");
 		exit(0);
@@ -458,14 +458,14 @@ int main(int argc, char **argv)
 				nptr = strchr(ptr, ','); /* update exit condition */
 
 				if (sscanf(ptr, "%" SCNx32 ":%" SCNx32,
-					   &rfilter[numfilter].can_id, 
+					   &rfilter[numfilter].can_id,
 					   &rfilter[numfilter].can_mask) == 2) {
  					rfilter[numfilter].can_mask &= ~CAN_ERR_FLAG;
 					if (*(ptr+8) == ':')
 						rfilter[numfilter].can_id |= CAN_EFF_FLAG;
 					numfilter++;
 				} else if (sscanf(ptr, "%" SCNx32 "~%" SCNx32,
-						  &rfilter[numfilter].can_id, 
+						  &rfilter[numfilter].can_id,
 						  &rfilter[numfilter].can_mask) == 2) {
  					rfilter[numfilter].can_id |= CAN_INV_FILTER;
  					rfilter[numfilter].can_mask &= ~CAN_ERR_FLAG;
@@ -635,7 +635,7 @@ int main(int argc, char **argv)
 				/* these settings may be modified by recvmsg() */
 				iov.iov_len = sizeof(frame);
 				msg.msg_namelen = sizeof(addr);
-				msg.msg_controllen = sizeof(ctrlmsg);  
+				msg.msg_controllen = sizeof(ctrlmsg);
 				msg.msg_flags = 0;
 
 				nbytes = recvmsg(s[i], &msg, 0);
@@ -661,7 +661,7 @@ int main(int argc, char **argv)
 
 				if (count && (--count == 0))
 					running = 0;
-		    
+
 				for (cmsg = CMSG_FIRSTHDR(&msg);
 				     cmsg && (cmsg->cmsg_level == SOL_SOCKET);
 				     cmsg = CMSG_NXTHDR(&msg,cmsg)) {
@@ -732,7 +732,7 @@ int main(int argc, char **argv)
 					}
 					goto out_fflush; /* no other output to stdout */
 				}
-		      
+
 				printf(" %s", (color>2)?col_on[idx%MAXCOL]:"");
 
 				switch (timestamp) {
@@ -768,7 +768,7 @@ int main(int argc, char **argv)
 						diff.tv_sec = diff.tv_usec = 0;
 					printf("(%03ju.%06ld) ",
 						   (uintmax_t)diff.tv_sec, diff.tv_usec);
-				
+
 					if (timestamp == 'd')
 						last_tv = tv; /* update for delta calculation */
 				}
diff --git a/canutils/cansend/cansend.c b/canutils/cansend/cansend.c
index 0a8e677..a629a4a 100644
--- a/canutils/cansend/cansend.c
+++ b/canutils/cansend/cansend.c
@@ -81,7 +81,7 @@ void print_usage_send(char *prg)
 
 int main(int argc, char **argv)
 {
-	int s; /* can raw socket */ 
+	int s; /* can raw socket */
 	int required_mtu;
 	int mtu;
 	int enable_canfd = 1;
diff --git a/canutils/libcanutils/lib.h b/canutils/libcanutils/lib.h
index 24fd41e..97db405 100644
--- a/canutils/libcanutils/lib.h
+++ b/canutils/libcanutils/lib.h
@@ -48,8 +48,8 @@
 #include <stdio.h>
 
 /* Compatibility for NuttX */
-typedef uint8_t __u8; 
-typedef uint32_t __u32; 
+typedef uint8_t __u8;
+typedef uint32_t __u32;
 
 /* buffer sizes for CAN frame string representations */
 
diff --git a/examples/elf/tests/helloxx/hello++5.cpp b/examples/elf/tests/helloxx/hello++5.cpp
index 165ac4c..db6cd69 100644
--- a/examples/elf/tests/helloxx/hello++5.cpp
+++ b/examples/elf/tests/helloxx/hello++5.cpp
@@ -1,297 +1,297 @@
-/////////////////////////////////////////////////////////////////////////////
-// examples/elf/tests/helloxx/hello++5.c
-//
-//   Copyright (C) 2015 Gregory Nutt. All rights reserved.
-//   Author: Gregory Nutt <gn...@nuttx.org>
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-//
-// 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 materials provided with the
-//    distribution.
-// 3. Neither the name NuttX 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 THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-// INCIDENTAL, SPECIAL, EXEMPLARY, 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.
-//
-/////////////////////////////////////////////////////////////////////////////
-//
-// This is an excessively complex version of "Hello, World" design to
-// illustrate some basic properties of C++:
-//
-// - Building a C++ program
-// - Streams / statically linked libstdc++
-// - Static constructor and destructors (in main program only)
-// - Exception handling
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/////////////////////////////////////////////////////////////////////////////
-// Included Files
-/////////////////////////////////////////////////////////////////////////////
-
-#include <cstdio>
-#include <iostream>
-#include <string>
-
-#ifndef NULL
-# define NULL ((void*)0L)
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// Private Classes
-/////////////////////////////////////////////////////////////////////////////
-
-using namespace std;
-
-// A hello world sayer class
-
-class CThingSayer
-{
-  const char *szWhatToSay;
-public:
-  CThingSayer(void);
-  virtual ~CThingSayer(void);
-  virtual void Initialize(const char *czSayThis);
-  virtual void SayThing(void);
-  virtual void ThrowThing(void);
-  virtual void ThrowMyThing(const char *czSayThis);
-};
-
-class MyException: public std::exception
-{
-  std::string reason;
-
-public:
-  virtual ~MyException() throw();
-  MyException();
-  MyException(std::string r);
-
-  virtual const char *what() const throw();
-};
-
-/////////////////////////////////////////////////////////////////////////////
-// Private Data
-/////////////////////////////////////////////////////////////////////////////
-
-// A static instance of the CThingSayer class.  This instance MUST
-// be constructed by the system BEFORE the program is started at
-// main() and must be destructed by the system AFTER the main()
-// returns to the system
-
-static CThingSayer MyThingSayer;
-
-/////////////////////////////////////////////////////////////////////////////
-// MyException Method Implementations
-/////////////////////////////////////////////////////////////////////////////
-
-MyException::MyException(std::string r = NULL) : reason(r)
-{
-  if( r.length() > 0 )
-    {
-      cout << "MyException(" << r << "):  constructing with reason." << endl;
-    }
-  else
-    {
-      cout << "MyException():  constructing." << endl;
-    }
-}
-
-MyException::~MyException() throw()
-{
-  cout << "~MyException():  destructing." << endl;
-}
-
-const char *MyException::what() const throw()
-{
-  return reason.c_str();
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CThingSayer Method Implementations
-/////////////////////////////////////////////////////////////////////////////
-
-// These are implementations of the methods of the CThingSayer class
-
-CThingSayer::CThingSayer(void)
-{
-  cout << "CThingSayer::CThingSayer: I am!" << endl;
-  szWhatToSay = (const char*)NULL;
-}
-
-CThingSayer::~CThingSayer(void)
-{
-  cout << "CThingSayer::~CThingSayer: I cease to be" << endl;
-  if (szWhatToSay)
-    {
-      cout << "CThingSayer::~CThingSayer: I will never say '"
-     << szWhatToSay << "' again" << endl;
-    }
-  szWhatToSay = (const char*)NULL;
-}
-
-void CThingSayer::Initialize(const char *czSayThis)
-{
-  cout << "CThingSayer::Initialize: When told, I will say '"
-       << czSayThis << "'" << endl;
-  szWhatToSay = czSayThis;
-}
-
-void CThingSayer::SayThing(void)
-{
-  cout << "CThingSayer::SayThing: I am now saying '"
-       << szWhatToSay << "'" << endl;
-}
-
-void CThingSayer::ThrowThing(void)
-{
-  cout << "CThingSayer::ThrowThing: I am now throwing an exception." << endl;
-  throw exception();
-}
-
-void CThingSayer::ThrowMyThing(const char *czSayThis = NULL)
-{
-  cout << "CThingSayer::ThrowMyThing: I am now throwing an MyException (with reason)." << endl;
-  throw MyException( string(czSayThis) );
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// Public Functions
-/////////////////////////////////////////////////////////////////////////////
-
-int main(int argc, char **argv)
-{
-  // We should see the message from constructor, CThingSayer::CThingSayer(),
-  // BEFORE we see the following messages.  That is proof that the
-  // C++ static initializer is working
-
-  cout << "main: Started" << endl;
-
-  // Tell MyThingSayer that "Hello, World!" is the string to be said
-
-  cout << "main: Calling MyThingSayer.Initialize" << endl;
-  MyThingSayer.Initialize("Hello, World!");
-
-  // Tell MyThingSayer to say the thing we told it to say
-
-  cout << "main: Calling MyThingSayer.SayThing" << endl;
-  MyThingSayer.SayThing();
-
-  // Test Static object throwing std::exception located in flash
-
-  try
-    {
-      cout << "main: Calling MyThingSayer.ThrowThing (and catching it)" << endl;
-      MyThingSayer.ThrowThing();
-    }
-
-  catch (const exception& e)
-    {
-      cout << "main: Caught exception: " << e.what() << endl;
-    }
-
-  // Test Static object throwing MyException shipped in the ELF and located in RAM.
-
-  try
-    {
-      cout << "main: Calling MyThingSayer.ThrowMyThing (and catching it)" << endl;
-      MyThingSayer.ThrowMyThing();
-    }
-
-  catch (const MyException& e)
-    {
-      cout << "main: Caught MyException: " << e.what() << endl;
-    }
-
-  // Testing with a local object
-
-  CThingSayer localMyThingSayer;
-
-  cout << "main: Calling localMyThingSayer.Initialize" << endl;
-  localMyThingSayer.Initialize("Repeat in heap.");
-  cout << "main: Calling localMyThingSayer.SayThing" << endl;
-  localMyThingSayer.SayThing();
-
-  // Test local object throwing std::exception located in flash
-
-  try
-    {
-      cout << "main: Calling localMyThingSayer.ThrowThing (and catching it)" << endl;
-      localMyThingSayer.ThrowThing();
-    }
-
-  catch (const exception& e)
-    {
-      cout << "main: Caught exception: " << e.what() << endl;
-    }
-
-  catch (const MyException& e)
-    {
-      cout << "main: Caught MyException: " << e.what() << endl;
-    }
-
-  // Test local object throwing MyException shipped in the ELF and located in RAM.
-  // Also testing the action record selection logic trying different sorting of the
-  // catch clauses
-
-  try
-    {
-      cout << "main: Calling localMyThingSayer.ThrowMyThing (and catching it)" << endl;
-      localMyThingSayer.ThrowMyThing();
-    }
-
-  catch (const exception& e)
-    {
-      cout << "main: Caught exception: " << e.what() << endl;
-    }
-
-  catch (const MyException& e)
-    {
-      cout << "main: Caught MyException: " << e.what() << endl;
-    }
-
-  // AGAING: Test local object throwing MyException shipped in the ELF and located in RAM.
-  // Also testing the action record selection logic trying different sorting of the
-  // catch clauses
-
-  try
-    {
-      cout << "main: Calling localMyThingSayer.ThrowMyThing (and catching it)" << endl;
-      localMyThingSayer.ThrowMyThing("Custom Reason.");
-    }
-
-  catch (const MyException& e)
-    {
-      cout << "main: Caught MyException: " << e.what() << endl;
-    }
-
-  catch (const exception& e)
-    {
-      cout << "main: Caught exception: " << e.what() << endl;
-    }
-
-  // We are finished, return.  We should see the message from the
-  // destructor, CThingSayer::~CThingSayer(), AFTER we see the following
-  // message.  That is proof that the C++ static destructor logic
-  // is working
-
-  cout << "main: Returning" << endl;
-  return 0;
-}
+/////////////////////////////////////////////////////////////////////////////
+// examples/elf/tests/helloxx/hello++5.c
+//
+//   Copyright (C) 2015 Gregory Nutt. All rights reserved.
+//   Author: Gregory Nutt <gn...@nuttx.org>
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions
+// are met:
+//
+// 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 materials provided with the
+//    distribution.
+// 3. Neither the name NuttX 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 THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+// INCIDENTAL, SPECIAL, EXEMPLARY, 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.
+//
+/////////////////////////////////////////////////////////////////////////////
+//
+// This is an excessively complex version of "Hello, World" design to
+// illustrate some basic properties of C++:
+//
+// - Building a C++ program
+// - Streams / statically linked libstdc++
+// - Static constructor and destructors (in main program only)
+// - Exception handling
+//
+/////////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////////
+// Included Files
+/////////////////////////////////////////////////////////////////////////////
+
+#include <cstdio>
+#include <iostream>
+#include <string>
+
+#ifndef NULL
+# define NULL ((void*)0L)
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+// Private Classes
+/////////////////////////////////////////////////////////////////////////////
+
+using namespace std;
+
+// A hello world sayer class
+
+class CThingSayer
+{
+  const char *szWhatToSay;
+public:
+  CThingSayer(void);
+  virtual ~CThingSayer(void);
+  virtual void Initialize(const char *czSayThis);
+  virtual void SayThing(void);
+  virtual void ThrowThing(void);
+  virtual void ThrowMyThing(const char *czSayThis);
+};
+
+class MyException: public std::exception
+{
+  std::string reason;
+
+public:
+  virtual ~MyException() throw();
+  MyException();
+  MyException(std::string r);
+
+  virtual const char *what() const throw();
+};
+
+/////////////////////////////////////////////////////////////////////////////
+// Private Data
+/////////////////////////////////////////////////////////////////////////////
+
+// A static instance of the CThingSayer class.  This instance MUST
+// be constructed by the system BEFORE the program is started at
+// main() and must be destructed by the system AFTER the main()
+// returns to the system
+
+static CThingSayer MyThingSayer;
+
+/////////////////////////////////////////////////////////////////////////////
+// MyException Method Implementations
+/////////////////////////////////////////////////////////////////////////////
+
+MyException::MyException(std::string r = NULL) : reason(r)
+{
+  if( r.length() > 0 )
+    {
+      cout << "MyException(" << r << "):  constructing with reason." << endl;
+    }
+  else
+    {
+      cout << "MyException():  constructing." << endl;
+    }
+}
+
+MyException::~MyException() throw()
+{
+  cout << "~MyException():  destructing." << endl;
+}
+
+const char *MyException::what() const throw()
+{
+  return reason.c_str();
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// CThingSayer Method Implementations
+/////////////////////////////////////////////////////////////////////////////
+
+// These are implementations of the methods of the CThingSayer class
+
+CThingSayer::CThingSayer(void)
+{
+  cout << "CThingSayer::CThingSayer: I am!" << endl;
+  szWhatToSay = (const char*)NULL;
+}
+
+CThingSayer::~CThingSayer(void)
+{
+  cout << "CThingSayer::~CThingSayer: I cease to be" << endl;
+  if (szWhatToSay)
+    {
+      cout << "CThingSayer::~CThingSayer: I will never say '"
+     << szWhatToSay << "' again" << endl;
+    }
+  szWhatToSay = (const char*)NULL;
+}
+
+void CThingSayer::Initialize(const char *czSayThis)
+{
+  cout << "CThingSayer::Initialize: When told, I will say '"
+       << czSayThis << "'" << endl;
+  szWhatToSay = czSayThis;
+}
+
+void CThingSayer::SayThing(void)
+{
+  cout << "CThingSayer::SayThing: I am now saying '"
+       << szWhatToSay << "'" << endl;
+}
+
+void CThingSayer::ThrowThing(void)
+{
+  cout << "CThingSayer::ThrowThing: I am now throwing an exception." << endl;
+  throw exception();
+}
+
+void CThingSayer::ThrowMyThing(const char *czSayThis = NULL)
+{
+  cout << "CThingSayer::ThrowMyThing: I am now throwing an MyException (with reason)." << endl;
+  throw MyException( string(czSayThis) );
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// Public Functions
+/////////////////////////////////////////////////////////////////////////////
+
+int main(int argc, char **argv)
+{
+  // We should see the message from constructor, CThingSayer::CThingSayer(),
+  // BEFORE we see the following messages.  That is proof that the
+  // C++ static initializer is working
+
+  cout << "main: Started" << endl;
+
+  // Tell MyThingSayer that "Hello, World!" is the string to be said
+
+  cout << "main: Calling MyThingSayer.Initialize" << endl;
+  MyThingSayer.Initialize("Hello, World!");
+
+  // Tell MyThingSayer to say the thing we told it to say
+
+  cout << "main: Calling MyThingSayer.SayThing" << endl;
+  MyThingSayer.SayThing();
+
+  // Test Static object throwing std::exception located in flash
+
+  try
+    {
+      cout << "main: Calling MyThingSayer.ThrowThing (and catching it)" << endl;
+      MyThingSayer.ThrowThing();
+    }
+
+  catch (const exception& e)
+    {
+      cout << "main: Caught exception: " << e.what() << endl;
+    }
+
+  // Test Static object throwing MyException shipped in the ELF and located in RAM.
+
+  try
+    {
+      cout << "main: Calling MyThingSayer.ThrowMyThing (and catching it)" << endl;
+      MyThingSayer.ThrowMyThing();
+    }
+
+  catch (const MyException& e)
+    {
+      cout << "main: Caught MyException: " << e.what() << endl;
+    }
+
+  // Testing with a local object
+
+  CThingSayer localMyThingSayer;
+
+  cout << "main: Calling localMyThingSayer.Initialize" << endl;
+  localMyThingSayer.Initialize("Repeat in heap.");
+  cout << "main: Calling localMyThingSayer.SayThing" << endl;
+  localMyThingSayer.SayThing();
+
+  // Test local object throwing std::exception located in flash
+
+  try
+    {
+      cout << "main: Calling localMyThingSayer.ThrowThing (and catching it)" << endl;
+      localMyThingSayer.ThrowThing();
+    }
+
+  catch (const exception& e)
+    {
+      cout << "main: Caught exception: " << e.what() << endl;
+    }
+
+  catch (const MyException& e)
+    {
+      cout << "main: Caught MyException: " << e.what() << endl;
+    }
+
+  // Test local object throwing MyException shipped in the ELF and located in RAM.
+  // Also testing the action record selection logic trying different sorting of the
+  // catch clauses
+
+  try
+    {
+      cout << "main: Calling localMyThingSayer.ThrowMyThing (and catching it)" << endl;
+      localMyThingSayer.ThrowMyThing();
+    }
+
+  catch (const exception& e)
+    {
+      cout << "main: Caught exception: " << e.what() << endl;
+    }
+
+  catch (const MyException& e)
+    {
+      cout << "main: Caught MyException: " << e.what() << endl;
+    }
+
+  // AGAING: Test local object throwing MyException shipped in the ELF and located in RAM.
+  // Also testing the action record selection logic trying different sorting of the
+  // catch clauses
+
+  try
+    {
+      cout << "main: Calling localMyThingSayer.ThrowMyThing (and catching it)" << endl;
+      localMyThingSayer.ThrowMyThing("Custom Reason.");
+    }
+
+  catch (const MyException& e)
+    {
+      cout << "main: Caught MyException: " << e.what() << endl;
+    }
+
+  catch (const exception& e)
+    {
+      cout << "main: Caught exception: " << e.what() << endl;
+    }
+
+  // We are finished, return.  We should see the message from the
+  // destructor, CThingSayer::~CThingSayer(), AFTER we see the following
+  // message.  That is proof that the C++ static destructor logic
+  // is working
+
+  cout << "main: Returning" << endl;
+  return 0;
+}
diff --git a/examples/hdc1008_demo/Kconfig b/examples/hdc1008_demo/Kconfig
index fbf736f..a52b254 100644
--- a/examples/hdc1008_demo/Kconfig
+++ b/examples/hdc1008_demo/Kconfig
@@ -7,5 +7,5 @@ config EXAMPLES_HDC1008
 	tristate "HDC1008 driver example"
 	default n
 	---help---
-		Enable the example application 
+		Enable the example application
 
diff --git a/wireless/bluetooth/nimble/Kconfig b/wireless/bluetooth/nimble/Kconfig
index 1ace6b5..f8a7f99 100644
--- a/wireless/bluetooth/nimble/Kconfig
+++ b/wireless/bluetooth/nimble/Kconfig
@@ -4,7 +4,7 @@ config NIMBLE
   depends on !WIRELESS_BLUETOOTH_HOST
   ---help---
     Enable Apache nimBLE Bluetooth Low Energy
-    host-layer stack. 
+    host-layer stack.
 
 if NIMBLE
   config NIMBLE_REF
diff --git a/wireless/bluetooth/nimble/Makefile b/wireless/bluetooth/nimble/Makefile
index 1edef9b..56443ad 100644
--- a/wireless/bluetooth/nimble/Makefile
+++ b/wireless/bluetooth/nimble/Makefile
@@ -35,7 +35,7 @@ $(NIMBLE_TAR):
 
 $(NIMBLE_ROOT): $(NIMBLE_TAR)
 	tar zxf $(NIMBLE_TAR)
-	mv mynewt-nimble-$(CONFIG_NIMBLE_REF) mynewt-nimble 
+	mv mynewt-nimble-$(CONFIG_NIMBLE_REF) mynewt-nimble
 
 context:: $(NIMBLE_ROOT)
 
@@ -43,5 +43,5 @@ distclean::
 	$(call CLEAN,$(NIMBLE_TAR))
 	$(call DELDIR,$(NIMBLE_ROOT))
 
-           
+
 include $(APPDIR)/Application.mk


[incubator-nuttx-apps] 02/02: style/Document: remove unnecessary trailing whitespace

Posted by ag...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit fe915679b13d62e6b41ab18d6927ac1cbabf28a2
Author: chao.an <an...@xiaomi.com>
AuthorDate: Sat Nov 28 14:59:22 2020 +0800

    style/Document: remove unnecessary trailing whitespace
    
    N/A
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 DISCLAIMER-WIP                       | 22 ++++++-------
 LICENSE                              | 20 ++++++------
 README.md                            |  8 ++---
 examples/README.md                   |  6 ++--
 examples/json/README.md              | 20 ++++++------
 graphics/pdcurs34/pdcurses/README.md |  2 +-
 nshlib/README.md                     | 60 ++++++++++++++++++------------------
 system/trace/README.md               |  8 ++---
 system/usbmsc/README.md              |  4 +--
 wireless/bluetooth/nimble/README.md  |  4 +--
 10 files changed, 77 insertions(+), 77 deletions(-)

diff --git a/DISCLAIMER-WIP b/DISCLAIMER-WIP
index 102e9ea..e4eb139 100644
--- a/DISCLAIMER-WIP
+++ b/DISCLAIMER-WIP
@@ -1,20 +1,20 @@
-Apache NuttX is an effort undergoing incubation at The Apache Software Foundation (ASF), 
-sponsored by the Apache Incubator. Incubation is required of all newly accepted projects 
-until a further review indicates that the infrastructure, communications, and decision 
-making process have stabilized in a manner consistent with other successful ASF projects. 
-While incubation status is not necessarily a reflection of the completeness or stability 
+Apache NuttX is an effort undergoing incubation at The Apache Software Foundation (ASF),
+sponsored by the Apache Incubator. Incubation is required of all newly accepted projects
+until a further review indicates that the infrastructure, communications, and decision
+making process have stabilized in a manner consistent with other successful ASF projects.
+While incubation status is not necessarily a reflection of the completeness or stability
 of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
 
-Some of the incubating project's releases may not be fully compliant with ASF policy. For 
-example, releases may have incomplete or un-reviewed licensing conditions. What follows is 
-a list of known issues the project is currently aware of (note that this list, by definition, 
-is likely to be incomplete): 
+Some of the incubating project's releases may not be fully compliant with ASF policy. For
+example, releases may have incomplete or un-reviewed licensing conditions. What follows is
+a list of known issues the project is currently aware of (note that this list, by definition,
+is likely to be incomplete):
 
  * Releases may have incomplete licensing conditions.
  * Some ASF files still have BSD headers.  Most of the top contributors have signed an ICLA and
    we are working on updating the headers and getting approvals from other copyright holders.
 
 If you are planning to incorporate this work into your product/project, please be aware that
-you will need to conduct a thorough licensing review to determine the overall implications of 
-including this work. For the current status of this project through the Apache Incubator 
+you will need to conduct a thorough licensing review to determine the overall implications of
+including this work. For the current status of this project through the Apache Incubator
 visit: https://incubator.apache.org/projects/nuttx.html
diff --git a/LICENSE b/LICENSE
index 104ed4e..688c7d4 100644
--- a/LICENSE
+++ b/LICENSE
@@ -199,7 +199,7 @@
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-   
+
 ------------------------------------------------------------------------------
 
 uIP
@@ -353,24 +353,24 @@ apps/testing/scanftest/scanftest_main.c
   Derives from the cc65 Project which has a zlib license:
 
     Copyright (C) 2005-01-26, Greg King (https://github.com/cc65)
-  
+
     Original License:
     This software is provided 'as-is', without any express or implied warranty.
     In no event will the authors be held liable for any damages arising from
     the use of this software.
-  
+
     Permission is granted to anyone to use this software for any purpose,
     including commercial applications, and to alter it and redistribute it
     freely, subject to the following restrictions:
-  
+
     1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software in
     a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
-  
+
     2. Altered source versions must be plainly marked as such, and must not
     be misrepresented as being the original software.
-  
+
     3. This notice may not be removed or altered from any source distribution.
 
 apps/webserver
@@ -382,11 +382,11 @@ apps/webserver
 
     Copyright (c) 2001, Adam Dunkels.
     All rights reserved.
-   
+
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions
     are met:
-   
+
     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
@@ -398,7 +398,7 @@ apps/webserver
     4. The name of the author may not be used to endorse or promote
     products derived from this software without specific prior
     written permission.
-   
+
     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
     OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -447,7 +447,7 @@ canutils/candump
 
   Includes five dual licensed third part files from Volkswagon with
   licensing as follows (Copyright dates vary from file-to-file):
-  
+
     SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
 
     Copyright (c) 2002-2009 Volkswagen Group Electronic Research
diff --git a/README.md b/README.md
index 5883f4d..202f1ff 100644
--- a/README.md
+++ b/README.md
@@ -162,7 +162,7 @@ project. One must:
 
 Q: Has anyone come up with a tidy way to build NuttX with board- specific pieces
    outside the source tree?
- 
+
 A: Here are three:
 
    1) There is a make target called `make export`. It will build NuttX, then
@@ -226,9 +226,9 @@ A: Here are three:
       You could, for example, create a script called `install.sh` that installs
       a custom application, configuration, and board specific directory:
 
-      a) Copy `MyBoard` directory to `boards/MyBoard`.  
-      b) Add a symbolic link to `MyApplication` at `apps/external`.  
-      c) Configure NuttX, usually by:  
+      a) Copy `MyBoard` directory to `boards/MyBoard`.
+      b) Add a symbolic link to `MyApplication` at `apps/external`.
+      c) Configure NuttX, usually by:
 
       ```bash
       tools/configure.sh MyBoard:MyConfiguration
diff --git a/examples/README.md b/examples/README.md
index 0b11a52..4480644 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -1042,9 +1042,9 @@ the display. This only works for `RGB23` (`888`), `RGB16` (`656`), `RGB8`
 
 How was that run-length encoded image produced?
 
-1. I used GIMP output the image as a `.c` file.  
-2. I added some C logic to palette-ize the RGB image in the GIMP `.c` file.  
-3. Then I add some simple run-length encoding to palette-ized image.  
+1. I used GIMP output the image as a `.c` file.
+2. I added some C logic to palette-ize the RGB image in the GIMP `.c` file.
+3. Then I add some simple run-length encoding to palette-ized image.
 
 But now there is a tool that can be found in the NxWidgets package at
 `NxWidgets/tools/bitmap_converter.py` that can be used to convert any graphics
diff --git a/examples/json/README.md b/examples/json/README.md
index 9e430c7..0d9fcf5 100644
--- a/examples/json/README.md
+++ b/examples/json/README.md
@@ -133,18 +133,18 @@ Hopefully we can agree that's not a lot of code? There's no overhead, no
 unnecessary setup. Look at test.c for a bunch of nice examples, mostly all
 ripped off the json.org site, and a few from elsewhere.
 
-What about manual mode? First up you need some detail.  
-Let's cover how the cJSON objects represent the JSON data.  
-cJSON doesn't distinguish arrays from objects in handling; just type.  
+What about manual mode? First up you need some detail.
+Let's cover how the cJSON objects represent the JSON data.
+cJSON doesn't distinguish arrays from objects in handling; just type.
 Each cJSON has, potentially, a child, siblings, value, a name.
 
-The root object has: Object Type and a Child  
-The Child has name "name", with value "Jack ("Bee") Nimble", and a sibling:  
-Sibling has type Object, name "format", and a child.  
-That child has type String, name "type", value "rect", and a sibling:  
-Sibling has type Number, name "width", value 1920, and a sibling:  
-Sibling has type Number, name "height", value 1080, and a sibling:  
-Sibling hs type False, name "interlace", and a sibling:  
+The root object has: Object Type and a Child
+The Child has name "name", with value "Jack ("Bee") Nimble", and a sibling:
+Sibling has type Object, name "format", and a child.
+That child has type String, name "type", value "rect", and a sibling:
+Sibling has type Number, name "width", value 1920, and a sibling:
+Sibling has type Number, name "height", value 1080, and a sibling:
+Sibling hs type False, name "interlace", and a sibling:
 Sibling has type Number, name "frame rate", value 24
 
 Here's the structure:
diff --git a/graphics/pdcurs34/pdcurses/README.md b/graphics/pdcurs34/pdcurses/README.md
index 2e21711..1b6a214 100644
--- a/graphics/pdcurs34/pdcurses/README.md
+++ b/graphics/pdcurs34/pdcurses/README.md
@@ -13,5 +13,5 @@ The files in this directory are released to the Public Domain.
 
 ## Acknowledgements
 
-The panel library was originally provided by  
+The panel library was originally provided by
 Warren Tucker <wh...@n4hgf.mt-park.ga.us>
diff --git a/nshlib/README.md b/nshlib/README.md
index 8725bbd..4e1c2d4 100644
--- a/nshlib/README.md
+++ b/nshlib/README.md
@@ -246,11 +246,11 @@ The contents of the `/etc` directory are retained in the file
 `include/arch/board/rcS.template`). In order to modify the start-up behavior,
 there are three things to study:
 
-1. Configuration Options. 
+1. Configuration Options.
    The additional `CONFIG_NSH_ROMFSETC` configuration options discussed in the
    final section of this README.
 
-2. `tools/mkromfsimg.sh` Script. 
+2. `tools/mkromfsimg.sh` Script.
    The script `tools/mkromfsimg.sh` creates `nsh_romfsimg.h`. It is not
    automatically executed. If you want to change the configuration settings
    associated with creating and mounting the `/tmp` directory, then it will be
@@ -281,7 +281,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
 
 ## Simple Commands
 
-- `[ <expression> ]`  
+- `[ <expression> ]`
   `test <expression>`
 
    These are two alternative forms of the same command. They support evaluation
@@ -313,8 +313,8 @@ All of the startup-behavior is contained in `rcS.template`. The role of
                     integer -lt integer | integer -ne integer
    ```
 
-- `addroute <target> [<netmask>] <router>`  
-  `addroute default <ipaddr> <interface>`  
+- `addroute <target> [<netmask>] <router>`
+  `addroute default <ipaddr> <interface>`
 
   This command adds an entry in the routing table. The new entry
   will map the IP address of a router on a local network(`<router>`)
@@ -343,17 +343,17 @@ All of the startup-behavior is contained in `rcS.template`. The role of
 
   Access the OS ARP table.
 
-  - `-a <ipaddr>`  
+  - `-a <ipaddr>`
      Will show the hardware address that the IP address `<ipaddr>` is mapped to.
 
-  - `-d <ipaddr>`  
+  - `-d <ipaddr>`
      Will delete the mapping for the IP address `<ipaddr>` from the ARP table.
 
-  - `-s <ipaddr> <hwaddr>`  
+  - `-s <ipaddr> <hwaddr>`
      Will set (or replace) the mapping of the IP address `<ipaddr>` to the
      hardware address `<hwaddr>`.
 
-  - `-t`  
+  - `-t`
      Will dump the entire content of the ARP table. This option is only
      available if `CONFIG_NETLINK_ROUTE` is enabled.
 
@@ -632,10 +632,10 @@ All of the startup-behavior is contained in `rcS.template`. The role of
   Use TFTP to copy the file at `<remote-address>` from the host whose IP
   address is identified by `<ip-address>`. Other options:
 
-  - `-f <local-path>`  
+  - `-f <local-path>`
     The file will be saved relative to the current working directory unless
     `<local-path>` is provided.
-  - `-b|-n`  
+  - `-b|-n`
     Selects either binary (_octet_) or text (_netascii_) transfer mode. Default:
     text.
 
@@ -643,10 +643,10 @@ All of the startup-behavior is contained in `rcS.template`. The role of
 
   Presents summary information about NSH commands to console. Options:
 
-  - `-v`  
+  - `-v`
     Show verbose output will full command usage.
 
-  - `<cmd>`  
+  - `<cmd>`
     Show full command usage only for this command.
 
 - `hexdump <file or device>`
@@ -838,9 +838,9 @@ All of the startup-behavior is contained in `rcS.template`. The role of
 
 - `md5 [-f] <string or filepath>`
 
-- `mb <hex-address>[=<hex-value>][ <hex-byte-count>]`  
-  `mh <hex-address>[=<hex-value>][ <hex-byte-count>]`  
-  `mw <hex-address>[=<hex-value>][ <hex-byte-count>]`  
+- `mb <hex-address>[=<hex-value>][ <hex-byte-count>]`
+  `mh <hex-address>[=<hex-value>][ <hex-byte-count>]`
+  `mw <hex-address>[=<hex-value>][ <hex-byte-count>]`
 
   Access memory using byte size access (`mb`), 16-bit accesses (`mh`),
   or 32-bit access (`mw`). In each case,
@@ -922,7 +922,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
   device driver. NSH provides this command to access the `mkfifo()` NuttX API.
 
   **Example**:
-  
+
   ```
   nsh> ls -l /dev
   /dev:
@@ -971,7 +971,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
   command and mounted using the `mount` command.
 
   **Example**:
-  
+
   ```
   nsh> mkrd 1024
   nsh> mkfatfs /dev/ram0
@@ -1040,7 +1040,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
     /mnt/fs type vfat
   ```
 
-- `mv <old-path> <new-path>`  
+- `mv <old-path> <new-path>`
 
   Rename the file object at `<old-path>` to `<new-path>`. Both paths must
   reside in the same mounted file system.
@@ -1110,11 +1110,11 @@ All of the startup-behavior is contained in `rcS.template`. The role of
   Copy the file at <local-address> to the host whose IP address is
   identified by <ip-address>. Other options:
 
-  - `-f <remote-path>`  
+  - `-f <remote-path>`
     The file will be saved with the same name on the host unless
     unless `<local-path>` is provided.
 
-  - `-b|-n`  
+  - `-b|-n`
      Selects either binary (_octet_) or test (_netascii_) transfer
      mode. Default: text.
 
@@ -1502,7 +1502,7 @@ There are several built-in appliations in the `apps/` repository. No attempt is
 made here to enumerate all of them. But a few of the more common built- in
 applications are listed below.
 
-- `ping [-c <count>] [-i <interval>] <ip-address>`  
+- `ping [-c <count>] [-i <interval>] <ip-address>`
   `ping6 [-c <count>] [-i <interval>] <ip-address>`
 
   Test the network communication with a remote peer. Example:
@@ -1579,7 +1579,7 @@ mkfatfs   | !`CONFIG_DISABLE_MOUNTPOINT` && `CONFIG_FSUTILS_MKFATFS`
 mkfifo    | `CONFIG_PIPES` && `CONFIG_DEV_FIFO_SIZE` > 0
 mkrd      | !`CONFIG_DISABLE_MOUNTPOINT`
 mount     | !`CONFIG_DISABLE_MOUNTPOINT`
-mv        | !`CONFIG_DISABLE_MOUNTPOINT` || !`CONFIG_DISABLE_PSEUDOFS_OPERATIONS` 
+mv        | !`CONFIG_DISABLE_MOUNTPOINT` || !`CONFIG_DISABLE_PSEUDOFS_OPERATIONS`
 nfsmount  | !`CONFIG_DISABLE_MOUNTPOINT` && `CONFIG_NET` && `CONFIG_NFS`
 nslookup  | `CONFIG_LIBC_NETDB` && `CONFIG_NETDB_DNSCLIENT`
 password  | !`CONFIG_DISABLE_MOUNTPOINT` && `CONFIG_NSH_LOGIN_PASSWD`
@@ -1675,7 +1675,7 @@ The behavior of NSH can be modified with the following settings in the
 - `CONFIG_NSH_READLINE` – Selects the minimal implementation of `readline()`.
   This minimal implementation provides on backspace for command line editing.
 
-- `CONFIG_NSH_CLE`  
+- `CONFIG_NSH_CLE`
 
   Selects the more extensive, EMACS-like command line editor. Select this option
   only if (1) you don't mind a modest increase in the FLASH footprint, and (2)
@@ -1703,7 +1703,7 @@ The behavior of NSH can be modified with the following settings in the
   this feature to save a little memory on FLASH challenged platforms. Default:
   `n`
 
-- `CONFIG_NSH_CMDPARMS`  
+- `CONFIG_NSH_CMDPARMS`
 
   If selected, then the output from commands, from file applications, and from
   NSH built-in commands can be used as arguments to other commands. The entity
@@ -1727,7 +1727,7 @@ The behavior of NSH can be modified with the following settings in the
 - `CONFIG_NSH_MAXARGUMENTS` – The maximum number of NSH command arguments.
   Default: `6`
 
-- `CONFIG_NSH_ARGCAT`  
+- `CONFIG_NSH_ARGCAT`
 
   Support concatenation of strings with environment variables or command
   output. For example:
@@ -1743,7 +1743,7 @@ The behavior of NSH can be modified with the following settings in the
   footprint results but then also only simple environment variables like `$FOO`
   can be used on the command line.
 
-- `CONFIG_NSH_VARS`  
+- `CONFIG_NSH_VARS`
 
   By default, there are no internal NSH variables. NSH will use OS environment
   variables for all variable storage. If this option, NSH will also support
@@ -1765,7 +1765,7 @@ The behavior of NSH can be modified with the following settings in the
   `unset <a>`      | Unsets environment var `a`.      | Unsets both environment var and NSH var `a`.
   `export <a> <b>` | Causes an error.                 | Unsets NSH var `a`. Sets environment var `a` to `b`.
   `export <a>`     | Causes an error.                 | Sets environment var `a` to NSH var `b` (or `""`). <br> Unsets local var `a`.
-  `env`            | Lists all environment variables. | Lists all environment variables (only).              
+  `env`            | Lists all environment variables. | Lists all environment variables (only).
 
 - `CONFIG_NSH_QUOTE` – Enables back-slash quoting of certain characters within
   the command. This option is useful for the case where an NSH script is used to
@@ -1816,11 +1816,11 @@ The behavior of NSH can be modified with the following settings in the
   if `CONFIG_USBDEV` is defined, then a USB serial device may, instead, be used
   if the one of the following are defined:
 
-  - `CONFIG_PL2303` and `CONFIG_PL2303_CONSOLE`  
+  - `CONFIG_PL2303` and `CONFIG_PL2303_CONSOLE`
     Sets up the Prolifics PL2303 emulation as a console device at
     `/dev/console`.
 
-  - `CONFIG_CDCACM` and `CONFIG_CDCACM_CONSOLE`  
+  - `CONFIG_CDCACM` and `CONFIG_CDCACM_CONSOLE`
     Sets up the CDC/ACM serial device as a console device at `/dev/console`.
 
   - `CONFIG_NSH_USBCONSOLE` – If defined, then the an arbitrary USB device may
diff --git a/system/trace/README.md b/system/trace/README.md
index cfc2fad..3067cd0 100644
--- a/system/trace/README.md
+++ b/system/trace/README.md
@@ -1,4 +1,4 @@
-System / `trace` Task Tracer
-============================
-
-See https://nuttx.apache.org/docs/latest/guides/tasktraceuser.html
+System / `trace` Task Tracer
+============================
+
+See https://nuttx.apache.org/docs/latest/guides/tasktraceuser.html
diff --git a/system/usbmsc/README.md b/system/usbmsc/README.md
index 6ad4bdc..8d14c1c 100644
--- a/system/usbmsc/README.md
+++ b/system/usbmsc/README.md
@@ -38,11 +38,11 @@ Configuration options:
 - `CONFIG_SYSTEM_USBMSC_DEVPATH1` – The full path to the registered block
   driver. Default is `/dev/mmcsd0`
 
-- `CONFIG_SYSTEM_USBMSC_DEVMINOR2` and `CONFIG_SYSTEM_USBMSC_DEVPATH2`  
+- `CONFIG_SYSTEM_USBMSC_DEVMINOR2` and `CONFIG_SYSTEM_USBMSC_DEVPATH2`
   Similar parameters that would have to be provided if
   `CONFIG_SYSTEM_USBMSC_NLUNS` is `2` or `3`. No defaults.
 
-- `CONFIG_SYSTEM_USBMSC_DEVMINOR3` and `CONFIG_SYSTEM_USBMSC_DEVPATH3`  
+- `CONFIG_SYSTEM_USBMSC_DEVMINOR3` and `CONFIG_SYSTEM_USBMSC_DEVPATH3`
   Similar parameters that would have to be provided if
   `CONFIG_SYSTEM_USBMSC_NLUNS` is `3`. No defaults.
 
diff --git a/wireless/bluetooth/nimble/README.md b/wireless/bluetooth/nimble/README.md
index 70bcc86..46307d9 100644
--- a/wireless/bluetooth/nimble/README.md
+++ b/wireless/bluetooth/nimble/README.md
@@ -54,7 +54,7 @@ you can delete `foo/repos/apache-mynewt-nimble` and simply make a
 link to the `mynewt-nimble` directory, so that you can work on the
 nimBLE code directly.
 
-Now you can make any changes to the `yml` files such as 
+Now you can make any changes to the `yml` files such as
 `porting/targets/nuttx/syscfg.yml`. Finally, you can build with:
 
   $ newt build @apache-mynewt-nimble/porting/targets/nuttx
@@ -67,7 +67,7 @@ the `nuttx` target directory:
   $ cp bin/@apache-mynewt-nimble/porting/targets/nuttx/generated/include/logcfg/logcfg.h \
 	repos/apache-mynewt-nimble/porting/examples/nuttx/include/logcfg
   $ cp bin/@apache-mynewt-nimble/porting/targets/nuttx/generated/include/syscfg/syscfg.h \
-	repos/apache-mynewt-nimble/porting/examples/nuttx/include/syscfg 
+	repos/apache-mynewt-nimble/porting/examples/nuttx/include/syscfg
 
 If these changes are done to fix a problem with NuttX porting layer in nimBLE, you
 should open a pull-request to nimBLE repository to include the updated header files.