• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1NuttX Release Notes
2===================
3
4This file contains are the release notes for the NuttX (and apps) packages
5for every release.  The text is just as was written at the time of release
6(with perhaps some corrected typos).  Over the course of time, NuttX has
7used several different repositories:  CVS, two SVN repositories, and
8currently a GIT repository.  Therefore, revision information specific to an
9older repository may not be meaningful today.
10
11To make it easier to track there older versions in the current GIT
12repository, a GIT lightweight tag has been applied for each release.  The
13tag name is the release name (for example, the release 6.27 has tag name
14"nuttx-6.27").
15
16NuttX-0.1.0
17-----------
18
19This is the initial.  This initial includes the complete NuttX RTOS
20with support for the Linux user mode simulation and the TI TMS320C5471
21(Arm7) processor.  Partial support for the 87C52 is included.
22
23This release has been verified on both the Linux user-mode and C5471
24platforms using the test program under examples/ostest.  Test results
25for the C5471 can be found in arch/c5471/doc/test-results.txt.
26
27This tarball contains a complete CVS snapshot from March 9,2007.
28
29NuttX-0.1.1
30-----------
31
32This is the second release of NuttX.  This release includes the following.
33See the ChangeLog for more detailed description of the changes.
34
35(1) General OS bugfixes (see the ChangeLog for details),
36(2) bugfixes for the TI TMS320C5471 (Arm7) platform (see
37    the ChangeLog)
38(3) Complete support for the 87C52. (However, the 87C52
39    release is not stable enough for general usage).
40(4) Added the beginning of a shell call NuttShell (nsh)
41
42This release has been verified on the Linux user-mode platform, the
43Spectrum Digital TMS320C5471 EVM, and the PJRC 87C52 development board
44using the test program under examples/ostest.
45
46STATUS: The development status remains as ALPHA until further testing
47is performed.
48
49This tarball contains a complete CVS snapshot from March 14, 2007.
50
51NuttX-0.1.2
52-----------
53
54This is the third release of NuttX.  This release is
55primarily a bugfix release with minimal new features.  See
56the ChangeLog for a more detailed description of the
57changes.
58
59(1) Several important OS and ARM7 bugfixes,
60(2) opendir(), closedir(), readdir(), etc. added
61(3) Added C5471 watchdog timer.
62(4) Created a shareable, serial driver.
63(5) Added 'ls' command to NuttShell (nsh)
64(6) Added a test of the round robin scheduler
65
66This release has been verified on the Linux user-mode
67platform, the  Spectrum Digital TMS320C5471 EVM using the
68test program under examples/ostest.
69
70This tarball contains a CVS snapshot from March 19, 2007.
71
72NuttX-0.2.1
73-----------
74
75This is the fourth release of NuttX.  This release adds adds
76support for a new platform, restructures many header files,
77and adds a few new features:
78
79(1) Support for Neuros OSD / DM320
80(2) Restructuring of header files for better POSIX compliance
81(3) Added kill()
82(4) Added POSIX timers
83(5) bugfixes and documentation updates
84
85This release has been verified on the Linux user-mode
86platform, the  Spectrum Digital TMS320C5471 EVM, and the
87Neuros OSD  using the test program under examples/ostest.  Because
88of the stability of these tests, the project status
89has been upgraded to 'beta.'
90
91This tarball contains a complete CVS snapshot from March 22, 2007.
92
93NuttX-0.2.2
94------------
95
96This is the fifth release of NuttX.  There is no major new
97functionality in this release.  This release adds support
98for new pthread barrier APIs, changes the directory
99structure, to better handle different board configurations
100using the same processor architecture, and corrects a few
101defects.
102
103See the ChangeLog for a complete list of changes.
104
105This release has been verified on the Linux user-mode
106platform and the Neuros OSD using the test program under
107examples/ostest.  There are no known, critical defects but
108the project development status remains at 'beta' status
109pending further test and evaluation.
110
111This tarball contains a complete CVS snapshot from
112March 26, 2007.
113
114NuttX-0.2.3
115------------
116
117This is the sixth release of NuttX.  This release is
118primarily a bugfix release.  Numerous problems were fixed
119as detailed in the change log.  New functionality includes
120support for timed message queues.
121
122See the ChangeLog for a complete list of changes.
123
124This release has been verified on the Linux user-mode
125platform and the Neuros OSD using the test program under
126examples/ostest. The results of the testing is available in
127the source tree under configs/ntosd-dm320/doc/test-results.
128There are no known, critical defects but the project
129development status remains at 'beta' status pending further
130test and evaluation.
131
132This tarball contains a complete CVS snapshot from March 29,
1332007.
134
135NuttX-0.2.4
136------------
137
138This is the 7th release of NuttX.  This release is only to roll out
139build changes to better support different SoC's that use the same
140processor architecture.  In particular, the two existing ARM architectures,
141c5471 and DM320 were combined into a single ARM directory.  This was done
142in preparation for an LPC2148 port that is currently in progress.  There
143is NO new functionality or significant bugfixes in this release.
144
145See the ChangeLog for a complete list of changes.
146
147This release has been verified on the Linux user-mode platform
148and the Neuros OSD using the test program under examples/ostest.
149The results of the testing is available in the source tree under
150configs/ntosd-dm320/doc/test-results and under configs/sim/doc/test-results.
151There are no known, critical defects but the project development status
152remains at 'beta' status pending further test and evaluation.
153
154This tarball contains a complete CVS snapshot from April 28, 2007.
155
156NuttX-0.2.5
157------------
158
159This is the 8th release of NuttX.  This release includes:
160
161(1) Several bug fixes
162(2) Initial support for FAT filesystems.  Testing has not
163    been exhaustive and some functionality is missing
164   (mkdir, stat, unlink chmod, and rename functionality is
165    not yet implemented).
166(3) Support for the NXP lpc2148 processor is included but
167    is untested as of this writing.  The current
168    implementation includes only support for serial console
169    and timer interrupt.
170
171See the ChangeLog for a complete list of changes.
172
173This release has been verified only on the Linux user-mode
174platform.
175
176This tarball contains a complete CVS snapshot from May 19,
1772007.
178
179NuttX-0.2.6
180-----------
181
182This is the 9th release of NuttX.  This is primarily a
183bugfix release to correct a number of problems introduced
184with the 0.2.5 release. This release does include some FAT
185filesystem extensions including unlink(), mkdir(), rmdir(),
186rename(), opendir(), closedir(), readdir(), seekdir(),
187telldir(), rewindir().  There are some pending FAT changes
188that did not make it into this release including stat(),
189truncate(), and long file names.
190
191See the ChangeLog for a complete list of changes.
192
193This release has been verified only on the Linux user-mode platform.
194
195This tarball contains a complete CVS snapshot from May 26, 2007.
196
197NuttX-0.2.7
198-----------
199
200This is the 10th release of NuttX.  This is primarily a bugfix
201release to correct a number of problems reported to me (thanks
202Didier!). This release does include the final changes complete the
203FAT filesystem logic including stat(), statfs(), and non-standard
204APIs to manage FAT attributes.  At present, FAT long file names and
205file truncate() are still not supported.
206
207See the ChangeLog for a complete list of changes.
208
209This release has been verified only on the Linux user-mode platform.
210
211This tarball contains a complete CVS snapshot from June 9, 2007.
212
213NuttX-0.2.8
214-----------
215
216This is the 11th release of NuttX.  This release:
217(1) corrects important bugs in opendir() and realloc()
218(2) adds support for environment variables
219(3) adds several new C library interfaces
220(4) extends several example programs
221
222See the ChangeLog for a complete list of changes.
223
224This release has been verified only on the Linux user-mode platform.
225
226This tarball contains a complete CVS snapshot from July 2, 2007.
227
228NuttX-0.3.0
229-----------
230
231This is the 12th release of NuttX.  This release includes the initial
232integration of a network subsystem and the uIP TCP/IP stack into NuttX
233(see http://www.sics.se/~adam/uip/index.php/Main_Page).  Also included
234is a device driver for the Davicom DM90x0 Ethernet controller.
235
236This integration is very preliminary.  Only a small portion of the
237network functionality has been integrated and there are a number of
238open issues (see the TODO file).  The network subsystem is pre-alpha
239at this point in time.  I expect that it will stabilize and mature
240over the next few releases.
241
242The baseline functionality of NuttX continues to mature and remains at
243post-beta (as long as the network is not used).
244
245See the ChangeLog for a complete list of changes.
246
247This release has been verified only on the Neuros OSD (DM320 ARM9)
248platform using the DM90x0 driver.
249
250This tarball contains a complete CVS snapshot from November 6, 2007.
251
252NuttX-0.3.1
253-----------
254
255This is the 13th release of NuttX and the second release containing
256the integration of a network subsystem and the uIP TCP/IP, UDP, and
257ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
258
259Many network-related problems have been fixed and the implementation
260has matured significantly.  However, the level of network reliability
261is probably still at the pre-alpha or early level.  It is sufficiently
262complete that you may begin to perform some network integration and
263is expected to achieve beta level of reliability over the next few
264releases.
265
266The baseline functionality of NuttX continues to mature and remains at
267post-beta (as long as the network is not used).
268
269See the ChangeLog for a complete list of changes.
270
271This release has been verified only on the Neuros OSD (DM320 ARM9)
272platform using the DM90x0 driver.
273
274This tarball contains a complete CVS snapshot from November 19, 2007.
275
276NuttX-0.3.2
277-----------
278
279This is the 14th release of NuttX and the 3rd release containing
280the integration of a network subsystem and the uIP TCP/IP, UDP, and
281ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
282
283Many network-related problems have been fixed and the implementation
284has matured significantly.  This release consists of:
285
286o TCP-related bug-fixes
287o TCP performance improvements
288o Initial UDP integration
289o Initial uIP micro webserver integration
290
291See the ChangeLog for a complete list of changes.
292
293The level of network reliability is at alpha level is expected to
294achieve beta level of reliability over the next few releases.
295
296The baseline functionality of NuttX continues to mature and remains at
297post-beta.
298
299This release has been verified only on the Neuros OSD (DM320 ARM9)
300platform using the DM90x0 driver.
301
302This tarball contains a complete CVS snapshot from November 23, 2007.
303
304NuttX-0.3.3
305-----------
306
307This is the 15th release of NuttX and the 4th release containing
308the integration of a network subsystem and the uIP TCP/IP, UDP, and
309ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
310
311Many network-related problems have been fixed and the implementation
312has matured significantly.  This release consists of:
313
314o TCP-related bug-fixes for disconnecting sockets
315o Correction of some TCP read-ahead logic
316o TCP performance improvements
317o Misc. additions and cleanup (See the ChangeLog for a complete list of
318  changes).
319
320The level of network reliability is at an early beta release level.  The
321baseline functionality of NuttX continues to mature and remains at
322post-beta. Open network-related issues include only:
323
324o Some minor unimplemented BSD socket functionality,
325o Thread safety issues: the same socket cannot be used concurrently on
326  different threads.
327o Pending design changes necessary to support multiple network interfaces.
328o IPv6 support is incomplete.
329
330This release has been verified only on the Neuros OSD (DM320 ARM9)
331platform using the DM90x0 driver. Any feedback for improving the network
332reliability/performance would be greatly appreciated.
333
334This tarball contains a complete CVS snapshot from November 28, 2007.
335
336NuttX-0.3.4
337-----------
338
339This is the 16th release of NuttX and the 5th release containing
340the integration of a network subsystem and the uIP TCP/IP, UDP, and
341ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
342
343This release is primarily a bug-fix release.  New features include
344only:
345
346o TELNET front-end to NSH,
347o DHCPC server functionality, and
348o C5471 Ethernet driver.
349
350Numerous network related problems were fixed related to DHCPC, UDP
351input processing, UDP broadcast, send timeouts, and bad compilation when
352uIP is compiled at high levels of optimization.
353
354The level of network reliability is at a strong beta release level.  The
355baseline functionality of NuttX continues to mature and remains at
356post-beta or production level.
357
358Parts of this release were verified only on the Neuros OSD (DM320 ARM9)
359platform using the DM90x0 Ethernet driver and other parts on the Spectrum
360Digital C5471 EVM using the C5471 Ethernet driver. Any feedback about bugs
361or suggestions for improving the network reliability/performance would be
362greatly appreciated.
363
364This tarball contains a complete CVS snapshot from December 10, 2007.
365
366NuttX-0.3.5
367-----------
368
369This is the 17th release of NuttX this release is primarily a bug-fix
370release and intended to synchronize with the current CVS contents.  See
371the ChangeLog for a detailed list of changes and fixes.
372
373This release were verified only on the Spectrum Digital C5471 EVM using
374the C5471 Ethernet driver. Any feedback about bugs or suggestions for
375improvement would be greatly appreciated.
376
377This tarball contains a complete CVS snapshot from December 18, 2007.
378
379NuttX-0.3.6
380-----------
381
382This is the 18th release of NuttX.  This release contains on a few
383changes.  The primary purpose of this release is to synchronize with
384the release of the pascal-0.1.0 add-on package.
385
386This release of NuttX includes the following changes:
387
388* Fixes for use with SDCC compiler
389* Added a simulated z80 target (arch/z80)
390* Fix deadlock errors when using stdio but with no buffering
391* Add support for the add-on Pascal P-Code interpreter (pcode/)
392  (see the pascal-0.1.0 package)
393
394This release were verified only on the simulated Z80 and host
395simulation targets.  As usual, any feedback about bugs or suggestions
396for improvement would be greatly appreciated.
397
398This tarball contains a complete CVS snapshot from January 6, 2007.
399
400====
401
402There was an error in the initial 0.3.6 release that prevented
403a successful build unless the Pascal add-on was present.  The
404tarball was patched to include the fix.  Make sure that you download
405the nuttx-0.3.6.1.tar.gz version to avoid this problem.
406
407NuttX-0.3.7
408-----------
409
410This is the 19th release of NuttX.  This release includes the
411preliminary port of NuttX to the ZiLOG z16f 16-bit microcontroller.
412This port was verified using the ZiLOG z16f2800100zcog Development
413and the ZiLOG ZDS-II toolchain. See http://www.zilog.com for
414further information.
415
416I emphasize that this is a preliminary release of the z16f port and
417is only alpha or, perhaps, pre-alpha quality as of this writing.
418There are a list of known issues in the TODO file in the root of
419the NuttX directory.  The overall quality of NuttX (excluding the
420z16f port) continues to improve beyond the late beta level.
421
422The z16f port required numerous changes to NuttX to handle:
423
424* NEAR and FAR addressing, and
425* Use of a Windows native toolchain in a Cygwin build environment.
426
427In addition to the z16f port, at least one very critical bug was
428found and corrected in NuttX:  The thread-specific errno value of one
429task was being randomly trashed when a different thread exited.
430
431This release were verified on the ZiLOG z16f2800100zcog, Neuros OSD
432(ARM9), and the simulation platforms.  As usual, any feedback about bugs
433or suggestions for improvement would be greatly appreciated.
434
435This tarball contains a complete CVS snapshot from January 31, 2008.
436
437NuttX-0.3.8
438-----------
439
440This is the 20th release of NuttX.  This is a minor bugfix release.
441It corrects a few minor problems, adds a few minor features, and
442continues the integration of the ZiLOG Z18F and of the Pascal P-Code
443add-on.  This release is synchronized with the release of Pascal-0.1.2.
444
445This tarball contains a complete CVS snapshot from February 10, 2008.
446
447NuttX-0.3.9
448-----------
449
450This is the 21st release of NuttX.  This is a minor future enhancement
451release.  This release includes support for the ZiLOG Z8Encore! micro-
452controller.  Also included is the initial framework for support for
453the Z80, XTRS platform (http://www.tim-mann.org/xtrs.html).
454
455This released has been verified only on the ZiLOG ZDS-II Z8Encore!
456chip simulation.
457
458This tarball contains a complete CVS snapshot from March 9, 2008.
459
460NuttX-0.3.10
461------------
462
463This is the 22nd release of NuttX.  This is an important bug fix
464release.  This release incorporates fixes to correct critical list
465handling errors in task shutdown logic: One in timer deletion logic
466(timer_delete.c) and one in stream logic (lib_init.c).  This release
467also includes support to ZiLOG EZ80Acclaim microcontroller (EZ80F91
468chip) and configurations for the ZiLOG z8f64200100kit (Z8F6423) and
469ez80f0910200kitg (EZ80F091) development kit.
470
471NuttX-0.3.11
472------------
473
474This is the 23rd release of NuttX.  This is another important bugfix
475release.  This releases fixes several bugs:
476
477* Two POSIX timer bugs: a memory leak as well a fatal sequencing error.
478* Several FAT filesystem errors.
479* A deadlock that can occur in opendir()
480
481A few new features were also added:
482
483* Support for recursive mutexes
484* Added a RAM disk block driver
485* The host simulator no longer uses direct Linux system calls and
486  now also works on Cygwin.
487* The OS test was strengthen and now runs as an endurance test
488
489These changes were verified only on the Host simulator under Cygwin.
490Please report any errors to me.
491
492This tarball contains a complete CVS snapshot from June 1, 2008.
493
494NuttX-0.3.12
495------------
496
497This is the 24th release of NuttX.  This release includes some minor
498bugfixes as well as a few new features.  Bugs fixed include:
499
500* Corrected an error in recursive mutex implementation.
501* task_create() was only dup()ing the first three file descriptors.
502* Fixed driver open reference counting errors in dup(), dup2(), and exit().
503* Fixed error handling logic in fflush().
504
505New features were also added:
506
507* Pipes and pipe() API
508* FIFOs and mkfifo() API
509* mkfatfs() API can be used to format FAT file systems.
510
511These changes were verified only on the Host simulator under Cygwin.
512Please report any errors to me.
513
514This tarball contains a complete CVS snapshot from August 10, 2008.
515
516NuttX-0.3.13
517------------
518
519This is the 25th release of NuttX.  This release includes some
520important bugfixes as well as a few new features.  Bugs fixed
521include:
522
523* Fixed problems with Cygwin-based console input.  NSH now works
524  with the Cygwin simulator.
525* sched_get_priority_max/min returned error on SCHED_RR
526* Corrected detection of End-of-File in fgets()
527* Fixed an error in opendir() that could cause an assertion to fail
528  inappropriately.
529* Corrected an error in the FAT that caused files opened for writing
530  with O_APPEND to fail.
531* Fix error in getopt() when called with argc==1
532* Fix error in stat() when used on the root directory
533* Fixed a critical bug that effects the way that environment variables
534  are shared among pthreads.
535* uIP port now supports multi-threaded, concurrent socket access.
536  So, for example, one thread can be reading from a socket while
537  another is writing to the socket.
538
539New features were also added:
540
541* New OS APIs: chdir() and getcwd()
542* The Nuttx shell (NSH) has been extended in many ways.
543  - New commands: mkfatfs, mkfifo, sleep, usleep, nice, sh, cd, and pwd
544  - New memory inspection commands and heap usage commands
545  - New capabilities:
546    - Execution of commands in background
547    - Execution of simple scripts
548    - Redirection of command output
549    - Last command status ($?)
550  - Now supports if-then[-else]-fi construct
551  - Other features as noted in the ChangeLog.
552
553These changes were verified only on the Host simulator under Cygwin
554and under Linux and also on the Neuros OSD (ARM9).  Please report
555any errors to me.
556
557This tarball contains a complete CVS snapshot from September 1, 2008.
558
559nutt-0.3.14
560-----------
561
562This is the 26th release of NuttX.  This release includes some
563important bugfixes as well as a few new features.  Critical bugs
564fixed include:
565
566FAT FS:
567  * Fixed several critical bugs with regard to fat reading and
568    writing and FAT12 accesses.  Basically the FAT FS only worked
569    with my tiny test files and test cases.  A lot of stronger FAT
570    tested is still needed!
571  * Fixed another FAT bug in implementation of FAT lseek();
572    this prohibited correct random access to large files.
573
574Network:
575  * Corrected a critical bug that may prevent recvfrom from receiving
576    packets from most remote UDP port numbers.
577  * Corrected an error in multi-threaded socket handling in send() and
578    sendto().  Outgoing data could overwrite incoming data.
579  * Corrected IP checksum calculation in ICMP and UDP message send logic.
580  * Corrected an error in send() timeout logic.
581
582New features were also added:
583
584Network:
585  * Added support for application access to ICMP protocol stacks
586  * Added ping request logic (net/uip).
587  * Added basic TFTP client logic (netutils/tftpc).
588
589NuttShell (NSH):
590  * New commands: 'test', '[', 'ping', 'mkrd', 'xd', and TFTP 'get' and 'put'
591    See the new NuttShell User Guide for additional information.
592
593Other less critical bugs were also fixed and other less important
594features were were added.  See the ChangeLog for details.
595
596These changes were verified only on the Neuros OSD (ARM9).  Please
597report any errors to me.
598
599This tarball contains a complete CVS snapshot from September 8, 2008.
600
601nutt-0.3.15
602-----------
603
604This is the 27th release of NuttX.  This release includes some new features:
605
606* Adds support for the ROMFS filesystem
607* ROMFS supports mmap() to provide eXecute In Place (XIP) capability
608* NuttShell (NSH) can be configured to use ROMFS to provide a tiny read-only
609  filesystem with a startup script in /etc.
610* Completed the basic port of the NXP LPC2148 on the mcu123.com board.
611  The basic port includes successful booting, timer interrupts,
612  serial console, successfully passing the examples/ostest, and a
613  NuttShell (NSH) configuration.
614
615These changes were verified only on the mcu123.com NXP LPC2148
616board.  Please report any errors to me.
617
618This tarball contains a complete CVS snapshot from September 20, 2008.
619
620nutt-0.3.16
621-----------
622
623This is the 28th release of NuttX.  This release includes the first
624support for USB in NuttX.  A set of USB APIs were added to support
625USB device controller drivers and bindings to USB device class
626drivers.  The form of the interface was inspired by the Linux Gadget APIs.
627
628At present USB device controller drivers are included for:
629  * The NXP LPC214x.  This driver has been verified and is an early alpha
630    stage in quality.
631  * TI DM320.  Coding for this driver is complete but it is completely
632    untested as of this release.
633
634A controller-independent class driver is also included for:
635  * USB serial class device driver (emulates the Prolific PL2303
636    serial-to-USB adapter).  This driver has only been verified with
637    the Linux host PL2303 driver.
638
639Other new features include:
640  * Add an option to set aside a separate stack for interrupt
641    handling (ARM only).  This is useful when memory is constrained,
642    there are multiple tasks, and the interrupt stack requirement
643    is high (as when USB is enabled).
644
645A few bugs were also fixed:
646  * Fixed the frequency of system timer interrupts in the NXP LPC214x port
647    (off by 20x in nuttx-0.3.15)
648  * Fixed serial driver bugs related to (1) open counts and (2) recognizing
649    O_NONBLOCK on read.
650  * Fixed an error in read(); it was not setting the errno on errors returned
651    from the driver.
652
653These changes were verified only on the mcu123.com NXP LPC2148 board
654using with a Linux host.  Please report any errors to me.
655
656This tarball contains a complete CVS snapshot from October 10, 2008.
657
658UPDATE
659------
660This release does not build for the ARM target when USB is disabled.
661Here is the fix:
662
663Index: arch/arm/src/common/up_internal.h
664===================================================================
665RCS file: /cvsroot/nuttx/nuttx/arch/arm/src/common/up_internal.h,v
666retrieving revision 1.13
667diff -u -r1.13 up_internal.h
668--- arch/arm/src/common/up_internal.h   6 Oct 2008 16:20:52 -0000       1.13
669+++ arch/arm/src/common/up_internal.h   13 Oct 2008 20:48:21 -0000
670@@ -200,7 +200,8 @@
671 extern void up_usbinitialize(void);
672 extern void up_usbuninitialize(void);
673 #else
674-# define up_netinitialize()
675+# define up_usbinitialize()
676+# define up_usbuninitialize()
677 #endif
678
679 #endif /* __ASSEMBLY__ */
680
681NuttX-0.3.17
682------------
683
684This is the 29th release of NuttX.  This release includes the
685additional support for USB in NuttX.  The following new features
686were added:
687
688* Added support for SPI-based MMC/SD cards (with an SPI driver
689  for the NXP LPC214x).
690* Added USB storage class device side driver (BBB)
691* Added an example that demonstrates the USB storage class by
692  exporting the SPI based MMC/SD card on the NXP LPC214x.
693
694This is an early alpha release of these drivers.  At present they
695only work with debug features enabled so there are probably some
696race conditions that occur only with debug features disabled.
697(Anyone out there with a USB analyzer?  I would love to know what
698is happening.)
699
700Several important bugs were also fixed in the FAT file system, USB
701serial driver and NXP LPC214x USB controller driver. (See the ChangeLog
702for details.)
703
704These changes were verified only on the mcu123.com NXP LPC2148 board
705using a Linux development environment.  USB testing was performed
706using both a Linux host and a WinXP host.  Please report any errors
707to me.
708
709This tarball contains a complete CVS snapshot from October 28, 2008.
710
711NuttX-0.3.18
712------------
713
714This is the 30th release of NuttX.  This release includes two
715partially completed ports, several new features, and a couple of
716important bug fixes.  The two partially completed ports are:
717
718  * The STMicro STR71x processor and configuration for the Olimex
719    STR-P711 board.
720  * The Hitachi SH-1 using the SH1_LCEVB1 (SH-1/US7032EVB1) board
721
722Progress on these ports is stalled (as detailed in the ChangeLog).
723
724The new features focus primarily on management of block devices and
725extensions of the NuttShell (NSH).  These include:
726
727  * A loop device that converts a file into a block device.
728  * A block to character (BCH) driver that  allow access a block device as
729    if it were character device.
730  * Added strcasecmp() and strncasecmp() libc functions.
731  * Added the 'dd' and 'losetup' commands to NSH. These commands
732    (along with mkfatfs and mount), give good management of filesystems
733    on the target.
734
735Several bugs were fixed, the most important of which are:
736
737  * Fixed a race condition workaround delay in LPC214X SPI logic.
738    This was also the cause of some bad MMC/SD performance on that
739    platform.
740
741  * Fixed a recently introduced FAT file system problem: It would
742    mount a (invalid) FAT file system even if the medium is not formatted!
743
744  * Corrected two other important errors in the FAT lseek() implementation:
745    1 - The sectors-per-cluster value was being reset to "1".
746    2 - Important lseek logic was omitted when the seek position was zero.
747
748The FAT filesystem has had many bugs fixed in it and, I think, is
749now maturing and becoming stable.
750
751These changes were verified only on the mcu123.com NXP LPC2148
752board, the Hitachi SH1_LCEVB1 board, and the Linux simulator, all
753using a Linux development environment.  Please report any errors
754to me.
755
756This tarball contains a complete CVS snapshot from November 16, 2008.
757
758NuttX-0.3.19
759------------
760
761This is the 31st release of NuttX.  This release includes the
762following new feature:
763
764  * Add poll() and select() APIs that may be used to monitor for
765    data availability on character devices or TCP/IP sockets.
766  * Implemented support TCP/IP connection backlog.  This allows
767    select() to wake-up on new connections to a listener socket.
768  * Added definition of a framebuffer driver and implement framebuffer
769    drivers for the simulated platform and the TI DM320 (untested
770    as of the initial check-in).
771  * Partially developed a graphics framework based on the framebuffer
772    drivers, however, this will not be ready for use for a few more
773    releases.  Currently this includes only a few color conversion
774    routines and some rasterizing functions.  A tiny windowing system
775    is under development but not ready for check-in yet.
776  * Added support for fixed precision math.
777  * Added support for outgoing multicast packets.
778
779Several bugs were fixed, the most important of which are:
780
781  * Fixed an important bug in the TCP/IP buffering logic.  When
782    TCP/IP read-ahead is enabled and not recv() is in-place when a
783    TCP/IP packet is received, the packet is placed into a read-ahead
784    buffer.  However, the old contents of the read-ahead buffer
785    were not being cleared and old data would contaminate the newly
786    received buffer.
787
788  * Changed the behavior of the serial driver read.  It now returns
789    data as it is available rather than waiting for the full requested
790    read size.  This makes functions like fgetc() work much more
791    smoothly.
792
793These changes were verified only on the Neuros OSD (ARM9) using a
794Linux development environment. Please report any errors to me.
795
796This tarball contains a complete CVS snapshot from November 26, 2008.
797
798NuttX-0.4.0
799-----------
800
801This is the 32nd release of NuttX.  This release adds graphics
802support and a tiny windowing subsystem.  That new graphics subsystem
803is documented at http://nuttx.sourceforge.net/NXGraphicsSubsystem.html.
804No other substantial changes were made.
805
806These changes were verified only on the NuttX simulation platform
807with X11 windows simulating a device framebuffer. Please report any
808errors to me.
809
810The version number was bumped up to 0.4.0 in part to reflect the
811new graphics subsystem, but also to recognize the NuttX is approaching
812complete functionality.  In the 0.3.x versions, network support was
813added, Pascal P-code runtime support was added, FAT and ROMFS
814filesystems were added, MMC/SD and USB device support were added.
815There were also numerous extensions to the NuttShell, NuttX APIs,
816and architecture ports.
817
818This tarball contains a complete CVS snapshot from December 6, 2008.
819
820NuttX-0.4.1
821-----------
822
823This is the 33rd release of NuttX.  This is a minor bugfix release.
824The primary reason for this release is to correct numerous build
825errors that have accumulated for the ZiLOG ZDS-II based targets.
826All ZDS-II targets now build correctly (but have not been re-tested).
827In addition to platform-specific build failures, this release also
828adds the following features which were not tested as of the time
829of the release:
830
831  * Board support for the ZiLog ez80Acclaim! ez80f910200zco Development Kit
832  * ZiLOG eZ80F91 EMAC driver
833
834These changes were verified only on the NuttX simulation platform.
835Please report any errors to me.
836
837This tarball contains a complete CVS snapshot from February 6, 2009.
838
839NuttX-0.4.2
840-----------
841
842This is the 34th release of NuttX.  This release adds no new OS
843features but does include support for two new architectures:
844
845  * ez80Acclaim!  Basic support has been integrated and verified
846    for the ez80f910200zcog-d board (eZ80F91-based).  That basic
847    support includes timer interrupts and serial console.  Ongoing
848    work includes an EMAC driver that should be integrated for the
849    next release nuttx-0.4.2.  eZ80Acclaim! support has been in the
850    code base for some time, but has only just been integrated due
851    to toolchain issues.
852
853  * Renesas M16C/20.  Support for the Renesas SKP16C20 board has
854    been included in the NuttX source tree.  However, as the
855    eZ80Acclaim!, testing and integration of that port is stalled
856    due to toolchain issues.
857
858These changes were verified only on the ZiLOG eZ80910200zcog-d
859board. Please report any errors to me.
860
861This tarball contains a complete CVS snapshot from February 28, 2009.
862
863NuttX-0.4.3
864-----------
865
866This is the 35th release of NuttX.  This release one important new
867OS feature and corrects and extends the eZ80 port:
868
869  * Priority Inheritance.  The basic NuttX waiting logic was extended
870    to support priority inheritance. See the NuttX User Manual for
871    further information:
872    http://www.nuttx.org/NuttxUserGuide.html#priorityinheritance.
873
874  * ez80Acclaim! Corrected several critical, show-stopping bugs on that
875    platform including:
876    - Errors in the serial driver interrupts.
877    - An error in the eZ80 table.
878  * eZ80Acclaim!: Completed integration of the eZ80F91 EMAC driver.
879
880These changes were verified only on the ZiLOG eZ80910200zcog-d board
881and on Cygwin-based simulation platform in various configurations.
882Please report any errors to me.
883
884This tarball contains a complete CVS snapshot from March 13, 2009.
885
886NuttX-0.4.4
887-----------
888
889This is the 36th release of NuttX.  This release focuses on bugfixes
890and extending and verifying certain networking features.
891
892  * Important bugs were fixed in NSH, UDP checksum calculation, UDP
893    bind() behavior for port==0, the eZ80Acclaim! EMAC driver, Z80
894    interrupt handling, and in the C libraries.
895
896  * Testing was extended to further verify the tiny webserver,
897    DHCPD, wget(), and sendmail.
898
899See the Changelog for a detailed description of these changes.
900
901These changes were verified only on the ZiLOG eZ80910200zcog-d board
902using the ZDS-II toolchain in Cygwin-based environment. Please
903report any errors to me.
904
905This tarball contains a complete CVS snapshot from March 29, 2009.
906
907NuttX-0.4.5
908-----------
909
910This is the 37th release of NuttX.  This release focuses on a few new features.
911
912  * The basic port for the Freescale ARM920T i.MX1 processor on the
913    Freescale MX1ADS board.  Coding is complete for this port, but
914    it is has not yet fully integrated
915  * Extended I2C and SPI interface definitions
916  * Add basic support for C++ applications.  Very simple C++
917    applications can now be built against NuttX without any external
918    libraries.  At present, only the most primitive C++ programs
919    are supported, but it is hoped that this support will be extended
920    in future releases.
921
922See the Changelog for a detailed description of these changes.
923
924This tarball contains a complete CVS snapshot from April 19, 2009.
925
926NuttX-0.4.6
927-----------
928
929This is the 38th release of NuttX.  The release features support
930for the Micromint Eagle-100 development board.  This board is based
931around, the Luminary LM3S6918 MCU.  This is the first ARM Cortex-M3
932architecture supported by Nuttx. This initial, basic port includes
933timer and serial console with configurations to execute the NuttX
934OS test and to run the NuttShell (NSH). Work is still underway on
935this port and current plans are to have I2C, SSI, MMC/SD, and
936Ethernet driver in the 0.4.7 release.
937
938Additional work was done on the MXADS i.MX1 port, however, that
939work has been set aside until I complete work on the Eagle-100 (I
940also need to come up with a 3V power supply).
941
942Other changes in this release include: Extensions to the SPI interface
943definition in order to handle 9-bit interfaces to displays.  Several
944bugs were fixed (see the ChangeLog for a complete list of changes).
945
946This tarball contains a complete CVS snapshot from May 19, 2009.
947
948NuttX-0.4.7
949-----------
950
951This is the 39th release of NuttX.  This release focuses on cleaning
952up and extending the Eagle100/LM3S6918 port released in nuttx-0.4.6
953and on improved MMC/SD support.  New features include:
954
955  * Improved reliably and additional drivers for the Eagle-100 board
956    (LM3S6918 ARM Cortex-M3).  Additional drivers include Ethernet,
957    SSI, and support for the on-board LEDs and microSD cards.
958
959  * The SPI-based MMC/SD driver was extended to support SDHC Version
960    2.xx cards.
961
962In addition, this release includes several important bugfixes for
963the LM3S6918, the LPC2148, the SPI-based MMC/SD driver, and to
964FAT32.  See the ChangeLog for details of these bugfixes.
965
966This tarball contains a complete CVS snapshot from May 29, 2009.
967
968NuttX-0.4.8
969-----------
970
971This is the 40th release of NuttX.  This release adds:
972
973  * Support for the Olimex STRP711 board.  That board is based on
974    the STMicro STR711 MCU (ARM7TDMI). Integration is complete on
975    the basic port (boot logic, system time, serial console). Two
976    configurations have been verified: (1) The board boots and
977    passes the OS test with console output visible on UART0, and
978    the NuttShell (NSH) is fully functional with interrupt driven
979    serial console.  An SPI driver is available but untested (because
980    the Olimex card slot appears to accept only MMC cards; I have
981    only SD cards).  Additional needed: USB and driver, MMC
982    integration.
983
984  * Support for the CodeSourcery and devkitARM Windows-native GNU
985    toolchains.  Makefiles have been modified for the LM3S6918,
986    LPC2148, and STR711 to support these toolchains under Cygwin.
987
988This tarball contains a complete CVS snapshot from June 13, 2009.
989
990NuttX-0.4.9
991-----------
992
993This is the 41st release of NuttX.  This release adds:
994
995  * Support for a new binary format call NXFLAT that can be used to
996    execute separately linked programs in place in a file system.
997    See http://www.nuttx.org/NuttXNxFlat.html.
998
999  * Several important bugs were files related to networking and ROMFS.
1000    See the ChangeLog for a complete list.
1001
1002This tarball contains a complete CVS snapshot from June 26, 2009.
1003
1004NuttX-0.4.10
1005-----------
1006
1007This is the 42nd release of NuttX.  This released focused on the
1008port of Jeff Poskanzer's THTTPD HTTP server (see
1009http://acme.com/software/thttpd/).  As of the 0.4.10 release, that
1010port is still not fully complete and functional.  However, numerous
1011related bug-fixes and functional additions for THTTPD were added:
1012
1013  * Several new standard C-library functions (fileno, strstr,
1014    strpbrk, fcntl).
1015  * Improved and extended timing APIs (mktime, gmtime, gmtime_r,
1016    gettimeofday, localtime, localtime_r, and strftime)
1017  * Networking enhancements: recvfrom() and accept() now work with
1018    non-blocking sockets.
1019  * NXFLAT extensions (exec)
1020  * Pattern matching logic.
1021  * And miscellaneous bug fixes (see the ChangeLog for details).
1022
1023This tarball contains a complete CVS snapshot from August 8, 2009.
1024
1025NuttX-0.4.11
1026------------
1027
1028This is the 43rd release of NuttX. This release of NuttX incorporates
1029the verified port of Jeff Poskanzer's THTTPD HTTP server (see
1030http://acme.com/software/thttpd/).  Many of the key features of
1031THTTPD have been tested on the Micromint Eagle-100 development board
1032(Cortex-M3).  These tests verify:
1033
1034  * Serving of files from any file system
1035  * Execution of CGI executable.  This release supports execution
1036    of NXFLAT executables on a ROMFS file system
1037    (http://www.nuttx.org/NuttXNxFlat.html)
1038
1039A standard CGI interface is used:  Information is pasted to the CGI
1040program via POST commands and via environment variables.  CGI socket
1041I/O is redirected to stdin and stdout so that the CGI program only
1042need to printf() to send its content back to the HTTP client.
1043
1044Another value to this THTTPD integration effort has been that THTTPD
1045has provided a very good test bed for finding NuttX networking bugs.
1046Several very critical networking bugs have been fixed with this
10470.4.11 release (see the ChangeLog for details).  Networking throughput
1048has also been greatly improved.  Anyone using NuttX networking
1049should consider upgrading to this release.
1050
1051This tarball contains a complete CVS snapshot from September 16, 2009
1052
1053NuttX-0.4.12
1054------------
1055
1056This is the 44th release of NuttX.  This release adds basic support
1057for the STMicro STM32, Cortex-M3 MCU.  The specific port is to the
1058STMicro STM3210E-EVAL development board based around the STM32F103ZET6
1059MCU.  Some highlights of this port:
1060
1061  * This basic port includes boot-up logic, interrupt driven serial
1062    console, and system timer interrupts.
1063  * Includes a basic STMicro RIDE7 project that can be used to
1064    perform basic STM32 board bring-up (due to RIDE7 size limitations,
1065    it cannot be used for the full NuttX bring-up).
1066  * Working, Tested Configurations: the NuttX OS test and the
1067    NuttShell (NSH) example.
1068
1069This basic STM32 port will be extended in the 0.4.13 NuttX release.
1070Functionality needed for complete STM32 support includes:  USB
1071device driver, LCD driver and NX bringup on the development board's
1072display and MicroSD support.  An SPI driver and a DMA support was
1073included in this 0.4.12 release, but is not yet tested.
1074
1075This tarball contains a complete CVS snapshot from October 17, 2009
1076
1077NuttX-0.4.13
1078------------
1079
1080This is the 45th release of NuttX.  The release extends the support
1081for the STMicro STM32 microcontroller.  Minimal support for the
1082STM3210E-EVAL development board based around the STM32F103ZET6 MCU
1083was released in NuttX-0.4.12.  This release adds:
1084
1085  * A simple interface definition to support some FLASH, EEPROM,
1086    NVRAM, etc. devices.
1087  * Verified SPI operation using driver for SPI based FLASH parts
1088    M25P64 and M25P128.
1089  * Improved Cortex-M3 context switching.  This should improve
1090    context switching performance be 2x in certain cases.
1091  * Added a USB device-side driver for the STM32.  This is an early
1092    release of a very complex driver; some bugs are expected.
1093  * The USB driver has been verified against the USB serial device
1094    class driver.  There is at least one known outstanding issue
1095    (see the full bug description in the TODO list).
1096
1097This release also corrects some important bugs in the early STM32 release:
1098
1099  * Fixed several errors the prevented operation of NuttX on an
1100    STM32 development board using USART2 as the serial console.
1101  * Fixed and optimization-dependent race condition in the clock
1102    initialization.
1103  * Fixed a critical bug in the interrupt control logic that could
1104    cause interrupt operations to failed used for interrupts in a
1105    certain range.
1106
1107This tarball contains a complete CVS snapshot from November 4, 2009
1108
1109NuttX-4.14
1110----------
1111
1112This is the 46th release of NuttX.  The release extends the support
1113for the STMicro STM32 microcontroller.  Minimal support for the
1114STM3210E-EVAL development board based around the STM32F103ZET6 MCU
1115was released in NuttX-0.4.12 and extended in Nuttx-0.4.13 to include
1116initial USB support.  This completes the STM32F103ZET6 and adds:
1117
1118New Generic RTOS Features:
1119
1120  * Added generic support that can be included in any block driver
1121    to provide read-ahead buffering and write buffering for improved
1122    driver performance.
1123  * Added a generic worker thread that can used to defer processing
1124    from an interrupt to a task.
1125  * Defined a generic SD/SDIO interface can can be bound to a MMC/SD
1126    or SDIO driver to provide SDIO support.
1127  * Implemented a an SDIO-based MMC/SD driver using this new SDIO
1128    interface.
1129
1130New STM32 Features:
1131
1132  * Add support to configure an STM32 input GPIO to generate an
1133    EXTI interrupt.
1134  * Added support for buttons on the STM3210E-EVAL board.
1135  * Implemented an STM32 version of the common the SDIO interface.
1136  * Added a configuration to exercise the STM32 with the USB mass
1137    storage device class example.
1138
1139This release also corrects some important bugs in the early STM32 release:
1140
1141  * Correct error handling in the mount() logic.
1142  * Fixed several STM32 DMA-related issues. Integrated and debugged
1143    STM32 DMA functionality that was added in 0.4.12.
1144  * Fixed several bugs in the STM32 USB device-side driver.
1145
1146NOTE:  This version, 4.14, is equivalent to what would have been
1147called 0.4.14 to follow 0.4.13.  The zero has been eliminated from
1148the front of the version number to avoid confusion about the state
1149of development:  Some have interpreted the leading zero to mean
1150that the code is in some way unstable.  That was not the intent.
1151Beginning in January 2010, I will switch to the 2010.nn versioning
1152as many others have done to avoid such confusion.
1153
1154This tarball contains a complete CVS snapshot from December 2, 2009
1155
1156NuttX-5.0
1157---------
1158
1159This is 47th release of NuttX and the successor to nuttx-4.14.  This
1160major revision number has been incremented to indicate that an
1161incompatibility with previous nuttx releases has been introduced.
1162This version adopts standard fixed width integer names as specified
1163by the ANSI C99 standard.  The core logic of NuttX is older than
1164that standard and did not conform to it.
1165
1166If you have applications running on NuttX-4.14, those applications
1167should continue to build and execute without problem on NuttX-5.0.
1168However, if you have device drivers or other OS-internal logic, you
1169will probably have to make some minor changes to your code to use
1170this version.  Below is a summary of those changes:
1171
1172  * If you include sys/types.h to get the non-standard, fixed width
1173    integer types (uint32, uint16, ubyte, etc.), that is no longer
1174    necessary.
1175  * Instead, you will need to include stdint.h where the new fixed
1176    width integer types are defined (uint32_t, uint16_t, uint8_t, etc).
1177  * You will have to change all occurrences of the following types:
1178
1179    uint32 -> uint32_t
1180    uint16 -> uint16_t
1181    ubyte  -> uint8_t
1182    uint8  -> uint8_t
1183    sint32 -> int32_t
1184    sint16 -> int16_t
1185    sint8  -> int8_t
1186
1187 * In addition, the non-standard type 'boolean' must replaced with
1188   the standard type 'bool'.  The type definition for 'bool' is in
1189   stdbool.h
1190
1191This change in typing caused small changes to many, many files.  It
1192was verified that all configurations in the release still build
1193correctly (other than the SDCC-based configurations).  Regression
1194testing was performed on a few configurations, but it is possible
1195that minor build issues still exist. (If you encounter any, please
1196let me know and I will help you to fix them.)
1197
1198In the course of the regression testing, several important bugs
1199unrelated to the type changes were found and corrected.
1200
1201  * Fixed an important error in the RX FIFO handling logic of the
1202    LM3S6918 Ethernet driver.
1203  * Corrected the handling of TCP sequence numbers in the TCP stack.
1204  * And other less important bugs as detailed in the ChangeLog.
1205
1206The primary focus of this release was standards compatibility, but
1207a few new features were added including a (1) Flash Translation
1208Layer (FTL) that will support filesystems on a FLASH device and (2)
1209partial ports for the STM32F107VC and HCS12 C9S12NE64 MCUs.  Those
1210ports are very incomplete as of this writing.
1211
1212This tarball contains a complete CVS snapshot from December 21, 2009
1213
1214NuttX-5.1
1215---------
1216
1217This is the 48th release of NuttX.  This release adds support for
1218two new MCU architectures in various states of development:
1219
1220* AT91SAM3U (http://www.atmel.com/products/at91/sam3landing.asp?family_id=605)
1221
1222  This release adds support for the SAM3U-EK development board with
1223  the AT91SAM3U4E MCU
1224  (http://www.atmel.com/dyn/products/product_card_mcu.asp?part_id=4562).
1225  As with most NuttX architecture releases, the release will be
1226  rolled out in two parts:  A basic port and an extended port.
1227
1228  NuttX-5.1 includes the basic port for the SAM3U-EK board.  This
1229  release passes the NuttX OS test and is proven to have a valid
1230  OS implementation.  It supports the basic boot-up, serial console
1231  and timer interrupts.  A configuration to support the NuttShell
1232  is also included.
1233
1234  The extended port will also include support for SDIO-based SD
1235  cards and USB device (and possible LCD support).  These extensions
1236  may or may not happen by the Nuttx 5.2 release as my plate is
1237  kind of full now.
1238
1239* LPC3131 (http://ics.nxp.com/products/lpc3000/lpc313x.lpc314x.lpc315x/)
1240
1241  This release also adds the complete implementation of the basic
1242  port for the NXP LPC3131 MCU on the Embedded Artists EA3131 board
1243  (http://www.embeddedartists.com/products/kits/lpc3131_kit.php).
1244  That port, unfortunately has stalled due to tools issues.  Those
1245  tool issues have been resolved and I am confident that the verified
1246  basic port will be available in NuttX-5.2.
1247
1248  The extended release will follow and should include SDIO-based
1249  SD card support and device USB.
1250
1251A few additional features and bugfixes of a minor nature were also
1252incorporated as detailed in the ChangeLog.
1253
1254NuttX-5.2
1255---------
1256
1257This is the 49th release of NuttX.  This release completes the
1258verification of the basic port for the NXP LPC3131 MCU on the
1259Embedded Artists EA3131 board
1260(http://www.embeddedartists.com/products/kits/lpc3131_kit.php).
1261This basic port includes basic boot-up, serial console, and timer
1262interrupts.  This port has been verified on the using the NuttX OS
1263test and includes a working implementation of the NuttShell (NSH).
1264
1265An extended release will follow and should include SDIO-based SD
1266card support and device USB.
1267
1268NuttX-5.3
1269---------
1270
1271This is the 50th release of NuttX.  This release support for one new
1272architecture:
1273
1274  * A basic port for the NXP LPC2378 MCU on the Olimex-LPC2378
1275    development board was contributed by Rommel Marcelo.
1276
1277And extensions to two existing architectures:
1278
1279  * David Hewson contributed a dual-speed (full/high) USB device-side
1280    driver for the NXP LPC3131 on the Embedded Artists EA3131
1281    development board.
1282
1283  * A DMA driver and a high speed MCI driver for the Atmel AT91SAM3U
1284    are included (but not fully tested in this release).
1285
1286Two important bugfix was also included:
1287
1288  * An important fix to the USB mass storage driver was contributed
1289    by David Hewson.
1290  * A serious error in the AT91SAM3U PIO handling was fixed.
1291
1292NuttX-5.4
1293---------
1294
1295This is the 51st release of NuttX.  This release includes one new,
1296important extension to th NX graphics system (See
1297http://www.nuttx.org/NXGraphicsSubsystem.html).
1298
1299NX was develop a couple years back on hardware that supported only
1300framebuffer devices, that is, video hardware with video memory
1301directly converts the memory content to video.  However, most MCUs
1302that NuttX focuses on do not support such video memory; rather,
1303that typically only support LCDs via parallel or serial interfaces.
1304
1305This release of NuttX extends NX so that now renders directly to
1306the LCD device via its serial or parallel interface.  No in-memory
1307copy of the screen memory need be maintained so this solution should
1308also work in MCUs with very limited SRAM.
1309
1310This initial release of this feature includes the verified NX
1311extensions plus a driver for the HX8347, 16-bit parallel LCD.  This
1312LCD supports 16-bit RGB (5:6:5).
1313
1314NuttX-5.5
1315---------
1316
1317This is the 52nd release of NuttX.  This release includes one new
1318port, some new drivers and some important bugfixes:
1319
1320  * NuttX was ported to the Luminary/TI LM3S6965 Ethernet Evaluation
1321    Kit.  At present, that port includes an OS test configuration
1322    and a NuttShell (NSH) configuration with Telnet support.
1323
1324    MMC/SD and Networking support are provided but not thoroughly
1325    verified in this release: Current development efforts are focused
1326    on porting the NuttX window system (NX) to work with the
1327    Evaluation Kits OLED display.
1328
1329  * A NuttX Ethernet driver for the Microchip ENC28J60 SPI Ethernet
1330    chip is available in the source tree (but has not yet been fully
1331    verified because I haven't properly connected it to hardware
1332    yet).
1333
1334  * The Olimex STR-P711 NuttX port was extended to support the
1335    ENC28J60 and some new networking configurations were added.
1336    The ENC28J60 has not been tested on the STR-P711, however,
1337    because of hardware issues (I don't think the USB powered board
1338    provides enough power for the ENC28J60 and I don't have the
1339    right wall wart yet).
1340
1341    Along the way, external interrupt support (XTI) was added to
1342    the STMicro STR-P711 port and some important bugs were fixed
1343    in the STR-P711 SPI driver.
1344
1345  * Added (optional) floating point support for printf().
1346    (Contributed by Yolande Cates.)
1347
1348  * Corrected an important UDP reference counting error.  It was
1349    not a serious error, but it trigger an assertion was IS a serious
1350    error.
1351
1352NuttX-5.6
1353---------
1354
1355This is the 53rd release of NuttX.  This release includes one several
1356new drivers for existing NuttX ports:
1357
1358  * This port adds support for the RiT displays P14201 4-bpp,
1359    greyscale OLED.  4-bpp greyscale support was integrated into
1360    the NX graphics sub-system and verified using the TI/Luminary
1361    LP3S6965 Ethernet Evaluation Kit.
1362
1363  * The M25Px driver was extended for the M24P1 FLASH part (see NOTE).
1364
1365  * An I2C driver and (basic) SPI driver were added for the NXP
1366    LPC313x port.  The I2C interface definition was extended to
1367    efficiently handle multiple I2C transfers.
1368    (Contributed by David Hewson.)
1369
1370As well as a few, important USB-related bugfixes (See the ChangeLog
1371for details).
1372
1373This release also includes the beginnings of a port for the NXP
1374LPC1768 MCU.  However, it is too early for that port to be useful
1375(stay tuned for a future announce of the availability of the LPC1768
1376port).
1377
1378NuttX-5.7
1379---------
1380
1381This is the 54th release of NuttX.  This release adds basic support
1382for one new ARM Cortex-M3 architecture:
1383
1384  * Added support for NXP LPC1768 MCU as provided on the Nucleus
1385    2G board from 2G Engineering (http://www.2g-eng.com).
1386  * Some initial files for the LPC17xx family were released in NuttX
1387    5.6, but the first functional release for the NXP LPC1768/Nucleus2G
1388    occurred with NuttX 5.7.
1389  * That initial basic release included timer interrupts and a
1390    serial console and was verified using the NuttX OS test.
1391  * That release includes a verified NuttShell (NSH) configuration
1392    (see the http://www.nuttx.org/NuttShell.html).
1393  * Also included are unverified SPI and USB device drivers.
1394
1395Further efforts include:
1396  (1) development of a DMA support library
1397  (2) SPI-based MMC/SD support
1398  (3) verification of the USB driver
1399
1400Watch for announcement of the completed LPC1768 port expected in
1401NuttX-5.8.
1402
1403NuttX-5.8
1404---------
1405
1406This is the 55th release of NuttX.  This includes several important
1407bugfixes:
1408
1409  * Corrects some interrupt vectoring for the TI/Stellarix LM3S
1410    port
1411  * Correct initialization logic for NXP LPC17xxx NuttX ports:
1412    Power was not being provided to the GPIO module!
1413  * Corrected (but did not verify) implementation of the optional
1414    interrupt stack feature (all Cortex M3 architectures).
1415  * Correct a HardFault in the LPC17xx SSP driver.
1416
1417Additional minor fixes are also included as detailed in the ChangeLog.
1418
1419Several new features have been fully developed and included in this
1420release, but full verification of most of these new features has
1421been blocked for a variety of issues:
1422
1423  * Added microSD support for the NuttShell (NSH) configuration in
1424    the Nucleus2G LPC1768 port.  For reasons that have not yet been
1425    determined, I have not successfully accessed the microSD card
1426    as of this writing.
1427  * Two USB configurations were also added for the Nucleus2G board:
1428    One to support the USB serial device and one for the USB mass
1429    storage device.  Some testing of the USB driver was performed,
1430    but full verification is stalled for an OTG style USB cable.
1431  * LEDs now work correctly on the Nucleus2G LPC1768 board.
1432  * The NuttX/uIP networking subsystem now supports IGMPv2 client.
1433    IGMP (Internet Group Multicast Protocol) network "appliances"
1434    to join into multicast groups.  Outbound traffic to enter and
1435    leave multicast groups has been verified, but full verification
1436    will require a switch capable of multicast.  Issues associated
1437    with the receipt of multicast packets are likely.
1438
1439NuttX-5.9
1440---------
1441
1442This is the 56th release of NuttX.  This release is difficult to
1443categorize; NuttX-5.9 was really released because there were too
1444many changes accumulating in CVS -- a few important, some unfinished
1445implementations, and a couple of important bugfixes.
1446
1447  * By far biggest change in this release is the complete implementation
1448    of on-demand paging support.  This feature will allow you to
1449    execute large programs on a mass storage device (such as SPI
1450    FLASH) in a small RAM.  All of the core on-demand paging logic
1451    was completed (see http://www.nuttx.org/NuttXDemandPaging.html)
1452    and support was implemented for the ARM-9 family.  A test
1453    configuration is in place for the NXP LPC3131.  It has been
1454    verified that this new logic does not interfere with normal
1455    fixed-page ARM9 operation, but otherwise this new on-demand
1456    paging feature is untested.
1457  * Add support for the CodeSourcery toolchain to the Olimex-lpc2378
1458    port and for the Neuros OSD port.
1459  * The Neuros OSD port has been updated to work with the production
1460    v1.0 OSD (previously it only worked with the development board).
1461  * And some miscellaneous feature enhancements as detailed in the
1462    ChangeLog.
1463
1464This includes several important bugfixes:
1465
1466  * NXP LPC17xx - Fixed a critical bug in the GPIO configuration
1467    logic: When attempting to set no pull-up or pull-down (floating),
1468    it would, instead, select pull-down.
1469
1470  * TI/Luminary LM3Sxxxx - Fixed:
1471    (1) A logic error in an address table lookup.
1472    (2) GPIO port encoding the limited support to only 8 GPIO ports.
1473
1474  * Corrected the lease time in the DHCPC implementation:  It was
1475    not in host byte order.
1476
1477  * And several other less important bugs as documented in the
1478    ChangeLog: Warnings, cornercase compilation problems, etc.
1479
1480NuttX-5.10
1481----------
1482
1483This is the 57th release of NuttX.  This release includes a combination
1484of some new features as well as several bugfixes.  New features
1485include:
1486
1487  * TI/Luminary Stellaris LM3S9B96:
1488    Header file changes contributed by Tiago Maluta.
1489  * TI/Luminary Stellaris LM3S8962:
1490    Header file changes and support for the Stellaris LM3S8962
1491    Ethernet+CAN Evaluation Board contributed by Larry Arnold.
1492  * On-Demand Paging Support:
1493    The basic logic for the On-Demand Paging feature is complete,
1494    implemented for the NXP LPC3131, and partially tested.  See
1495    http://www.nuttx.org/NuttXDemandPaging.html.  Some additional
1496    test infrastructure will be needed in order to complete the
1497    verification.  See configs/ea3131/README.txt for details.
1498  * Two Pass Build Support:
1499    The make system now supports a two pass build where a relocatable,
1500    partially linked object is created on the first pass and that
1501    object is linked with the NuttX libraries to produce the final
1502    executable on the second pass.  This two pass build is currently
1503    only used to support the On-Demand paging feature:  The first
1504    pass link forces critical logic into the locked text region;
1505    the second pass builds the NuttX executable more-or-less as
1506    normal.
1507  * CONFIG_APP_DIR:
1508    Generalized the way in which applications are built and linked
1509    with NuttX.  The new configuration CONFIG_APP_DIR replaces
1510    CONFIG_EXAMPLE.  CONFIG_EXAMPLE used to identify the sub-directory
1511    within the NuttX examples/ directory that held the example
1512    application to be built.  That made it awkward to configure to
1513    build an application that resides outside of the NuttX examples/
1514    directory.  CONFIG_APP_DIR is more general; it can be used to
1515    refer to any directory containing the application to be built.
1516
1517    For people who have their own configurations and/or Makefiles,
1518    you will need to make a couple of changes:
1519
1520      - Replace all occurrences of CONFIG_EXAMPLE=foobar with
1521    CONFIG_APP_DIR=examples/foobar in all of the configuration
1522    files.
1523      - Replace any occurrences of examples/$(CONFIG_EXAMPLE) with
1524    $(CONFIG_APP_DIR)
1525      - Replace any occurrences of lib$(CONFIG_EXAMPLE)$(LIBEXT)
1526        with libapp$(LIBEXT) in your Makefiles.
1527      - Check any other occurrences of CONFIG_EXAMPLE.
1528
1529  * Several bugfixes are included as well as code changes to eliminate
1530    some warnings.  See the ChangeLog for details.
1531
1532NuttX-5.11
1533----------
1534
1535This is the 58th release of NuttX.  This is a bugfix release.
1536
1537  * One very important bug fixes a race condition that can occur
1538    using semaphores that can be awakened by signals.  Under this
1539    particular race condition, a task could hang waiting for a
1540    semaphore.
1541  * Corrections to lm3s8962 port contributed by Larry Arnold.  That
1542    port is purported to work correctly with these changes in place.
1543
1544Plus less critical bugfixes as detailed in the ChangeLog.  New features
1545include:
1546
1547  * A new configuration to support the mbed.org LPC1768 board.
1548    (Contributed by Dave Marples.)
1549  * A driver for the Atmel AT45DB161D 4Mbit SPI FLASH part
1550
1551NuttX-5.12
1552----------
1553
1554This is the 59th release of NuttX.  This is a critical bugfix release.
1555
1556  * Fixed an important error in the signal trampoline logic.
1557    Essentially, interrupts are re-enabled while the signal handler
1558    executes, but the logic to re-disable the interrupts before
1559    returning from the signal handler trampoline was missing.  Under
1560    certain circumstances, this can cause stack corruption.  This
1561    was discovered by David Hewson on an ARM9 platform, but since
1562    the code has been leveraged, the bug has been propagated from
1563    ARM to Cortex-M3, AVR32, M16C, SH1, ZNEO, eZ80, Z8, and Z80 --
1564    almost every architecture. The correction has been incorporated
1565    for all architectures but only verified on a few.
1566
1567Other notable changes in NuttX-5.12:
1568
1569  * A complete port for the AVR32 (AT32UC3B0256) is incorporated
1570    in the source tree.  Testing of this port is underway now.  This
1571    release was made before verifying this port in order to get the
1572    important bugfix in place.
1573
1574  * Other miscellaneous bugfix and enhancements as noted in the
1575    ChangeLog.
1576
1577NuttX-5.13
1578----------
1579
1580This is the 60th release of NuttX.  Headlines for this release
1581include:
1582
1583  * AVR32, www.mcuzone.com AVR32DEV1
1584
1585    The port for the www.mcuzone.com AVRDEV1 board based on the
1586    Atmel AT32UC3B0256 MCU was (almost) fully integrated. The port
1587    now successfully passes the NuttX OS test (examples/ostest).
1588    A NuttShell (NSH) configuration is in place (see the NSH User
1589    Guide at http://www.nuttx.org/NuttShell.html). Testing of that
1590    NSH configuration, however, has been postponed (because it got
1591    bumped by the Olimex LPC1766-STK port -- see below)
1592
1593    Current Status: I think I have a hardware problem with my serial
1594    port setup. There is a good chance that the NSH port is complete
1595    and functional, but I am not yet able to demonstrate that. At
1596    present, I get nothing coming in the serial RXD line (probably
1597    because the pins are configured wrong or I have the MAX232
1598    connected wrong).
1599
1600    A complete port will include drivers for additional AVR32 UC3
1601    devices -- like SPI and USB --- and will be available in a
1602    later release, time permitting.
1603
1604  * LPC1766, Olimex LPC1766-STK
1605
1606    Support for the Olimex-LPC1766 is newly added to NuttX and is
1607    still undergoing development, test, and integration. Verified
1608    configurations for the NuttX OS test and for the NuttShell (NSH,
1609    see the NSH User Guide at http://www.nuttx.org/NuttShell.html.
1610    Additional USB configurations are in the release as well, but
1611    they have not yet been verified.  Goals for NuttX-5.14 include:
1612    (1) An Ethernet driver, (2) Verified USB support, and (3) SD
1613    card support.
1614
1615  * Additional changes and bugfixes as detailed in the ChangeLog.
1616
1617NuttX-5.14
1618----------
1619
1620The 61st release of NuttX, NuttX-5.14, was made on November 27,
16212010.  This release includes multiple, important bugfixes as well
1622as a new driver for the NXP LPC1766.
1623
1624This release corresponds with SVN release number: r3137
1625
1626Important bugfixes include:
1627
1628  * Cortex-M3 Hard Fault.  Fixed a hard fault problem that can occur
1629    if certain types of interrupts are pending at the time another
1630    interrupt returns. This problem has only been observed on the
1631    LPC1766 (returning from a SYSTICK interrupt with a pending
1632    Ethernet interrupt).  However, it is assumed that all Cortex-M3
1633    ports could have this as a latent bug.
1634
1635  * TCP/IP Sequence Number Bug.  Corrected errors some important
1636    logic in the way that sequence numbers are managed when send()
1637    sends out packets before a previous packet has been acknowledged.
1638    Some of that send() logic was incompatible with logic in the
1639    uIP layer.  Errors seen include: (1) The final final packet in
1640    a sequence of packets might be too large!  In the THTTPD example,
1641    this might leave some garbage at the bottom of the display. Or
1642    (2) send() might hang with outstanding, unacknowledged data
1643    (and with no re-transmission requests).  This was due to
1644    differences in sequence number handling in send() and in
1645    uip_tcpinput.c; uip_tcpinput.c thought (incorrectly) that all
1646    of the bytes were acknowledged; send.c knew that they were not.
1647
1648  * One-Shot POSIX Timer Bug. Fixed an error in set-up of a one-shot
1649    POSIX timer.  It was using the repetitive timer value (which
1650    is zero in the one-shot case), always resulting in a 10Ms timer!
1651    Found and fixed by Wilton Tong.
1652
1653Additional support has been included for the Olimex-LPC1766.  Support
1654for that board was added to NuttX 5.13.  This release extends that
1655support with an Ethernet driver.  Verified configurations are now
1656available for the NuttX OS test, for the NuttShell (NSH, see
1657http://www.nuttx.org/NuttShell.html), for the NuttX network test,
1658and for the THTTPD webserver. (Additional USB configurations are
1659in the release as well, but those have not yet been verified.  Goals
1660for NuttX-5.15 (and beyond) include: (1) Verified USB support, (2)
1661SD card support, and (3) LCD support.
1662
1663NuttX-5.15
1664----------
1665
1666The 62nd release of NuttX, NuttX-5.15, was made on December 12,
16672010.  This release includes several bugfixes as well as feature
1668enhancements, primarily for the Olimex LPC1766-STK board.
1669
1670Important bugfixes included:
1671
1672  * Additional fixes needed with the TCP sequence number problem
1673    "fixed" in NuttX-5.14.
1674  * In the send() logic, now checks if the destination IP address
1675    is in the ARP table before sending the packet; an ARP request
1676    will go out instead.  This improves behavior, for example, on
1677    the first on the first GET request from a browser
1678  * All USB class drivers need to call DEV_CONNECT() when they are
1679    ready to be enumerated.  That is, (1) initially when bound to
1680    the USB driver, and (2) after a USB reset.
1681  * The SPI_SETBITS macro was calling the SPI setmode method.
1682  * And several other bug fixes of lower importance (see the
1683    ChangeLog for details).
1684
1685And feature enhancements:
1686
1687  * The LPC176x Ethernet driver was using all of AHB SRAM Bank0 for
1688    Ethernet packet buffers (16K).  An option was added to limit
1689    the amount of SRAM used for packet buffering and to re-use any
1690    extra Bank0 memory for heap.
1691
1692  * Enabled networking and SD/MMC card support in the Olimex
1693    LPC1766-STK NuttShell (NSH) configuration.
1694
1695  * The LPC176x USB driver is now fully fully functional.
1696  * Added an optional cmddata() method to the SPI interface.  Some
1697    devices require an additional out-of-band bit to specify if the
1698    next word sent to the device is a command or data. The cmddata
1699    method provides selection of command or data.
1700
1701  * A driver for the Nokia 6100 LCD (with either the Phillips PCF8833
1702    LCD controller and for the Epson S1D15G10 LCD controller) and
1703    an NX graphics configuration for the Olimex LPC1766-STK have
1704    been added.  However, neither the LCD driver nor the NX
1705    configuration have been verified as of the this release.
1706
1707NuttX-5.16
1708----------
1709
1710The 63rd release of NuttX, Version 5.16, was made on January 10,
17112010 and is available for download from the SourceForge website.
1712This release includes initial support for USB host in NuttX. The
1713USB host infrastructure is new to NuttX. This initial USB host release
1714is probably only beta quality; it is expected the some bugs remain
1715in the logic and that the functionality requires extension.
1716
1717Below is a summary of the NuttX USB host implementation as extracted
1718from the NuttX Porting Guide:
1719
1720  6.3.9 USB Host-Side Drivers
1721  * include/nuttx/usb/usbhost.h. All structures and APIs needed to
1722    work with USB host-side drivers are provided in this header
1723    file.
1724  * struct usbhost_driver_s. Each USB host controller driver must
1725    implement an instance of struct usbhost_driver_s. This structure
1726    is defined in include/nuttx/usb/usbhost.h.  Examples:
1727    arch/arm/src/lpc17xx/lpc17_usbhost.c.
1728  * struct usbhost_class_s. Each USB host class driver must implement
1729    an instance of struct usbhost_class_s. This structure is also
1730    defined in include/nuttx/usb/usbhost.h.  Examples:
1731    drivers/usbhost/usbhost_storage.c
1732  * USB Host Class Driver Registry. The NuttX USB host infrastructure
1733    includes a registry. During its initialization, each USB host
1734    class driver must call the interface, usbhost_registerclass()
1735    in order add its interface to the registry. Later, when a USB
1736    device is connected, the USB host controller will look up the
1737    USB host class driver that is needed to support the connected
1738    device in this registry.  Examples: drivers/usbhost/usbhost_registry.c,
1739    drivers/usbhost/usbhost_registerclass.c, and
1740    drivers/usbhost/usbhost_findclass.c,
1741  * Detection and Enumeration of Connected Devices. Each USB host
1742    device controller supports two methods that are used to detect
1743    and enumeration newly connected devices (and also detect
1744    disconnected devices):
1745    + int (*wait)(FAR struct usbhost_driver_s *drvr, bool connected);
1746      Wait for a device to be connected or disconnected.
1747    + int (*enumerate)(FAR struct usbhost_driver_s *drvr);
1748      Enumerate the connected device. As part of this enumeration
1749      process, the driver will (1) get the device's configuration
1750      descriptor, (2) extract the class ID info from the configuration
1751      descriptor, (3) call usbhost_findclass() to find the class
1752      that supports this device, (4) call the create() method on
1753      the struct usbhost_registry_s interface to get a class instance,
1754      and finally (5) call the connect() method of the struct
1755      usbhost_class_s interface. After that, the class is in charge
1756      of the sequence of operations.
1757  * Binding USB Host-Side Drivers. USB host-side controller drivers
1758    are not normally directly accessed by user code, but are usually
1759    bound to another, higher level USB host class driver. The class
1760    driver exports the standard NuttX device interface so that the
1761    connected USB device can be accessed just as with other, similar,
1762    on-board devices. For example, the USB host mass storage class
1763    driver (drivers/usbhost/usbhost_storage.c) will register a
1764    standard, NuttX block driver interface (like /dev/sda) that can
1765    be used to mount a file system just as with any other other
1766    block driver instance. In general, the binding sequence is:
1767
1768    1. Each USB host class driver includes an initialization entry
1769       point that is called from the application at initialization
1770       time.  This driver calls usbhost_registerclass() during this
1771       initialization in order to makes itself available in the
1772       event that the device that it supports is connected.  Examples:
1773       The function usbhost_storageinit() in the file
1774       drivers/usbhost/usbhost_storage.c
1775    2. Each application must include a waiter thread thread that
1776       (1) calls the USB host controller driver's wait() to detect
1777       the connection of a device, and then (2) call the USB host
1778       controller driver's enumerate method to bind the registered
1779       USB host class driver to the USB host controller driver.
1780       Examples: The function nsh_waiter() in the file
1781       configs/nucleus2g/src/up_nsh.c and the function nsh_waiter()
1782       in the file configs/olimex-lpc1766stk/src/up_nsh.c.
1783    3. As part of its operation during the binding operation, the
1784       USB host class driver will register an instances of a standard
1785       NuttX driver under the /dev directory. To repeat the above
1786       example, the USB host mass storage class driver
1787       (drivers/usbhost/usbhost_storage.c) will register a standard,
1788       NuttX block driver interface (like /dev/sda) that can be
1789       used to mount a file system just as with any other other
1790       block driver instance.  Examples: See the call to
1791       register_blockdriver() in the function usbhost_initvolume()
1792       in the file drivers/usbhost/usbhost_storage.c.
1793
1794NuttX-5.17
1795----------
1796
1797The 64th release of NuttX, Version 5.17, was made on January 19,
17982011 and is available for download from the SourceForge website.
1799This release follows close on the heels of the 5.16 release and
1800extends the USB host capabilities first introduced in that version.
1801
1802  * The LPC17xx USB host controller driver was extended to (1) add
1803    support for low-speed devices, (2) handle multiple concurrent
1804    transfers on different endpoints (still only one TD per endpoint),
1805    and (3) handle periodic interrupt endpoint types.
1806
1807  * Add a USB host HID keyboard class driver.  Now you can connect
1808    a standard USB keyboard to NuttX and receive keyboard input for
1809    an application.
1810
1811And other changes as detailed in the ChangeLog.
1812
1813NuttX-5.18
1814----------
1815
1816The 65th release of NuttX, Version 5.18, was made on February 27,
18172011 and is available for download from the SourceForge website.
1818This is first release from the new NuttX SVN repository.  This
1819release is made primarily to keep the release tarball in synchronization
1820with SVN.  Many smaller changes have been made as identified in the
1821ChangeLog.  Headlines include:
1822
1823  * Incorporate several important uIP patches -- including the well
1824    known patch to handle missing SYNACK.
1825  * The Freescale mc8s12ne64 port is code complete but testing has
1826    not yet begun due to toolchain issues.  Added support for the
1827    Future Electronics Group NE64 Badge board.
1828  * Added support for a new STM32 board, the ISOTEL NetClamps VSN
1829    V1.2 ready2go sensor network platform.  This board is based on
1830    a STM32F103RET6 and includes some interesting power saving/clock
1831    control extensions.
1832  * USB host support expanded to handle vendor specific USB devices.
1833  * Incorporated the LUFA HID parser.
1834  * Various bugfix as detailed in the ChangeLog
1835
1836NuttX-5.19
1837----------
1838
1839The 66th release of NuttX, Version 5.19, was made on March 12, 2011
1840and is available for download from the SourceForge website.  This
1841release includes several new features in various states of integration
1842and maturity:
1843
1844  * 486SX QEMU port.  This port supports the Intel 486SX architecture
1845    using the QEMU simulator.  Initial functionality is in place a
1846    partially tested.  There are still some outstanding issues with
1847    timer interrupts.
1848  * Platform specific application support.  A new apps/ directory
1849    appears in this port.  This apps/ directory provides a mechanism
1850    for applications using NuttX to have a highly customized
1851    initialization process. It supports a set of end-user applications
1852    than can be executed (1) standalone so you can have a fully
1853    customized application startup, or (2) on top of NSH.  Think
1854    of it this way:  In a buckled-up embedded application, your
1855    end-user programs will probably have their own dedicated start-up
1856    logic.  But, during development, you might want to have you
1857    applications available and executable from the NSH command line.
1858    This apps/ add-on (and NSH hooks) was contributed by Uros to
1859    accomplish just that.
1860  * NSH was also extended to support application specific ROMFS
1861    /etc/init.d/rcS start-up scripts.  This feature, as well, as
1862    all of the above-mentioned apps/ directory support was contributed
1863    by Uros Platise
1864  * Additional NSH improvements and bug fixes.  See the Changelog
1865    for details.
1866  * This release also provides a new SLIP network driver.  This
1867    driver should support point-to-point network communications to
1868    a host using TCP/IP or UDP.  This driver is code complete, but
1869    not tested in this release.
1870  * New RAMTRON FRAM driver (contributed by Uros Platise)
1871  * New generic 16550 UART driver.
1872  * Cortex-M3 Power improvements: Waits for Interrupt (WFI) in idle
1873    loop for reduced power consumption (LPC17xx and STM32 only -
1874    contributed by Uros Platise))
1875  * New waitpid() system interface.
1876  * Additional bugfixes: pipes, stdint.h, STM32 SDIO and SPI drivers
1877
1878NuttX-6.0
1879---------
1880
1881The 67th release of NuttX, Version 6.0, was made on March 21, 2011
1882and is available for download from the SourceForge website.  The
1883version number of this release was bumped from 5.19 to 6.0.  A
1884change in the major revision number is used to reflect an incompatibility
1885with previous versions.  In this release, the NuttX core OS
1886functionality has been separated from NuttX application-related
1887functionality.  These are provided as separate tarballs:
1888
1889  * nuttx-6.0.tar.gz, and
1890  * apps-6.0.tar.gz
1891
1892The purpose of this separation is both to better organize and
1893modularize the NuttX source tree, but also to provide better support
1894for incorporation of end-user applications with Nuttx.
1895
1896The incompatibility results from the changes to the board configuration
1897logic needed to supported the separable application.  The major
1898changes to the configuration include:
1899
1900  * CONFIG_APPS_DIR - This should not be set.  The default is
1901    ../apps.  This should only be set if you have a custom,
1902    product-specific application directory in some different location.
1903
1904  * appconfig - Each board configuration now requires a new file
1905    called 'appconfig.'  As its name suggests, this file provides
1906    new configuration information needed by the logic in ../apps.
1907
1908In addition to this major reorganization in the directory structure,
1909this release also includes some important extensions to existing
1910features and some important bugfixes.  These include:
1911
1912  * The SLIP driver was been well debugged and significantly
1913    re-designed.  Now you can have an Ethernet connection to you
1914    board even if you have no Ethernet hardware.  How cool is that?
1915
1916  * The QEMU i486 port is now functional.  It has also been reported
1917    to work on the Bifferboard (see http://bifferos.bizhat.com/).
1918
1919  * And extensions to the uIP driver interface, and
1920
1921  * Bug fixes to fopen() and STM32 GPIO configuration
1922
1923Please see the ChangeLog for details.
1924
1925NuttX-6.1
1926---------
1927
1928The 68th release of NuttX, Version 6.1, was made on April 10, 2011
1929and is available for download from the SourceForge website.  The
19306.0 release introduced a detach-able application environment to
1931build applications outside of the NuttX source tree.  The primary
1932purpose of this release is to correct numerous build problems
1933introduced by that architectural change:
1934
1935  * In many newer environments, NuttX produced strange Makefile
1936    errors but built correctly in older environments.  A fix provided
1937    by Rafael Noronha was incorporated and is reported to fix those
1938    build problems.
1939  * The apps/ directory build system would not handle Windows-native
1940    toolchains due to obscure path formatting issues.
1941  * And other problems as detailed in the Changelog.
1942
1943Many additional changes were made in the 6.1 release for another
1944major architectural change:  NuttX will now build as a separately
1945linked microkernel.  In this build option the RTOS builds as a
1946kernel, applications build separately and interface with kernel via
1947system calls.  Applications run in user mode and kernel logic users
1948in kernel-mode.  This provides a secure environment for NuttX.  This
1949feature is fully coded in NuttX-6.1, but has not been tested due
1950to higher priority tasks that have arisen.
1951
1952Related to this change, support for the Cortex-M3 memory protection
1953unit (MPU) has been integrated with the NuttX kernel build to provide
1954an even higher level of security.
1955
1956NOTE: This kernel build is an option; the default build configuration
1957is still the standard, flat, unsecured RTOS as in previous releases.
1958
1959Additional new features in this release:
1960
1961  * Support for LPC17xx GPIO interrupts (with much support from
1962    Decio Renno).
1963  * Basic timer support for STM32 (Contributed by Uros Platise)
1964  * A binfs file system.  This is a tiny pseudo file system that
1965    lets named applications to be viewed and accessed in NSH under
1966    the /bin directory.
1967  * An I2C-based driver for the LIS331DL MEMS motion sensor.
1968    (Contributed by Uros Platise.)
1969  * A configuration for the Embedded Artists LPCXpresso LPC1768 board.
1970  * The user_initialize() interface has been removed.
1971
1972And several bugfix associated with SD drivers, opendir(), signed
19738-bit types (int8_t), and USB serial device.  See the ChangeLog for
1974details.
1975
1976NuttX-6.2
1977---------
1978
1979The 69th release of NuttX, Version 6.2, was made on May 6, 2011 and
1980is available for download from the SourceForge website.  The 6.2
1981release includes several new features:
1982
1983  * NXFFS: The obvious new feature is NXFFS, the NuttX wear-leveling
1984    FLASH file system.   This new file system is intended to be
1985    small for the MCU usage and has some limitations.  No formal
1986    documentation of NXFFS yet exists.  See the fs/nxffs/README.txt
1987    file for details (see
1988    http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/fs/nxffs/README.txt?view=log)
1989  * Support for NXP LPCXpresso LPC1768 board on the Embedded
1990    Artists base board.  The Code Red toolchain is supported under
1991    either Linux or Windows.   Verified configurations include
1992    dhcpd, nsh, nx, ostest, thttpd, and usbstorage.
1993  * Support for the Univision UG-9664HSWAG01 OLED with Solomon
1994    Systech SD1305 LCD controller.
1995  * A new RAM MTD driver with FLASH simulation capability.
1996  * A version.h file is now automatically generated so that C code
1997      can now be version aware.
1998
1999In addition to these new feature, several important bugfixes are
2000included in this release correcting problems with dup2(), LPC17xx
2001GPIO interrupts, LPC17xx UART2/3, the FAT file system, build issues,
2002and strrch().  See the ChangeLog for more details.
2003
2004NuttX-6.3
2005---------
2006
2007The 70th release of NuttX follows only a nines days after the release
2008of version 6.2.  It was released on May 15, 2011.  This special
2009back-to-back release was made so that the current released version
2010of NuttX will correspond to the initial release from the RGMP
2011project.
2012
2013This release adds architecture support and build configuration for
2014RGMP.  RGMP is a project for running GPOS and RTOS simultaneously
2015on multi-processor platforms. See
2016http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
2017information about RGMP.
2018
2019This release also includes support for STM32 FLASH, build improvements,
2020and initial, incomplete support for the MicroChip PIC32MX MCU.  Bug
2021fixes are included for some build problems, USB host class driver
2022error handling, NX graphics color mapping, and problems with C
2023standard I/O buffer flushing.  See the ChangeLog for further details.
2024
2025NuttX-6.4
2026---------
2027
2028The 71st release of NuttX, Version 6.4, was made on June 5, 2011
2029and is available for download from the SourceForge website.  The
20306.4 release includes several new features:
2031
2032  * A new, full-featured FTP client.  This client may be used as a library
2033    for automated FTP or via an FTP client shell.  The FTP shell
2034    supports the following commands: cd, chmod, get, help, idle,
2035    login, ls, quit, mkdir, noop, put, pwd, rename, rhelp, rm,
2036    rmdir, size, time, and up.  A configuration is available for
2037    the NXP LPC17xx to demonstrate this functionality.
2038  * A functional C1101 wireless driver (contributed by Uros Platise)
2039  * A PCI-based E1000 Ethernet driver (contributed by Yu Qiang)
2040  * New C library functions: inet_addr() (contributed by Yu Qiang),
2041    strndup(), asprintf()
2042  * Reduced memory allocation overhead for MCUs with small heaps (<64K).
2043  * fdopen() now works with socket descriptors allowing standard
2044    buffered C functions to be used for network communications.
2045  * The NSH ifconfig command can now be used to set or change the
2046    IP address (contributed by Yu Qiang)
2047
2048This release also includes some completed but untested functionality.
2049
2050  * The MicroChip PIC32MX port is now code complete and ready to
2051    begin testing.  Unfortunately, testing will be delayed due to
2052    tool issues.
2053  * Support for the NXP LPC315x MCUs.
2054
2055Additional miscellaneous enhancements and bug fixes to task_delete(),
2056recvfrom(), and other changes as noted in the ChangeLog.
2057
2058NuttX-6.5
2059---------
2060
2061The 72nd release of NuttX, Version 6.5, was made on June 21, 2011
2062and is available for download from the SourceForge website.  The
20636.5 release is all about support for the Atmel 8-bit AVR family.
2064I have been interested in the AVR family for some time but because
2065of the severe SRAM constraints and because of the availability of
2066many tiny schedulers for the AVR, it has not been "on the radar
2067screen."  However, I have recently become interested because of
2068interest expressed by members of the forum and because of the
2069availability of newer, larger capacity AVR parts (that I don't have
2070yet).
2071
2072This release corresponds with SVN release number: r3730
2073
2074This release includes support for the following AVR boards.  As
2075with any initial support for new architectures, there are some
2076incomplete areas and a few caveats that need to be stated.  Here
2077they are, ordered from the least to the most complete:
2078
2079  * SoC Robotics Amber Web Server (ATMega128).
2080
2081    This port of NuttX to the Amber Web Server from SoC Robotics
2082    (http://www.soc-robotics.com/index.htm).  Is only partially in
2083    place.  The Amber Web Server is based on an Atmel ATMega128
2084    (128K FLASH but only 4K of SRAM).
2085
2086    STATUS: Work on this port has stalled due to toolchain issues.  It
2087    is complete, but untested.
2088
2089  * Micropendous 3 AT9USB647
2090
2091    This port of NuttX to the Opendous Micropendous 3 board. The
2092    Micropendous3 may be populated with an AT90USB646, 647, 1286,
2093    or 1287.  See http://code.google.com/p/opendous/. I have only
2094    the AT90USB647 version for testing.  This version has very
2095    limited memory resources: 64K of FLASH and 4K of SRAM.
2096
2097    STATUS: The basic port was released in NuttX-6.5.  This basic
2098    port consists only of a "Hello, World!!" example that demonstrates
2099    initialization of the OS, creation of a simple task, and serial
2100    console output.  The tiny SRAM limits what you can do with the
2101    AT90USB647 (see issues below).
2102
2103  * PJRC Teensy++ 2.0 AT9USB1286
2104
2105    This is a port of NuttX to the PJRC Teensy++ 2.0 board.  This
2106    board was developed by PJRC (http://pjrc.com/teensy/). The
2107    Teensy++ 2.0 is based on an Atmel AT90USB1286 MCU with 128K
2108    of FLASH and 8K of SRAM; a little more room to move than the
2109    AT90USB647.
2110
2111    STATUS:  The basic port was released in NuttX-6.5.  This basic
2112    port consists of a "Hello, World!!" example and also slightly
2113    simplified NuttShell (NSH) configuration (see the NSH User Guide
2114    at http://www.nuttx.org/NuttShell.html).
2115
2116    An SPI driver and a USB device driver exist for the AT90USB as
2117    well as a USB mass storage configuration.  However, this
2118    configuration is not fully debugged as of the NuttX-6.5 release.
2119
2120AVR-specific issues.  The basic AVR port is solid and biggest issue
2121for using AVR is its tiny SRAM memory and its Harvard architecture.
2122Because of the Harvard architecture, constant data that resides to
2123flash is inaccessible using "normal" memory reads and writes (only
2124SRAM data can be accessed "normally").  Special AVR instructions
2125are available for accessing data in FLASH, but these have not been
2126integrated into the normal, general purpose OS.
2127
2128Most NuttX test applications are console-oriented with lots of
2129strings used for printf and debug output.  These strings are all
2130stored in SRAM now due to these data accessing issues and even the
2131smallest console-oriented applications can quickly fill a 4-8K
2132memory.  So, in order for the AVR port to be useful, one of two
2133things would need to be done:
2134
21351. Don't use console applications that required lots of strings.
2136   The basic AVR port is solid and your typical deeply embedded
2137   application should work fine.
2138
21392. Create a special version of printf that knows how to access
2140   strings that reside in FLASH (or EEPROM).
2141
2142NuttX-6.6
2143---------
2144
2145The 73rd release of NuttX, Version 6.6, was made on July 11, 2011
2146and is available for download from the SourceForge website.  The
21476.6 release adds several smaller features but is mostly a bugfix
2148release.
2149
2150Bugfixes include
2151
2152  * Fixed several NX Graphics bugs: Rendering fonts at >8 bits-per-pixel,
2153    graphics move logic, and display artifacts that appear when a
2154    window is closed.
2155  * Corrections to the USB host mass storage class driver
2156  * STM32 bugfixes: serial driver, GPIO interrupt handling
2157  * LPC17xx: Changes for a success compilation with no console.
2158  * Corrections to the Teensy AT90USB SD driver
2159  * Changes for a clean compilation under the ZDS-II toolchain.
2160
2161Minor features:
2162
2163  * Add logic to extract printf strings from FLASH (but there are
2164    still printf issues for that target)
2165  * Added a configuration for the Sure Electronics PIC32MX board.
2166    However, higher priority tasks have stopped work on that
2167    configuration.
2168  * Added several new configurations for the STMicro STM3210E-EVAL
2169    board.
2170  * Added support for the STM3210E-EVAL board: (1) LCD in either
2171    landscape or portrait mode, and (2) interrupting buttons.
2172  * Added a configuration option to use different serial ports for
2173    debug and for the NSH serial console (there are some issues
2174    with CR-LF expansion and character echo if NSH is not run on
2175    the console).
2176  * Standardized the button press and button interrupt interfaces
2177    so that they are common across all boards.
2178  * Added a new graphics example that focuses on placing text on
2179    the background while pop-up windows occur.  Text should continue
2180    to update normally with or without the popup windows present.
2181  * Added ARM stack checking logic.
2182
2183See the ChangeLog for a detailed description of these changes.
2184
2185NuttX-6.7
2186---------
2187
2188The 74th release of NuttX, Version 6.7, was made on August 2, 2011
2189and is available for download from the SourceForge website.  Note
2190that release consists of two tarballs:  nuttx-6.7.tar.gz and
2191apps-6.7.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2192file for build information).  Changes in this release are summarized
2193below:
2194
2195  * New OS APIs: Add the standard sem_timedwait() interface.
2196  * FAT File System:  Adds (optional) support for VFAT long file
2197    names.
2198  * USB:  Now the mass storage device can be connected when needed
2199    and disconnected when not needed (or re-connected as a different
2200    kind of device).
2201  * Touchscreen Support:  Defined a new NuttX touchscreen interface.
2202    Added a driver for the TI TSC2007 touchscreen controller chip.
2203  * NX Fonts:  Add support for multiple fonts; developed a tool to
2204    convert open source fonts into NuttX format; Converted and
2205    installed nine new, high quality fontsets.
2206  * NX Graphics: Add new NX APIs to support drawing of wide lines
2207    in any orientation.  Added new low level routines to set
2208    individual pixel more efficiently.
2209  * Build system:  Added a export target that will bundle up all
2210    of the NuttX libraries, header files, and the startup object
2211    into an exportable tarball.
2212  * LPC17xx: A CAN driver was contributed by Li Zhuoyi (Lzyy).
2213  * STM32: New NX-related configurations to exercise text and
2214    graphic image displays.
2215  * C Library:  Added a fixed precision atan2() math function.
2216  * Bugfixes:  Serial RX overrun error, FAT upper/lower NT 8.3 name
2217    handling fixed.  FAT directory allocation and initialization
2218    bug.  STM32 SDIO DMA race condition bug.  eZ80 UART1 serial
2219    driver errors (Paul Osmialowski)
2220
2221NuttX-6.8
2222---------
2223
2224The 75th release of NuttX, Version 6.8, was made on August 19, 2011
2225and is available for download from the SourceForge website.  Note
2226that release consists of two tarballs:  nuttx-6.8.tar.gz and
2227apps-6.8.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2228file for build information).  Changes in this release are summarized
2229below:
2230
2231  * NuttX has been ported to run on the Freescale Cortex-M4 "Kinetis"
2232    boards.  Two board ports are available for (1) the Kinetis
2233    KwikStik-K40 and (2) the Kinetis TWR-K60N512 tower.
2234  * Support for RGMP 0.3.  This version of RGMP now runs on the
2235    OMAP4430 (arm) pandaboard
2236  * LPC17xx CAN driver extended to support both CAN1 and CAN2
2237    (submitted by Li Zhuoy (Lzzy))
2238  * Fixed several critical bugs related to signal handling
2239    initialization and for signals the wake up tasks that are waiting
2240    to send or receive message queues.Both are important.  (submitted
2241    by hkwilton).
2242  * drivers/can.c:  Fixed a semaphore overflow problem in the CAN
2243    driver (reported by Li Zhouy (Lzzy)).
2244  * Added a new ADC driver infrastructure and TI ADS1255 driver
2245    both developed and submitted by Li Zhouy (Lzzy)).
2246
2247See the Changelog for additional changes included in this release.
2248
2249NuttX-6.9
2250---------
2251
2252The 76th release of NuttX, Version 6.9, was made on September 11, 2011
2253and is available for download from the SourceForge website.  Note
2254that release consists of two tarballs:  nuttx-6.9.tar.gz and
2255apps-6.9.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2256file for build information).
2257
2258This release includes a few new features and several important bug fixes.
2259The new features (some still incomplete) include:
2260
2261  * Analog Support/ NXP LPC17xx: New DAC sub-system including ADC and DAC
2262    drivers for the LPC17xx.  Extensions to the ADS1255 driver.
2263    (Contributed by Li Zhuoyi (Lzyy))
2264
2265  * Power Management:  Added a new NuttX power management sub-system for
2266    controlling and coordinating reduced power states.  At present, only
2267    verified in a simulation environment.
2268
2269  * I2C Test Tool:  A new application was added that can be used to
2270    verify and debug I2C interfaces from the NuttShell (NSH) command
2271    line.
2272
2273  * NuttShell (NSH):  In addition to the I2C test tool, a date command
2274    is now supported (if CONFIG_RTC is defined) that can be used to
2275    read and set the RTC.
2276
2277  * NXP LPC17xx: I2C and DAC driver for the NXP LPC17xx family submitted by Li Zhuoyi
2278   (Lzyy)
2279
2280  * Kinetis Cortex-M4:  Added a SDHC driver for the Kinetis parts.
2281    Complete debug of the Kinetis SDHC driver was not completed, however,
2282    do to some higher priority tasks that forced me to stop work.
2283
2284  * Other new drivers: Driver for I2C-based at24cxx EEPROM submitted by
2285    Li Zhuoyi (Lzyy); Driver for the LM-75 temperature sensor.  Support
2286    for the LM-75 temperature sensor integrated into the SM3210E-EVAL
2287    development board.
2288
2289  * NuttX Graphics (NX):  Added new NX interfaces for drawing circles,
2290    both circle outlines and filled circles.
2291
2292  * FLASH: Added a function that accepts the path to a block driver and
2293    then erases the underlying FLASH memory
2294
2295  * Build System:  The Make export logic now also tries to track down all
2296    architecture-specific header files and include these in the NuttX
2297    export bundle as well.  Various changes and modifications so that
2298    NuttX wil build on FreeBSD using the ASH shell (submitted by Kurt Lidl).
2299
2300Bugfixes, order roughly on decreasing criticality include:
2301
2302  * STM32 I2C Driver:  Add resets, timeout, and other fixes to work
2303    reliably with the I2C tool.  Corrected a major error introduced in
2304    NuttX 6.8.
2305
2306  * BCH Driver.  Several important bugs (noted by Li Zhuoyi (Lzyy))
2307    were fixed.
2308
2309  * C Library:  Fixed errors in gmtime() and gmtime_r() that could lead to
2310    errors in date calculations.
2311
2312  * Timing:  Correct an error in the tv_nsec calculation that happens
2313    only config CONFIG_RTC is enabled
2314
2315  * Build System: Use of -print-libgcc-file-name to get path to
2316    libgcc.a might select the wrong libgcc.a if a multilib toolchain
2317    is used
2318
2319NuttX-6.10
2320----------
2321
2322The 77th release of NuttX, Version 6.10, was made on October 6, 2011
2323and is available for download from the SourceForge website.  Note
2324that release consists of two tarballs:  nuttx-6.10.tar.gz and
2325apps-6.10.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2326file for build information).
2327
2328This release corresponds with SVN release number: r4028
2329
2330This release includes a few new features and several important bug fixes.
2331The new features (some still incomplete) include:
2332
2333  * CDC ACM serial class device-side driver
2334
2335  * RTC:  Now supports hi-res and lo-res hardware RTC.  The lo-res RTC
2336    runs at 1Hz.
2337
2338  * STM32 I2C driver.  Now supports faster, polled mode of operation.
2339    Added an I2C trace capability.
2340
2341  * ADS7843E touchscreen driver.  As used on the SAM3U-EK development
2342    board.
2343
2344  * AT91SAM3U SPI driver.  To support the ADS7843E toucscreen
2345
2346  * X11 Support on simulation target.  Build errors in the X11 windows
2347    for the simulated target have been correct.  Added support for a
2348    simulated touchscreen on the X11 window (based on mouse inputs).
2349
2350  * System Timer. Added support for a 64-bit system timer.
2351
2352  * TIFF Support. Added a TIFF library (currently used for storing
2353    LCD screen shots).
2354
2355  * LCD Support.  Added a test to verify that we read and write correct
2356    to LCD GRAM memory.
2357
2358  * I2C tool. Extended to support to include a verify command and
2359    repititions and auto-address increment for most commands.
2360
2361  * USB terminal example.  Line oriented serial bridge connects a host
2362    USB serial terminal to a host UART serial terminal.
2363
2364  * Build System.  apps/ Makefile will now include external directories
2365    in the application build.
2366
2367Bugfixes, order roughly on decreasing criticality include:
2368
2369  * Message Queues.  Correct errors in mq_timedsend() and
2370    mq_timedreceive().
2371
2372  * FAT. Writes that cross sector boundaries, stray write into the FAT,
2373    and a FAT long file name issue
2374
2375  * NXFFS.  Added a missed error check.  Files cannot be opened for
2376    writing if they are already opened for reading.
2377
2378  * Library: fopen() for append modse was not appending.
2379
2380  * STM32 I2C driver.  Correct another conflict between concurrent FSMC
2381    and I2C1 accesses.  Fixed some bad error detection logic.
2382
2383  * STM32 SDHC driver.  Interrupts were being left disabled.
2384
2385NuttX-6.11
2386----------
2387
2388The 78th release of NuttX, Version 6.11, was made on November 12, 2011
2389and is available for download from the SourceForge website.  Note
2390that release consists of two tarballs:  nuttx-6.11.tar.gz and
2391apps-6.11.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2392file for build information).
2393
2394This release corresponds with SVN release number: r4090
2395
2396This release is a maintenance release that includes a few new features
2397and some important bugfixes.  New features include:
2398
2399    * NX Graphics:  New interfaces to read from graphics memory
2400    * Drivers:  AT24 FLASH driver will now supports clustering of blocks
2401      to achieve a larger, more usable block size for NXFFS.
2402    * STM32: LCD color corrections
2403    * PIC32: Board configuration for the Microchip PIC32 Ethernet Starter kit
2404      (not yet verified), new GPIO support library, button and LED support
2405      for the Sure Electronics PIC32MX board.  A lot of progress has been
2406      made on the PIC32 NuttX port, but it is still not ready for prime time.
2407    * NXP LPC3152: Board configuration for the Embedded Artists EA3152.
2408
2409Bugfixes, order roughly on decreasing criticality include:
2410
2411    * NXFFS: Corrected critical bugs in initialization, some full FLASH handling,
2412      and errors in certain cases where the FLASH is repacked.
2413    * ARM EABI: Fix stack aligment required for passing floating point values.
2414    * Build system: Fix build issues when g++ is used as the compiler.
2415    * NX Graphics: Bitmap error handling, correct RGB color conversion macros,
2416      Error when the background window is released.
2417    * STM32: RTC build fixes, LCD color corrections
2418    * Simulation target: build fixes
2419    * C Library: fclose() return value.
2420
2421See the change log for more detailed information.
2422
2423NuttX-6.12
2424----------
2425
2426The 79th release of NuttX, Version 6.12, was made on December 6, 2011
2427and is available for download from the SourceForge website.  Note
2428that release consists of two tarballs:  nuttx-6.12.tar.gz and
2429apps-6.12.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2430file for build information).
2431
2432This release corresponds with SVN release number: r4141
2433
2434New features in this release include:
2435
2436    * STM32. Basic support added for the STM32 F4 family.  Board support
2437      verified for the STMicro STM3250G-EVAL board.
2438    * FAT.  Enhanced partition handling.
2439    * SDIO-Based SD Card support.  Add support for large (>4Gb) devices
2440    * Graphics.  Added four new small sans serif fonts.
2441    * Drivers. Fix a banding problem with the R61580 LCD.
2442
2443Bugfixes, order roughly on decreasing criticality include:
2444
2445    * FAT. Fix errors in how the first entries in the root directory are
2446      added.  Fix errors in FAT date/time handling.
2447    * Signals.  Fix bug in certain sig_timedwait() error handling.
2448    * Drivers. Fix cloned errors in poll() handling in several drivers.
2449    * Message Queues.  errno was not being set correctly by mq_notify().
2450    * C Library. wchar_t is a built-in type for C++
2451
2452NuttX-6.13
2453----------
2454
2455The 80th release of NuttX, Version 6.13, was made on December 26, 2011
2456and is available for download from the SourceForge website.  Note
2457that release consists of two tarballs:  nuttx-6.13.tar.gz and
2458apps-6.13.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2459file for build information).
2460
2461This release corresponds with SVN release number: r4231
2462
2463New features in this release include:
2464
2465    * Drivers. New standard interface for PWM drivers and common
2466      "upper half" PWM driver.  Updated the MP25x driver to support
2467      the Macronix MX25 chips (submitted by Mohammad Elwakeel).
2468    * STM32 F1/F4.  Added an Ethernet driver, ADC drivers, DAC driver,
2469      PWM driver, CAN driver, F4 RTC driver, F4 DMA support,
2470      logic for saving/restoring F4 FPU registers in context switches.
2471    * STM32 Boards.  Added STM3240G-EVAL DHPCD and nettest configuration.
2472      Support for a new STM32 board, the HY-Mini STM32v board, was
2473      contributed by Laurent Latil
2474    * PIC32.  The port to the Microchip PIC32MX is finally functional and
2475      reliable.  The NuttX PIC32 port has verified configurations for
2476      the OS test and the NuttShell (NSH) both exist.
2477    * Tests:  New re-usable tests (in apps/examples) for PWM, ADC, and
2478      CAN loopback.  Several existing tests can now be built as NSH built-in
2479      applicaitons (dhcpd, nettest, and all of the new tests).
2480
2481Bugfixes, order roughly on decreasing criticality include:
2482
2483    * STM32:  Correct handling of data overrun conditions.  Existing logic
2484      would hang with infinite interrupts when a data overrun occurred.
2485    * DHCPD.  Fix several problems using host order address where network
2486      addresses expected (and vice versa).
2487
2488And several others.  See the ChangeLog for more details.
2489
2490NuttX-6.14
2491----------
2492
2493The 81st release of NuttX, Version 6.14, was made on January 15, 2012,
2494and is available for download from the SourceForge website.  Note
2495that release consists of two tarballs:  nuttx-6.14.tar.gz and
2496apps-6.14.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2497file for build information).
2498
2499This release corresponds with SVN release number: r4301
2500
2501New features in this release include:
2502
2503    * Drivers. The upper-half PWM driver will now support a pulse count (as
2504      would be needed to control a stepper motor).
2505
2506    * STM32.  The CAN driver has been verified in loopback mode.  ADC driver
2507      support for the STM32 F4.  Add support for UART4-5 and USART6
2508      (Contributed by Mike Smith).  The PWM driver now supports a pulse
2509      count for TIM1 and TIM8.  Timer driver now supports the F4's 32-bit
2510      timers (Contributed by Mikhail Bychek)
2511
2512    * STM32F4Discovery.  Support for the STM32F4-Discovery board contributed
2513      by Mike Smith.
2514
2515    * STM3240G-EVAL.  Add support for user control of LEDs.
2516
2517    * LPC17xx.  Add support for loopback mode to CAN driver.  CAN TX done
2518      perations are now interrupt driver.  Now supports configurable CAN bit
2519      rate.
2520
2521    * LPC1766-STK. Add support for on-board buttons. Add support for user
2522      control of LEDs.
2523
2524    * LM3S.  Add support for the LM3S6432S2E on the TI RDK-S2E (Contributed
2525      by Mike Smith)
2526
2527    * PIC32MX.  USB device-side driver (needs further testing).  A partial
2528      Ethernet driver is also in place.
2529
2530    * Library. Support added for fixed floating point fieldwidths in output
2531      formatting (Contributed by Mikhail Bychek)
2532
2533    * Build.  New targets apps_clean and apps_distclean to simplify working
2534      with application diretories.
2535
2536Bugfixes include:
2537
2538    * Drivers.  Fixed a buffer-full test in the upper-half CAN driver.
2539
2540    * STM32.  GPIO initialize logic (submitted by Mike Smith).  Fix the
2541      debug logic that dumps the GPIO configuration.
2542
2543    * LPC17xxx.  Correct an integer overflow in GPIO interrupt setup
2544      (prevented pins > 15 from being used as interrupt sources).  Correct
2545      a value used in GPIO interrupt number range test.
2546
2547    * FAT.  Now returns the correct error value when it is unable to
2548      recognize the file system.
2549
2550    * Build.  MAC OS build fixes (submitted by Mike Smith)
2551
2552And several others.  See the ChangeLog for more details.
2553
2554NuttX-6.15
2555----------
2556
2557The 82nd release of NuttX, Version 6.15, was made on February 12, 2012,
2558and is available for download from the SourceForge website.  Note
2559that release consists of two tarballs:  nuttx-6.15.tar.gz and
2560apps-6.15.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2561file for build information).
2562
2563This release corresponds with SVN release number: r4387
2564
2565New features and extended functionality:
2566
2567    * General Drivers:  Add support for (29-bit) extended CAN IDs.  Add an
2568      infrastructure to support battery drivers.   Add a driver for MAX17040x
2569      battery "fuel gauge".  Add support for Composite USB drivers (in
2570      particular for a CDC/ACM with MSC USB composite driver).
2571
2572      Added a new RAM logging driver.  This will allow debug output into
2573      a RAM buffer associated with a character driver at /dev/ramlog.
2574      Added the new command 'dmesg' to NSH that can be used to dump the
2575      current contents of the log.  This is useful for systems that do not
2576      have the usual serial console (for example, if you only have a
2577      Telnet console with NSH).
2578
2579    * Networking:  Add a lower level, primitive socket interface.  Telnet
2580      driver:
2581
2582      A New Telnet daemon was created.  It wraps a Telnet session within a
2583      character driver that can serve as a "controlling terminal."  The
2584      Telnet session will then be inherited by tasks created from the
2585      Telnet session and the stdin/stdout from the created task will
2586      still go through the same Telnet connection.
2587
2588    * STM32 Drivers.  PWM driver pulse count was limited to 128; now is
2589      (essentially) unlimited.  Add support for (29-bit) extended CAN IDs.
2590      Add support for I2C3.  The SDIO driver is (mostly) verified on the
2591      STM32 F4 platforms.
2592
2593    * LPC17xx Drivers.  Extended the CAN driver so that the TSEG1 and TSEG2
2594      bit times can be set via the NuttX configuration.  Add support for
2595      (29-bit) extended CAN IDs.
2596
2597    * PIC32 Drivers. The PIC32 Ethernet driver is code complete (but still
2598      untested).
2599
2600    * FTPD.  Add a new FTP server daemon.  This is based loosely on
2601      the hwport_ftpd library provided by Jaehyuk Cho.
2602
2603    * Library:  Add support for on_exit().  Implemented tcsetattr() and
2604      tcgetattr().  Moved the old, too-smart fgets() to a new application
2605      library function called readline().  Dumbed down the original fgets().
2606      Add strcasestr(), avsprintf(), inet_ntop(), and inet_pton().
2607      Add support to enable or disable debug output.
2608
2609    * Build system: Support for building a 32-bit simulation executable on
2610      a 64-bit Linux machine.  Correct a dependency issue in the arch/*/src/board
2611      directory.
2612
2613Bugfixes:
2614
2615    * System:  Correct PTHREAD_MUTEX_INITIALIZER
2616
2617    * FAT: Fix an error in the FAT statfs() reported by David Sidrane.
2618
2619    * STM32: Fix clock frequencies for APB2 timers.  Correct AFIO register
2620      offset.
2621
2622    * PIC32.  Correct GPIOs used for LEDs on the Sure PIC32MX board.
2623
2624    * NSH.  Wait for a USB connection if a USB serial class is used to
2625      interface with the host.
2626
2627Additional bugfixes, name changes, and other differences as detailed in the
2628ChangeLog.
2629
2630NuttX-6.16
2631----------
2632
2633The 83rd release of NuttX, Version 6.16, was made on March 10, 2012,
2634and is available for download from the SourceForge website.  Note
2635that release consists of two tarballs:  nuttx-6.16.tar.gz and
2636apps-6.16.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2637file for build information).
2638
2639This release corresponds with SVN release number: r4475
2640
2641New features and extended functionality:
2642
2643    * ARMv7M Support:  Includes new, streamlined Cortex-M exception
2644      handling provided by Mike Smith.  Context switching support for the
2645      Cortex-M4 FPU registers is now provided (in both "lazy" and "non-lazy"
2646      modes)
2647
2648    * General Drivers: Added a generic "upper half" Quadrature Encoder driver.
2649      The USB CDC/ACM serial driver can now be dynamically connected or
2650      disconnected from the host (programmatically or using NSH commands).
2651
2652    * STM32 Drivers: Added a "lower half" Quadrature Encoder driver.
2653      Verified the STM32 F4 DMA driver; Added F4 DMA support to the existing
2654      STM32 SDIO driver.
2655
2656    * STM32 Board Support.  Added support for the STM32 F2 family and
2657      for the STM3220G-EVAL board (contributed by Gary Teravskis).
2658      Support is now included for C++ static constructors (verified using
2659      the Atollic toolchain). Added support for the SRAM available on the
2660      STM3240G-EVAL board.
2661
2662    * PIC32 Drivers.  PIC32MX USB (device) driver is now functional.
2663      The PIC32MX Ethernet driver not yet fully verified (and an
2664      unverified SPI driver is also available).
2665
2666    * Networking.  Added a lower-level, thread-independent socket layer.
2667      Parts of this layer were created in 6.15 to support the FTPD
2668      controlling terminal; this support has been extended in order
2669      to support an NFS file system (not yet released).
2670
2671    * NuttShell (NSH).  NSH will now support a USB serial connection for
2672      the console (such as CDC/ACM).  This is useful in environments
2673      where there is no physical serial port on the board.
2674
2675    * Build System.  Reorgnaization of networking header files.
2676
2677Critical Bugfixes.  The following bug fixes are considered critical:
2678
2679    * Networking:  Fixed a "leak" in the TCP/IP read-ahead buffering logic.
2680      Corrected an error in TCP/IP sequence numbering/ACK logic which
2681      occurred when read-ahead buffering memory is exhausted.
2682
2683    * STM32 Drivers: Fixed an buffer sizing error in the STM32 Ethernet
2684      driver.
2685
2686Additional Bugfixes:  Other important bug fixes are listed below. See
2687the ChangeLog of a complete, detailed list of bug fixes.
2688
2689    * Networking: Corrected recv()/recvfrom() return value.  Added logic to
2690      monitor for loss of connection after a new connection has been
2691      established via accept() (Contributed by Max Nekludov).  Add
2692      logic to select() to correctly handle POLLHUP (Contributed by Max
2693      Nekludov)
2694
2695Additional bugfixes, name changes, and other differences as detailed in the
2696ChangeLog.
2697
2698NuttX-6.17
2699----------
2700
2701The 84th release of NuttX, Version 6.17, was made on April 14, 2012,
2702and is available for download from the SourceForge website.  Note
2703that release consists of two tarballs:  nuttx-6.17.tar.gz and
2704apps-6.17.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2705file for build information).
2706
2707This release corresponds with SVN release number: r4607
2708
2709New features and extended functionality:
2710
2711    * Networking:  Additional low-level, thread-independent socket
2712      interfaces (for NFS client support).
2713
2714    * RTC:  Added a new interface call clock_synchronize().  This function
2715      will reload the system time from an RTC and is required when the
2716      system re-awakens from certain deep-sleep modes.
2717
2718    * Graphics:  Add NxConsole.  This is a character device driver that
2719      wraps an NX window and can be re-directed for stdout.  This allows,
2720      for example, a pop-up graphics window that contains a NuttShell (NSH)
2721      session.  A test of NxConsole is available at apps/examples/nxconsole.
2722
2723    * Watchdog Drivers:  Added an interface definition an "upper half"
2724      driver to support watchdog timers.
2725
2726    * Calypso:  Support for TI Calypso-based cellphones (as supported by
2727      the Osmocom-BB project) was contributed by members of the Osmocom-BB
2728      team.  This includes configurations for the Compal e88 and e99 phones.
2729
2730    * USB Device Interface:  Needed to extend the USB device interface
2731      because there was no mechanism for passing endpoint OUT data that
2732      may need to accompany a setup request.
2733
2734    * STM32 drivers:  Added some power management controls for entering
2735      reduced power consumption states.  An OTG FS driver was completed
2736      and partially verified (this driver seems to be functional but since
2737      it has been test so lightly, it might better be listed in the
2738      next section "Work in progress").
2739
2740    * PIC32 drivers: The PIC32 Ethernet driver is now stable.  The PIC32
2741      USB device controller driver is now functional (but not yet stable).
2742
2743    * PIC32 boards: Added support for the Sure DB-DP11212 PIC32 General
2744      Purpose Demo Board.  There is now a PIC32 Starter Kit that
2745      provides NSH only through a Telnet connection.
2746
2747    * Build System:  Some header files were moved into include/nuttx.
2748      The goal is to move any non-standard header files to include/nuttx
2749      or include/arch.  Moved include/math.h to include/nuttx/math.h;
2750      this file is now only instantiated as the 'system' math.h if
2751      CONFIG_ARCH_MATH_H=y is defined.
2752
2753    * Tools:  Added tools/cmpconfig.c, a tool for comparing two
2754      configuration files.
2755
2756Work in progress.  This release includes some partially completed
2757work that is still not ready for prime time.
2758
2759    * NFS Client:  Work is progressing on support for an NFS client
2760      file system.    This is a port of the BSD NFS client file system
2761      that is being done by Jose Pablo Rojas V.
2762
2763    * Automated Configuration:  Automated configuration based on the
2764      kconfig-frontends tool is being incorporated into the build
2765      system.  The configuration is still not complete enough for
2766      general use in this release.
2767
2768    * STM32 Drivers:  Added files that will (eventually) hold an STM32
2769      OTG FS host driver.  This is still a work in progress.
2770
2771Bugfixes:
2772
2773    * Networking:  Corrected a deadlock that only occurred when
2774      executing the NSH 'ifconfig' command over Telnet.
2775
2776    * File system:  Fix incorrect return errno value from read() when
2777      the file is opened write-only.
2778
2779    * Graphics:   Fix several compilation errors that have crept into the
2780      multi-user NX server because of lack of use.
2781
2782    * STM32:  In order to use CAN2, both CAN1 and CAN2 clocking must be
2783      enabled. Fixed a troublesome bug in the STM32 F4 I2C driver that
2784      resulting in timeouts.
2785
2786    * LPC17xx: Fixes for errors the crept in the LPC17xx DAC logic
2787      Contributed by Lzyy).
2788
2789    * Build System:  Reordered the link command line to account for new
2790      versions of libgcc.a that require symbols from the application
2791      (abort()).
2792
2793NuttX-6.18
2794----------
2795
2796The 85th release of NuttX, Version 6.18, was made on May 19, 2012,
2797and is available for download from the SourceForge website.  Note
2798that release consists of two tarballs:  nuttx-6.18.tar.gz and
2799apps-6.18.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2800file for build information).
2801
2802The majority of changes in this release are focused on supporting the
2803synchronized release of NxWM, the NuttX tiny window manager.  That
2804window manager is released as part of the NxWidgets package, but depends
2805upon many of the changes in this NuttX release.
2806
2807This release corresponds with SVN release number: r4751
2808
2809New features and extended functionality:
2810
2811    * Drivers.  Added a watchdog timer driver infrastructure.  Add general
2812      support for STMicro STMPE811 I/O Expander/touchscreen device.
2813
2814    * STM32. Add support for the STM32 IWDG and WWDG watchodog timers.  DMA
2815      now supports cicular buffer mode; serial driver now uses circular
2816      DMA to improve Rx performance (Contributed by Mike Smith).
2817
2818    * STM3240G-EVAL Board.  Add support for the LCD and for the STMPE811
2819      I/O Expander as a touchscreen controller.
2820
2821    * PIC32 Boards.  Board support for the Mikroelektronika PIC32MX7
2822      Multimedia Board (MMB) and for the Sparkfun UBW32 PIC32 board.
2823
2824    * NX. Framed windows are now draw in three colors instead of just two.
2825      Numerous other extensions needed to support NxWM (see the ChangeLog
2826      for details).
2827
2828    * Library. Add prctl() command that can be used to setting and getting
2829      the names of threads.  This (plus several other improvements and bug
2830      fixes) are part of a larger effort to improve task monitoring
2831      capabilities.
2832
2833Work in progress.  This release includes some partially completed
2834work that is still not ready for prime time.
2835
2836    * NFS Client. Work is progressing on support for an NFS client
2837      file system.   This is a port of the BSD NFS client file system
2838      that is being done by Jose Pablo Rojas V.
2839
2840    * Automated Configuration. Automated configuration based on the
2841      kconfig-frontends tool is being incorporated into the build
2842      system.  The configuration is still not complete enough for
2843      general use in this release.
2844
2845    * STM32 Drivers. Added files that will (eventually) hold an STM32
2846      OTG FS host driver.  This is still a work in progress.
2847
2848Bugfixes (see the change log for details) :
2849
2850    * sched_setscheduler() return value (Contributed by Richard Cochran).
2851
2852    * stdio. Ignore CONFIG_STDIO_LINEBUFFER if the file was opened in binary mode.
2853
2854    * fopen(). Correct an error in parsing open mode string.
2855
2856    * serial driver. Improved performance be reducing the amount of time
2857      that Rx interrupts are disabled.
2858
2859    * recvfrom(). Fix a compilation problem.
2860
2861    * CDC/ACM device driver. Fix an infinite loop that occurs when the serial
2862      device is unregistered.
2863
2864    * STM32 OTG FS device driver. Numerous fixes and the driver is partially
2865      functional but there are still some issues that become apparent when
2866      debug output is disabled.
2867
2868    * fcntl(). Always returned zero on success; however, some fcntl commands
2869      need to return non-zero values on success.
2870
2871    * graphics:  Many multi-use mode fixes added to support NxWM (see the
2872      ChangeLog for details).  Auto-raise is temporarily disabled in multi-
2873      user mode because it causes some problems with NxWM.
2874
2875    * on_exit():  Fix compilation errors if CONFIG_SCHED_ONEXIT is enabled.
2876
2877NuttX-6.19
2878----------
2879
2880The 86th release of NuttX, Version 6.19, was made on June 15, 2012,
2881and is available for download from the SourceForge website.  Note
2882that release consists of two tarballs:  nuttx-6.19.tar.gz and
2883apps-6.19.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2884file for build information).
2885
2886This release corresponds with SVN release number: r4847
2887
2888This release features new support for a Network File System (NFS) client.
2889This feature allows a tiny, embedded MCU to mount a remote file system
2890exported by an NFS server and then to access the file system as it would
2891any local file system.  Then the tiny MCU can effectively have terabytes
2892of storage!
2893
2894This might be useful for data collection, for MCU configuration information,
2895for software updates, for providing modular, loadable code modes, controlling
2896a "farm" of MCUs, ... there are many possibilities and opportunities for
2897innovation!
2898
2899The NuttShell (NSH) now supports the following command:
2900
2901  nfsmount <server-address> <mount-point> <remote-path>
2902
2903That command will mount the remote NFS server directory <remote-path> at
2904<mount-point> on the target machine.  <server-address> is the IP address of
2905the remote server.
2906
2907The NFS development was the graduation project of Jose Pablo Rojas V. who
2908is a student at the Instituto Tecnol�gico de Costa Rica (ITCR, or TEC).
2909A lot of effort went into understanding what a tiny, embedded NFS client should
2910do and getting the target resource usage to a bare minimum.  Only around a
2911kilobyte or so of memory is required to run the NFS client (and most of that
2912for I/O buffers).  Jose Pablo has spent several months living with NFS and
2913should be congratulated.
2914
2915Additional new features and extended functionality:
2916
2917    * Drivers:  SSD1289 LCD driver, MIO283QT2 LCD driver
2918
2919    * LM3S: Additional register definition header files (contributed by Max
2920      Neklyudov).
2921
2922    * STM32 Boards:  The STM32F4Discovery will now support an SSD1289 LCD,
2923      The STM3220G-EVAL board support is now equivalent to the STM3240G-EVAL
2924      board support.
2925
2926    * PIC32 Boards: The Mikroelektronika PIC32MX7 MMB board port is now
2927      functional, very complete, and stable.
2928
2929    * Graphics:  The NxConsole will now take keyboard input from the NX graphics
2930      subsystem.  This means that if there are multiple NxConsole windows, only
2931      the top instance that has focus will receive the keyboard input.
2932
2933    * apps/:  Add the capability to use an arbitrary USB device as the console
2934      (not necessarily /dev/console).  Additional enhancements for USB consoles.
2935      Added the 'mv' command.
2936
2937Work in progress.  This release includes some partially completed
2938work that is still not ready for prime time.
2939
2940    * Automated Configuration. Automated configuration based on the
2941      kconfig-frontends tool is being incorporated into the build
2942      system.  The configuration is still not complete enough for
2943      general use in this release.
2944
2945    * STM32 Drivers. Added files that will (eventually) hold an STM32
2946      OTG FS host driver.  This is still a work in progress.
2947
2948Bugfixes (see the change log for details) :
2949
2950    * General:  sleep() and usleep() return values, sig_timedwait() errno setting
2951      on timeout.
2952    * Drivers: STMPE811 touchscreen driver, USB PLC2303, USB CDC/ACM
2953    * STM32: Several USB device controller driver fixes, F4 interrupt priorities
2954      (contributed by Mike Smith).
2955    * Graphics: Keyboard input, fill trapezoid bug
2956
2957As well as other, less critical bugs (see the ChangeLog for details)
2958
2959NuttX-6.20
2960----------
2961
2962The 87th release of NuttX, Version 6.20, was made on July 12, 2012,
2963and is available for download from the SourceForge website.  Note
2964that release consists of two tarballs:  nuttx-6.20.tar.gz and
2965apps-6.20.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
2966file for build information).
2967
2968This release corresponds with SVN release number: r4937
2969
2970Additional new features and extended functionality:
2971
2972    * Power Management:  An evolving power management example is being
2973      created by Diego Sanchez.  This effort currently involves on the
2974      STM32 F1 but clearly demonstrates the NuttX power management
2975      system which will automatically drive the system to lower power
2976      usage states due to lack of use.
2977
2978    * Drivers:  Added a driver for the SST 25 SPI-based FLASH parts.
2979
2980    * PIC32:  Added support for the PIC32MX1 and PIC32MX2 families.
2981      Added support for the microchipOpen and Pinguino toolchains.
2982
2983    * NXP LPC43XX: Added support for the entire LPC43xx family
2984
2985    * PIC32 boards:  Added support for the DTX1-4000L "Mirtoo" module
2986      from http://www.dimitech.com/ (PIC32MX2).
2987
2988    * NXP LPC43XX Boards: Added support for NGX LPC4330-Xplorer board.
2989
2990    * NXP LPC17XX Boards: Added support for Micromint Lincoln60 board
2991      (LPC1769).
2992
2993    * LM3S Boards:  Add a configuration to support the TI/Stellaris
2994      EKK-LM3S3B96 development board.  Contributed by Jose Pablo Rojas V.
2995
2996    * Library:  NuttX now supports platform-specific stdarg.h header
2997      files.
2998
2999Work in progress.  This release includes some partially completed
3000work that is still not ready for prime time.
3001
3002    * Automated Configuration. Automated configuration based on the
3003      kconfig-frontends tool is being incorporated into the build
3004      system.  The configuration is still not complete enough for
3005      general use in this release.
3006
3007    * STM32 Drivers. Added files that will (eventually) hold an STM32
3008      OTG FS host driver.  This is still a work in progress.
3009
3010Bugfixes (see the change log for details) :
3011
3012    * PIC32: GPIO output configuration (critical bug)
3013    * STM32: Typos in pin mapping files.
3014    * LM3S:  Fixed an optimization related but that caused slow start-up
3015      times if optimization was disabled.
3016    * Library:  Fixed signed extension but in all limit.h files
3017      (reported by Lorenz Meier).  inet_ntoa compilation failure
3018      on Z80.
3019
3020As well as other, less critical bugs (see the ChangeLog for details)
3021
3022NuttX-6.21
3023----------
3024
3025The 88th release of NuttX, Version 6.21, was made on August 25, 2012,
3026and is available for download from the SourceForge website.  Note
3027that release consists of two tarballs:  nuttx-6.21.tar.gz and
3028apps-6.21.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
3029file for build information).
3030
3031This release corresponds with SVN release number: r5052
3032
3033Additional new features and extended functionality:
3034
3035    * Core: Add support for multiple registered atexit() functions.  Syslog
3036      extended:  Now any character driver may be used for the debug logging
3037      device.  Mountpoint traversal logic.
3038    * Drivers: Added support for the TI PGA112-7 amplifier/multiplexor.
3039    * LPC43xx:  Added clock ramp-up logic to run at 204 MHz
3040    * LPC43xx Drivers:  SPIFI block driver, RS-485 support, Minimal termios
3041      support.  Framework for USB0 device controller driver.
3042    * LPC17xx Drivers:  Minimal termios support
3043    * STM32: Support for STM32 F1 "Value Line" (contributed by Mike Smith).
3044      Add support for STM32 F107 "Connectivity Line" (contributed by Max
3045      Holtzberg).
3046      Clock restart logic needed for recovery from low power modes.
3047    * STM32 Drivers:  RTC alarm support.  Usable for wakeup from sleep mode,
3048      Minimal serial termios support.  USB OTG FS host driver (alpha).
3049    * STM32 Boards: Add power management hooks for the STM32F4Discovery,
3050      Add support for the Olimex STM32-P107 (contributed by Max Holtzberg).
3051    * PIC32:  Add support for the Pinguino MIPS toolchain.
3052    * PIC32 Drivers:  GPIO driver now supports F1 analog regiaters (ANSEL).
3053    * PIC32 Boards: Add support for the PGA117 on the Mirtoo module.
3054    * Calypso:  Add support for the SSD1783 LCD on the Compal E99.
3055    * Library:  cfsetispeed(), cfsetospeed(), tcflush(), memchr(), and
3056      memccpy().
3057    * Applications:  Port of freemodbus-v1.5.0. Add support for testing
3058      devices with multiple ADC, PWM, and QE devices.
3059      NSH: NSH 'mount' command (with no arguments) will now show mounted
3060      volumes.  Add new NSH 'df' command.  Extended 'help' support. NSH
3061      now catches the return value from spawned applications (provided
3062      by Mike Smith).
3063    * Build System: mkconfig will not define CONFIG_DRAM_END.  A lot of
3064      progress has been made on the automated NuttX configuration logic
3065      (Thanks go to Richard Cochran).
3066    * Documentation: Document ways to customize the behavior of NSH.
3067
3068Bugfixes (see the change log for details) :
3069
3070    * Serial drivers (all): Fix ioctl return value. Common "upper half"
3071      serial driver will now return with EINTR if a serial wait is
3072      interrupted by a signal.
3073    * FAT: Fix statfs() file name length.
3074    * LPC43xx: Clock configuration.
3075    * STM32: Pinmap fixes, SPI driver re-initialization
3076    * STM32 Boards: Correct and lower SDIO frequency for F2 and f4 boards.
3077    * AVR: C++ build issues.
3078    * PM: Fix a place where interrupts were not be re-enabled.
3079    * Applications: NSH application start-up race conditions.
3080    * Library: Fieldwidth and justification for %s format.  Fixed several
3081      issues with presenting floating point numbers.  NULL definition
3082      for C++
3083
3084As well as other, less critical bugs (see the ChangeLog for details)
3085
3086NuttX-6.22
3087----------
3088
3089The 89th release of NuttX, Version 6.22, was made on September 29, 2012,
3090and is available for download from the SourceForge website.  Note
3091that release consists of two tarballs:  nuttx-6.22.tar.gz and
3092apps-6.22.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
3093file for build information).
3094
3095This release corresponds with SVN release number: r5206
3096
3097Note that all SVN information has been stripped from the tarballs.  If you
3098need the SVN configuration, you should check out directly from SVN.  Revision
3099r5206 should equivalent to release 6.22 of NuttX 6.22:
3100
3101    svn checkout -r5206 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3102
3103Or
3104
3105    svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3106
3107Additional new features and extended functionality:
3108
3109    * RTOS: Application entry point is no longer user_start, but can be
3110      configured using CONFIG_USER_ENTRYPOINT.  NuttX now supports two work
3111      queues:  A lower priority work queue (for extended processing) and a
3112      higher priority work queue (for quick, high priority operations).
3113
3114    * Memory Management: Added a new granule-based allocated that can be
3115      used to manage, aligned and quantized DMA memory.
3116
3117    * File System: Add hooks to allocate I/O memory with and external
3118      allocated (need if required by DMA).
3119
3120    * Networking: ENC28J60 driver is (finally) verified.
3121
3122    * Drivers: Add hooks USB device drivers to allocate I/O memory with and
3123      external allocated (need if required by DMA).  Driver for the Windbond
3124      SPI FLASH family (W25x16, W25x32, W25x64, and others).  ADS7843E driver
3125      extended for TSC2046 and XPT2046 and verified.
3126
3127    * ARMv7-M: Added logic to reset the MCU using the NVIC.
3128
3129    * STM32: Add support for STM32F103VET6.
3130
3131    * STM32 Drivers: Add logic to re-initialize UARTs a second time to
3132      enable DMA (Mike Smith).  I2C driver error recovery (Mike Smith).
3133
3134    * STM32 boards: Support for USB host added add to several configurations
3135      (or at least explained in README files).  Support for the Shenzhou
3136      STM32F107 board (see www.armjishu.com).  Support for M3 Wildfire
3137      STM32F103 board (v2 and v3).
3138
3139    * Build System:  Kconfig string de-quoting logic.  Remove comments from
3140      defconfig files (Kate).  Add tool to create NuttX-style symbol tables.
3141      Numerous changes to configuration logic as needed for the new mconf-based
3142      configuration (much of this from Richard Cochran).  Refactor common
3143      Make.defs logic into tools/Config.mk (Richard Cochran).
3144
3145    * Library: Configurable terse output from strerror(). Added perror() (Kate).
3146      Add %n format to sscanf() (Kate).
3147
3148    * Applications: Numerous changes and extensions to the old uIP web server
3149      (from Kate and Max Holtzberg, see the ChangeLog for specific extensions).
3150      UDP network discovery utility (Max Holtzberg).  Embeddable Lightweight
3151      XML-RPC Server (http://www.drdobbs.com/web-development/an-embeddable-lightweight-xml-rpc-server/184405364, Max Holtzberg).
3152
3153Bugfixes (see the change log for details).  Some of these are very important
3154(marked *critical*):
3155
3156    * RTOS: Fixes to priority inheritance logic (*critical*).  waitpid()
3157      critical section.  Assertion in work_cancel() (Mike Smith).  mmap() (Kate).
3158
3159    * FAT File System: Improper Boolean expression caused un-necessary writes
3160      and performance issues (*critical*, Ronen Vainish).
3161
3162    * Networking: Remove an un-necessary delay from recvfrom().  This greatly
3163      improves network performance (*critical*, Max Holtzberg).
3164
3165    * Graphics: NX parameter checking errors.
3166
3167    * Drivers: Fix double release of memory in SDIO-based, MMC/SD driver
3168      (Ronen Vainish).
3169
3170    * LPC17xx:  Ethernet driver fixes needed for certain PHYs (Kate).
3171
3172    * AVR: Fix build error (Richard Cochran).
3173
3174    * STM32: USB OTG FS host driver NAKing an retries.  Power management
3175      compilation errors (Diego Sanchez).  Missing SPI3 remap logic.
3176
3177    * STM32 Drivers: Fix for Ethernet errata for STM32F107 (*critical*).
3178      Ethernet buffer alignment check.  Add "kludge" to Ethernet driver to
3179      handle DM9161 PHY which (at least on the Shenzhou board), sometimes
3180      does not come up correctly.
3181
3182    * Applications: THTTPD (Kate).  NSH ping when IP address is on a different
3183      network (Darcy Gong).
3184
3185    * Library: fread(), fflush(), fdopen(): Fix error handling logic (Ronen
3186      Vainish). Fix some field-width handling issues in sscanf()
3187
3188As well as other, less critical bugs (see the ChangeLog for details)
3189
3190NuttX-6.23
3191----------
3192
3193The 90th release of NuttX, Version 6.23, was made on November 5, 2012,
3194and is available for download from the SourceForge website.  Note
3195that release consists of two tarballs:  nuttx-6.23.tar.gz and
3196apps-6.23.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
3197file for build information).
3198
3199This release corresponds with SVN release number: r5313
3200
3201Note that all SVN information has been stripped from the tarballs.  If you
3202need the SVN configuration, you should check out directly from SVN.  Revision
3203r5313 should equivalent to release 6.23 of NuttX 6.23:
3204
3205    svn checkout -r5313 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3206
3207Or
3208
3209    svn checkout -r5313 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3210
3211Additional new features and extended functionality:
3212
3213    * RTOS:  If both atexit() and on_exit() are enabled, use on_exit() to
3214      implement atexit().  Updates for RGMP 4.0.
3215
3216    * Binfmt:  Add support for loading and executing ELF binary modules from
3217      a file system.
3218
3219    * Drivers:  Maxim MAX11802 touchscreen controller (Petteri Aimonen)
3220
3221    * STM32 Driver:  Implementation of /dev/random using the STM32 Random Number
3222      Generator (RNG).
3223
3224    * STM32 Boards:  ADC support for the Shenzhou IV board.  Relay support for
3225      the Shenzhou IV board.
3226
3227    * C Library:  Support is now included for the add-on uClibc++ C++
3228      standard library support.  This includes support for iostreams, strings,
3229      STL, RTTI, exceptions -- the complete C++ environment.  (uClibc++ is
3230      provided as a separate add-on package due to licensing issues).
3231
3232      Optimized generic and ARM-specific memcpy() function.  Optimized
3233      memset() function.
3234
3235      Add support for ferror(), feof(), and clearerror().   Add support for
3236      __cxa_atexit().
3237
3238      Math Library:  Port of the math library from Rhombus OS by Nick Johnson
3239      (Darcy Gong).
3240
3241    * Applications: New NSH commands:  ifup, ifdown, urlencode, urldecode,
3242      base64enc, bas64dec, md5 (Darcy Gong).  Add support for NSH telnet login
3243      (Darcy Gong).  Enancements to NSH ping command to support pinging hosts
3244      with very long round-trip times.  Extensions to the ifconfig command
3245      Darcy Gong),
3246
3247      Many extensions to the webclient/wget and DNS resolver logic from Darcy
3248      Gong.  JSON, Base64, URL encoding, and MD5 libraries contributed by Darcy
3249      Gong.
3250
3251      New examples: ELF loader, JSON, wgetjson, cxxtest, relays.
3252
3253Bugfixes (see the change log for details).  Some of these are very important
3254(marked *critical*):
3255
3256    * Drivers: W25 SPI FLASH
3257
3258    * STM32 Drivers: ADC reset
3259
3260    * Graphics: Missing implementation of the blocked method (*critical*,
3261      Petteri Aimonen).
3262
3263    * C Library: Floating point numbers in printf and related formatting functions
3264     (Mike Smith), cf[get|set]speed() (Mike Smith)
3265
3266As well as other, less critical bugs (see the ChangeLog for details)
3267
3268NuttX-6.24
3269----------
3270
3271The 91st release of NuttX, Version 6.24, was made on December 20, 2012,
3272and is available for download from the SourceForge website.  Note
3273that release consists of two tarballs:  nuttx-6.24.tar.gz and
3274apps-6.24.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
3275file for build information).
3276
3277This release corresponds with SVN release number: r5447
3278
3279Note that all SVN information has been stripped from the tarballs.  If you
3280need the SVN configuration information, you should check out directly from
3281SVN.  Revision r5447 should equivalent to release 6.24 of NuttX 6.24:
3282
3283    svn checkout -r5447 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3284
3285Or (HTTP):
3286
3287    svn checkout -r5447 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3288
3289Additional new features and extended functionality:
3290
3291  * RTOS:
3292
3293    - Implemented the POSIX pause() function (still has some compiance
3294      issues).
3295    - Tasking logic is extended to support the notion of address
3296      environments.  An address environment is the key notion underlying
3297      "process" vs. tasks.  If tasks are created with address environments
3298      (by binfmt), the OS will propogate that environment to child threads
3299      and will destroy the address environment when the "process" exists.
3300    - If support for the PATH variable is enabled, the OS start up logic
3301      will create an initial environment containing the default PATH
3302      setting (CONFIG_PATH_INITIAL).  This initial PATH will then be
3303      inherited by all tasks.
3304
3305  * Binfmt
3306
3307    - The NuttX binary loaders have been updated to support the PATH
3308      environment variable.  Now, if the PATH is properly defined, programs
3309      can be executed from mass storage using only the file name.  This
3310      feature is added to support more standard behavior (eventually, NSH
3311      will support execution of programs in file systems by just entering
3312      the file name, perhaps in 6.25?).
3313    - The NXFLAT and ELF binary loaders have been extended to create
3314      address environments for any new tasks executed from the file system.
3315      This feature requires that the architecture support a memory management
3316      unit (MMU) and the address environment interfaces declared in
3317      include/nuttx/arch.h (currently, this is only supported by the z180).
3318
3319    * Drivers: LCD driver for the Univision UG-2864AMBAG01 OLED
3320
3321    * STM32: Support for STM32F100 high density chips contributed by Freddie
3322      Chopin.
3323
3324    * STM32 Drivers:  Added optional RS-485 direction bit control (from
3325      Freddie Chopin).
3326
3327    * STM32 Boards:
3328
3329      - Support for generic STM32F100RC board contributed by Freddie Chopin.
3330      - stm32f4discovery/nxlines: STM32F4Discovery support for the
3331        UG-2864AMBAG01 OLED.
3332      - stm32f4discovery/winbuild:  A version of the NuttX OS test
3333        configured to build natively on Windows.
3334      - stm32f4discovery/elf: Now uses the PATH variable to find ELF
3335        executables.
3336      - configs/cloudctrl: Added for Darcy Gong's CloudController board
3337
3338    * PIC32 Boards: Update the Mirtool configuration for Release 2 of the
3339      Mirtoo module.
3340
3341    * Calypso: Add Calypso keypad driver.  From Denis Cariki.
3342
3343    * ZiLOG:
3344
3345      - Add support for the z180 chip family and, specifically, for
3346        the P112 retro hardware (see http://p112.feedle.net/).
3347      - All ZiLOG configurations updated to use the current ZDS-II
3348        and/or SDCC toolchains.
3349
3350    * Graphics:
3351
3352      - Add a semaphore handshake so that operations on buffers from
3353        the NXMU client will be blocked until the NX server operates on the
3354        buffer data (from Petteri Aimonen).
3355      - nxtk_subwindowmove() and nxtk_getwindow(): Improvements to clipping
3356        logic from Petteri Aimonen.
3357
3358    * C Library: lib/ sub-directory renamed libc/ (there is a new lib/ sub-
3359      directory that is used to hold all archives).
3360
3361    * C++: Exception stubs from Petteri Aimonen.
3362
3363    * Applications:
3364
3365      - Add NSH hexdump command to dump the contents of a file (or character
3366        device) to the console (contributed by Petteri Aimonen).
3367      - Extend the NSH ifconfig command plus various DHCPC improvements
3368        (from Darcy Gong).
3369
3370    * apps/examples:
3371
3372      - ostest: Replace large tables with algorithmic prime number
3373        generation.  This allows the roundrobin test to run on platforms
3374        with minimal SRAM (Freddie Chopin).
3375      - keypadtest:  A new keypad test example contributed by Denis Carikli.
3376      - elf and nxflat:  If CONFIG_BINFMT_EXEPATH is defined, these examples
3377        will now use a relative path to the program and expect the binfmt/
3378        logic to find the absolute path to the program using the PATH
3379        variable.
3380
3381    * Build system:
3382
3383      - New top-level Makefiles: Makefile.unix and Makefile.win (along with
3384        numerous changes to other make-related files).  This adds basic
3385        support for building NuttX natively under Windows from a CMD.exe
3386        window (rather than in a POSIX-like environment). This build: (1)
3387        Uses all Windows style paths, (2) Uses primarily Windows batch
3388        commands from cmd.exe, with (3) a few extensions from GNUWin32.
3389
3390        This capability should still be considered a work in progress
3391        because: (1) it has not been verfied on all targets and tools,
3392        and (2) still lacks some of the creature-comforts of the more
3393        mature environments (like a function configure.sh script and
3394        'make menuconfig' support).
3395
3396      - Example Windows native builds for STM32F4Discovery, eZ80, z16f, z8,
3397        Z80, and Z180.
3398      - Several configurations have been converted to work the kconfig-
3399        frontends mconf configuration tool: stm32f4discovery/nxlines, and
3400        all eZ80, z16f, z8, Z80, and Z180 configurations.
3401      - Architectures now include a common Toolchain.defs file that can be
3402        used to manage toolchains in a more configurable way (most of this
3403        contributed by Mike Smith).
3404
3405    * Build tools:
3406
3407      - Renamed tools/winlink.sh to tools/copydir.sh.
3408      - Several new tools/scripts to support the Windows native build:
3409        tools/mkdeps.bat, tools/mkdeps.c, tools/link.bat, unlink.bat, and
3410        copydir.bat.
3411      - tools/incdir.sh and incdir.bat now support an -s option to generate
3412        system header file paths.
3413      - tools/b16.c: Fixed precision math conversion utility.
3414
3415Bugfixes (see the change log for details).  Some of these are very important
3416(marked *critical*):
3417
3418    * RTOS: Fix some backward conditional compilation in the work queue
3419      logic (Freddie Chopin).
3420
3421    * File System: Uninitialized variable caused assertions (from Lorenz
3422      Meier).
3423
3424    * Drivers: Partial fix for STM32 OTGFS device drivers and fix for short,
3425      unaligned writes in the flash translation layer (drivers/mtd/ftl.c),
3426      both from Petteri Aimonen.
3427
3428    * STM32 Drivers:
3429
3430      - Qencoder driver and TIM3 driver fixes from Ryan Sundberg.
3431      - Fix timeout delay calculation in the STM32 OTG FS host driver.
3432
3433    * LPC17xx Drivers:  Resources not being properly released when I2C
3434      driver is un-initialized.
3435
3436    * Graphics:
3437
3438      - Fix logic when the mouse drags outside of the window; fix
3439        another "blocked message" handling case (both from Petteri Aimonen).
3440      - nxtk_filltrapwindow():  Correct an offset problem (also from Peterri
3441        Aimonen).
3442      - nxglib_splitline():  Correct the "fat flat line" bug.
3443
3444    * C Library:
3445
3446      - nrand() changes to prevent coefficients from becoming zero which
3447        would "lock up" the random number generate.
3448      - Add rounding functions to the math library (contributed by Petteri
3449        Aimonen).
3450
3451    * Build system:  Changes to MIN definitions in all limit.h header files
3452      to avoid integer overflows.  For example from (-128) to (-127 - 1)
3453      (from Petteri Aimonen).
3454
3455    * Applications: Modbus fixes from Freddie Chopin.
3456
3457As well as other, less critical bugs (see the ChangeLog for details)
3458
3459NuttX-6.25
3460----------
3461
3462The 92nd release of NuttX, Version 6.25, was made on February 1, 2013,
3463and is available for download from the SourceForge website.  Note
3464that release consists of two tarballs:  nuttx-6.25.tar.gz and
3465apps-6.25.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
3466file for build information).
3467
3468This release corresponds with SVN release number: r5595
3469
3470Note that all SVN information has been stripped from the tarballs.  If you
3471need the SVN configuration information, you should check out directly from
3472SVN.  Revision r5595 should equivalent to release 6.25 of NuttX:
3473
3474    svn checkout -r5595 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3475
3476Or (HTTP):
3477
3478    svn checkout -r5595 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3479
3480Additional new features and extended functionality:
3481
3482    * OS Initialization
3483
3484      - Removed support for CONFIG_BUILTIN_APP_START.  This is not really a
3485        useful feature and creates a violation of the OS layered
3486        architecture.
3487
3488    * Task Creation:
3489
3490      - Implement a simple vfork().  In NuttX-6.25, this interface is
3491        available only for ARM7/9, ARMv7-M (Cortext-M3/4), and MIPS32
3492        (PIC32MX) platforms.
3493      - exec() now sets the priority of the new task to the same priority as
3494        the parent task (instead of the arbirtrary value of 50).
3495      - New, partially complient implementations of execv() and execl().
3496        These are only partially compliant because they do not overlay any
3497        existing "process space" but rather create the new task and exit().
3498      - Add a complete implementation of posix_spawn().  This standard
3499        interface is a better match for an MMU-less architecture than are
3500        vfork() plus execv() or execl().
3501      - Add a task start hook that will be called before the task main
3502        is started.  This can be used, for example, to schedule C++
3503        static constructors to run automatically in the context of the
3504        new task.
3505
3506    * Task Parentage
3507
3508      - Repartitioned tasking data structures.  All shared resources are now
3509        collected together in a "task group".  A task group includes the
3510        original task plus all of the pthreads created by the task.
3511      - Added support for remember the parent "task group" when a new task is
3512        started.
3513      - Added optional support to record the membership of each thread in
3514        the "task group".
3515      - Implement support for retaining child task status in the "task group"
3516        after the child task exists.  This is behavior required by POSIX.
3517        But in NuttX is only enabled with CONFIG_SCHED_HAVE_PARENT and
3518        CONFIG_SCHED_CHILD_STATUS
3519      - Add internal logic to "reparent" a task.  This is useful,
3520        for example, where the child task is created through a trampoline
3521        task that redirects I/O.  Reparenting allows the caller of posix_spawn()
3522        to be reparented for the eventual child thread.
3523      - Added support for SIGCHLD.  Sent to all members of the parent task
3524        group when the file member of the child task group exits.
3525      - If SIGCHLD and retention of child task exist status are enabled, then
3526        a more spec-compliant version of waitpid() is enabled.
3527      - New interfaces waitid() and wait() are also enabled when SIGCHLD
3528        is enabled.
3529
3530    * File System
3531
3532      - dup() and dup2() can new be used with opened files in a mounted file
3533        system.  This supports re-direction of output in NSH to files.
3534      - The binfs file system was moved from apps/builtin to fs/binfs.  The
3535        binfs file system was extended to support execution of "builtin
3536        applications" using exec(), execv(), execl(), or posix_spawn().
3537      - Added logic based on SIGCHLD to automatically unload and clean-up
3538        after running a task that was loaded into memory.
3539
3540    * Binary Formats
3541
3542      - Much of the logic for "builtin applications" was moved from
3543        apps/builtin to nuttx/binfmt/libbuiltin.  Includes some extensions
3544        contributed by Mike Smith.
3545      - A binary loader was added for builtin applications to support
3546        execution of "builtin applications" using exec(), execv(),
3547        execl(), or posix_spawn().
3548
3549    * Drivers:
3550
3551      - Added logic to marshal and serialized "out-of-band" keyboard
3552        commands (such as cursor controls and key release events) intermixed
3553        with normal ASCII keypress data.  The encoding is partially integrated
3554        in the HID keyboard driver and the decoding full integrated into the
3555        apps/examples hidkbd and keypadtest (the latter contributed by Denis
3556        Carlikli).
3557      - Driver for the UG-2864HSWEG01 OLED contributed by Darcy Gong.
3558      - Add support for removable serial devices (like USB serial).  This
3559        support is enabled by CONFIG_SERIAL_REMOVABLE.
3560
3561    * ARMv7-M:
3562
3563      - Added an option to use the BASEPRI register to disable interrupts
3564        (instead of the PRIMASK).  This eliminates some innocuous hardfaults
3565        that interfere with some debug tools.  You need to switch to the
3566        BASEPRI method only if you have such tool interference.
3567
3568    * STM32 Drivers
3569
3570      - Bring STM32 F1 DMA capabilities up to par with the STM32 F2/F4
3571        (contributed by Mike Smith).
3572      - Add support for USART single wire mode (Contributed by the PX4
3573        team).
3574      - Updates to support for SPI DMA on the STM32 F1/F2/F4.  From
3575        Petteri Aimonen.
3576
3577    * STM32 Boards:
3578
3579      - New configuration to support the UG-2864HSWEG01 OLED on the
3580        STM32F4Discovery board.
3581      - Added a posix_spawn() test configuration for the STM32F4Discovery.
3582
3583    * LM3S/LM4F
3584
3585       - Files and directories repartitioned to support both LM3S and LM4F
3586         using the STM32 organization as a model.
3587       - Partial definitions for the LM4F contributed by Jose Pablo Carballo
3588         (this is still a work in progress).
3589
3590    * LM3S Boards
3591
3592       - Added scripts and documentation to use OpenOCD with the LM3S (from
3593         Jose Pablo Carballo).
3594
3595    * LPC176x/LPC178x
3596
3597       - Files and directories repartitioned to support both LPC175x/LPC176x
3598         and the LPC177x/LPC178x families using the STM32 organization as a
3599         model.  The LPC1788 port is a work in progress by Rommel Marcelo.
3600
3601    * LPC176x/LPC178x Boards:
3602
3603      - Added a configuration to support the Wave Share Open1788 board.
3604        This is still a work in progress by Rommel Marcelo.
3605
3606    * LPC2148 Boards:
3607
3608      - Add basic support for the The0.net ZP213x/4xPA board (with the LPC2148
3609        and the UG_2864AMBAG01 OLED).
3610      - Add an nxlines configuration for the ZP213x/4xPA (with the LPC2148
3611        and the UG_2864AMBAG01).
3612
3613    * Simulator:
3614
3615      - Add an nxlines configuration for the simulator.
3616
3617    * Networking:
3618
3619      - Add logic to work around delayed ACKs by splitting packets
3620        (contributed by Yan T.).
3621      - Split net_poll() to create the internal interface psock_poll().
3622
3623    * LCDs:
3624
3625      - Added support for LCD1602 alphanumeric LCD (HD4468OU controller).
3626
3627    * Graphics:
3628
3629      - Added 5x8 monospace font. This tiny font is useful for graph
3630        labels and for small bitmapped display.  Contributed by Petteri
3631        Aimonen.
3632
3633    * Build System:
3634
3635      - Add an options to better manage toolchain prefixes.
3636      - Redesigned how the context targer works in the apps/ directory.
3637        The old design caused lots of problems when changing configurations
3638        because there is no easy way to get the system to rebuild the
3639        context.  This change should solve most the problems and eliminate
3640        questions like "Why don't I see my builtin application in NSH?"
3641
3642    * Kconfig Files:
3643
3644      - There are several new configurations that use the kconfig-frontends
3645        tools and several older configurations that have been converted to
3646        use these tools.  There is still a long way to go before the conversion
3647        is complete:
3648
3649        configs/sim/nxwm
3650        configs/sim/nsh
3651        configs/stm3220g-eval/nxwm
3652        configs/stm32f4discovery/posix_spawn
3653        configs/olimex-lpc1766stk/nsh
3654        configs/olimex-lpc1766stk/hidkbd
3655        configs/olimex-lpc1766stk/nettest
3656        configs/open1788/ostest
3657        configs/stm32f4discovery/nsh
3658        configs/stm32f4discovery/usbnsh
3659        configs/lm326965-ek (all configurations)
3660        configs/mcu123-214x/nsh
3661        configs/ubw32/ostest
3662
3663    * Tools:
3664
3665      - tools/kconfig.bat:  Kludge to run kconfig-frontends from a DOS shell.
3666      - tools/configure.c:  configure.c can be used to build a work-alike
3667        program as a replacement for configure.sh.  This work-alike
3668        program would be used in environments that do not support Bash
3669        scripting (such as the Windows native environment).
3670      - tools/configure.bat: configure.bat is a small Windows batch
3671        file that can be used as a replacement for configure.sh in a
3672        Windows native environment.  configure.bat is actually just a
3673        thin layer that executes configure.exe if it is available. If
3674        configure.exe is not available, then configure.bat will attempt
3675        to build it first.
3676
3677    * Applications:
3678
3679      - New and modified examples:
3680
3681        apps/examples/wlan: Remove non-functional example.
3682        apps/examples/ostest: Added a test of vfork(). Extend signal
3683          handler test to catch death-of-child signals (SIGCHLD). Add a
3684          test for waitpid(), waitid(), and wait().
3685        apps/exampes/posix_spawn: Added a test of posix_spawn().
3686
3687      - NSH:
3688
3689        NSH now supports re-direction of I/O to files (but still not from).
3690        The block driver source argument to the mount command is now
3691          optional for file systems that do not require a block driver.
3692        NSH can now execute a program from a file system using posix_spawn().
3693        Added support for a login script.  The init.d/rcS script will be
3694          executed once when NSH starts; the .nshrc script will be executed
3695          for each session:  Once for serial, once for each USB connection,
3696          once for each Telnet session.
3697
3698      - Supports a new daemon that can be used to monitor USB trace outpout.
3699      - Removed non-functional wlan example.
3700
3701Bugfixes (see the ChangeLog for details).  Some of these are very important:
3702
3703    * Tasking:
3704
3705      - Fixed a *critical* task exit bug.  Here is the failure scenario:
3706        (1) sched_lock() is called increments the lockcount on the current
3707        TCB (i.e., the one at the head of the ready to run list), (2)
3708        sched_mergepending is called which may change the task at the head
3709        of the ready-to-run list, then (3) sched_unlock() is called which
3710        decrements the lockcount on the wrong TCB.  The failure case that
3711        I saw was that pre-emption got disabled in the IDLE thread, locking
3712        up the whole system.
3713
3714    * Signals:
3715
3716      - sigtimedwait() would return a bad signal number if the signal was
3717        already pending when the function was called.
3718
3719    * Drivers:
3720
3721      - Some SD cards will appear busy until switched to SPI mode for
3722        first time.  Having a pull-up resistor on MISO may avoid this
3723        problem, but this fix from Petteri Aimonen makes it work also
3724        without pull-up.
3725
3726    * STM32 Drivers:
3727
3728      - STM32 FLASH driver counting error (from Freddie Chopin).
3729      - STM32 F4 maximum SPI frequency was wrong (corrected by Petteri
3730        Aimonen).
3731
3732    * STM32 Boards
3733
3734      - Due to cloning of untested code, the logic to control on-board
3735        LEDs did not work on any STM32 boards.
3736      - Serial devices number /dev/ttyS0-5 is there is a serial console,
3737        but /dev/ttyS1-6 if there is no serial console.
3738
3739    * Binary Formats
3740
3741      - C++ static constructors execute now using a start taskhook
3742        so that they execute in the context of the child task (instead
3743        of in the context of the parent task).
3744
3745    * File Systems:
3746
3747      - Several FAT-related bugs fixed by Petteri Aimonen.
3748
3749    * Networking:
3750
3751      - Fix poll/select issure reported by Qiang: poll_interrupt() must call
3752        net_lostconnection() when a loss of connection is reported.  Otherwise,
3753        the system will not remember that the connection has been lost and will
3754        hang waiting on a unconnected socket later.
3755      - Similar issues corrected for recvfrom() and send().
3756      - Telnetd would hang in a loop if recv() ever returned a value <= 0.
3757
3758    * Libraries:
3759
3760      - fread() could hang on certain error conditions.
3761      - Can't handle SYSLOG output to a character device from  the IDLE task
3762        (because the IDLE task can't block).
3763
3764    * Build System:
3765
3766      - Serial was driver was not being built if there is no console
3767        device.  Obviously, the serial driver may be needed even in
3768        this case.
3769
3770    * Additional Bugfixes:
3771
3772      - sig_timedwait() and clock_time2ticks.c: Timing "rounding" logic
3773      - ARM9 Compilation issue with low vectors.
3774      - readline() return value
3775      - Others as detailed in the ChangeLog: HID keyboard, LPC17xx bit
3776        definitions, strndup(), PL2303, SYSLOG error handling, AT25,
3777        apps/examples.
3778
3779NuttX-6.26
3780----------
3781
3782The 93rd release of NuttX, Version 6.26, was made on March 15, 2013,
3783and is available for download from the SourceForge website.  Note
3784that release consists of two tarballs:  nuttx-6.26.tar.gz and
3785apps-6.26.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
3786file for build information).
3787
3788This release corresponds with SVN release number: r5745
3789
3790Note that all SVN information has been stripped from the tarballs.  If you
3791need the SVN configuration information, you should check out directly from
3792SVN.  Revision r5745 should equivalent to release 6.26 of NuttX:
3793
3794    svn checkout -r5745 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3795
3796Or (HTTP):
3797
3798    svn checkout -r5745 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
3799
3800Additional new features and extended functionality:
3801
3802    * OS Initialization:
3803
3804      - Add an additional call-out to support board-specific driver
3805        initialization during the boot-up phase (available with
3806        CONFIG_BOARD_INITIALIZE=y).
3807
3808    * Tasking:
3809
3810      - New interface task_spawn() that is like posix_spawn(), but uses
3811        entry point addresses like task_create().
3812      - Additional data restructuring as a continuation of the task group
3813        changes of NuttX 6.25.  These data structures were moved from the
3814        TCB structure into the task group:  pthread join data,
3815        atexit/on_exit callbacks, waitpid data structures, and message
3816        queues.
3817      - TCBs for tasks and pthreads are now separate structures.  This
3818        saves a little memory since tasks do not have to carry the overhead
3819        for threads and vice versa.
3820
3821    * Kernel Build:
3822
3823      - Extensive changes were made to support the kernel build mode.  In
3824        this mode, NuttX is built as a monolithic kernel.  NuttX is built
3825        as a separate kernel mode "blob" and the applications are built
3826        as a separate user mode "blob".  The kernel runs in kernel mode and
3827        the applications run in user mode (with the MPU restricting user
3828        mode accesses).  Access to the kernel from the user blob is only
3829        via system calls (SVCalls).
3830      - Extensive changes were made to the syscall, SVCall, and trapping
3831        logic.  Many internal interfaces were renamed.
3832      - The memory manager was extended to support both kernel- and user-
3833        mode allocations.  Logic within the kernel needs to use the
3834        correct kernel- or user-space allocator, depending upon the user
3835        of the allocated memory.
3836      - The user-space blob now contains a header built in at the beginning
3837        of the block that provides the same information that was previously
3838        provided by a kludgy, auto-generated header file (user_map.h).
3839      - Basic support implemented for the ARMv7-M family with fragments
3840        also implemetned for the ARMv6-M and MIPS32 families.
3841      - Kernel build supported added for the LPC17xx Open1788 and for
3842        the Atmel SAM3U-EK board.  All testing is being performed on the
3843        Open1788 board.
3844
3845    * Signals:
3846
3847      - Delivery of signals to threads within a task group is now compatible
3848        with the way that signals are delivered to threads within a process.
3849
3850    * Drivers:
3851
3852      - Add a driver for the SST29VF NOR FLASH parts.
3853      - USB device trace/debug feature extended to decode device-specific
3854        trace events to make the trace output more readable (from Petteri
3855        Aimonen).
3856      - USB MSC device driver can not support names of differing sizes
3857        in the USB descriptor and the SCSI fields (from Petteri Aimonen).
3858      - Locking added to MMC/SD SPI drivers so that MMC/SD can co-exist on
3859        the same bus as other SPI devices.  Frequency is reset each time
3860        that the MMC/SD SPI has the bus locked. (from Petteri Aimonen).
3861
3862    * ARMv6-M (Cortex-M0):
3863
3864       - Added support for the ARM Cortex-M0 family.
3865
3866    * nuvoTon NUC120:
3867
3868       - Added support for the nuvoTon NUC120 MCU (Cortex-M0).
3869
3870    * nuvoTon NUC120 Boards:
3871
3872       - Added basic support for the nuvoTon NuTiny-SDK-NUC120 board (Cortex-M0).
3873
3874    * LPC17xx:
3875
3876      - Added support for the LPC177x and LPC178x families.  Most of this is
3877        the work of Rommel Marcelo.
3878
3879    * LPC17xx Boards:
3880
3881      - Added support for Zilogic System's ARM development Kit, ZKIT-ARM-1769.
3882        From Rashid.
3883      - The port for the WaveShare Open1788 board is now functional.  Basic
3884        OS test and NuttShell (NSH) configurations are functional. More
3885        driver development and testing is needed (from Rommel Marcelo).
3886
3887    * LPC17xx Drivers:
3888
3889      - Added an SD card MSI driver for the LPC178x.  The driver is marginally
3890        functional but requires DMA capability to be reliable.
3891
3892    * STM32
3893
3894      - Support extended to handle the STM32 F3 family (Cortex-M4 with F1-like
3895        peripherals).
3896
3897    * STM32 Boards
3898
3899      - Added support the STMicro STM32F3Discovery board (STM32 F3).
3900
3901    * Stellaris LM3S/LM4F
3902
3903      - Basic support for the LM4F120 family is in place, but untested (mostly
3904        from Jose Pablo Carballo).
3905
3906    * Stellaris LM4F Boards
3907
3908      - Add support for the LM4F120 LaunchPad (untested).
3909
3910    * Networking:
3911
3912      - select() should now allocate a little less memory.
3913
3914    * Memory Management:
3915
3916      - Extended to support multiple heaps.  This is used as part of
3917        the kernel build in order to support separater user- and
3918        kernel-mode heaps.
3919      - The stand-alone memory manger test had to be removed.  It
3920        was too entangled and made extension of the memory manager
3921        nearly impossible.  This is a loss.
3922
3923    * Build System:
3924
3925      - Several configurations converted to use the kconfig-frontends
3926        configuration tool.  There are still many more that need to
3927        be converted.
3928
3929    * C Library:
3930
3931      - Move the workqueue logic into the C library.  There is now a
3932        special user-space version of the work queue (which will only
3933        be used with a NuttX kernel build).
3934      - Implementation of itoa() contributed by Ryan Sundberg.
3935
3936    * Applications:
3937
3938      - The NSH builtin task logic now uses task_spawn() to start builtin
3939        applications.
3940      - The OS test now includes a test cased to verify task_restart().
3941
3942Efforts In Progress.  The following are features that are partially
3943implemented but present in this release.  Most are expected to be fully
3944available in NuttX 6.27.
3945
3946    * LM4F120 LaunchPad port.  Code is in place, but nothing has been tested.
3947
3948    * WaveShare Open1788 port.  This port as actually complete and
3949      functional. However, there is still ongoing development and
3950      testing of drivers.
3951
3952    * Kernel Build.  Much progress has been made, but there kernel build is
3953      not yet fully functional due to several user resources that are not yet
3954      properly disentangled from the kernel blob.
3955
3956    * Conversion of old configurations to use the kconfig-frontends
3957      tool is an ongoing effort that will continue for some time.
3958
3959Bugfixes (see the ChangeLog for details).  Some of these are very important:
3960
3961    * Tasking:
3962
3963      - The wrong PID was being signalled with SIGCHILD.  It should be
3964        the PID of the task that create the task group, not the ID of
3965        the last thread to leave the task group.
3966      - Added logic so that some internal resources and states are recovered
3967        when tasks are deleted or restarted.  Handle cases where there are
3968        outstanding timed events pending when tasks are deleted or restarted.
3969
3970    * ARMv7-M:
3971
3972      - Several fixes to the MPU control logic.
3973
3974    * Drivers:
3975
3976      - Removable serial drivers race conditions fixed.
3977      - MAX11802 timing bug (from Petteri Aimonen).
3978
3979    * STM32 Drivers:
3980
3981      - Handle cases were SPI DMA logic fails if sem_wait is awakened
3982        by a signal.  Need to clear error flags to prevent corruption of
3983        subsequent transfers.  Also, bit count should not be changed while
3984        the SPI peripheral is enabled (from Petteri Aimonen).
3985      - Fixes to the OTG FS device driver from Petteri Aimonen.
3986      - Fix typos in DMA register header file (from Yan T.)
3987
3988    * Graphics:
3989
3990      - Correction to the hyphen in the SANS 17x22 font (from Petteri
3991        Aimonen).
3992
3993    * Networking:
3994
3995      - Corrected errors in the socket poll/select logic.  Additional
3996        state logic was needed to detect if the socket is still connected
3997        before starting the poll wait. (bug reported by Qiang Yu).
3998
3999    * Memory Management:
4000
4001      - mallinfo() should hold the memory manager semaphore (from Petteri
4002        Aimonen.
4003
4004    * Build System:
4005
4006      - Resolved several build errors reported by Mike Smith.
4007
4008    * Applications:
4009
4010      - Fixed an NSH memory leak:  Needed to detach after creating each
4011        pthread.
4012      - readline() now returns EOF on any failure (instead of a negated
4013        errno value).  This is because the underlying read is based on
4014        logic similar to getc.  The value zero  (meaning end-of-file)
4015        was being confused with a NUL.  So if a NUL was received, the
4016        NSH session would terminate because it thought it was the end of
4017        file.
4018
4019NuttX-6.27
4020----------
4021
4022The 94th release of NuttX, Version 6.27, was made on April 28, 2013,
4023and is available for download from the SourceForge website.  Note
4024that release consists of two tarballs:  nuttx-6.27.tar.gz and
4025apps-6.27.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
4026file for build information).
4027
4028Additional new features and extended functionality:
4029
4030    * OS Initialization:
4031
4032      - Add missing registration of /dev/zero.  Registration of /dev/null
4033        should depend upon conditional compilation.  From Ken Pettit.
4034
4035    * Tasking:
4036
4037      - Added a new interface to set aside memory on the task's stack.  This
4038        is used (at least in the kernel build) to hold task arguments.
4039      - Remove up_assert_code().  One assertion routine is enough.
4040
4041    * Kernel Build:
4042
4043      - Extensive changes were made to support the kernel build mode.  In
4044        this mode, NuttX is built as a monolithic kernel.  NuttX is built
4045        as a separate kernel mode "blob" and the applications are built
4046        as a separate user mode "blob".  The kernel runs in kernel mode and
4047        the applications run in user mode (with the MPU restricting user
4048        mode accesses).  Access to the kernel from the user blob is only
4049        via system calls (SVCalls).
4050      - Kernel build configurations for the Open1788 board and for the
4051        STM32F4Discovery now execute correctly.
4052      - Changes were made to task and thread start-up routines, signal
4053        handling, data structures, ARMv7-M SVCalls, stack management
4054        interfaces,
4055
4056    * Drivers:
4057
4058      - Driver for the ST7567 LCD Display Module from Univision Technology
4059        Inc.  Contributed by Manikandan.S
4060      - SPI initialize functions renamed so that multiple SPI blocks can
4061        be initialized.
4062      - Extended to support the RAMTRON FM25V01 device. Contributed by
4063        Lorenz Meier
4064      - Serial drivers: TIOCSERGSTRUCT ioctls now conditioned on
4065        CONFIG_SERIAL_TIOCSERGSTRUCT
4066
4067    * ARMv7-M (Cortex-M3/4):
4068
4069      - Added support for modifiable interrupt vectors in RAM
4070
4071    * nuvoTon NUC1xx:
4072
4073      - Added kernel build support
4074
4075    * Freescale Kinetis:
4076
4077      - Add kernel build support
4078      - Add support for the Kinetis L family of Cortex-M0+ MCUs.  Contributed
4079        by Alan Carvalho de Assis.
4080
4081    * LPC17xx:
4082
4083      - Now holds off sleep mode in the IDLE loop is DMA is in progress
4084        (because sleep mode will disable CPU SRAM).
4085
4086    * LPC17xx Boards:
4087
4088      - ZKIT-ARM-1769:  Now supports the ST7567 LCD display module.  Added
4089        an nxhello configuration for testing (Manikandan.S).
4090      - ZKIT-ARM-1769:  Add support for both CAN1 and CAN2.  Contributed by
4091        M.Kannan
4092
4093      - Open1788: Basic support for the WaveShare Open1788 board is complete
4094        with working OS test, NSH, and graphics configurations.
4095      - Open1788: Integrated the LPC178x LCD driver with the WaveShare display.
4096        Touchscreen support is included, howerver, there appears to be an
4097        issue with the Open1788 touchscreen interrupt signal.
4098      - Open1788:  Now supports SDRAM (used to provide the LCD framebuffer).
4099      - Open 1788: Reversed sense of the IDLE LCD. It is now off when the
4100        LPC17 is sleeping and on when awake.  That is much a better visual
4101        indication of the dynamic CPU load
4102
4103    * LPC17xx Drivers:
4104
4105      - Added an LCD framebuffer driver for the LPC177x/8x family.
4106      - Implemented LPC17xx GPDMA support.
4107      - Integrated the LPC17xx GPDMA support into the SD card driver.
4108      - SSP driver adapted to work with the LPC178x family.
4109      - Separate LPC176x and LPC178x GPIO logic; this logic is too different
4110        to maintain in one file with conditional compilation.
4111      - Re-design of the GPIO logic for the LPC178x family by Rommel Marcelo.
4112
4113    * LPC43xx:
4114
4115      - Added kernel build support
4116
4117    * STM32:
4118
4119      - Added support for kernel mode build.
4120      - Added architecure support for the STM32 F427/F437 chips. Contributed
4121        by Mike Smith
4122
4123    * STM32 Boards:
4124
4125      - Added a configuration to support a kernel mode build of the OS test
4126        on the STM32F4Discovery
4127
4128    * Stellaris LM3S/LM4F:
4129
4130      - Added kernel build support
4131      - Added support for the 7 UARTs on the LM4F120
4132
4133    * Stellaris LM4F Boards:
4134
4135      - Added scripts and instructions to simplify use of OpenOCD with ICDI
4136        (JP Carballo)
4137      - The basic for the Stellaris LM4F120 Launchpad is complete.  This
4138        includes support for OS test and NSH configurations.  Additional
4139        driver development is needed.
4140
4141    * Build System:
4142
4143      - Directories where the same sources files are used to build different
4144        objects in the first and second pass kernel builds need to keep those
4145        objects in separate directories so that they are not constantly
4146        rebuilt.
4147
4148    * Applications:
4149
4150      - apps/system/ramtest:  Add a simple memory test that can be built
4151        as an NSH command.
4152
4153    * Tools:
4154
4155      - kconfig2html is a new tool which will replace the hand-generated
4156        documentation of the NuttX configruation variables with auto-
4157        generated documentation.
4158
4159Efforts In Progress.  The following are features that are partially
4160implemented but present in this release.  Most are expected to be fully
4161available in NuttX 6.28.
4162
4163    * A port to the Freescale Freedom KL25Z is complete but not yet stable
4164      enough.  The KL25Z is a low-cost Cortex-M0+ part with 128KB of FLASH
4165      and 16KB of SRAM.  This is is the effort of Alan Carvalho de Assis.
4166
4167    * Conversion of old configurations to use the kconfig-frontends
4168      tool is an ongoing effort that will continue for some time.
4169      At this time, only 32% of the configurations have been converted
4170      to use the kconfig-frontends tools.
4171
4172Bugfixes (see the ChangeLog for details).  Some of these are very important:
4173
4174    * Tasking:
4175
4176     - Fixed a critical bug:  When there is pending C buffered output
4177       and the system is very busy, the a pthread may be blocked at
4178       a critical point when trying to exit.  Blocking at this critical
4179       point would cause crashes.  All entire task/thread exit logic
4180       paths were reviewed and failsafe mechanisms were put in place
4181       to assure that exitting tasks never block after task teardown
4182       has been started.
4183
4184    * ARMv6-M:
4185
4186      - Fixed parameter passing for all system call inline functions with > 3
4187        parameters
4188      - Fixed a major problem:  The Cortex-M0 has no BASEPRI register but the
4189        logic of NuttX-6.26 was using it to manage interrupts.  Switch to
4190        using the PRIMASK instead.  This means that hardfaults will (again)
4191        occur when SVC instructions are executed
4192
4193    * ARMv7-M:
4194
4195      - Corrected Correct MPU sub-region settings for unaligned regions.
4196      - In exception handling with CONFIG_NUTTX_KERNEL, need to explicitly
4197        set and clear the privilege bit in the CONTROL
4198      - Fixed parameter passing for all system call inline functions with > 3
4199        parameters
4200
4201    * Drivers:
4202
4203      - Support for O_NONBLOCK was not supported in the "upper half"
4204        serial driver.
4205      - PL2303 compilation errors
4206
4207    * Stellaris LM3S/4F:
4208
4209      - Corrected typos in alternate function definitions.
4210
4211    * LPC17xx Drivers:
4212
4213      - Added a work-around for an ADC errata.  From Chris Taglia
4214      - Only one ADC pin was configured. Need to configure all that
4215        are in the ADC0 set.  From MKannan
4216
4217    * File Systems:
4218
4219      - The FAT logic was not making a distinction between directory
4220        non-existence and file non-existence so when it you try to
4221        create a file in a non-existent directory, it would create a
4222        file with the name of the missing directory.  Reported by Andrew
4223        Tridgell
4224      - Several fixes to the FAT file system from Ronen Vainish.  These
4225        fixes mostly involve the logic to extend directory clusters for
4226        the case of long file names but also include a few important
4227        general fixes (such as for storing 32 bit FAT values)
4228      - mkfatfs was writing the boot code to the wrong location.  From
4229        Petteri Aimonen
4230
4231    * Networking:
4232
4233      - Fixed a compilation error when socket options are are disabled.
4234        Reported by Daniel O'Connor
4235
4236    * C Library:
4237
4238      - Corrected an error in sscanf.  If %n occurs in the format statement
4239        after the input data stream has been fully parsed, the %n format
4240        specifier will not be handled.  Reported by Lorenz Meier
4241      - strchr(str, '\0') should return a pointer to the end of the string,
4242        not NULL.  From Petteri Aimonen
4243
4244    * Build System:
4245
4246      - Fix naming of NuttX target if EXEEXT is defined.
4247
4248    * Applications:
4249
4250      - OS test: Fix timing error in non-cancelable thread test.
4251      - NSH: Correct the test of the skip input parameter.  Was limiting the
4252        range to <= count.  From Ken Petit.
4253
4254NuttX-6.28
4255----------
4256
4257The 95th release of NuttX, Version 6.28, was made on June 14, 2013,
4258and is available for download from the SourceForge website.  Note
4259that release consists of two tarballs:  nuttx-6.28.tar.gz and
4260apps-6.28.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
4261file for build information).
4262
4263Additional new features and extended functionality:
4264
4265    * File Systems:
4266
4267      - SMART FLASH file system (contributed by Add Ken Pettit).
4268
4269    * MTD (FLASH) Drivers:
4270
4271      - Add support of MTD partitions via a new MTD driver that manages a
4272        set of MTD devices, each managing a subset of the FLASH region
4273        managed by the parent MTD driver.
4274      - Extended the MTD interface to provide an (optional) method to
4275        perform byte oriented writes if supported by the FLASH part.
4276      - M25Px driver re-architected to use the byte write capability (when
4277        possible) and to use 4KB sectors for the erase block size when the
4278        part supports it (from Ken Pettit).
4279
4280    * LCD Drivers:
4281
4282      - New interface definitions to support audio devices (from Ken Pettit)
4283        and alphanumeric, segment LCDs.
4284
4285    * Wireless Drivers:
4286
4287      - Added new driver for the wireless nRF24L01+ transceiver (from
4288        Laurent Latil).
4289
4290    * Calypso:
4291
4292      - Added support for the Pirelli DP-L10 phone (from Craig Comstock via
4293        Alan Alan Carvalho de Assis)
4294
4295    * STM32:
4296
4297      - Added an option to conditionally disable the "wfi" sleep mode.  This
4298        is needed with certain JTAG debuggers to prevent the debug session
4299        from being disconnected (from Ken Pettit).
4300      - Added support for the STM32L (STM32L15X/STM32L16x) family.
4301      - Added STM32F103C4 and F103C8 chip support (from Laurent Latil).
4302      - Added a new interface function, stm32_dmacapable() that can be used
4303        to determine if DMA is possible from the specified memory address
4304        (from Petteri Aimonen)
4305
4306    * STM32 Drivers:
4307
4308      - If CONFIG_STM32_DMACAPABLE is defined, the STM32 SPI driver now uses
4309        stm32_dmacapable() to determine if it is possible to perform DMA
4310        from the specified address.  This change is important for the STM32
4311        F4 which may have SPI data buffers allocated on the stack in CCM
4312        memory which cannot support the DMA (from Petteri Aimonen).
4313
4314    * STM32 Boards:
4315
4316      - Support added for the MikroElektronika Mikromedia for STM32F4
4317        development board (from Ken Pettit) with the MIO283QT2 LCD and
4318        touchscreen.  Several graphics configurations are included.
4319      - The HY-mini STM32v board now uses the common SSD1289 driver
4320        and supported the card detect interrupt.  Several new
4321        configurations also added and some removed (from Laurent Latil).
4322      - Support added for the R65105-based LCD that comes with some
4323        HY-Mini STM32v boards (from Christian Faure).
4324      - Added basic support for the STM32L-Discovery board.  Drivers
4325        for the on-board segment LCD are included.
4326      - Added support for the STM32 Tiny development board based on the
4327        STM32 F103C8T6 MCU.  This includes support for the nRF24L01+
4328        wireless on the board (from Laurent Latil).
4329
4330    * Stellaris LM3S/LM4F:
4331
4332      - Support added for a TI/Stellaris internal FLASH MTD driver (from Max
4333        Holtzberg).
4334
4335    * Stellaris LM4F Boards:
4336
4337      - The LM3S6965-EK now has configurations for the UDP discovery tool and
4338        for the TCP echo server (both from Max Holtzberg)
4339
4340    * Atmel ATSAM3/4:
4341
4342      - Reorganized, renamed, and updated directory structure to better
4343        support additional members of the SAM3/4 family.
4344      - Added support for both the ATSAM4S and ATSAM4L families.  The
4345        ATSAM4S is similar to the ATSAM3U, but the ATSAM4L is quite a
4346        different beast, really much more akin to the AVR32s SoCs but
4347        with a Cortex-M4.
4348
4349    * Atmel ATSAM3/4 Boards:
4350
4351      - Added support for the Atmel SAM4L Xplained Pro development board.
4352        This board features the ATSAM4LC4C MCU (Cortex-M4 with 256KB FLASH +
4353        32KB SRAM).
4354      - Added support for the Atmel SAM4S Xplained developement board.  This
4355        board features the ATSAM4S16C MCU (Cortex-M4 with 1MB FLASH + 128KB
4356        SRAM).
4357
4358    * PIC32MX Boards:
4359
4360      - Added support for the 1602 segment LCD on-board the Sure PIC32MX
4361        board.  This board will now also support a USB NuttX console and
4362        the USB monitor test program.
4363
4364    * Build System:
4365
4366      - Clean-up of almost all .gitignore files:  Made scope of ignore to be
4367        only the current directory; Ignore .dSYM files in directories where
4368        .exe's may be built.  Also, in Makefiles, clean .dSYM files in
4369        directories where an .exe may be built.
4370      - Standardize and consolidated all build-as-an-NSH-application
4371        configuration settings.  Now only CONFIG_NSH_BUILTIN_APPS is
4372        sufficient to build an application, test, or or example as an NSH
4373        builtin application.
4374      - Added support for a generic ARM, ARMv6-M and ARMv7-M Windows EABI
4375        toolchains.
4376
4377    * Libraries:
4378
4379      - Added encoder/decoder logic to marshal and serialize special segment
4380        LCD (SLCD) commands intermixed with normal ASCII data.  This is the
4381        similar to the encoding/decoding logic that is used to marshal
4382        special commands from a keyboard.
4383      - Add dprintf() and vdprintf() (the latter from Andrew Tridgell).
4384      - Add an application that may be built as an NSH builtin command that
4385        will erase FLASH using a flash_eraseall NSH command (from Ken Pettit).
4386
4387    * Applications:
4388
4389      - Added an MTD partition test/examples.  Currently used with (1) the a
4390        simulation configuration to test MTD partitions on a RAM emulation
4391        of FLASH and (2) with the Mikroe STM32F4 configuration.
4392      - Added a test/example to verify alphanumeric, segment LCDs.
4393      - Added a simple single threaded, poll based  TCP echo server based
4394        on W. Richard Stevens UNIX Network Programming Book (from Max
4395        Holtzberg).
4396      - Added several tests of the SMART block driver and file system (from
4397        Ken Pettit).
4398      - Added a runtime configuration for the UDP discover utility (from
4399        Max Holtzberg).
4400      - Added an example application to demo the nRF24L01 driver (from
4401        Laurent Latil).
4402      - New and modified NSH commands:
4403        Added a -h option to the df command to show the volume information
4404        in human readable form (from Ken Petit).
4405        Add a new mksmartfs command (from Ken Petit).
4406
4407Efforts In Progress.  The following are features that are partially
4408implemented but present in this release.  Most are expected to be fully
4409available in NuttX 6.28.
4410
4411    * Audio System:
4412
4413      - A complete audio subsystem include CODECs, higher level management,
4414        interface definitions, and audio drivers was contributed by Ken
4415        Pettit.  This work has not been completely verified as of this
4416        release and so is categorized as a work-in-progress.  At present,
4417        progress is blocked due to issues interfacing with the VS1053
4418        audio DAC on the Mikroe STM32F4 board.
4419
4420    * kconfig-fronted Configuration:
4421
4422    -  Conversion of old configurations to use the kconfig-frontends
4423       tool is an ongoing effort that will continue for some time.
4424       At this time, only 43% of the configurations have been converted
4425       to use the kconfig-frontends tools.
4426
4427Bugfixes (see the ChangeLog for details).  Some of these are very important:
4428
4429    * Tasking:
4430
4431      - Modify assertion in the priority inheritance logic that is reported
4432        to cause false alarm assertions.
4433
4434    * Kernel Build:
4435
4436      - Typo in syscall proxying logic corrected by Ken Pettit.
4437
4438    * Networking:
4439
4440      - Poll setup/teardown logic should ignore invalid (i.e., negative)
4441        file descriptors (from Max Holtzberg).
4442      - When readahead data is available, the network poll() logic should
4443        set POLLIN (or POLLRDNORM), not POLLOUT (from Max Holtzberg).
4444
4445    * LCD Drivers:
4446
4447      - Correct power controls in the MIO283QT2 LCD driver.
4448
4449    * USB Device Controller Drivers:
4450
4451      - Change the default IN request buffer size from 64 to 96.  This will
4452        avoid requests of exactly MAXPACKET size and, hence, avoid so many
4453        NULL packets.  Also, fix the OUT request buffers size to exactly the
4454        max packet size.  It really cannot be any other size.
4455
4456    * STM32 Drivers:
4457
4458      - Correct some bad STM32 F1 DMA definitions that crept into the system
4459        a few months ago a broke STM32 F1 DMA (from Laurent Latil)
4460      - Fixed an error in NULL packet handling in the STM32 F1 USB device
4461        controller driver:  If the NULL-packet needed flag ever got set,
4462        then it was not being cleared and infinite NULL packets resulted.
4463        This only affects the CDC/ACM class and was the cause of the
4464        failures using the USB CDC/ACM device as a NuttX console.  With this
4465        change the USB works well as an alternative NuttX console device for
4466        the STM32 F1 family.
4467      - Correct some bad condition compilation in the RCC logic (CONFIG_
4468        missing from setting names).  This affects some STM32 FLASH pre-
4469        fetch settings (from Lorenz Meier).
4470      - Change for hardware flow control support for STM32. The change also
4471        fixes incorrect operation of USART2 and UART5 in current master
4472        (from Lorenz Meier and Mike Smith).
4473      - Fixed a backward conditional in USB OTG FS host controller driver
4474        that prevented detection of disconnection events (from Scott).
4475
4476    * LPC17xx Drivers:
4477
4478      - I2C interrupt control.  Also correction for a single byte read
4479        timeout error (from M. Kannan).
4480
4481    * Freescale Kinetis:
4482
4483      - Freedom KL25Z pin multiplexing and LED control corrections (from
4484        Alan Carvalho de Assis)
4485
4486    * PIC32MX:
4487
4488     - Fix NULL packet handling in the PIC32 USB device driver.  Without
4489       this fix the CDC/ACM driver cannot be used reliably with the PIC32
4490       USB.  With this change the USB works well as an alternative NuttX
4491       console device.
4492
4493    * Graphics:
4494
4495      - Default priorities for NxWidget and NxWM threads should be 100,
4496        not 50, to be consistent with other default priorities.
4497
4498    * Applications:
4499
4500      - Remove the CONFIG_EXAMPLES_NXTEXT_NOGETRUN option from the NXTEXT
4501        example.  The test logic was bad for the case where this options is
4502        not selected.  Also, completed the empty Kconfig file.
4503      - C++ name mangling was occurring when this example is built as an NSH
4504        built-in application causing the entry to be undefined when called
4505        from C code.
4506      - Add some missing NSH library configuration values (from Lorenz
4507        Meier).
4508
4509NuttX-6.29
4510----------
4511
4512The 96th release of NuttX, Version 6.29, was made on July 31, 2013,
4513and is available for download from the SourceForge website.  Note
4514that release consists of two tarballs:  nuttx-6.29.tar.gz and
4515apps-6.29.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
4516file for build information).
4517
4518Additional new features and extended functionality:
4519
4520    * Drivers:
4521
4522      - Generalized the SSD1306 driver and added support UG-2832HSWEG04
4523        which is very similar to the existing support for the
4524        UG-2864HSWEG01.
4525      - Added support for a generic bit-bang SPI driver.  This includes
4526        both a common "upper half" driver as well as a platformp-specific
4527        "lower half" dirvers based on a common "template."
4528
4529    * ARMv7-A, Cortex-A5
4530
4531      - Added support for the ARMv7-A architecture and the Cortex-A5 in particular.
4532
4533    * ARMv7-M, Cortex-M3/4
4534
4535      - Modified how some registers are copied during a context switch (with
4536        lazy FPU register saving).  This should save some context switching
4537        time when the context switch is due to interrupt level processing.
4538
4539    * STM32:
4540
4541      - Added support for a separate CCM heap.  This may be useful for
4542        segregating allocations for CCM (which cannot be used for DMA)
4543        from other allocations (that may be used used for DMA).
4544
4545    * STM32 Drivers:
4546
4547      - DAC: Added support for DAC DMA (contributed by John Wharington).
4548      - I2C: An I2C driver for the STM32 F3 family (from John Wharington).
4549
4550    * Atmel AT91 SAM/4:
4551
4552      - Add support for SAM3X and SAM3A chips
4553
4554    * Atmel AT91 SAM/4 Drivers:
4555
4556      - Re-architect the SAM3/4 SPI driver so that is it compatible with the
4557        SPI drivers of other MCUs.
4558      - Added register definition file for the SAM4L LCD peripheral.
4559      - Added SAM4L PDCA register definition file
4560
4561    * Atmel AT91 SAM/4 Boards:
4562
4563      - SAM4L-Xplained: Added support for the SPI-based SD card on the I/O1
4564        module.
4565      - SAM4L-Xplained: Added a driver for the LED1 segment LCD module.
4566      - SAM4L-Xplained: Added support for the UG-2832HSWEG04 OLED on the
4567        SAM4L Xplained Pro's OLED1 module
4568      - SAM4S-Xplained: Added support for on-board 1MB SRAM
4569      - Arduino Due:  Basic support for the Arduino Due (SAM3X) is now
4570        included.
4571      - SAM3U-EK:  The touchscreen is now functional.
4572
4573    * Atmel AT91 SAMA5D3
4574
4575      - Added support for the Atmel AT91SAMA5D3 Cortex-A5 chip family.
4576
4577    * Atmel AT91 SAMA5D3 Boards
4578
4579      - Added support for the Atmel SAMA5D3x-EK boards which use the AT9
4580        SAMA5D3x chips (x=1,3,4,5).
4581
4582    * Freescale KL25Z Drivers
4583
4584      - Freescale KL25Z TSI register definitions and example TSI driver for
4585        the Freedom KL25Z board from Alan Carvalho de Assis.
4586      - Added SPI driver and register definitions for the Freescale KL25Z.
4587      - Added a framework for controlling SPI-related discrete inputs and
4588        outputs.  Taken from work by Alan Carvalho de Assis
4589
4590    * Build System:
4591
4592      - New sub-directories to hold SPI-related files:  includes/nuttx/spi.h
4593        moved to include/nuttx/spi/.; SPI-related Kconfig info moved from
4594        drivers/Kconfig to drivers/spi/kconfig.
4595      - Finally... I changed the naming of configuration variables like
4596        CONFIG_DRAM_ to CONFIG_RAM_.  This has bothered me for a long time
4597        since most boards don't have DRAM.  The more generic RAM naming
4598        should not produce so much cognitive dissonance
4599
4600    * Libraries:
4601
4602      - Added CRC16 support.
4603
4604    * Applications:
4605
4606      - Added Zmodem file transfer support.  This may be used as an embedded
4607        library or may be built as 'sz' and 'rz' commands that can be
4608        executed from NSH.
4609      - C++ initializers should be set once and, preferably, in the context
4610        of the task that uses any C++ statically initialized classes.  This
4611        only becomes an issue if cxxtest or helloxx are built as NSH builtin
4612        applications.  Then you want the initialization done in cxxtext or
4613        helloxx and not in NSH (and certainly not twice).  Added
4614        configuration options to control who does the C++ initialization.
4615        NSH now does not do C++ initialization be default and must be
4616        configured to do otherwise.  Conversely, cxxtest and helloxx
4617        will always do C++ initialization unless configured do otherwise.
4618      - examples/cxxtext:  Add ostream test as provided by Michael.
4619      - NSH:  Added a 'cmp' command that can be used to compare two files
4620        for equivalence.  Returns an indication if the files differ.
4621        Contributed by Andrew Tridgell (via Lorenz Meier).
4622
4623Efforts In Progress.  The following are features that are partially
4624implemented but present in this release.  They are not likely to be
4625completed soon.
4626
4627    * Audio System:
4628
4629      - A complete audio subsystem include CODECs, higher level management,
4630        interface definitions, and audio drivers was contributed by Ken
4631        Pettit.  This work has not been completely verified as of this
4632        release and so is categorized as a work-in-progress.  At present,
4633        progress is blocked due to issues interfacing with the VS1053
4634        audio DAC on the Mikroe STM32F4 board.
4635
4636    * kconfig-fronted Configuration:
4637
4638    -  Conversion of old configurations to use the kconfig-frontends
4639       tool is an ongoing effort that will continue for some time.
4640       At this time, only 45% of the configurations have been converted
4641       to use the kconfig-frontends tools.
4642
4643Bugfixes (see the ChangeLog for details).  Some of these are very important:
4644
4645    * File Systems:
4646
4647      - Fixed compilation error if no file systems are enabled: Change
4648        error to ERROR.
4649      - Read-Ahead/Write buffering: Correct typos that can cause failures
4650        in some configurations (From Chia Cheng Tsao).
4651
4652    * Drivers
4653
4654      - Remove the wait for the touchscreen busy bit in the ADS7843E driver.
4655        From my reading of the ADS7843 spec, it would not be appropriate to
4656        wait for the BUSY bit to de-asserted anyway (since it is only de-
4657        asserted when we read the data).  Most boards do not even bother to
4658        provide the BUSY bit.
4659      - MMC/SD SPI based driver:  Driver needs to make sure that the SPI
4660        mode and data width are correct.
4661      - ENC28J60:  Change buffer ordering to work around Errata.  From Dave
4662        (ziggurat29).
4663
4664    * USB Device Controller Drivers:
4665
4666      - Fixed a typo in the composite device driver unitialization logic.
4667        DEV1 should be DEV2 in one case.
4668      - usbdev.h: Fix some typos that cause compiler errors when
4669        CONFIG_USBDEV_DMA and CONFIG_USBDEV_DMAMEMORY are selected (From
4670        Chia Cheng Tsao).
4671
4672    * ARM9:
4673
4674      - Fix a bug (uninitialized register error) that crept in the ARM9
4675        boot-up code several years ago.  Obviously no one has used the
4676        ARM9 NuttX port for years!
4677
4678    * STM32 Drivers:
4679
4680      - Fix STM32 OTF FS endpoint allocation logic.  Apparently the same
4681        endpoint can be allocated as both an IN or an OUT endpoint.  The
4682        existing implementation only supported one allocation, either IN or
4683        OUT.  This resulted in failures to allocate endpoints when used with
4684        the CDC/ACM + MSC composite driver (From Chia Cheng Tsao).
4685      - SDIO: Add support for the data block end (DBCKEND) interrupt to
4686        terminate transfers (From Chia Cheng Tsao).
4687      - DAC: Fixed numerous DAC driver errors and added support for DAC
4688        DMA (contributed by John Wharington).
4689
4690    * SAM3/4:
4691
4692      - SAM4S: Correct configuration of PIO pins for SAM4S B and C peripherals.
4693      - Need to disable write protection before configuring PIO pins.
4694      - GPIO configuration logic must protect against re-entrancy.
4695      - Clocking must be applied to the SMC module for the 3X and 3A family in
4696        order for the NFC SRAM to be functional.
4697      - Fixed some errors for interrupts on ports D-F.
4698
4699    * SAM3/4 Drivers:
4700
4701      - Common SPI driver: Fix SPI mode setting.  In the SAM3/4 family, the
4702        clock phase control (CPHA) is inverted (NPHA).  Also fixed an
4703        incorrect pointer test.  Was checking if the wrong pointer was NULL.
4704
4705    * SAM3/4 Boards:
4706
4707      - SAM3U-EK: Fix polarity of the /PENIRQ signal (it is active low).
4708        The SAM3U-EK board now runs at 96MHz.
4709
4710    * Applications:
4711
4712      - apps/examples/nxhello:  Minor fix for compilation error when the
4713        display resolution is low (< 8bpp) due to a typo that has been there
4714        for a long time.  Also Correct default colors when in Y1 code mode.
4715      - apps/system/ramtest:  The RAM test was not correctly built
4716        into the configuration and build system.
4717      - apps/examples/composite: Change to prevent some false alarm debug
4718        assertions (From Chia Cheng Tao).
4719
4720NuttX-6.30
4721----------
4722
4723The 97th release of NuttX, Version 6.30, was made on September 14, 2013,
4724and is available for download from the SourceForge website.  Note
4725that release consists of two tarballs:  nuttx-6.30.tar.gz and
4726apps-6.30.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
4727file for build information).
4728
4729Additional new features and extended functionality:
4730
4731    * Common Drivers:
4732
4733      - Extended TERMIOS support for serial and CDC/ACM drivers.  From
4734        Mike Smith, Andrew Tridgell and Lorenz Meier.
4735      - Added option to disable serial port reordering.  From Lorenz Meier.
4736      - Several changes to the USB host control interface and extensions to
4737        common USB host logic to handle host controllers with multiple
4738        downstream ports in the root hub.
4739      - USB device tracing: Extended decoding and stringifying of USB trace
4740        output to include trace output from class drivers.
4741      - USB host tracing:  Added support for USB host tracing similar in
4742        some ways to USB device tracing:  Stringification is an inherent
4743        part of the trace decoding (not an option).  Only available in the
4744        SAMA5 USB host drivers now.
4745
4746    * Networking / Network Drivers
4747
4748      - Support for the Microchip ENCX24J600 Ethernet driver from Max
4749        Holtzberg
4750      - CC3000 Networking.  Initial support for the TI CC3000 network
4751        module on the Freescale Freedom-KL25Z board from Alan Carvalho
4752        de Assis.  This is still a work in progress.
4753
4754    * ARMv7-A, Cortex-A5
4755
4756      - Restructured some MMU-related logic and header files.
4757      - Hooks added for Cortex-A8, but not yet used.
4758
4759    * STM32 Drivers:
4760
4761      - STM32 SPI: nbits() interface extended to control bit order as well
4762        as bit width (from Teemu Pirinen)
4763
4764    * STM32 Boards
4765
4766      - Olimex STM32-P107:  Incorporate ENCX24J600 networking for the Olimex
4767        STM32 P107 board.
4768      - LeafLabs Maple Board:  Add board support for the LeafLabs Maple and
4769        Maple Mini boards.  From Librae.
4770
4771    * Atmel AT91 SAMA5D3x
4772
4773      - Added support for the SAMA5 DMAC controllers.
4774      - DMA-capable drivers for the SAMA5 SPI peripherals.
4775      - DMA-capable HSCMCI 0/1/2 drivers.
4776      - Support for PIO interrupts
4777      - Utilities for intelligent conversions between physical and virtual
4778        addresses.
4779      - Added USB host controller drivers for both the OHCI (low- and full-
4780        speed) peripheral and the ECHI (high-speed) peripheral.
4781      - Added USB device controller for the SAMA5 UDPHS peripheral (full-
4782        and high-speed).
4783      - Added a Two Wire (TWI) driver.  This is a variant of I2C.
4784
4785    * Atmel AT91 SAMA5D3x-EK Development Boards
4786
4787      - Now supports onboard SDRAM.  Modified heap initialization logic
4788        to include SDRAM if configured.
4789      - Integrated a FAT file system on the on-board SPI-based AT25 serial
4790        FLASH
4791      - Integrated HSMCI0 and HSMCI1 support for the microSD and full file
4792        SD card slots.  Includes PIO interrupts for card detection events.
4793      - Integrated USB OHCI and ECHI host and high-speed peripheral support.
4794        File system on AT25 now exported via Mass Storage Class.  Includes
4795        PIO VBUS controls.
4796      - Integrated the TWI driver and the I2C tool.  Added support for an
4797        external AT24 serial EEPROM.
4798
4799    * Applications:
4800
4801      - apps/examples/cc3000.  Initial support for the TI CC3000 network
4802        module on the Freescale Freedom-KL25Z board from Alan Carvalho de
4803        Assis. Includes the test to verify the CC3000.
4804      - apps/examples/usbmsc:  apps/examples/usbstorage renamed usbmsc for
4805        consistency. Change submitted by CCTSAO.
4806      - apps/system/usbmonitor:  The USB monitor has been extended so that
4807        it can be used with USB device or host trace data.
4808
4809Efforts In Progress.  The following are features that are partially
4810implemented but present in this release.  They are not likely to be
4811completed soon.
4812
4813    * CC3000 Networking
4814
4815      - CC3000 Networking.  Initial support for the TI CC3000 network
4816        module on the Freescale Freedom-KL25Z board from Alan Carvalho
4817        de Assis.  This is still a work in progress.
4818
4819    * kconfig-fronted Configuration:
4820
4821      - Conversion of old configurations to use the kconfig-frontends
4822        tool is an ongoing effort that will continue for some time.
4823        At this time, only 46% of the configurations have been converted
4824        to use the kconfig-frontends tools.
4825
4826Bugfixes (see the ChangeLog for details).  Some of these are very important:
4827
4828    * File Systems:
4829
4830      - ROMFS: Fix an error where long (>15) file names were read
4831        incorrectly from a ROMFS file system.  From Mike Smith
4832      - NXFFS: Clean up some compiler warnings.
4833
4834    * Common Drivers
4835
4836      - MMC/SD driver: Correction for a bad return value when multiple
4837        block SDIO transfers are suppressed.  By Andrew Tridgell.
4838      - USB HID keyboard and mass storage host-side class drivers:  Fix some
4839        compilation errors and warnings when pre-allocated data structures
4840        are used.
4841      - USB device-side class drivers:  Fix some compilations errors when
4842        DUALSPEED (i.e., full- and high-sped) support is enabled.
4843      - CDC/ACM and PL2303: Don't use max packetsize assigned to the endpoint
4844        when allocating request buffers; The default value of the endpoint
4845        max packetsize may be incorrect because the endpoint has not yet
4846        been configured.  Really only an issue for high-speed endpoints.
4847      - USB Host Mast Storage Class:  Fixed a problem that was causing some
4848        devices to fail to initialize: If device is returning fatal transfer
4849        errors while attempting to initialize, don't bother with the startup
4850        retries; abort immediately so that the device will be reset and we
4851        can try again with a better ready device.
4852      - USB Host Mast Storage Class:  Correct a reference counting error:
4853        When an MSC device transfer fails while waiting for UnitTestReady,
4854        the reference count on the class was not being decremented.  The end
4855        result is a memory leak as can be seen by the USB device numbers
4856        incrementing: sda, sdb, sdc, ...
4857      - USB Device CDC/ACM:  Fix backward conditional compilation in the
4858        CDC/ACM driver with regard to remote wakeup and self-powered
4859        capabilities.  From the PX4 team via Lorenz Meier,
4860
4861    * Networking / Network Drivers
4862
4863      - ARP IP harvesting:  Correct backward condition in netmask task.
4864        From Max Holtzberg.
4865      - Network connection monitor: Fixes a race condition where a loss of
4866        connection may not be detected when the connection is lost before it
4867        has been accepted (from Max Holtzberg).
4868      - TCP/IP Backlog:  Fix a critical bug in the TCP/IP backlog
4869        initialization:  Only the first backlog buffer was getting added to
4870        the free list.  From Max Holtzberg.
4871      - ENC28J60:  Fixes and improvements back-ported from the ENCX24J600
4872        to the ENC28J60 by Max Holtzberg.
4873
4874    * STM32 Drivers:
4875
4876      - STM32 I2C fixes for the STM32 F3 family from John Wharington.
4877      - STM32 I2C Correct an error that crept into the STM32 F1 I2C
4878        driver with some recent changes.  From Librae
4879      - STM32 F4: Added some missing CONFIG_SERIAL_TERMIOS support; Fixed
4880        some STM32 F4 Timer 8 pin configurations.  From CCTSAO.
4881      - STM32 SDIO: If CONFIG_SDIO_BLOCKSETUP defined, OS would crash.  Now
4882        Generate an error if CONFIG_SDIO_BLOCKSETUP is defined; that
4883        option is not yet supported by the STM32 SDIO driver.  From CCTSAO
4884      - STM32 I2C Timers: Some CCER bit settings changed. Submitted by
4885        CCCTSAO.
4886      - STM32 CAN: Fix access to CAN filter registers.  From the PX4 team
4887        via Lorenz Meier.
4888      - STM32 Kconfig: Fix STM32 UART7/8 Kconfig names and UART DMA.  From
4889        the PX4 team via Lorenz Meier.
4890
4891    * LPC17xx Drivers
4892
4893      - Fix #endif with missing #if in USB host header file.  Reported
4894        by Andrew Bradford,
4895
4896    * SAM3/4 Boards:
4897
4898      - Corrected DMA-related problems: Bad register definitions, parameters
4899        reversed in a function call.
4900      - Correct a race condition in the HSMCI driver when an interrupt
4901        occurs before the wait for the interrupt begins.
4902      - Peripheral clock setup:  Correct a typo in a register name.
4903
4904    * Atmel AT91 SAMA5D3
4905
4906      - Order of some operations changed in boot-up logic to defer
4907        enabling of caching of memory regions until SDRAM is initialized.
4908      - Correct handling of spurious interrupts.
4909
4910    * Freescale KL25Z Drivers
4911
4912      - KL25Z SPI: Correct typo in name of a function.  From Alan Carvalho
4913        de Assis.
4914
4915    * Applications:
4916
4917      - apps/examples/composite:  Fix a typo that can cause a configuration
4918        error.  From CCTSAO.
4919      - apps/examples/pwm:  Clean-up some configuration confusion.
4920      - apps/netutils/dhcpd/dhcpd.c:  Fixed calculation of the next lease
4921        address.  From Paolo Messina.
4922      - apps/examples/usbmsc:  Don't try to control USB trace if we are
4923        an NSH built-in task.  In that case our attempts are inadequate
4924        and only interfere with with other logic that is attempting to
4925        to do the same thing (in NSH or in the USB monitor).
4926      - apps/examples/usbmsc:  IMPORTANT bug fix: Change how the msconn
4927        works.  Because of recent changes the msconn command was hanging.
4928        This was because the USB MSC start-up logic creates a pthread;
4929        Now waitpid() will wait until all members of the task group
4930        exit.  So NSH was hanging in waitpid when msconn started even
4931        though msconn returned.  The USB MSC logic really should not use
4932        a pthread, but we are stuck with that for now.  The work-around
4933        is the msconn now daemonizes itself so that it so that the pthread
4934        is created in a different task group.
4935      - apps/nshlib:  Fix NSH listing output for the case of a single file.
4936        From the PX4 team; provided by Lorenz Meier.
4937
4938NuttX-6.31
4939----------
4940
4941The 98th release of NuttX, Version 6.31, was made on October 28, 2013,
4942and is available for download from the SourceForge website.  Note
4943that release consists of two tarballs:  nuttx-6.31.tar.gz and
4944apps-6.31.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
4945file for build information).
4946
4947Additional new features and extended functionality:
4948
4949    * General:
4950
4951      - Standardized stack checking logic so the interfaces can be used
4952        by common stack monitoring logic.
4953
4954    * Audio Subsystem and Audio Drivers:
4955
4956      - Ken Pettit has finally released his long awaited audio subsystem.
4957        This is a generic audio subsystem that is appropriate for the
4958        deeply embedded MCU.  Current testing has, however, been focused
4959        on the VS1053 CODEC chip.
4960      - Ken Pettit's VS1053 audio CODEC driver is now functional.
4961
4962    * Networking / Network Drivers
4963
4964      - Add the prefix ETH0 to all PHY configuration selections.  This
4965        will allow us to support to Ethernet MAC drivers with two different
4966        PHYs (identified with ETH0 and ETH1).  Enabled with CONFIG_NETDEV_MULTINIC.
4967      - Add MII/RMII PHY definitions for the Micrel KSZ8051 PHY.
4968      - Add GMII/GRMII PHY definitions for the Micrel KSZ9021/31 PHY.
4969      - New network-optimized, higher-performance sendfile() implementation
4970        from Max Holtzberg.
4971      - Added a simple routing table.  This table is currenly only used (1)
4972        when we need to look-up an Ethernet device based on an IP address,
4973        and (2) in the ARP logic when we need to request the MAC address of
4974        the router, vs the MAC address of the peer.
4975      - Make net_close() nonblocking and free unestablished connections if
4976        no free connections available.  From Max Holtzberg.
4977      - Changed the meaning of the uip_*input functions. They now return
4978        success when a packet is dropped; This is needed for the ENCX24J600
4979        driver that must make a decision to return the packet or not:  It
4980        should not retry dropped packets. From Max Holtzberg.
4981      - David Sidrane has completed integration of the CC3000 networking.
4982        This is much more than a network driver:  It is a complete
4983        replacement for the NuttX networking with off-chip networking support
4984        in the CC3000.
4985      - Numerous enhancements to the ENCX24J600 driver from Max Holtberg.
4986
4987    * Other Common Drivers:
4988
4989      - The SST25 serial FLASH MTD driver now includes support for the
4990        SST25VF016B.  From David Sidrane.
4991      - Add a preflight method to the SDIO interface to support the STM32
4992        DMA usage model. From Mike Smith.
4993      - Enhanced the MMC/SD SDIO driver to perform DMA preflight operations
4994        and fail DMA read/write requests that fail preflighting. From Mike
4995        Smith.
4996      - Add an ioctl command that can be used to trigger ADC/DAC conversion
4997        under application control.
4998
4999    * File Systems:
5000
5001      - Enhanced the FAT32 filesystem code to understand DMA preflight
5002        failures, and to use the file sector buffer as a bounce buffer when
5003        a user-supplied buffer is not suitable for DMA. From Mike Smith.
5004
5005    * Atmel AT91 SAMA5D3x
5006
5007      - Add support so that subsets of the total DRAM (and other external
5008        memory) can be added to the heap, leaving other memory reserved for
5009        other purposes (like the LCDC framebuffers).
5010
5011    * Atmel AT91 SAMA5D3x Drivers:
5012
5013      - Use more descriptive task names when starting the EHCI and OHCI
5014        monitor tasks.
5015      - Added a 10/100Base-T Ethernet (EMAC) driver.
5016      - Added a 1000Base-T Ethernet (GMAC) driver.
5017      - Added a Real Time Clock (RTC) driver and integrated with the NuttX
5018        system time logic.
5019      - Added support for /dev/random using the SAMA5D3x True Random Number
5020        Generator (TRNG).
5021      - Added a Watchdog Timer (WDT) driver.
5022      - Added a Timer/Counter (TC) library with interface that make be used
5023        by other drivers that need timer support.
5024      - Added an ADC driver that can collect multiple samples using the
5025        sequencer, can be trigger by a timer/counter, and supports DMA data
5026        transfers.
5027      - Added a touchscreen driver based on the special features of the
5028        SAMA5D3 ADC peripheral.
5029      - Added an LCD controller (LCDC) frame buffer driver.
5030      - Added a CAN driver.  However, testing has been delayed because of
5031        cabling issues.
5032      - Basic header file support is available for the Image Sensor
5033        Interface (ISI) camera interface.  Work on the camera driver is
5034        underway and is expected in the next release.
5035
5036    * Atmel AT91 SAMA5D3x-EK Development Boards
5037
5038      - Add OS test support for the FPU test.
5039      - Enable the task name feature board configuration sto provide
5040        prettier ps command output.
5041      - Added NX and NxWM configurations to verify the LCD and touchscreen.
5042        There are still some outstanding issues with the NxWM configuration
5043        as of this release.
5044      - The TRNG and /dev/random are now enabled by default in the demo
5045        configuration.
5046
5047    * Atmel AT91 SAM3/4 Boards:
5048
5049      - Add configuration to select revision 3 of the Arduino Due which has
5050        some small but important differences.  Suggested by gdi@embedders.org.
5051
5052    * STMicro STM32:
5053
5054      - Add support for the STM32F207ZE chip. From Martin Lederhilger.
5055
5056    * STMicro STM32 Boards:
5057
5058      - Add configuration for the Spark Core.  The initial check-in is
5059        basically the Maple Mini board and subsequent development by David
5060        Sidrane is his special Spark emulation hardware.  The configuration
5061        should be very mature when actual Spark hardware is available.
5062      - Support for the Olimex STM32 P207 board added by Martin Lederhilger.
5063      - Configuration for the Mikroe STM32F4 board configuration updated for
5064        audio support by Ken Pettit.
5065
5066    * NXP LPC17xx Boards:
5067
5068      - zkit-arm-1769:  LED1 is now user controllable after booting. From
5069        Rashid Fatah.
5070
5071    * Kinetis KL Drivers:
5072
5073      - PIT and TPM register definitions header files for the from Alan
5074        Carvalho de Assis.
5075      - Added low-level getc() function for operation with no file system.
5076        The KL25Z can now support NSH in a very minimal system that does
5077        not even have a file system.
5078
5079    * Kinetis KL Boards
5080
5081      - A new configuration called minnsh was added is an experiement to
5082        see how small we can get the NuttX footprint and still support NSH.
5083        From Alan Carvalho de Assis..
5084
5085    * TI Calypso Phones:
5086
5087      - Basic board support for the Motorola C139 (Compal E86) phone.  From
5088        Craig Comstock.
5089
5090    * Applications:
5091
5092      - Moved several useful examples from apps/examples to apps/system.
5093        This includes USB MSC, USB CDC/ACM, and USB Composite.
5094      - New addroute and delroute commands added to NSH in order to manage
5095        the network routing table.
5096      - Numerous enhancements and updates to the CC3000 example from David
5097        Sidrane.
5098      - Add a new stack monitor daemon that can be used to constantly
5099        monitor stack usage by all threads.
5100      - Numerous changes to get NSH working with no file system.  Basically
5101        this suppresses I/O redirection and replaces file I/O with calls to
5102        low-level console read/write functions.  Suggested by Alan Carvalho
5103        de Assis.
5104      - apps/system/nxplayer: A new, command-line media player called
5105        'nxplayer' from Ken Pettit.
5106      - apps/examples/random:  Add a simple test that dumps values from
5107        /dev/random.
5108      - apps/examples/adc:  Add support so that a ADC driven by software
5109        triggering can be tested.
5110
5111    * Build System:
5112
5113      - The MKDEP tools now support a new argument that identifies the
5114        object file path.
5115
5116Efforts In Progress.  The following are features that are partially
5117implemented but present in this release.  They are not likely to be
5118completed soon.
5119
5120    * kconfig-fronted Configuration:
5121
5122      - Conversion of old configurations to use the kconfig-frontends
5123        tool is an ongoing effort that will continue for some time.
5124        At this time, only 48% of the configurations have been converted
5125        to use the kconfig-frontends tools.
5126
5127Bugfixes (see the ChangeLog for details).  Some of these are very important:
5128
5129    * Initialzation and Scheduling:
5130
5131      - IDLE thread initialization logic should not call group_setupidlefiles()
5132        if there are no file descriptors (and, hence, no file system).
5133      - Fix some cornercase error handling logic:  If sched_releasetcb() is
5134        called as part of a failed pthread startup before the flags field in
5135        the TCB has been initialized, then a crash occurs. Pointed out by
5136        David Sidrane.
5137
5138    * Networking / Network Drivers:
5139
5140      - Look up of a device using subnet will fail if the packet is being
5141        sent out of our subnet (via a router). The fallback here is just to
5142        use the only device ("eth0") if the subnet lookup fails (this logic
5143        was extended to handle multiple Ethernet devices by adding a simple
5144        routing table).
5145      - Fix some backward conditional logic in send() that enabled the
5146        check if the ARP address is in the ARP table.  From Max Holtzberg.
5147      - Notify the socket layer from the network monitor if a connection is
5148        lost before the monitoring callback has been registered.  From Max
5149        Holtzberg.
5150      - send():  Reset the send timeout when the data is ACKed, not when the
5151        data is sent.  Remove conditions on checking for timeout.  From Max
5152        Holtzberg.
5153      - Correct how the TCP/IP initial minimum MSS is calculated. Max
5154        Holtzberg.
5155      - TCP state machine: Move tcp connection into SYN_RCVD state after
5156        aception instead of bypassing and moving directly into ESTABLISHED.
5157        From Max Holtzberg.
5158      - Numerous fixes to the ENCX24J600 driver from Max Holtberg.
5159
5160    * USB Drivers:
5161
5162      - Change naming of SELFPOWERED and REMOTEWAKEUP to avoid name
5163        collisions.  Prepend the name of the driver (for example
5164        CDCACM_SELFPOWERED).
5165      - CDC/ACM class driver:  Change the interval for the interrupt
5166        endpoint from 0xff (invalid) to 10.  This is not a critical
5167        change but will avoid a complaint from the Linux driver when
5168        it overrides the 0xff value.
5169
5170    * ARM Cortex-A5:
5171
5172      - Fix an error in data cache clean and invalidate functions: Fix of
5173        addresses to cache line boundaries.
5174
5175    * Atmel AT91 SAMA5D3x Drivers:
5176
5177      - Correct some inconsistencies in the way that USB configuration
5178        settings are used.  This caused compilation errors in SAMA5 OHCI
5179        when USB debug was ON but USB host tracing was off.
5180      - When 480MHz UPLL is used to drive OHCI, it should have a divider
5181        of 10.  However, that does not work.  A divider of 5 does.  Why?.
5182      - OHCI HCD: Fix a place where DMA-related data needed to be flushed
5183        to data cache; Fix another where a virtual address was being used
5184        in a register where a physical address was required.
5185      - HSMCI Driver: TX DMA disabled.  It is just not reliable. No idea
5186        why.  RX DMA is still used.
5187      - STM32F103C pinmapping corrections from David Sidrane.
5188
5189    * Atmel SAMA5D3x-EK Board
5190
5191      - Increase the number of pre-allocated watchdog timers.  The default
5192        number of 4 was easily being exhausted in the more complex
5193        configurations.
5194
5195    * STMicro STM32:
5196
5197      - STM32 F4 DMA definitions: Typo fixes for UART7 and UART8 DMA
5198        configs.  From Mike Smith.
5199      - DMA priority configuration corrections from Mike Smith.
5200      - Changes to the stm32_dmacapable API. In order to correctly
5201        verify that a buffer can be transferred, the transfer count and
5202        the CCR value are required.  Implemented stm32_dmacapable for
5203        stm32f1xx devices. Enhanced stm32_dmacapable for stm32f2xx and
5204        stm32f4xx devices to check for additional conditions that will cause
5205        DMA to fail or lose data.
5206      - STM32 F1 DMA fix from David Sidrane: The DMA_CNDTRx register
5207        cannot be modified if the DMA channel is disabled.
5208
5209    * STMicro STM32 Drivers:
5210
5211      - Fix compilation errors from bad bit definitions in ADC and PWM
5212        register.  From Martin Lederhilger.
5213      - DMA-related fixes to the SPI driver from Ken Pettit.
5214
5215    * NXP LPC17xx Drivers:
5216
5217      - Remove undefined spi_select() prototype.  This was causing compile
5218        time warnings.
5219
5220    * NXP LPC17xx Boards:
5221
5222      - zkit-arm-1768:  MMC/SD is on SPI, not SSP0.  From Rashid Fatah.
5223
5224    * C Library
5225
5226      - scanf() fixes from kfrolov: 1) sscanf() function hangs in the
5227        following example: sscanf("2", "%u,%u,%u,%u", ...), 2) sscanf()
5228        returns incorrect number of parsed numbers if some arguments
5229        can't be parsed: sscanf("=2", "%u,%u,%u,%u",...)==1 instead of
5230        0, and 3) using of char* instead of const char* in vsscanf
5231        function leads to warnings from GCC.
5232
5233    * Build System
5234
5235      - Dependency generation generation was broken for directories that
5236        keep objects in a sub-directory.  The MKDEP tools now support a new
5237        argument that identifies the object file path.
5238      - tools/define.sh:  'cut' no longer works as it once did.  Script
5239        adapted to observed behavior.
5240
5241    * Applications:
5242
5243      - Remove a warning from the NSH library when DHCP is not enabled.
5244      - Default NSH IP address should be 0x0a000001 (10.0.0.1), not
5245        0xa0000001 (160.0.0.1).  Ditto for the gateway.
5246      - Add some missing options to the OS test Kconfig file
5247      - Fix some bad conditional compilation in the USB monitor.
5248      - Fix default I2C frequency used by the I2C tool:  400KHz instead
5249        of 4MHz.  Suggested by Max Kriegleder.
5250      - Increase stack size for the system/info command. Ken Petit
5251        reports that this simple command can exceed its 768 stack size
5252        under certain conditions.  The size is marginal and has been
5253        increased to 1024 by default but is also now configurable.
5254      - apps/Makefile:  Needs to include external/Make.defs if we want
5255        allow external applications to participate in the NuttX
5256        configuration.  Suggested by gdi@embedders.org.
5257      - apps/netutils/telnetd:  Missing argument to debug statement
5258        can cause crashes in certain error conditions. From David
5259        Sidrane.
5260      - apps/examples/can:  Correct an error in a debug statement.  From
5261        Martin Lederhilger.
5262
5263NuttX-6.32
5264----------
5265
5266The 99th release of NuttX, Version 6.32, was made on December 7, 2013,
5267and is available for download from the SourceForge website.  Note
5268that release consists of two tarballs:  nuttx-6.32.tar.gz and
5269apps-6.32.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
5270file for build information).
5271
5272Additional new features and extended functionality:
5273
5274    * General:
5275
5276      - Extension and standardization of stack debug logic.  Now includes
5277        coloration of the IDLE and interrupt stacks as well as the heap.
5278        Suggested by David Sidrane.
5279
5280    * Audio Subsystem and Audio Drivers:
5281
5282      - I2S interface definition.  Integrates with audio sub-system.
5283      - VS1053 worker thread stack size is now configurable and assigned a
5284        name via pthread_setname_np(). From Ken Pettit.
5285
5286    * Networking / Network Drivers
5287
5288      - Updates and adaptations to support for TI CC3000 wireless module
5289        from David Sidrane.  These updates include multi-threading support
5290        and interface and header file changes to integrate more seamlessly
5291        with NuttX applications.
5292
5293    * File Systems:
5294
5295      - procfs:  Add support for a tiny procfs file system.  The initial
5296        offering is little more that a proof of concept but may be developed
5297        further in subsequent releases.
5298      - NXFFS:  An initial attempt was made to integrate NXFFS with the NAND
5299        MTD driver.  Changes were made to handle bad blocks.  However, I
5300        later realized that NXFFS cannot handle NAND because the way that
5301        is re-writes blocks is incompatible with the NAND ECC handling.
5302        These changes were backed-out so as not to introduce turmoil, but
5303        can be re-enabled if needed via configuration option.
5304      - NXFFS: Make the start up scan of the media a configuration option.
5305        It just takes to long and is not really necessary!  Those rare cases
5306        where the scan was helpful can be fixed using MDIOC_BULKERASE IOCTL
5307        command.
5308
5309    * General Drivers:
5310
5311      - I2S:  A simple character driver was added to support I2S accesses.
5312        This driver in its current state is intended only to support I2C
5313        testing and would not be appropriate to used for any real driver
5314        application.
5315
5316    * MTD Drivers
5317
5318      - Add a container for an MTD device that can be used to provide a
5319        simple, lightweight interface to configuration data storage that
5320        resides on some storage media that is wrapped as an MTD device.
5321        From Ken Pettit.
5322      - New interface definition for lower half NAND drivers.
5323      - MTD Nand:  Add MTD NAND driver that will support ONFI devices,
5324        non-ONFI devices (via table lookup), bad block checking, software
5325        ECC (Hamming), and will interact with the lower-half, hardware-
5326        specific, NAND driver.  Based on BSD-compatible Atmel sample code.
5327      - MTD geometry structure is now packed so that it can support larger
5328        erase block sizes needed by NAND without increasing the size of
5329        the geometry structure.
5330      - SST25:  Add another SST25 SerialFlash driver, sst25xx.c.  This one
5331        differs from sst25.c in that it supports larger SST25 parts:  In
5332        the larger parts support page write instead of byte/word writes
5333        like the smaller parts.  From Ken Pettit.
5334
5335    * USB Drivers
5336
5337      - STM32 F1 USB Device: Add support for decoded USB trace strings.
5338        From David Sidrane.
5339
5340    * ARM
5341
5342      - Add more ARM9 cache management functions to flush and invalidate
5343        D-Cache for DMA support.
5344
5345    * Atmel AT91 SAMA5D3x Drivers:
5346
5347      - Many new drivers including CAN, PWM, SSC/I2S
5348      - PCK:  Add support for programmable clock outputs.
5349      - NAND: Driver with hardware ECC and DMA support
5350
5351    * Atmel AT91 SAMA5D3x Boards:
5352
5353      - SAMA5D3x-EK: Add support for the apps/examples/i2schar test.
5354      - SAMA5D3x-EK: Provides board-specific memory controller initialize
5355        for NAND flash.
5356      - SAMA5D3x-EK: Add support for "auto-mounting" NAND MTD block driver
5357        or NXFFS file system.
5358
5359    * Atmel AT91 SAM3/4 Boards:
5360
5361      - Basic support for the Atmel SAM4E family.  From Mitko.
5362
5363    * STMicro STM32:
5364
5365      - Added support for the STM32F429.  From Ken Pettit.
5366      - Added support for GPIOK and GPIOJ.  From Ken Pettit.
5367
5368    * STMicro STM32 Drivers
5369
5370      - STM32 F4 OTG FS/HS Device:  OTG FS device and host drivers extended
5371        so that they can support either the OTG FS peripheral or the OTG HS
5372        peripheral (in FS mode).  This was done as a quick way to get USB
5373        support on the STM32F429 which has only OTG HS.  From Ken Pettit.
5374      - Added header files and driver framework for the STM32F429 LTDC
5375        framebuffer driver.  From Ken Pettit.
5376
5377    * STMicro STM32 Boards:
5378
5379      - Support for the Spark board was completely by Davide Sidrane.  The
5380        Spark configuration includes integrated CC3000 wireless support, FAT
5381        file system on the SerialFlash and a composite device that can be
5382        used both to export the FAT file system and to provide a serial
5383        interface.
5384      - The Mikroe-stm32f4 now uses /dev/config for configuration data
5385        storage.  From Ken Pettit.
5386      - Added support for the STM32F429I-Discovery board from Ken Pettit.
5387      - Added board support for the ViewTool STM32F103/F107 board with the
5388        STM32F107VCT6 installed.
5389
5390    * NXP LPC31xx Drivers:
5391
5392      - USB ECHI HCD:  Add a driver for the low-/full-/high-speed variant
5393        of the EHCI host controller.
5394
5395    * NXP LPC31xx Boards:
5396
5397      - Board-specific USB host support for the Emedded Artists EA3131 board.
5398        (Missing PCA9532 controls).
5399      - Add support for the Olimex LPC-H3131 board.  Including USB host
5400        support (which does not depend on the PCA8532 interface).
5401
5402    * Kinetis KL Drivers:
5403
5404      - PWM driver for the Freescale Kinetis KL family from Alan Carvalho
5405        de Assis.
5406
5407    * Kinetis KL Boards
5408
5409      - Freedom-KL25Z:  Add PWM support from Alan Carvalho de Assis.
5410
5411    * TI Stellaris LM3S
5412
5413      - Don't initialize .data in start-up logic if not running from FLASH.
5414
5415    * Applications:
5416
5417      - apps/platform:  A new home for platform-specific application code.
5418      - Define a common interface that can be used to manage platform-
5419        specific configuration data.  From Ken Pettit.
5420      - apps/examples/configdata:  A unit test for the MTD configuration
5421        data driver from Ken Pettit.
5422      - Aapps/platform/mikroe-stm32f4: dd platform-specific storage of
5423        configuration data for the Mikroe-stm32f4.  From Ken Pettit.
5424      - apps/examples/cc3000: Fine tuning of memory usage from David Sidrane.
5425      - apps/system/nxplayer: Play thread stack size is now configurable.
5426        All NxPlayer threads now have names assigned via pthread_setname_np().
5427        From Ken Pettit.
5428      - apps/examples/i2schar:  The I2S test based on the I2S character
5429        driver.
5430      - apps/examples/hidkbd/hidkbd_main.c:  Now calls a function named
5431        arch_usbhost_initialize() that must be provided by the platform-
5432        specific code.
5433      - NSH:
5434
5435          - hexdump:  Add skip= and count= options to the hexdump command.  From Ken Pettit.
5436          - Allow USB trace without a USB console. From David Sidrane.
5437          - Mount command updates from Ken Pettit.
5438          - Add an option to the mkfatfs command to specify FAT12, FAT16, or FAT32.
5439
5440    * Tools
5441
5442      - tools/mkctags.sh:  A script for creating ctags from Ken Pettit.
5443
5444Efforts In Progress.  The following are features that are partially
5445implemented but present in this release.  They are not likely to be
5446completed soon.
5447
5448    * kconfig-fronted Configuration:
5449
5450      - Conversion of old configurations to use the kconfig-frontends
5451        tool is an ongoing effort that will continue for some time.
5452        At this time, only 50% of the configurations have been converted
5453        to use the kconfig-frontends tools.
5454
5455Bugfixes (see the ChangeLog for details).  Some of these are very important:
5456
5457    * File Systems
5458
5459      - FAT:  In one error return case, the error return value was not being
5460        set, making the failure look like success. From David Sidrane.
5461      - mount:  SMART FS must be included in the conditional compilation for
5462        the set of file systems that require block drivers.  From Daniel
5463        Palmer.
5464      - SmartFS: Fixed a minor bug with SMART partition number reporting
5465        that would only be seen if both partition support and multi-root
5466        directory support are enabled at the same time.  From Ken Pettit.
5467      - Deadlock: The inode semaphore must be re-entrant.  Here is the re-
5468        entrant path that I found:  (1) USB host connects to FLASH drive and
5469        creates /dev/sda, (2) /dev/sda is mounted, (3) FLASH drive is
5470        removed but /dev/sda is not destroyed because there is still a
5471        reference on the device because of the mount, (4) umount() is
5472        called, taking the inode semaphore, now the driver tries to destroy
5473        the block driver by calling unregister_blockdriver().  But (5)
5474        unregister_blockdriver() also takes the inode semaphore causing a
5475        deadlock if the inode semaphore is not re-entrant.
5476      - FAT: Fix a typo in the FAT16 formatting logic. Was this ever able to
5477        format a FAT16 volume?
5478
5479    * MTD Drivers
5480
5481      - MTD Partitions:  Fix erase block vs page block confusion. From Ken
5482        Pettit
5483      - SST25 Serial Flash:  Improved write performance by fixing a bug that
5484        prevented operation in the faster write mode.  From David Sidrane.
5485
5486    * USB Drivers:
5487
5488      - USB MSC Device:  pthread_join() does not work if called from a
5489        different task group than the pthread.  This is correct behavior,
5490        but still a problem.  The correct solution would be configure the
5491        USB MSC thread to a task, however, this workaround from David
5492        Sidrane plugs the hole for now.
5493      - USB CDC/ACM, USB MSC, and Composite Device Classes: Un-initialization
5494        logic caused re-use of a stale pointer.  Changed to a two pass
5495        un-initialization for the case of the composite driver:  Memory
5496        resources are not freed until the second un-initialization pass.
5497        From David Sidrane.
5498
5499    * STMicro STM32 Drivers:
5500
5501      - STM32 F1 USB Device: Fix some errors that cause crashes when the USB
5502        was disconnected.  From David Sidrane.
5503      - STM32 F1 USB Device: Correct EP0 state handling logic when buffers
5504        larger than the EP0 packet size are sent.  From David Sidrane.
5505      - STM32 F1 USB Device: The long outstanding bug involving the handling
5506        of OUT SETUP commands has been fixed in the STM32 F1 USB device
5507        driver by David Sidrane.
5508      - Kconfig:  Add missing setup of CAN TSEG1 and TSEG2 values.  From
5509        Martin Lederhilger.
5510
5511    * Tools
5512
5513      - tools/mkconfig.c:  SMART FS must be included in the conditional
5514        compilation for the set of writable file systems.  Noted by Daniel
5515        Palmer.
5516
5517    * Applications:
5518
5519      - apps/platform/Makefile:  Was not dealing with the bin sub-directory
5520        correctly.
5521      - apps/system/composite/composite_main.c:  The wrong handle was getting
5522        nullified.  From David Sidrane.
5523
5524NuttX-6.33
5525----------
5526
5527The 100th release of NuttX, Version 6.33, was made on January 30, 2014,
5528and is available for download from the SourceForge website.  Note
5529that release consists of two tarballs:  nuttx-6.33.tar.gz and
5530apps-6.33.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
5531file for build information).
5532
5533Additional new features and extended functionality:
5534
5535    * Core OS Interfaces
5536
5537      - nanosleep() added.  sleep() and usleep() are no longer core OS
5538        interfaces.  These have been moved into the library and re-implemented
5539        as simple wrappers around nanosleep().
5540
5541    * File Systems
5542
5543      - procfs restructured by Ken Pettit.  Added files for MTD status.
5544      - procfs extended to show uptime and task group status.
5545      - procfs now shows stack information.
5546
5547    * Networking
5548
5549      - Add support for the SO_LINGER socket option.  Extended from logic
5550        provided by Jason Jiang.  Enabled with  CONFIG_NET_SOLINGER.
5551      - TCP write buffering support added.  From Jason Jiang.
5552      - Changes from Max Holtzberg to improve how network status is
5553        reported.  New controls to manage carrier detect.
5554
5555    * Graphics
5556
5557      - Massive reshuffling of files with little or no logic changes.   This
5558        reshuffling was necessary to build graphics applications with the
5559        kernel builds where the graphics application lie in user space and
5560        the core graphic server likes in kernel space.  Moved much logic out
5561        of nuttx/graphics to a new user library, libnx.
5562
5563    * Cortex-A5/A8/A9
5564
5565      - Existing Cortex-A5 support updated to include Cortex-A8/9.
5566      - Add the syscall.h header file needed for the Cortex-A architecture.
5567      - Start-up logic now supports execution from FLASH with .data and
5568        .bss in SDRAM.  This was not possible prior to this because .bss
5569        and .data were initialized before SDRAM was configured.
5570
5571    * Allwinner A10:
5572
5573      - Basic support for the Allwinner A10 (Cortex-A8) is in place.
5574
5575    * Allwinner A10 boards
5576
5577      - Support for the pcDuino v1 board has been added.  This support
5578        is not yet very mature and still lacks many drivers.  It is a
5579        good starting point, however, if anyone wants to develop A10
5580        support.
5581
5582    * Atmel SAMA5D3X
5583
5584      - Start-up logic now supports execution from FLASH with .data and
5585        .bss in SDRAM.  This was not possible prior to this because .bss
5586        and .data were initialized before SDRAM was configured.
5587
5588    * Atmel SAMA5D3X Boards
5589
5590      - Partial logic in place to support the OV2640 camera.  Still needs
5591        quite a bit of additional logic to be useful.
5592
5593    * ARMv7-M
5594
5595      - Add support for high priority, nested interrupts. This change
5596        effects not only core ARMv-7M logic, but all ARMv7-M MCU logic:
5597        LM3S, LM4F,  LPC17xx, LPC43xx, SAM3, SAM4, and STM32. See
5598        http://www.nuttx.org/doku.php?id=wiki:nxinternal:highperfints
5599
5600    * STMicro STM32
5601
5602      - Add clocking support for STM32F107 USB OTG FS (which does not yet
5603        work)
5604      - Single-wire UART support for the F1 series from Thomas Grubler.
5605
5606    * STMicro STM32 Boards
5607
5608      - The Viewtool board can now be configured to support either the
5609        STM32F103VCT6 or the STM32F107VCT6.
5610      - The Viewtool STM32F107VCT6 now supports networking with the
5611        DP83848C module installed.
5612      - Add support for Viewtool SSD1289-based LCD on the Viewtool
5613        STM32F103VCT6 board (untested)
5614      - Add support for the XPT2046 touchscreen controller on the Viewtool
5615        LCD module connected to the Viewtool STM32F103 board.
5616      - Added kernel mode build support for the STM3240G-EVAL board.  Added
5617        a new kernel mode NxWM build configuration
5618      - C++ static constructor logic from the nuttx/configs/stm3240g-eval/
5619        directory to the apps/platform/stm3240g-eval/up_cxxinitialize.c
5620        where is belongs so that it is available in user-space in the kernel
5621        mode build.
5622      - Add native Windows build support for the Olimex STM32 P107.  From
5623        Max Holtzberg
5624      - Support for the STM32VL-Discovery board. Contributed by Alan
5625        Carvalho de Assis
5626      - Added a configuration for testing simple configurations on the
5627        PX4FMU v2.
5628
5629    * ZiLOG ZNEO Boards
5630
5631      - Add an NSH configuration for the Z16F2800100ZCOG ZNEO board.
5632      - Added support for the Toyaga 16Z ZNEO board.  The 16Z board is
5633        based on the ZiLOG ZNEOZ16F2811AL20EG part.  See
5634        https://github.com/toyaga/16z for further information
5635      - Developed a patch to work around a compiler error that is revealed
5636        when building the NSH configuration.
5637
5638    * Architecture-Independent Drivers
5639
5640      - OV2640 Camera Driver.
5641      - Support for the Sharp Memory LCD from Librae.
5642
5643    * Library
5644
5645      - Pattern matching logic extended to handle set of characters and
5646        ranges of character values.  From Ken Pettit.
5647      - sleep() and usleep() moved intot the C library.  These are not
5648        longer core OS interfaces; they are simple wrappers for the
5649        nanosleep().
5650      - Add an implementation of gets_s().
5651      - Extend fopen() to include support for C11 exclusive open ("x")
5652        open mode.
5653      - Add an implementation of stpcpy()
5654      - strtol(), strtoll, strtoul(), strtoull(), and strtod() from
5655        libc/string to libc/stdlib where they belong.
5656
5657    * Header Files
5658
5659      - Add rsize_t to include/sys/types.h
5660      - Add the C11 thread.h header file
5661
5662    * Configuration/Build System
5663
5664      - Top level Makefile now supports qconfig and/or gconfig targets that
5665        may be used for configuration.  These may be used if you build
5666        kconfig-frontends with support for kconfig-qconf and/or
5667        kconfig-gconf.
5668      - Add CONFIG_DEBUG_NOOPT.  Now you can independently enable/disable
5669        debug symbols and optimization
5670      - File system related header files moved to include/nuttx/fs
5671      - Video related header files moved to include/nuttx/video
5672      - Changes for native Windows build: fix creation of a .version file
5673        if one does not exist.  Make sure that the APPDIR environment
5674        variable is set before configuring.  From Max Holtzberg.
5675      - Board configuration sub-directory can now be specified.  The default
5676        need not be used.  This is  only useful when CONFIG_ARCH_BOARD_CUSTOM
5677        is selected and there is no meaningful default sub-directory.
5678      - Many functions renamed to better conform with the naming standard:
5679        up_buttoninit() renamed to board_button_initialize(), up_buttons()
5680        renamed to board_buttons(), up_irqbutton() renamed to
5681        board_button_irq(), up_ledinit() renamed to board_led_initialize(),
5682        up_ledon() renamed to board_led_on(), and up_ledoff() renamed to
5683        board_led_off(). All prototypes removed from board.h header files.
5684        Now ONLY prototypes in include/nuttx/arch.h.
5685
5686    * Applications
5687
5688      - NSH: Refactor. Separate NSH command handling and command execution
5689        from NSH line parsing.
5690      - NSH: Will now support multiple commands on a command line, each
5691        separated with a semi-colon.
5692      - NSH: Add support of commands enclosed in back quotes as command
5693        arguments.
5694      - NSH: Can now handle arguments that are concatenations of constant
5695        strings, command return data, application return data, and
5696        environment variables.
5697      - NSH: Add true and false commands.
5698      - NSH: Add support for while-do-done and until-do-done loops.  These
5699        only work when executing a script file because they depend on the
5700        ability to seek in the file to implement the looping behaviors.
5701        Can be conditionally compiled out to reduce footprint.
5702      - NSH: Loosen up if-then-else-fi syntax to allow a command to be on
5703        the same line as the then or else tokens like:
5704        "if true; then echo true; else echo false; fi".  More like bash.
5705      - NSH: Add a break command that can be executed with a loop to
5706        terminate the loop immediately.
5707
5708      - system/inifile:  A simple .INI file parser.
5709      - system/vi:  Add support for a tiny, VI work-alike editor.  This is
5710        a minimal full screen editor that works with a terminal emulator
5711        that using VT100 commands.
5712
5713Efforts In Progress.  The following are features that are partially
5714implemented but present in this release.  They are not likely to be
5715completed soon.
5716
5717    * kconfig-fronted Configuration:
5718
5719      - Conversion of old configurations to use the kconfig-frontends
5720        tool is an ongoing effort that will continue for some time.
5721        At this time, only 53% of the configurations have been converted
5722        to use the kconfig-frontends tools.
5723
5724Bugfixes (see the ChangeLog for details).  Some of these are very important:
5725
5726    * Core OS
5727
5728      - Added missing sem_timedwait() system call.
5729
5730    * Networking
5731
5732      - Prevent tcp_connect callback from being double freed.  From Max
5733        Holtzberg
5734      - uiplib:  Support new definitions and state passing for network
5735        device status. From Maz Holtzberg.
5736
5737    * File Systems
5738
5739      - FAT:  (1) A correction to FAT cluster allocation, and (2) Fix to some
5740        root directory logic that was conditionally done only for FAT 32.
5741        Apparently this needs to done for all FAT types.  Both from Andrew
5742        "Tridge" Tridgell via Lorenz Meier.
5743
5744    * Binary Formats
5745
5746      - Fix a small memory leak when attempting to load a program from a file.
5747
5748    * Cortex-A8/9
5749
5750      - Fix some errors in the cache invalidation logic (only seem to matter
5751        for Cortex-A8).
5752      - Add more nop's after enabling the MMU.  The cortex-a8 seems to need
5753        these
5754
5755    * Graphics
5756
5757      - Fix a typo that caused a compilation error when
5758        CONFIG_NXCONSOLE_BPP < 8.  From Librae
5759
5760    * ARMv7-M
5761
5762      - Correct alignment of RAM vector table.
5763      - Interrupt handling: Do not disable and enable the IRQ on each
5764        entry, (2) this interferes with controlling the IRQ interrupt
5765        setting from interrupt handlers, and (3) up_disable_irq() does
5766        not work anyway so that this has never done anything.
5767      - Fix all implementations of up_disable_irq() for all Cortex-M3 and
5768        M4 architectures:  To enable an interrupt on the Cortex-M3/4 CPU,
5769        you need to set a bit in the ISER register.  To disable the
5770        interrupt, you need to set a bit in the ICER register.  Existing
5771        logic was trying to disable interrupts by clearing the bit in the
5772        ISER register.  That will not work; writing a '0' to the ISER
5773        register has no effect.  That  means that up_disable_irq() was
5774        doing nothing!  It turns out that that is not really important
5775        because up_disable_irq() is not really used for that purpose.  But
5776        some spurions STM32 ADC interrupts have been reported to me and this
5777        turned out to be the cause in that case.  Thanks to Manuel St�hn for
5778        the tip.
5779
5780    * STMicro STM32
5781
5782      - Fix configuration and pin definitions that would prevent building
5783        USB for the connectivity and performance lines.
5784      - STM32L15xx: Fix a typo in USB pin definitions
5785      - Fix pin definition names for SPI2 MOSI and MISO. Noted by Brian Webb
5786      - Various fixes for STM32F103ZE SPI3 pin mapping definitions.  From
5787        Steve Redler IV
5788
5789    * STMicro STM32 Boards
5790
5791      - Olimex STM32-P107:  Failed to build if SPI3 for UEXT is not remapped.
5792        From Max Holtzberg
5793
5794    * x86 Boards
5795
5796      - Add a configuration option to select the -m32 compiler option when
5797        building for a 32-bit target on a native 64-bit compiler.  So far,
5798        only used for the qemu/i486 configuration.
5799      - Patch from Matt Campbell to fix 'Error: .size expression for idle_stack
5800        does not evaluate to a constant".
5801
5802    * Library
5803
5804      - strftime(): Needs null termination on the generated string.  From
5805        Max Holtzberg.
5806      - Typo in ctype.h macro name: iscntrl(), not iscontrol().
5807      - If there are no arguments (argc == 1), then getopt() will leave the
5808        optind variable in an undefined state (2014-1-20).
5809      - ARMv7-M memcpy(): Assembler changes with the gcc-47 distribution
5810        from ARM mean that we need to be explicit about branch sizes; one
5811        or more of the wide branch opcodes results in bad table branching.
5812        From Mike Smith.
5813
5814    * Configuration/Build System
5815
5816      - Fixes for some tools/ for Windows build issues from Max Holtzberg.
5817      - Config.mk: 'cypath' must be called if we are using a Windows native
5818        toolchain with the Cygwin 'make' to convert paths to proper
5819        Windows paths.  From Richard Cochran.
5820      - ARM Makefile: Dependency directory list is now computed from the
5821        VPATH.  From Richard Cochran.
5822      - builtin/Makefile: Fixes for native Windows build from Max Holtzberg.
5823      - Refactor some configuration dependencies:  NSH networking features
5824        should depend on netutil selections; netutil selections, in turn,
5825        should depend on networking selections.
5826
5827    * Applications
5828
5829      - NSH: Modified the df -h logic to eliminate truncating numbers in
5830        conversion (like 7900 -> 7M).  From Ken Pettit.
5831
5832NuttX-7.1
5833---------
5834
5835The 101st release of NuttX, Version 7.1, was made on March 15, 2014,
5836and is available for download from the SourceForge website.  Note
5837that release consists of two tarballs:  nuttx-7.1.tar.gz and
5838apps-7.1.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
5839file for build information).
5840
5841  The previous NuttX version was 6.33.  The NuttX minor version number is
5842  incremented on each release, but the major version number is incremented
5843  only when an incompatibility with previous versions is included in the
5844  release.  In this case, the legacy, manual configuration is no longer
5845  supported by the NuttX build system beginning with NuttX 7.1.  Only the
5846  newer configurations generated by the kconfig-frontends tools will generate
5847  viable NuttX configurations.
5848
5849  All board configurations in the NuttX source tree have been converted to
5850  use the newer configuration, but if you have some older style configurations
5851  for you board, you will need to convert those configurations to use the
5852  kconfig-frontends tools before taking any new code from the repository. See
5853  http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig for some
5854  guidelines.
5855
5856Additional new features and extended functionality:
5857
5858    * Core OS:
5859
5860      - System time logic now includes logic to measure and calculate the
5861        CPU load percentage (from David Alessio).  This CPU load logic
5862        extended to keep counts on each thread.  The per-thread CPU is
5863        now reported in the procfs under <pid>/loadavg  An asynchronous,
5864        "external" clock may be used to drive the CPU load calculations
5865        for more accurate measurements when needed.
5866
5867    * File Systems:
5868
5869      - As mentioned above, the per-thread CPU load information is now
5870        reported in the procfs under <pid>/loadavg.
5871      - Many file system interfaces have been extended to operate on the
5872        top-level NuttX pseudo filesystem.  These include rmdir, mkdir,
5873        rename, and unlink.  This capability can be disabled with
5874        CONFIG_DISABLE_PSEUDOFS_OPERATIONS in order to keep the footprint
5875        small.
5876
5877    * Networking:
5878
5879      - Numerous updates and improvements to the CC3000 driver from David
5880        Sidrane.
5881
5882    * Common Drivers:
5883
5884      - Defined a mouse interface that is very similar to a touchscreen
5885        interface, but allows reporting of all mouse buttons.  Also, unlike
5886        touchscreen drivers, mouse drivers need to report positional data
5887        with no button is pressed so that the mouse position can drive a
5888        cursor.
5889      - Added support for a USB HID boot mouse device.  Cursor support is
5890        not integrated and must be provided by the application based upon
5891        the reported mouse data.
5892      - Support added for the MIO283QT9A LCD from Toby Duckworth.
5893
5894    * Atmel SAMA4E:
5895
5896      - Added complete architecture support for the Atmel AT91 SAM4E
5897        Cortex-M4F parts.
5898
5899    * Atmel SAM4E Board Support:
5900
5901      - Add board support for the SAM4E-EK board.
5902
5903    * Atmel SAM4E Drivers:
5904
5905      - Added logic to manage the Cortex-M Cache Control block.
5906      - Developed and integrated an Ethernet MAC driver for the SAM4E.
5907      - Backported the SAMA5 SPI driver to the SAM3/4 architecture.  The
5908        SAMA5 version supports both multiple SPI peripherals as needed by the
5909        SAM3A and SAM3X and also supports DMAC (but not PDC) needed by the
5910        SAM4E.
5911
5912    * Atmel SAM D20:
5913
5914      - Added basic architecture support for the Atmel AT91 SAM D20
5915        Cortex-M0+ parts.
5916
5917    * Atmel SAM D20 Board Support:
5918
5919      - Added basic support for SAM D2 Xplained Pro board.  Currently, the
5920        NuttShell (NSH) works reliably over a serial port.  An SPI driver
5921        has also been developed.  Work with the SAM D20 has been temporarily
5922        stopped, however, in order to focus on the SAM4E-EK.
5923
5924    * TI Tiva TMC4C123G:
5925
5926      - Added architecture support for the TI Tiva TM4C123G parts.  This was
5927        merged into the existing support for the LM3S and LM4F families.
5928        All directory, file, and function references changed from lm to tiva.
5929
5930    * TI Tiva TMC4C123G Board Support:
5931
5932      - Added basic board support for the TM4C123G-Launchpad.  As of this
5933        release the TM4C123G-Launchpad board support is untested and likely
5934        incomplete.
5935
5936    * STMicro STM32 Boards:
5937
5938      - The Mikroe STM32F4 can now support the newer MIO283QT9A LCD. From
5939        Toby Duckworth.
5940      - Miscellaneous changes to better support FPU on STM32F429 Discovery
5941        from David Alessio.
5942
5943    * NXP LPC2378 Drivers:
5944
5945      - Incorporated I2C and SPI drivers for the LPC23xx from Lizhuoyi.
5946
5947    * QEMU i486 Drivers:
5948
5949      - New QEMU keyboard and VGA drivers from Lizhuoyi.
5950
5951    * Documentation:
5952
5953      - Added a coding standards document.  See
5954        http://www.nuttx.org/doku.php?id=documentation:codingstandard
5955
5956    * Configuration/Build System:
5957
5958      - A configuration option, CONFIG_DEFAULT_SMALL, was added to select
5959        default values for configuration variables based upon whether you
5960        want a smaller footprint or more features.  This is not very useful
5961        if you are modifying existing configurations because then the
5962        default values do not apply.
5963      - CONFIG_DEFAULT_SMALL has been defined on all tiny MCU configurations
5964        so that they do not grow so rapidly when new, optional features are
5965        added.
5966      - The legacy, manual configuration is no longer supported by the
5967        NuttX build system.  Only the newer configurations generated by
5968        the kconfig-frontends tools will generate viable NuttX
5969        configurations.  All board configurations in the NuttX source tree
5970        have been converted to use the newer configuration, but if you have
5971        some older style configurations for you board, you will need to
5972        convert those configurations to use the kconfig-frontends tools. See
5973        http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig for some
5974        guidelines.
5975
5976    * Applications:
5977
5978      - NSH can now use an EMACS-like command line editor.  This CLE, is
5979        really more like the traditional readline than is the default, tiny
5980        the NuttX readline .
5981      - The touchscreen example can now be configured to work with either a
5982        touchscreen or a mouse device.
5983      - Several NSH commands can now be used to operate on objects in the
5984        top-level pseudo-filesystem: rmdir, mkdir, mv, and rm.  This
5985        capability can be disabled with CONFIG_DISABLE_PSEUDOFS_OPERATIONS
5986        in order to keep the footprint small.
5987      - If both the CPU load feature and the procfs features are enabled,
5988        then the NSH 'ps' command will show the CPU load used by each
5989        thread.
5990
5991Bugfixes (see the ChangeLog for details).  Some of these are very important:
5992
5993    * Core OS:
5994
5995      - task_terminate()  always returned an error because the return value
5996        was not being set correctly (from Gosha).
5997      - nanosleep()  Fix a missing call to re-enable interrupts (from Jason
5998        Jiang).
5999
6000    * File Systems:
6001
6002      - Fixed an error in the FAT logic that can cause file corruption.  The
6003        error conditions are rare and only seen with very large files (from
6004        Andrew Tridgell).  This replaces a previous, partial fix for the same
6005        problem.
6006      - Fixed memory leaks in the NXFFS open() and stat() implementations
6007        (from Lzyy).
6008      - The interfaces include opendir(), readdir(), et al, were modified so
6009        that errors will not be reported if you attempt to list a empty
6010        pseudo-directory.
6011
6012    * Networking:
6013
6014      - Fix one place where the connection reference count was not being
6015        decremented in the socket close() logic.  This is really a cosmetic
6016        change BUT when CONFIG_DEBUG_NET is enabled, it will cause assertions.
6017      - Backed out a small part of the NuttX 6.33 write buffering changed.
6018        David G says that this causes problems in connecting to a server.
6019      - In DHCPD, there was a place where the logic was calling ntohl()
6020        inappropriately; the address was already in the correct order.  How
6021        could DHCPD have worked with this bug?
6022
6023    * TI Tiva/Stellaris Drivers:
6024
6025      - Fixed cut'n'paste error that prevented UARTS2-7 from being used with
6026        the LM4F120 Launchpad.
6027      - Fixed several errors there were unmasked with UARTs > UART2 are
6028        enabled (grom Gosha).
6029
6030    * Allwinner A10 Drivers:
6031
6032      - Fixed cut'n'paste error that prevented UARTS2-7 from being used with
6033        the pcDuino.
6034
6035    * NXP LPC17xx Drivers:
6036
6037      - Fix an compilation error that crept into the LPC17xx USB host driver.
6038
6039    * STMicro STM32 Drivers:
6040
6041      - Fix cloned typo in the serial driver:  FLOWCONTROL vs FLOWCONROL.
6042      - Disable SPI before changing DPI CR1 register (from David Sidrane).
6043      - stm32 TIM: Set the timer CCMR when selecting timer channel.  From
6044        David Sidrane.
6045      - Fix typo in a Makefile: stm32_pwm.c not stm32_psm.c.  Noted by Max
6046        Kriegleder.
6047
6048    * Library:
6049
6050      - More sscanf()  bug fixes from David Sidrane.
6051
6052    * Header files:
6053
6054      - cstdbool:  Ignore _Bool8 if CONFIG_C99_BOOL8=y
6055
6056    * Configuration/Build System:
6057
6058      - Several changes to restore the broken native Windows build
6059
6060    * NuttShell (NSH):
6061
6062      - Use strncpy vs strcpy in the Telnet console logic to avoid
6063        overrunning the username and password buffers (from Bertold Van den
6064        Bergh).
6065      - Add a newline after printing the file in the 'cat' command.  This
6066        prevents the NSH prompt from be in the same line as the final line
6067        of the file in the case where there is no newline at the end of the
6068        file.
6069
6070NuttX-7.2
6071---------
6072
6073The 102nd release of NuttX, Version 7.2, was made on April 29, 2014,
6074and is available for download from the SourceForge website.  Note
6075that release consists of two tarballs:  nuttx-7.2.tar.gz and
6076apps-7.2.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
6077file for build information).
6078
6079Additional new features and extended functionality:
6080
6081    * Core OS:
6082
6083      - Add support for CLOCK_REALTIME.  From Macs N.
6084
6085    * Network Utilities:
6086
6087      - Add a very primitive NTP client.
6088      - DNS resolver:  Long needed major clean up for coding style and
6089        unification of naming conventions (resolv vs dns).
6090
6091    * Common Drivers:
6092
6093      - Add a new MTD driver that can be used to contain another driver and
6094        force its apparent sector size to be 512 bytes.
6095      - If DCD can support queuing of stall requests, then the USB MSC stall
6096        work around delays are not necessary.
6097      - Redesign threading module used with the USB MSC driver.  It was using
6098        pthreads before and these were changed to a kernel thread.  The reason
6099        for this has to do with task grouping:  A pthread is a memory of the
6100        group of the task that started it.  A kernel thread is independent of
6101        the task that started in (other than knowing it as the parent).  This
6102        allows me to remove so kludge logic to "deparent" the pthread on
6103        startup.
6104      - Update the MIO183QT-9A LCD driver to support reading from the LCD.
6105        From Toby Duckworth.
6106      - Timer "upper half" driver and l"lower half" interface definition from
6107        Bob Doiron.
6108
6109    * Atmel SAM4E/4S Board Support:
6110
6111      - All SAM4E configurations updated to run with 120MHz CPU speed and
6112        with the CMCC enabled.
6113      - Support for the SAM4S Xplained Pro board from Bob Doiron.
6114      - Add watchdog driver.  From Bob Doiron.
6115
6116    * Atmel SAM4E/4S Drivers:
6117
6118      - Add a USB full speed device driver (UDP) for the SAM4E.
6119      - Add support in HSMCI and SPI drivers to invalidate cached memory if
6120        the CMCC is enabled.
6121      - Add logic to handle SPI word widths > 8
6122      - Port RTC driver from SAMA5 to SAM3/4.  From Bob Doiron.
6123      - HSMCI:  Extensions from Bob Doiron needed to support PDC-based HSMCI
6124        DMA transfers.  Verified on the SAM4S Xplained Pro.
6125
6126    * Atmel SAMA5:
6127
6128      - Add support for the SAMA5D36 chip.
6129      - Add functions to calculate PLLACK, PCK, and MCK frequencies given
6130        the main clock frequency.
6131      - Implemented RAM functions.  When booting directly into NOR flash,
6132        reconfiguring the PLL while executing out of NOR FLASH causes
6133        crashes.  This was fixed by David Sidrane by implementing RAM
6134        functions. The killer code is copied and executed from ISRAM and
6135        the crash is avoided.
6136
6137    * Atmel SAMA5 Drivers:
6138
6139      - Add support for the SAMA5D3 DBGU.
6140
6141    * Atmel SAMA5 Board Support:
6142
6143      - Add a board support configuration for the Atmel SAMA5D3 Xplained
6144        board running out of SDRAM.  When booting from SDRAM, start-up logic
6145        needd to query the PMC registers to determine the MCK, PCK, etc.
6146      - For all SAMA5 boards, added support for 528MHz clocking.
6147
6148    * TI Tiva/Stellaris:
6149
6150      - Modify the logic to disables the interrupts and sets the default
6151        interrupt priority so that it uses the ICTR to get the number of
6152        interrupt lines/registers.  This is instead of using some fixed
6153        number of initializations based a priori knowledge of the number
6154        of interrupt lines in the MCU.
6155
6156    * STMicro STM32
6157
6158      - Add support for the STM401RE.  From Frank Bennett.
6159
6160    * STMicro STM32 Boards:
6161
6162      - STM32F4Discovery:  Add support to register keyboard and mouse
6163        classes if so configured.  From Leo.
6164      - Add support for the Nucleo-F401RE board.  From Frank Bennett.
6165
6166    * STMicro STM32 Drivers:
6167
6168      - Add STM32 Ethernet IGMP hashing support.  From Manuel St�hn.
6169      - OTG FS Host:  USB host tracing added by Leo.
6170
6171    * Freescale Kinetis
6172
6173      - Modify the logic to disables the interrupts and sets the default
6174        interrupt priority so that it uses the ICTR to get the number of
6175        interrupt lines/registers.  This is instead of using some fixed
6176        number of initializations based a priori knowledge of the number
6177        of interrupt lines in the MCU.
6178
6179    * NXP LPC17xx
6180
6181      - Modify the logic to disables the interrupts and sets the default
6182        interrupt priority so that it uses the ICTR to get the number of
6183        interrupt lines/registers.  This is instead of using some fixed
6184        number of initializations based a priori knowledge of the number
6185        of interrupt lines in the MCU.
6186
6187    * ZiLOG ZNEO Drivers
6188
6189      - Added ZNEO ESPI driver.
6190
6191    * Library:
6192
6193      - Finish incomplete support for ferror().  From Macs N.
6194
6195    * Documentation:
6196
6197      - UsbTrace.html:  Add some discussion of the USB monitor.
6198
6199    * Configuration/Build System:
6200
6201      - compiler.h:  Add macro UNUSED() that can be used to eliminate
6202        warnings about variables that are set to values that are not
6203        used.
6204
6205    * Debugging Support:
6206
6207      - Add a configuration option to enable dumping of the USB trace buffer
6208        on assertion.
6209
6210    * Applications:
6211
6212      - IGMP Example:  Fill out Kconfig file; update makefile so that the
6213        IGMP example can be used as an NSH built-in application. From Manuel
6214        St�hn.
6215      - lcdrw Example:  Fill out empty Kconfig file.
6216      - touchscreen Example:  Add a configuration option to indicate if
6217        architecture-specific initialized is required, yes or no.
6218      - System usbmsc:  Back out the USBMSC daemon... it is no longer needed
6219        with the recent fix to the USBMSC class driver.
6220      - NSH: malloc/free IOBUFFER for 'cat' and 'hexdump' commands instead of
6221        using the stack.  From Bob Doiron.
6222      - cpuhog, serialblaster, and serialrx Examples:  Stress test examples
6223        added by Bob Doiron.
6224
6225Bugfixes (see the ChangeLog for details).  Some of these are very important:
6226
6227    * Core OS:
6228
6229      - errno_get_errno_ptr() and getpid():  Add some checks.  If these
6230        functions are called very early in initialization before the tasking
6231        structures are initialized, they would not behave properly.
6232
6233    * Networking:
6234
6235      - IGMP-related bug fixes from Manuel St�hn.
6236      - In netdev_findbyaddr(), skip network devices that are in the "down"
6237        state.  It does not make sense to consider an address match with a
6238        "down" device.  From Brennan Ashton.
6239
6240    * Network Utilities:
6241
6242      - DHCPD:  The correct value of the PAD option.  Should be zero, not
6243        one.  From Brennan Ashton.
6244      - Corrections to the NTP client from Manuel Stuehn.
6245
6246    * Common Drivers:
6247
6248      - usbhost.h:  Fix some USB HID-related conditional compilation.  From Leo.
6249      - USB HID mouse driver: Don't include NAKs from the device in the error
6250        count.  From Leo.
6251
6252    * TI Tiva/Stellaris:
6253
6254      - Add corrected control logic for TM4C125GXL based on logic from Daniel
6255        Carvalho with modifications.  The LM4F120 also works well with this
6256        change.
6257
6258    * STMicro STM32 Drivers:
6259
6260      - STM32 F2 SPI:  Correct a mapping for SPI MOSI pin.  From dlsitzer.
6261      - OTG FS Host:  Fixes related to low-speed devices and interrupt
6262        endpoints from Leo.  Necessary in order to use a USB HID mouse
6263        device.
6264      - STM32 SDIO:  The dmaflight method must be conditioned on
6265        CONFIG_SDIO_PREFLIGHT.  Noted by Pelle Windestam.
6266      - Sourceforge Ticket #26.  up_prioritize_irq should not be called
6267        if CONFIG_ARCH_IRQPRIO is not defined.
6268
6269    * Atmel SAM3/4:
6270
6271      - Fix some backward conditional compilation in the start-up logic.
6272      - Fix initialization of the default interrupt priorities.  This is
6273        a critical bug fix!
6274      - SAM4S: Fix error in macros that disable peripheral clocking.  From
6275        Bob Doiron.
6276
6277    * Atmel SAMA5:
6278
6279      - Fix double mapping of SDRAM when executing out of SDRAM.  In this
6280        case, the SDRAM was already mapping in arm_head.S.
6281      - In clock configuration, the BMS bit handling was fixed to match
6282        what the HW really does.  From David Sidrane.
6283      - TLB Bufferable bit did not do what I thought it was going to do.
6284        I though I was selecting a write-through cache, but the result was
6285        that all caching was disabled and NOR FLASH accesses were very slow.
6286      - Move the un-definitions of __ramfuncs__ from the clock configuration
6287        .c file to the .h file.  Otherwise, the attribute will be applied
6288        differently for the prototype and the function definition.
6289        Sourceforge patch 38 from Luciano Neri.
6290
6291    * Atmel SAMA5 Drivers:
6292
6293      - Fix a case in the UDPHS driver where received status was not being
6294        cleared, causing OUT SETUP commands to fail.
6295      - TWI data sending fails to increment the number of bytes transferred
6296        on first byte sent.  from David Sidrane.
6297      - If running from SDRAM, then BOARD_MCK_FREQUENCY is not a constant
6298        and cannot be used in conditional compilation.  All drivers fixed
6299        EXCEPT for the PWM and Timer/Counter drivers which will need some
6300        more extensive redesign.
6301
6302    * Atmel SAMA5 Boards:
6303
6304      - SAMA5D3x-EK: The red LED is controlled by PE24 which is also the
6305        camera/ISI interface reset line.  So if the a camera is installed,
6306        then we must avoid controlling the red LED or we inadvertently
6307        also reset the camera module.  Noted by David Sidrane.
6308      - Header files reference type xcpt_t in certain configurations and
6309        so must include nuttx/irq.h.  This is Sourceforge bug 25 submitted
6310        by Luciano Neri.
6311
6312    * NXP LPC17xx Drivers
6313
6314      - arm/src/lpc17xx/Kconfig and lpc17_ethernet.c:  The default interrupt
6315         priority should be default, not the highest priority (2014-4-19).
6316
6317    * ZiLOG ZNEO
6318
6319      - Fix calculation of timer reload and prescaler.  The timer frequency
6320        was way too fast.
6321
6322    * Library:
6323
6324      - strncpy():  Change ordering of test and copy.  Logic would have
6325        failed if n=0; one byte was always copying before testing
6326        for the end of the copy.
6327      - Fix a counting error in the return value from sscanf().  Noted by
6328        kfrolov.  Also, sscanf() should return EOF if no values were
6329        converted.
6330      - Fix a logic error in ftell().  It was simply using the file offset
6331        and did not take into account data buffered in memory.  From Macs N.
6332      - sccanf():  Use stroul() vs strol() with %u format otherwise, range
6333        of values is restricted because of sign bit. From kfrolov.
6334
6335    * Configuration/Build System:
6336
6337      - Fix a build error that occurs when only USB device tracing is enabled.
6338
6339    * NuttShell (NSH):
6340
6341      - Fix NuttShell version number display in the NSH welcome message.
6342        version.h was not being included.
6343
6344    * Other Applications:
6345
6346      - sysinfo:  CONFIG_VERSION_BUILD is a string an needs to be
6347        printed with %s, not %d.  Noted by Librae.
6348      - nxplayer:  Compilation failure in one configuration reported by
6349        Manuel Stuhn.
6350      - System sdcard:  Remove an STM32 dependency.  From Bob Doiron.
6351      - telnetd Example:  Naming is confused.  In someplaces 'telnetd',
6352        and in others 'shell.'  All changes to telnetd.  Noted by Pelle
6353        Windestam.
6354
6355NuttX-7.3
6356---------
6357
6358The 103rd release of NuttX, Version 7.3, was made on June 25, 2014,
6359and is available for download from the SourceForge website.  Note
6360that release consists of two tarballs:  nuttx-7.3.tar.gz and
6361apps-7.3.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
6362file for build information).
6363
6364Additional new features and extended functionality:
6365
6366    * Core OS:
6367
6368      - Dynamic loader: Framework to support Pascal P-Code as a binary
6369        format that can be exec'ed from a file system.
6370      - Dynamic Loader:  Extend the binfmt interface to handle error
6371        conditions where format-specific clean-up is needed in the event
6372        of error conditions.  This is needed by the P-Code binfmt.
6373
6374    * Networking
6375
6376      - IOB:  Add a generic I/O buffer chain logic.  This logic uses small,
6377        pre-allocated buffers that can be chained together to support
6378        transfers of any size, using fewer resources and also without
6379        committing in advance to a TCP window size.  There is now only
6380        one I/O type used in the networking and it is these I/O buffer
6381        chains.
6382      - TCP Write Buffering:  TCP write buffering logic converted to use
6383        I/O buffer chains.
6384      - TCP Read-Ahead Buffering:  TCP read-ahead buffering logic converted
6385        to use I/O buffer chains.
6386      - Includes logic to support throttling of read-ahead buffering if
6387        the read-ahead buffering is competing with write buffering for
6388        I/O buffers.
6389      - Raw Sockets:  Add support for the AF_PACKET socket family.  From
6390        Daniel Lazlo Sitzer.
6391
6392    * Common Drivers:
6393
6394      - W25 Serial FLASH driver extended by Mark Whitehorn to support the
6395        8Mbit W25Q80BV part.
6396      - Add support for Fujitsu MB85RS1MT RAMTRON part.  From Charles Ash.
6397      - Enhancements to the generic timer interface to support capture mode
6398        from Bob Doiron.
6399      - Add an rxflowcontrol method to the serial interface to better
6400        support RX flow control. This involves common changes in addition to minor updates to all MCU-specific serial drivers (only fully implemented for the STM32). From Jussi Kivilinna.
6401
6402    * Atmel SAM4C
6403
6404      - Add support for the SAM4CM family.  From Max Neklyudov.
6405
6406    * Atmel SAM4E/4S Drivers:
6407
6408      - RTT driver from Bob Doiron.  Also added high resolution RTC
6409        emulation using the RTT for the sub-second counter.
6410
6411    * Atmel SAM4E/4S Board Support:
6412
6413      - The SAM4S Xplained Pro now uses the extended timer/counter
6414        features. From Bob Doiron.
6415      - Added a touchscreen and LCD driver for the SAM4E-EK board (the LCD,
6416        however, not yet fully functional).
6417
6418    * Atmel SAMA5:
6419
6420      - Optimized, high performance, assembly language memcpy().  This is
6421        the same optimized memcpy() function that Mike Smith brought in
6422        for the ARMv7-M with minor tweaks by David Sidrane to work with
6423        the ARMv7-A.
6424      - Basic support added for the SAMA5D4 family.
6425
6426    * Atmel SAMA5 Drivers:
6427
6428      - SAMA5D4:  New drivers unique to the SAMA5D4: XDMAC, SAIC, and
6429        others.
6430
6431    * Atmel SAMA5 Board Support:
6432
6433      - SAMA5D4-MB:  Initial board support for the SAMA5D4-MB/EK boards.
6434
6435    * STMicro STM32
6436
6437      - Add support for the STM32152 and STM32162 Medium+ density parts
6438        (plus miscellaneous other improvements to the original STM32151
6439        logic).  From Jussi Kivilinna and Sami Pelkonen.
6440
6441    * STMicro STM32 Boards:
6442
6443      - Support for the Olimex STM32 H405 board contributed by Martin
6444        Lederhilger.
6445
6446    * STMicro STM32 Drivers:
6447
6448      - Implement the rxflowcontrol method to the serial interface to better
6449        support RX flow control. From Jussi Kivilinna.
6450
6451    * NXP LPC17xx Drivers:
6452
6453      - Added support for the RTC, ADC, DAC, Timers, PWM and MCPWM
6454        drivers.  From Max (himax).
6455
6456    * NXP LPC17xx Boards:
6457
6458      - Support for the RTC, ADC, DAC, Timers, PWM and MCPWM integrated
6459        in the LPCXpresso LPC1768 board support.  From Max (himax).
6460
6461    * Library:
6462
6463      - Add support for seek-able streams.
6464
6465    * Configuration/Build System:
6466
6467      - Restructured network directories, header files, and naming to
6468        better modularize the networking and to better integrate the
6469        networking with the rest of NuttX.
6470
6471    * Applications:
6472
6473      - prun:  An NSH built-in application that can be used to run
6474        Pascal P-Code programs either programatically or from the NSH
6475        command line.
6476      - netpkt:  A "raw" socket test from Lazlo Sitzer.
6477      - hex2bin:  A library and built-in task to convert from
6478        Intel HEX to binary format.  It can write the binary data to a file or it can store the binary data to memory (to support, for example, a loader).
6479
6480Bugfixes.  Only the most critical bugfixes are listed here (see the ChangeLog for the complete list of bugfixes and for additional, more detailed bugfix information):
6481
6482    * Core OS:
6483
6484      - Dynamic Loader: Fix an error in a symbol table search function.
6485        Noted by Pelle Windestam.
6486      - Dynamic Loader:  Fix a critical error in exec(); argv was not
6487        being passed.
6488      - mq_notify:  Test for a valid signal number was inverted; this
6489        function could not have been working correctly before???  From
6490        eero.nurkkala.
6491      - Fix typo in conditional compilation:  CONFIG_CLOCK_MONOTONIC vs.
6492        CLOCK_MONOTONIC.  From Manuel St�hn.
6493
6494    * Graphics
6495
6496      - Fix typos in several RGB conversion macros.
6497
6498    * Networking:
6499
6500      - Modify TCP timout handling to provent situations where connections
6501        may not be freed. From Max Holtzberg.
6502      - Improved TCP fallback allocation logic from Max Holtzberg. Also,
6503        fallback mechanism is disabled when SO_LINGER is to prevent
6504        deadlocks.
6505      - Write Buffering:  Add checks from buffer allocation failures. From
6506        Max/Himax.
6507
6508    * Network Utilities:
6509
6510      - webserver: httpd_fs_open() should return OK on success and ERROR on
6511        failure, not 1 and 0.
6512
6513    * Common Drivers:
6514
6515      - Make sure that all references to up_prioritize_irq() are
6516        conditioned on CONFIG_ARCH_IRQPRIO.  Problem noted by Mike Smith.
6517      - CC3000: Correct SPI mode for CC3000 is CPOL=0 CHPA=1. From Jussi
6518        Kivilinna.
6519      - CC3000: Fix a race condition in thread start-up logic. From Jussi
6520        Kivilinna.
6521      - CC3000: Additional fixes including a compilation failure if POLL is
6522        enabled. From Jussi Kivilinna.
6523
6524    * USB Drivers:
6525
6526      - CDC/ACM and PL2303 device:  Reset RX head to avoid resending last
6527        serial data when USB cable disconnected/re-connected.  From
6528        Lizhuoyi.
6529
6530    * TI Tiva/Stellaris Boards:
6531
6532      - The Nucleo-F401RE has no on-board crystals and, hence, needs to run
6533        with the PLL input from the on-chip HSI clock.
6534
6535    * STMicro STM32 Drivers:
6536
6537      - Serial:  Handle configuration for the case of 8-bit data with
6538        parity.  From Freddie Chopin.
6539
6540    * Atmel SAM3/4 Boards:
6541
6542      - There was a cloned error in all SAM3/4 board configurations (and
6543        for a few other architectures as well).  Button interrupts not
6544        being disabled after being detached.  As a result, unexpected
6545        interrupts could be received after the button interrupt was
6546        detached.
6547
6548    * Atmel SAMA5:
6549
6550      - Fix some critical typos in the SAMA5D3 DMA definitions.
6551
6552    * STMicro STM32 Drivers
6553
6554      - I2C: Add an alternative I2C implementation for the STM32 F103 that
6555        works around errata in that specific part.  From Patrizio Simona.
6556      - RTCC:  Add retry logic to RTC initialization. It sometimes takes
6557        longer for the RTC to initialize, at least as noted on an F2 part.
6558        From Daniel Lazlo Sitzer.
6559
6560    * NXP LPC17xx Drivers
6561
6562      - GPDMA:  Fix an error when DMA is started:  The read-modify-write
6563        fails when the DMA is started.  This is because the value read is
6564        not the same as the value set (on write it is the number of
6565        transfers to do; on read it is the number of transfers completed).
6566        From Lizhuoyi.
6567
6568    * Library:
6569
6570      - snprintf():  If the size passed to snprintf() is zero, then
6571        snprintf() must write nothing, but instead return the size of the
6572        buffer needed to hold the entire string.  From Sami Pelkonen.
6573
6574    * Configuration/Build System:
6575
6576      - The alternate console device CONFIG_NSH_CONDEV must not be defined
6577        unconditionally. This causes errors when using Telnet sessions.
6578        This was solved by adding CONFIG_NSH_ALTCONDEV: CONFIG_NSH_ALTCONDEV enables or disables the feature then, if
6579        enabled, CONFIG_NSH_CONDEV provides the alternative console
6580        device name.
6581      - Many files: Convert all old-style GCC variadic macros to the C99
6582        form.  Recent GCC changes tightens up that behavior and can cause
6583        some problems (at least for the IAR compiler for some reason).
6584        Noted by Bob Grimes.
6585      - tools/configure.sh:  In-place SED edit messes up permissions on
6586        windows. From Hannes Delago.
6587
6588    * Build Tools:
6589
6590      - tools/mkfsdata.pl:  Apparently, the trailing the 0x00 in http
6591        server files is seen as a bug in javascript and images.  From
6592        Max/Himax.
6593
6594    * Other Applications:
6595
6596      - I2C Tool:  Fix to show the updated register address on each
6597        fetch (vs. showing the same starting address each time).  From
6598        Ryan VanSickle.
6599      - CLE was not returning the terminating newline character. But
6600        reported by Max kriegleder.
6601
6602NuttX-7.4
6603---------
6604
6605The 104th release of NuttX, Version 7.4, was made on August 15, 2014,
6606and is available for download from the SourceForge website.  Note
6607that release consists of two tarballs:  nuttx-7.4.tar.gz and
6608apps-7.4.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
6609file for build information).
6610
6611Additional new features and extended functionality:
6612
6613    * Core OS:
6614
6615      - Beginnings of a crypto/ subsystem from Max Neklyudov
6616      - Tickless operation:  NuttX now supports a mode with no periodic
6617        timer interrupts.  Rather, timed events are handle via an interval
6618        timer.  This (1) lowers the rate of interrupt processing to timer
6619        events, (2) gives much high timing resolution, and (3) allows lower
6620        power modes of operation where the CPU is not constantly being
6621        interrupted by the timer.
6622      - Restructured the OS files under sched/ to better support the already
6623        modular nature of the RTOS.
6624
6625    * Networking
6626
6627      - Substantial directory and header file reorganization and renaming to
6628        make the NuttX networking implementation more modular.
6629      - Add network device ioctl to access PHY registers. From Daniel Lazlo
6630        Sitzer
6631
6632    * Binary Loader:
6633
6634      - Various changes associated with symbol tables from Pelle Windestam.
6635
6636    * Graphics:
6637
6638      - colorcmp(): New utility to compare two colors.
6639      - The initial background color is now configurable.  Includes logic to
6640        eliminates multiple background updates to get the right color.
6641      - Minor configuration changes to handle mouse X/Y and touchscreen
6642        X/Y differently.
6643
6644    * File System/Block Drivers:
6645
6646      - SmartFS: Increase some variables from uint16_t to uint32_t to handle
6647        larger device sizes.  From Ken Pettit.
6648      - Add configurable AES encryption support to the block-to-character
6649        (BCH) driver.  This allows any block device to be accessed as an
6650        encrypted character device.  From  Max Nekludov
6651      - Add an MTD layer that will add read-ahead or write buffering to any
6652        MTD driver (incomplete).
6653      - Automounter:  Add support for an auto-mounter that will automatically
6654        mount and unmount a file system a media is inserted and removed
6655
6656    * Audio/Audio Drivers
6657
6658      - WM8904 audio CODEC driver.
6659      - PCM .WAV file decoder. Fast forward implemented with sub-sampling
6660        (currently no rewind support).
6661      - Add a NULL audio device that can be used to simply unit-level testing
6662        of audio decoders.
6663      - Audio subsystem now supports interfaces for fast-forward and rewind
6664        needed by CMediaPlayer; add hooks for equalizer settings needed by
6665        the WM8904 CODEC.
6666
6667    * Other Common Drivers:
6668
6669      - MTD: Extend erase block size to 18-bits in order (decrease block
6670        size to 14-bits) to handle parts with large erase blocks. From Kosma
6671        Moczek
6672      - maxTouch:  Add support for the Atmel maXTouch touchscreen controller.
6673
6674    * Host Simulation:
6675
6676      - Provides the timers needed to support the Tickless mode of operation.
6677
6678    * Atmel SAM4C:
6679
6680      - Add SAM4CM IPC register header file.  From Max Neklyudov
6681      - Various fixes PMC and clock configuration for the SAM4CM port from
6682        Max Neklyudov
6683
6684    * Atmel SAM4E/4S Drivers:
6685
6686      - SAM4 AES driver.  Contributed by Max Neklyudov
6687
6688    * Atmel SAMA5:
6689
6690      - Add logic to redirect all SAMA5D4 interrupts to the AIC
6691      - Add a configuration option to reserve DRAM for a framebuffer when
6692        executing out of DRAM.  This optional was available before when
6693        executing out of NOR, but needs to work a little differently in
6694        this case.
6695      - Add SAMA5 slow (32.768KHz) clock support.
6696      - Add support for the ARM L2CC-PL310 L2 cache.  The system runs with
6697        L2CC cache enabled but there is some issues still with the LCD DMA;
6698        I suspect that the memory timing configuration for L2CC needs to
6699        be tuned.
6700      - Provides the timers needed to support the Tickless mode of operation.
6701
6702    * Atmel SAMA5 Drivers:
6703
6704      - XDMAC-based HSCMI driver for the SAMA5D4
6705      - Adapt the SAMA5D3 LCDC driver to work with the SAMA5D4 which has
6706        no hardware cursor.
6707      - PIO: Add a new interface sam_pio_forceclk() that can be used to
6708        force PIO clocking on.  I am afraid I was too conservative with
6709        PIO clocking in the initial design; this is the price.
6710      - TWI:  Now supports the up_i2creset() method.
6711      - TWI:  Use sam_pio_forceclk() so that we can read the current state
6712        of an open-drain output in the TWI reset logic.
6713      - SSC:  SCC Frame Synch Delay and Start Delay are now configurable.
6714      - PCK:  Add the slow clock and the main clocks as options for the
6715        PCK configuration.
6716      - Timer/Counter: Can now handle non-constant BOARD_MCK_FREQUENCY. Also
6717        now supports methods to attach client interrupt handlers
6718      - One shot and free-running timers.  These are wrappers around the low
6719        level timer/counter logic to provide one-shot and free-running
6720        timers.  These were developed to support the Tickless operation, but
6721        can be used for any purpose.
6722
6723    * Atmel SAMA5 Board Support:
6724
6725      - Add a boot loader that runs from ISRAM and loads an Intel HEX file
6726        into DRAM.
6727      - Add a configuration that will load a bootloader into AT25 Serial
6728        FLASH
6729      - SAMA5D4-EK NSH configuration supports many more features: RTC, HSCMI
6730        card detection, maXTouch touchscreen, TM7000 LCD, the command line
6731        media player (currently using the NULL audio device), automounter,
6732        and others.
6733      - SAMA5D4-EK:  Add an NxWM configuration using the TM7000 LCD with
6734        the maXTouch multi-touch touchscreen.
6735      - SAMA5D4-EK NxWM: Uses new, larger icons in configuration instead of
6736        scaling.
6737      - SAMA5D4-EK NxWM: The NxPlayer and audio system are now enabled in
6738        the default configuration (but currently using the NULL audio
6739        device).  The automounter is used to automatically mount media
6740        on an SD card.
6741      - SAMA5D3x-EK:  Add a configuration to support the command line
6742        NxPlayer and to verify the WM8904 CODEC driver.
6743
6744    * STMicro STM32:
6745
6746      -  Add support for the STM32F103RC and RD.  From Kosma Moczek
6747      -  Add a procfs entry to show the state of the CCM heap usage.
6748         From Pelle Winderstam
6749
6750    * STMicro STM32 Drivers:
6751
6752      - Unconfigure GPIO pins when closing a serial port to prevent back
6753        effects from back-powering on the TX pin. From Kosma Moczek
6754
6755    * NXP LPC17xx Drivers:
6756
6757      - ADC:  Added burstmode ADC conversion mode, with CONFIG_ADC_BURSTMODE
6758        option in Kconfig.  From Max
6759      - Ethernet: Added option to use the kernel worker thread to do most of
6760        the workload with CONFIG_NET_WORKER_THREAD option in Kconfig.  From Max
6761      - Ethernet: Critical bugfix: From time to time (after some hours) the
6762        Ethernet receiver would lose one receive interrupt and the IP stack
6763        never recover because there is no receive watchdog as the transmit
6764        watchdog.  From Max
6765
6766    * NXP LPC17xx Boards:
6767
6768      - mbed: Port ADC, DAC, and PWM logic from the configs/zkit-arm-1769.
6769        From Max
6770      - mbed:  Eliminated a problem with PHY DP83848C : it doesn't need a
6771        specific initialization on mbed.  From Max
6772
6773    * Library:
6774
6775      - Adds support for localtime.  From Max Neklyudov
6776
6777    * Configuration/Build System:
6778
6779      - Make variable definitions 'static const' when possible to save RAM
6780        usage.  From Kosma Moczek
6781
6782    * Applications:
6783
6784      - sysem/mdio:  New PHY tool from Daniel Lazlo Sizter.
6785      - NSH:  Networking logic modified to handler the case of SLIP
6786        transport.  From Max Neklyudov.
6787      - NSH:  Add a configuration to use a USB keyboard for the stdin
6788        device.
6789      - NSH:  Software assigned MAC address is now configurable. From Lazlo.
6790      - NSH:  Also add an option to let platform-specific logic select the
6791        MAC address.
6792      - NSH:  There is now a configuration option that will bring up the
6793        network on an separate thread.  Since the network bring-up is
6794        asynchronous, there are no serial console start-up delays due
6795        to the network negotiation time.
6796      - NxPlayer: Changes to integrate with Ken's NxWM::CMediaPlayer.
6797      - NxPlayer: Add interfaces for fast-forward and rewind needed by
6798        CMediaPlayer; add interface for equalizer settings needed by the
6799        WM8904.
6800      - NxPlayer:  Supports new way of identifying the end of the audio
6801        stream (see the Audio section above).
6802      - Sudoku:  Add a sudoku game.
6803
6804Bugfixes.  Only the most critical bugfixes are listed here (see the ChangeLog for the complete list of bugfixes and for additional, more detailed bugfix information):
6805
6806    * Graphics:
6807
6808      - NxConsole: Fix scrolling for the case of the framebuffer device.  In
6809        this case, the logic for clearing the vacated region at the bottom
6810        was missing so garbage would scroll up from the last, uncleared
6811        line.
6812
6813    * Networking:
6814
6815      - Important fix to the read-ahead buffer queue management: Consumed
6816        bytes were being trimmed from the head of the queue, but the queue
6817        head itself was not being updated.  From Rony XLN.
6818      - Fix an error in SLIP escaping.  From Max Neklyudov
6819
6820    * Network Utilities:
6821
6822      - Fix an include file ordering problem when CONFIG_NET_STATISTICS=y.
6823      - Move statistics from uip.h to new netstats.h  to remove a circular
6824        inclusion problem
6825      - Various fixes for networking and tiny webserver from Max
6826      - webclient:  Fix to offset calculation from Rony Xln.  Prevents 0x0a
6827        at the beginning of lines.
6828      - webserver:  Fix some configuration usage issues.  From Max.
6829      - webserver:  Missing logic to close sockets on loop termination.
6830
6831    * File System / Block Drivers:
6832
6833      - SmartFS:  Fix for a bug that would show up if CONFIG_MTD_BYTE_WRITE
6834        was not selected and the SMART sector size was larger than the MTD
6835        device's block size (like it would be if using SMARTFS on larger
6836        flash devices).  From Ken Pettit.
6837
6838    * Audio:
6839
6840      - Change how the end of the audio stream is detected by the leaf audio
6841        component.  This used to be done by looking for the first partial
6842        buffer.  That does not work with the in-place sub-sampling performed
6843        by the PCM decoder:  That always reduces the size of the buffer so
6844        that all buffers only partially filled by the time they get to the
6845        leaf.  Now, a flag is set in the audio buffer flags set to indicate
6846        the final buffer in the stream.
6847
6848    * Common Drivers:
6849
6850      - RAMLOG putc() method needs to set the errno and return EOF on a
6851        failure.
6852      - Add missing configuration option to select the MAX11802 touchscreen
6853        controller. From Petteri Aimonen
6854
6855    * Atmel SAMA5D3/4:
6856
6857      - Fix logic in conversion of physical and virtual DRAM addresses when
6858        running out of DRAM.  This is an important bug fix for the SAMA5D3
6859        and 4 when running out of DRAM .
6860      - Critical SAMA5D3 and 4 bug fix:  PIO clocking must be enabled for
6861        all input pins or else the value that is read never changes.
6862
6863    * Atmel SAMA5D3/4 Drivers:
6864
6865      - OHCI: Fix an error in a DEBUGASSERT statement.  Caused an
6866        assertion to fire inappropriately when a low- or full-speed device
6867        was removed and CONFIG_DEBUG=y
6868      - OHCI: Pointers to allocated port values were not being
6869        nullified after being deallocated.  This caused some assertions
6870        to fire when debug was enabled
6871      - SSC:  Needs to account for data offset in audio buffer
6872
6873    * ARMv7-M:
6874
6875      - Correct the initial value of the BASEPRI register.  This was
6876        apparently never being initialized! From Max
6877
6878    * STMicro STM32 Drivers:
6879
6880      - I2C:  Fix missing configuration of GPIO pins in I2C driver.  Fix
6881        from Alex D.
6882      - STM32 OTGFS device:  Various changes to try to reduce that amount of
6883        time in interrupts handles and with interrupts disabled.  From
6884        Petteri Aimonen
6885
6886    * Atmel SAM3/4 Drivers:
6887
6888      - Ethernet: Wrong bits being cleared before OR-ing in new settings.
6889      - Ethernet: Fix an error in the function that determines the number
6890        of free TX descriptors.  This is an important bugfix on busy
6891        networks.
6892      - I2C: Test for read or write operation was reversed.  How could
6893        this have worked before?
6894
6895    * Atmel SAM3/4 Boards:
6896
6897      - SAM4S Xplained-Pro:  Correct description of LEDs and usage. From
6898        Kosma Moczek
6899
6900    * Atmel SAMA5:
6901
6902      - PIO: Fix definitions that could disable PIO interrupt support if only
6903        PIOE interrupts were enabled
6904      - PIO: Macro SAM_PION_VBASE is not define-able for the SAMA5D4 and must
6905        be replaced with a table lookup.
6906      - PIO: Fix a typo in Schmitt trigger configuration; Configure pin as a
6907        vanilla input first so that final pin configuration is more read-able
6908        (i.e., easier to debug)
6909      - PIO: Logic for Schmitt trigger selection backward
6910      - SAMA5D4:  Correct system timer frequency.  Input clock is MCK/2, not MCK.
6911
6912    * Atmel SAMA5 Drivers:
6913
6914      - Ethernet: Wrong bits being cleared before OR-ing in new settings.
6915      - Ethernet: Fix an error in the function that determines the number
6916        of free TX descriptors.  This is an important bugfix on busy
6917        networks.
6918      - HSMCI: The 8-byte SCR transfer was failing silently with the DMA
6919        transfer, leaving the SD card in single bit mode.  Fixed by adding
6920        a non-DMA read transfer mode.
6921      - HSMCI: Fix a problem on card insertion/removal callback handling.
6922        Interrupts were being disable so that the callbacks occurred with
6923        interrupts disabled.  This resulted in loss of some interrupts and
6924        some not-so-good behaviors.  The solution is to perform all
6925        callbacks on the work thread unconditionally
6926
6927    * Atmel SAMA5 Boards:
6928
6929      - PIO: Fix some cloned errors in SAM GPIO interrupt setup
6930
6931    * NXP LPC17xx Drivers:
6932
6933      - Ethernet:  Comment out an assertion that is reported to fire
6934        inappropriately.  From Max
6935
6936    * Library:
6937
6938      - stdint.h: Correct naming of [U]INT_LEASTn_{MAX|MIN} and
6939        [U]INT_FASTn{MAX|MIN}. From Kosma Moczek
6940      - unistd.h: POSIX definitions should be defined to a value. rom Kosma
6941        Moczek
6942      - Fixes associated with rint() and related interfaces in the math
6943        library.
6944
6945    * Configuration/Build System:
6946
6947      - NAME_MAX not available on SunOS; use FILENAME_MAX or MAXNAMELEN.
6948        Noted by Douglas Beattie
6949
6950    * Applications:
6951
6952      - NSH: if # appears on line, need to comment ignore additional
6953        commands on the line
6954      - NxPlayer:  Check for file read errors and end-of-file with zero
6955        bytes read.  Other error handling corrected as well.
6956      - NxPlayer:  NxPlayer needs to set curbyte field to zero before
6957        enqueuing a buffer.  Otherwise, it looks like beginning of the
6958        buffer has already been consumed.
6959
6960NuttX-7.5
6961---------
6962
6963The 105th release of NuttX, Version 7.5, was made on September 28, 2014,
6964and is available for download from the SourceForge website.  Note
6965that release consists of two tarballs:  nuttx-7.5.tar.gz and
6966apps-7.5.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
6967file for build information).
6968
6969Additional new features and extended functionality:
6970
6971    * Core OS:
6972
6973      - Watchdog Timer Allocation:  (1) If we run out of pre-allocated
6974        watchdog times, the logic will now allocate additional timers
6975        from the heap.  A reserve of pre-allocated watchdog timers is
6976        maintained so that there will always be timers available for
6977        interrupt handlers. (2) Added support for statically allocated
6978        watchdog timer
6979      - Address Environment Support:  (2) New OS APIs integrated into all
6980        platform-specific context switching logic (up_block_task(),
6981        up_unblock_task(), _exit(), and others).
6982      - Kernel Build Support: (1) The MPU based "kernel build" renamed to a
6983        protected build (CONFIG_BUILD_PROTECTED); added support for the a
6984        new MMU-based "kernel build" (CONFIG_BUILD_KERNEL), (2) The system
6985        call library can now be built with CONFIG_NUTTX_KERNEL.  New
6986        selection: CONFIG_LIB_SYSCALL.
6987      - System Startup:  Add configuration options to start the system from
6988        a program on a file system (versus an address in memory).
6989      - Startup Parameter Passing. There used to be two ways to pass
6990        parameters to new tasks, depending upon the configuration:  Either
6991        (1) argv[] as created as an array with each string strdup'ed.  Or
6992        (2) argv[] array and strings were created on the stack before the
6993        new task was started.   Now, there is only one way, way (1).  Way
6994        (2) might be slightly more compact, but this is not worth carry the
6995        complexity of two different ways of doing the same thing.
6996      - Board Initialization: Add capability to perform initial board
6997        initialization on a separate worker thread.  This is needed because
6998        there are many cases where initialization logic cannot execute on
6999        the start-up/IDLE thread.  That is because blocking or waiting is
7000        not permitted on the IDLE thread.
7001
7002    * Memory Management:
7003
7004      - Granule Allocator:  (1) Add a new function to reserve un-allocatable
7005        regions in the granule heap.  (2) Add interfaces to support
7006        un-initializing a granule allocator.
7007      - Page Allocator:  Add a simple physical page allocator based on the
7008        existing NuttX granule allocator.  I am not certain if the granule
7009        allocator is sufficiently deterministic for long range use, but it
7010        gets get a page allocator in place for testing very quickly.
7011      - Remove CONFIG_MM_MULTIHEAP.  Non-multiheap operation is no longer
7012        supported.
7013      - sbrk():  sbrk() is now supported in the kernel build to permit
7014        dynamically sized, per-process heaps.
7015      - Per-Process Heaps:  Space at the beginning of the process data space
7016        is now reserved for user heap management structures.  In the kernel
7017        build mode, these heap structures are shared between the kernel and
7018        use code in order to allocate user-specific data.
7019      - User Heap Management:  When a privileged thread exits, we have to
7020        use the kernel allocator to free memory; when an unprivileged thread
7021        exits, we don't have to do anything... heap memory will be cleaned
7022        up when the address environment is torn down.
7023      - Inter-Process Shared Memory Support:  (1) Add implementation and
7024        documentation for shmget(), shmctl(), shmat(), and shmdt().  (2)
7025        Add system system calls to support the user call gate to the shared
7026        memory interfaces.  (3) Add platform-specific interface definitions
7027        needed to support the shared memory feature.
7028      - Virtual Page Allocator:  Add support for a per-process virtual page
7029        allocator.  This is a new member of the task_group_s structure.  The
7030        allocator must be initialized when a new user process is started and
7031        uninitialize when the process group is finally destroyed.  It is
7032        used by shmat() and shmdt() to pick the virtual address onto which
7033        to map the shared physical memory.
7034
7035    * File Systems/Block Drivers/MTD:
7036
7037      - SMART FS and SMART FS procfs updates from Ken Pettit.
7038      - The MTD Read-ahead/Write buffer layer appears is now functional.
7039
7040    * Binary Formats:
7041
7042      - Add logic to initialize the per-process user heap when each user
7043        process is started.
7044
7045    * Graphics:
7046
7047      - Change all occurrences of NxConsole to NxTerm.
7048
7049    * Networking:
7050
7051      - PHY Interrupts: (1) Standardize a PHY interrupt attachment
7052        interface. (2) Add support for an ioctl that can be used to notify
7053        an application when there is a change in the network status
7054        signalled by a PHY interrupt.
7055      - Improved Send Logic:  In the past, the first packet send to a new
7056        network peer would fail; there would be no entry in the ARP table
7057        for the peer and so an ARP request could replace that first packet.
7058        Now as an option if CONFIG_NET_ARP_SEND=y, all send logic will (1)
7059        check if the peer MAC address is in the ARP table and, if not, (2)
7060        send ARP requests periodically to get the mapping and (3) wait for
7061        the ARP response.  Then (4) when the ARP response is received then
7062        the actual send logic will be initiated.  Thus there may be a delay
7063        with the first packet sent to a new peer, but the packet should not
7064        be lost
7065
7066    * Host Simulation:
7067
7068      - Emulated SPI FLASH driver for the sim target from Ken Pettit.
7069
7070    * Intel x86:
7071
7072      - The default host is now x86_64 and the -m32 option will be
7073        automatically selected for simulation builds.
7074
7075    * Intel 8051 Family:
7076
7077      - Removed all support for the 8051 family architecture from the NuttX
7078        source tree.  The obsoleted code along with the removal patch can
7079        now be found at misc/Obsoleted/.  This code was removed because (1)
7080        although some functionality has been demonstrated, I am not aware of
7081        any really successful ports of NuttX to any 8051, and (2) the 8051,
7082        with its hardware stack, forces limitations and complications to the
7083        other architectures and make growth and development of NuttX more
7084        complex.
7085
7086    * ZiLOG ZNeo Boards:
7087
7088      - configs/16z:  Support for this board has been removed from the NuttX
7089        source tree (but still can be found in the misc/Obsoleted
7090        directory). This port is not ready for usage but may return to the
7091        NuttX tree at some point in the future.
7092
7093    * Atmel SAM3/4 Boards:
7094
7095      - SAM4E-EK: Add (1) a fully-functional ILI9341-based LCD driver and
7096        (2) a fully-functional NxWM configuration.
7097
7098    * ARMv7-A:
7099
7100      - Address Environments:  Add support for application address
7101        environments using the Cortex-A MMU.  Implement standardized
7102        platform-specific interfaces of NuttX address environment
7103        support.
7104      - Cache Operations:  Implement standardized, platform-specific cache
7105        operations.  These are called from the ELF loader in order to flush
7106        D-cache and invalidate I-cache after an ELF module has been loaded
7107        into memory. With this change, ELF modules work correctly on the
7108        SAMA5/Cortex-A platform.
7109      - Kernel Build: (1) Add implementations of system call gate. (2) Add
7110        CRT0 start-up file that can be linked with separately built user
7111        programs.  (3) Add support for delivery of use-mode signals in the
7112        kernel build.  (4) Add logic to initialize the per-process user heap
7113        when each user process is started.  (5) ARMv7-A exception handling
7114        needs to work a little differently if we support user mode
7115        processes.  This is because R13 and R14 are paged differently
7116        between user and SVC mode.
7117      - Shared Memory Support:  (1) Add logic necessary to handle remapping
7118        of shared memory on context switches.  (2) Extend virtual/physical
7119        address conversions to include addresses in shared memory.  (3) Add
7120        implementation of platform-specific shared memory support.
7121
7122    * Atmel SAMA5D Drivers:
7123
7124      - Implement all network ioctls, including the new ioctl to setup PHY
7125        event notifications.
7126      - In kernel build with address environment, need logic to map user
7127        virtual addresses to physical addresses, and vice versa.
7128
7129    * Atmel SAMA5D Boards:
7130
7131      - SAMA5D3 Xplained, SAMA5D3-EK, and SAMA5D4-EK:  Convert existing
7132        board specific PHY interrupt interfaces to use newly defined
7133        standard interface.
7134      - SAMA5D4-EK: Add a configuration for testing the kernel build
7135        configuration.  There are configurations to boot either from an SD
7136        card or from and in-memory ROMFS file system.
7137      - SAMA5D4-EK: Add documentation/support for Rev E. board.
7138
7139    * STMicro STM32 Drivers:
7140
7141      - Ethernet: Modified to support the change to the network ioctl
7142        signature changes.  Also add support for new ioctl to setup PHY
7143        event notifications.
7144
7145    * STMicro STM32 Boards:
7146
7147      - STM32F4Discovery with STM32F4DIS-BB: Add a network enabled NSH
7148        configuration for the STM32F4Discovery board with the STM32F4DIS-BB
7149        base board installed.  Includes support for the microSD card slot on
7150        the STM32F4DIS-BB base board.
7151
7152    * TI Tiva Drivers:
7153
7154      - Add support for the TI CC3200. From Jim Ewing.
7155
7156    * TI Tiva Boards:
7157
7158      - Add support for the TI CC3200 Launchpad. From Jim Ewing.
7159
7160    * C Library:
7161
7162      - Re-implemented poll() delay using sem_timedwait().
7163
7164    * Configuration/Build System:
7165
7166      - Export Target:  In the kernel or protected builds, (1) only the user
7167        libraries should be exported,  (2) do not copy internal header files
7168        or build scripts if this is a kernel or protected build, and (3)
7169        needs to bundle up the user C startup file (crt0), not the kernel
7170        head object for the kernel and protected builds.
7171      - Add logic that will permit us to build user libraries with different
7172        CFLAGS than kernel code.  This is needed because we need the
7173        -fno-common option when building ELF code to prevent SHN_COMMON
7174        relocations.
7175
7176    * Applications:
7177
7178      - NSH:  Extend the NSH network initialization logic.  There is now an
7179        option that will create a network monitor thread that will monitor
7180        the state of the link.  When the link goes down, the code will
7181        attempt to gracefully put the Ethernet driver in a down state; When
7182        the link comes back, the code will attempt to bring the network back
7183        up.
7184      - ELF Example:  The ELF test/example has been extended so the
7185        individual ELF test programs can link against the SYSCALL library
7186        (if it is available) or against the C library to eliminate or
7187        minimize the need for symbol tables.
7188      - Change all occurrences of NxConsole to NxTerm.
7189      - MTDRWB Example:  Add an example to test MTD R/W buffering.
7190      - OS Test Example:  Add a trivial test of sem_timedwait.
7191
7192    * Application Configuration/Build System:
7193
7194      - Import Target:  (1) Add logic that will allow building applications
7195        against a NuttX export package (vs. the nuttx/ source tree).  (2)
7196        Add .config file to export package.  (3) Create apps/import.  Create
7197        apps/import/Make.defs that does things like define CFLAGS; ELF build
7198        requires -fno-common in CFLAGS. Copy some base logic from
7199        nuttx/tools/Config.mk to apps/import/Make.defs.  (4) Add
7200        apps/import/scripts/gnu-elf.ld GCC linker script for ELF import
7201        builds.
7202      - All Makefiles:  (1) Add an install target to all makefiles.  For
7203        the import build, the top-level Makefile now does two passes: (1)
7204        builds libapp.a, then (2) installs the programs into apps/bin.  (2)
7205        Add program installation for CONFIG_BUILD_KERNEL in all Makefiles
7206        that build a main().  (3) For kernel build, the object file
7207        containing main cannot go into library because of name collisions.
7208        The object file must be handled as a special case in every Makefile.
7209      - All Built-In Programs:  With kernel build (CONFIG_BUILD_KERNEL),
7210        entry point to all tasks is main(), not some xyz_main().
7211      - NSH: Several commands must be disabled in the kernel build because
7212        they depend on interfaces that are not available outside of the
7213        kernel: dd, df, losetup, mkfatfs, mkdr, and ps.
7214      - apps/tools/:  (1) Add mkimport.sh to expload an NuttX import package
7215        and install in apps/import.  (2) Add mkromfsimg.sh  script to create
7216        a BOOT ROMFS filesystem image.
7217      - ELF and NxFLAT Examples: Do not build test cases that use
7218        task_create() if there is an address environment.
7219
7220    * Tools:
7221
7222      - refresh.sh: Add a tool to make refreshing configurations easier
7223        when you want to do a lot of them.
7224      - mksyscall.c: Build syscalls that do not need header files.
7225      - mkexport.sh: Add .config file to export package.
7226      - See above for new apps/tools scripts.
7227
7228Efforts In Progress.  The following are features that are partially
7229implemented but present in this release.  They are not likely to be
7230completed soon.
7231
7232    * Processes.  Much of the work in this release is focused on the
7233      realization of Unix-style user processes in NuttX.  There is more to
7234      be done, however.  The full roadmap and status is available at:
7235      http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
7236
7237    * XMega:  There are some fragments in place for an XMega port.  That
7238      port has not really started, however.
7239
7240    * Galileo:  Similarly, there are fragments in place for an Intel Galileo
7241      port.  The port not been started in earnest either.
7242
7243Bugfixes.  Only the most critical bugfixes are listed here (see the ChangeLog for the complete list of bugfixes and for additional, more detailed bugfix information):
7244
7245    * Core OS:
7246
7247      - Kernel build fixes: (1) IDLE TCB setup needs to indicate that the
7248        IDLE thread is a privileged, kernel thread.  (2) Don't build
7249        task_create() or task_spawn() interfaces if there is an address
7250        environment.  (3) posix_spawn() kernel proxy thread should be a
7251        kernel thread, not a user task.
7252      - Several pthread interfaces: Add const storage class to phthread
7253        parameters.  From Freddie Chopin.
7254      - sched/clock: Remove vestiges of g_tickbias;  need, instead, to apply
7255        time bias to g_basetime in order to provide the correct system time.
7256      - System Calls:  (1) Several typos fixed; corrected integration of
7257        exevc(), execvl(), posix_spawn, and posix_spawnp system calls. (2)
7258        If we are configured to use a kernel stack while in SYSCALL handling,
7259        then we need to switch back to the user stack to deliver a signal.
7260
7261    * File Systems/Block Drivers/MTD:
7262
7263      - procfs: Fix some procfs breakage introduced by reorganizing some
7264        non-reorganizable data structures.  From Ken Pettit.
7265      - AT45: In at45db_bwrite , the buffer is not increased when writing
7266        more than 1 page.  Sourceforge bug #34.
7267
7268    * Binary Formats:
7269
7270      - ELF relocations.  Some relocation types do not have a named symbol
7271        associated with them.  The design did not account for that case.
7272      - ELF Loader: Critical bugfix.. BSS was not being cleared.
7273
7274    * Memory Management:
7275
7276      - Granule allocator initialization uses wrong allocator to setting
7277        aside kernel memory.
7278      - Add a flag to group structure:  If the group is created by a kernel
7279        thread, then all resources in the group must be privileged.
7280
7281    * Cryptogrphic Support:
7282
7283      - crypto/cryptodev.c: Path segments reversed in include file path. Noted by Brennan Ashton.
7284
7285    * Common Drivers:
7286
7287      - Common CAN upper-half: In can_txdone, waiters on the semaphore
7288        should be informed regardless of the return value of can_xmit. First
7289        it returns -EIO if there are no new packets, and second the
7290        information of the waiters is about the last transferred packet.
7291        From  Daniel Lazlo Sitzer.
7292
7293    * ARM:
7294
7295      - System Calls: Fix a typo in system call when fetching parameter from
7296        the stack:  regs[REG_PC]+4 is the address, not regs[REG_PC+4].
7297
7298    * STMicro STM32 Drivers:
7299
7300      - STM32 F401 UART: Correct support for USART6 on this chip.  From
7301        Freddie Chopin.
7302      - STM32 FLASH fixes: use size_t instead of uint16_t, make interface
7303        more generic.  From Freddie Chopin.
7304      - Fix for UART7 and UART8 on STM32 clock enable from Aton.
7305      - CAN: At the end of the interrupt handler, the interrupts were being
7306        disabled, if all packets have been transferred when the interrupt
7307        handler was invoked. This is problematic, because the interrupt
7308        handler calls can_txdone of the upper half which can enqueue new
7309        packets to send. Removed the block altogether, because can_txdone
7310        calls can_xmit which disables interrupts if there are no new packets
7311        to send.  From  Daniel Lazlo Sitzer.
7312      - Additional STM32 CAN correction suggested by Max Holtzberg.
7313
7314    * STMicro ST32 Boards:
7315
7316      - configs/mikroe-stm32f4: Fix a few compile bugs and minor corrections
7317        to the mikroe-stm32f4 configuration source.  From Ken Pettit.
7318
7319    * ARM9/ARMv7-A:
7320
7321      - System Calls: Fix ARM7/9 and Cortex-A SYSCALLs:  For threads in SVC
7322        mode, the SVC instructions clobbers R14.  This must be taken account
7323        in the inline assembly.
7324      - Task Setup:  All tasks, even user mode tasks, must start in
7325        supervisor mode until they get past the start-up trampoline.
7326      - ARMv7-A:  Modify up_fullcontextrestore() for CONFIG_BUILD_KERNEL.
7327        It changed CPSR while in kernel.  That will crash if the new CPSR is
7328        user mode while executing in kernel space.  Fixed by adding a
7329        SYS_context_restore system call.  There is an alternative, simpler
7330        modification to up_fullcontextrestore() that could have been done:
7331        It might have been possible to use the SPSR instead of the CPRSR and
7332        then do an exception return from up_fullcontextrestore().  That
7333        would be more efficient, but I never tried it.
7334
7335    * Atmel SAM3/4 Boards:
7336
7337      - SAM3X/Arduino Due: Fix typo in sam3x_periphclks.h; add SCLK
7338        definitions to board.h header file.  From Fabien Comte.
7339      - SAM3 RTT: Only SAM4 family has RTTDIS bit in the MR register.
7340        SourceForge bug #33 from Fabien Comte.
7341
7342    * C Library:
7343
7344      - sscanf(): NuttX libc tried to guess how many characters to parse,
7345        extracted them into a buffer, then ran strtol() on that buffer.
7346        That guess was often wrong.  A better approach would be to call
7347        strtol() directly on the input data, using the endptr return value
7348        to determine how many characters to skip after parsing.  From Kosma
7349        Moczek.
7350      - Corrected atan2 implementations from Denis Arnst.
7351      - Change to lib_dtoa() to fix precision error from trailing zeroes.
7352        From Bob Doiron.
7353
7354    * Applications:
7355
7356      - Fix NSH PS command:  If there are no arguments, it could print
7357        garbage for argument list.
7358
7359    * Configuration/Build System:
7360
7361      - Null Example:  Need to include config.h it order know if this is or
7362        is not a kernel build.  This problem still exists in several other
7363        file that may need to define main().
7364
7365NuttX-7.6
7366---------
7367
7368The 106th release of NuttX, Version 7.6, was made on November 26, 2014,
7369and is available for download from the SourceForge website.  Note
7370that release consists of two tarballs:  nuttx-7.6.tar.gz and
7371apps-7.6.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
7372file for build information).
7373
7374Additional new features and extended functionality:
7375
7376    * Core OS:
7377
7378      - Moved name semaphore and message queue support out of the OS and
7379        into the VFS.  These improves the architecture by unifying the
7380        management of named resources, removes redundant resource management
7381        logic, and makes named semaphores and message queues  visible in the
7382        file system.  By default, these are visible at /var/lock and
7383        /var/mqueue.
7384      - Add SIGPOLL for use as part of the AIO implementation.
7385      - Remove CONFIG_MAX_TASK_ARGS configuration.  There is now no
7386        predetermined limit on the number of arguments that may be passed
7387        to a new task on start-up.
7388
7389    * Work queues:
7390
7391      - Add support for priority inheritance on the low priority worker
7392        queue.  That is, if a higher priority thread has scheduled work, the
7393        priority of the low priority worker thread(s) will be boost to the
7394        priority of the queuing thread.  At work is performed at at least
7395        thread priority of the scheduling thread.  If there are multiple
7396        worker threads, then all threads get reprioritized.  Currently
7397        only implemented for AIO.
7398      - Add support for multiple low-priority work queue threads.  This
7399        allows individual worker threads to block indefinitely for I/O as
7400        necessary without halting the entire work queue.
7401
7402    * VFS/General Drivers:
7403
7404      - Implement create() (as a macro).
7405      - Add pread() and pwrite().   Also added pread() and pwrite()
7406        system calls.
7407      - AIO: Add aio_read(), aio_write(), aio_return(), aio_error(),
7408        aio_suspend(), aio_canel(), lio_listio(), and aio_fsync().  This
7409        logic minimizes the creation of new threads by using the new
7410        features also added to the low priority work queue with this
7411        release.  It uses the new low priority worker thread interface
7412        to adjust the priority of the worker thread according to the
7413        priority of the AIO client thread
7414      - Implement standard syslogmask() to control logging (also removing
7415        the non-standard syslog_enable()).
7416
7417    * File Systems/Block Drivers/MTD:
7418
7419      - Extend MTD support to the M25P16. From S�bastien Lorquet.
7420
7421    * Drivers:
7422
7423      - BCH (Block-to-Character): Add support for seeking in BCH.  From
7424        S�bastien Lorquet.
7425
7426    * Graphics Support/Graphics-Related Drivers:
7427
7428      - Add support for a generic ILI9341 LCD driver.  From Marco Krahl.
7429      - Add ANSI/VT100 foreground and background color commands.
7430      - Add driver for ST7565 LCD that works with NHD-C12864KGZ display.  From Pierre-noel Bouteville.
7431
7432    * Networking:
7433
7434      - Verify that multiple networks can be supported.
7435      - Add support for the case where there are multiple networks:  One
7436        being Ethernet and the other not (SLIP, PPP, ...).  The primary
7437        difference from the standpoint of the stack is that (1) ARP may or
7438        may not be necessary, (2) the size of the link layer header will
7439        vary, and (3) different MTUs and TCP receive windows may be used
7440        with each link.  Suggested by Brennan Ashton.
7441      - Extensions to UDP and TCP connection structures for the case of
7442        multiple networks.  In this case, assigned port numbers only have to
7443        be unique with respect to the IP address.  So, for example, you
7444        could have multiple port 80's, one on each network.
7445
7446    * Host Simulation:
7447
7448      - Removed the old, strange up_stdio.c and implemented a simulated UART
7449        driver to provide the console input.  The new logic starts a
7450        separate, Linux domain pthread to read the console input in raw mode
7451        and provides the incoming data to NuttX via standard NuttX domain
7452        IPCs.
7453      - Add support for 64-bit longjmp/setjmp in simulator platform.  This
7454        will permit operation of the simulation natively on a 64-bit
7455        platform.
7456
7457    * ARMv7-M:
7458
7459      - Add ARMv7-M CMSIS ITM header file and library.  From Pierre-noel
7460        Bouteville.
7461      - Add ARMv7-M CMSIS DWT and TPI header files. From Pierre-noel
7462        Bouteville.
7463      - Add ARMv7-M support to use ITM for SYSLOG debug output. Includes
7464        logic from Pierre-noel Bouteville.
7465
7466    * Atmel SAM3/4 Drivers:
7467
7468      - Add support for SAM3/4 basic serial TERMIOS and flow control.
7469        There are issues with IFLOW control: PDC or DMAC support is
7470        required.
7471
7472    * Atmel SAM3/4 Boards:
7473
7474      - SAM4E-EK: Add support for PHY interrupt.
7475
7476    * Atmel SAMA5D Boards:
7477
7478      - SAMA5D3-Xplained:  Add a configuration that provides a simple test
7479        for the EMAC and GMAC on the SAMA5D3 working together.
7480      - SAMA5D4-EK:  Add a configuration that provides a simple test for the
7481        EMAC0 and EMAC1 on the SAMA5D4 working together.
7482
7483    * Freescale KL:
7484
7485      - Add an I2C header file for the Freescale KL family.  From Alan
7486        Carvalho de Assis.
7487
7488    * NXP LPC32xx:
7489
7490      - Add support for tickless operation using the NXP LPC43xx.  From
7491        Brandon Warhurst.
7492
7493    * SiLabs EFM32:
7494
7495      - Add a basic port for the SiLabs EFM32 family.  Includes many files
7496        contributed by Pierre-noel Bouteville .
7497
7498    * SiLabs EFM32 Boards:
7499
7500      - Add board support for the EFM32 Gecko Starter Kit.
7501      - Add board support for the Olimex EFM32G8809128 STK.  NOTE: I am
7502        unable to test this configuration due to tool-related issues.
7503      - Add board support for the SiLbas EFM32GG Giant Gecko Starter kit.
7504
7505    * STMicro STM32:
7506
7507      - Add support for the STM32 F411RE from Serg Podtynnyi.
7508      - Add support for the STM32F103RG.  From Murilo Ponte.
7509
7510    * STMicro STM32 Drivers:
7511
7512      - STM32 F4:  Add logic that implement true high speed support for the
7513        STM32 OTGHS peripheral and concurrent support for both LS and HS
7514        OTG.  New OTGHS drivers provided for both device and host. From
7515        Brennan Ashton.
7516
7517    * STMicro STM32 Boards:
7518
7519      - STM32 Nucleo-F411RE: Extend this board configuration to also support
7520        the Nucleo-F411RE.  From Serg Podtynnyi.
7521      - Add support for the STM32F429i Discovery's LCD (SPI based).  From
7522        Marco Krahl.
7523      - configs/stm32f100rc_generic:  Removed this generic board configuration.
7524        I have decided to stop support of generic board configurations.  Generic
7525        board configurations do not provide support for any specific hardware
7526        but can be useful only if there are not other examples for the setup
7527        for a particular architecture. Not the case here.
7528
7529    * C Library:
7530
7531      - Add a mostly bogus wchar.h header file.  This file is mostly bogus
7532        because none of the wide character operations are currently
7533        supported in the Nuttx C library.  The file does provide the wchar_t
7534        types needed by some software, however.
7535      - Add isatty() function. From  Alan Carvalho de Assis.
7536      - Add mktemp(), mkstemp(), tmpnam() and tempnam().
7537
7538    * Configuration/Build System:
7539
7540      - Add a PRELINK macro to Config.mk.  From Kriegleder.
7541      - compiler.h:  Defines inline functions as not instrumented - this is
7542        relevant for anyone using instrumentation.  From Lorenz Meier.
7543
7544    * Applications:
7545
7546      - apps/interpreter/bas:  Added in the Michael Haardt's BAS 2.4 adapted
7547        for use by NuttX by Alan Carvalho de Assis.   Includes support for
7548        VT100 terminals and color commands.
7549      - Examples:  Added bastest/ which holds a special version of Michael
7550        Haardt's BAS 2.4 test files adapted for use by NuttX on a ROMFS file
7551        system.
7552      - Examples:  Add a simple UDP relay bridge for testing configurations
7553        with multiple networks.  Includes a host-side test driver for
7554        testing the bridge.
7555      - Netutils: Add implementation of timeouts for the netutils webclient.
7556        From Brennan Ashton
7557      - NSH: Add support for a custom NSH ROMFS startup image header file
7558        location.  From Martin Lederhilger.
7559      - OS test:  Add a simple test of named semaphores.
7560      - OS test:  Add AIO test case in OS test.
7561
7562Efforts In Progress.  The following are features that are partially
7563implemented but present in this release.  They are not likely to be
7564completed soon.
7565
7566    * Processes.  Much of the work in this release is focused on the
7567      realization of Unix-style user processes in NuttX.  There is more to
7568      be done, however.  The full roadmap and status is available at:
7569      http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
7570
7571    * XMega:  There are some fragments in place for an XMega port.  That
7572      port has not really started, however.
7573
7574    * Galileo:  Similarly, there are fragments in place for an Intel Galileo
7575      port.  The port not been started in earnest either.
7576
7577Bugfixes.  Only the most critical bugfixes are listed here (see the
7578ChangeLog for the complete list of bugfixes and for additional, more
7579detailed bugfix information):
7580
7581I ran cppcheck against the entire code base and correct many latent bugs
7582including things as serious as memory leaks,  two locations where interrupts
7583were be disabled but never re-enabled, and errors in the Tickless mode of
7584operation.  My thanks to the developers of cppcheck!  I am impressed!
7585
7586    * Core OS:
7587
7588      - vfork():  Now that arguments are kept on the stack, the way that
7589        arguments are passed from parent to child in vfork() must change.
7590        This bug has always been present, but was not visible with the
7591        old strdup() way of passing arguments.
7592      - vfork() problem: If we get to vfork() via system call, then we
7593        need to clone some system call information so that the return form
7594        the cloned system call works correctly.
7595      - Fixes to tickless operation code, especially in alarm mode.  From
7596        Brandon Warhurst.
7597      - Fix an important bug in the watchdog timer creation logic.
7598      - Calling mq_timedreceived() with immediate timeout was getting stuck
7599        and not timing out. Immediate timeout is achieved by setting absolute
7600        timeout value to past time, for example abstime={ .tv_sec=0,
7601        .tv_nsec=0 }. However absolute time was converted to relative time
7602        using unsigned integer arithmetic and resulted large ticks count by
7603        clock_abstime2ticks, instead of expected negative ticks value.
7604        Change corrects clock_abstime2ticks() to return negative ticks, if
7605        absolute time is in the past.  From Jussi Kivilinna.
7606
7607    * Memory Management:
7608
7609      - Fix a place in the memory manager where it explicitly assumed that
7610        the size of a pointer is 4 bytes.  That assumption was OK if the
7611        actual size is smaller but made the heap unstable when used with
7612        the x86_64 host simulation.
7613      - Granule Allocator:  If the INTR granule allocator mode is enabled,
7614        there is no semaphore to destroy.  From Lorenz Meier.
7615
7616    * Networking:
7617
7618      - Network routing:  I don't think that the net_route() function has
7619        ever worked correctly.  The source IP was updated in the match
7620        struct instead of the route IP.  From Brennan Ashton.
7621      - Move and rename IP header flag definitions.  The problem fixed here
7622        is that there IP header flag definitions were not available when TCP
7623        was disabled.  The IP flags are used in ICMP and IGMP.
7624      - Network routing:  Refuse to perform routing table lookups for the
7625        Broadcast IP address.  From Brennan Ashton.
7626      - Network routing:  Add logic to netdev_findbyaddr() to return the
7627        correct network device for the case where a broadcast
7628        address is used.  This change caused trivial ripples through other
7629        files because additional parameters are required for
7630        netdev_findbyaddr() when CONFIG_NET_MULTINIC.
7631
7632    * File Systems/Block Drivers/MTD:
7633
7634      - NXFFS Dump: Fix problems with redefinitions of fdbg macro.  With the
7635        fix to the syslog prototype, a LOG priority must now be the first
7636        parameter.  Fixed by replacing all occurrences of fdbg with
7637        syslog(LOG_DEBUG, and eliminating the macro redefinitions.  Noted
7638        by Sebastien Lorquet.
7639      - poll() was not waking up from signals (for example mq_notify()
7640        events).  From Jussi Kivilinna.
7641      - poll():  Add proper handling for sem_timedwait errnos.  From Jussi
7642        Kivilinna.
7643      - include/nuttx/fs/fs.h: Fix typo in conditional compilation.  From
7644        Alan Carvalho de Assis.
7645
7646    * Graphics/Graphic-Related Drivers:
7647
7648      - Remove warnings when CONFIG_NXTK_BORDERWIDTH is set to zero.  From
7649        Pierre-Noel Bouteville.
7650
7651    * Common Drivers:
7652
7653      - Make standard syslog and vsyslog POSIX compliant (also modify
7654        non-standard syslog functions for compatibility).
7655      - R/W buffering: Fix typo that can cause compilation error.
7656
7657    * Atmel SAM3/4:
7658
7659      - SAM4S: Add missing SPI0 clock configuration macro for the SAM4S.  From spasbyspas.
7660
7661    * Atmel SAM3/4 Drivers:
7662
7663      - SAM4E-EK: Fix an error in a USART1 pin number.
7664
7665    * Atmel SAMA5D3/4 Drivers:
7666
7667      - SAMA5DF4: Fix several typos that will prevented EMAC1 from
7668        initializing properly.
7669
7670    * NXP LPC43xx:
7671
7672      - Fixes to allow compile of lpc43_gpioint.c.  From Brandon Warhurst.
7673
7674    * STMicro STM32:
7675
7676      - Add missing ADC pinmap definitions for the STM32 F103R from Martin
7677        Lederhilger.
7678
7679    * STMicro STM32 Drivers:
7680
7681      - STM32 EXTI: Correct STM32 RTC EXTI bit definition.  From Lazlo.
7682      - STM32 IWDG, WWDG, DBGMCU: Fix watchdog stop bit usage.  From Lazlo.
7683      - STM32 OTGFS: Correct a typo in the STM32 OTGFS register bit definitions.
7684
7685    * ARM:
7686
7687      - ARM up_internal.h: Add protection from C++ name mangling in the
7688        ARM up_internal.h.  From Lorenz Meier.
7689
7690    * MicroChip PIC32MX:
7691
7692      - PIC32MX7: DEVCFG0 bit 2 must be set.  Writing bit 2 as zero can
7693        brick the CPU on some versions.  From Cris Kvist.
7694
7695    * C Library:
7696
7697      - The implementation of access() as vararg macro has the issue that
7698        any function call with the same name (even in a C++ class) will
7699        match with it and result in a compile error.  Replaced with a small
7700        function. This resolves the compile issue, and shouldn�t have
7701        negative side effects for users of the function. From Lorenz Meier.
7702      - The definition of strncpy() is that empty space should be zero-
7703        filled, the change adds the zero filling (See the POSIX spec here:
7704        http://pubs.opengroup.org/onlinepubs/7908799/xsh/strncpy.html). From
7705        Lorenz Meier.
7706      - limits.h:  Remove the definition of INT_FAST32_MIN which is already
7707        defined in stdint.h (the correct location).  From Lorenz Meier.
7708
7709    * Applications:
7710
7711      - apps/: Correct everything under apps to use the corrected syslog
7712        interfaces.  Remove any non-portable uses of syslog.
7713      - NSH: Fix ls -l output for regular files.
7714      - NSH: Fix reversed in/out file closing in DD command when an error
7715        occurs.  From Ken Pettit.
7716      - NSH:  Add logic to restart the console wait if an error occurs
7717        while reading from the console.  In USB console startup, the logic
7718        must be able to open the USB serial and receive 3 newlines.
7719        However, it the USB driver is disconnected or otherwise fails before
7720        the 3 newlines are received, the receive loop becomes a killer,
7721        infinite loop, CPU hog.  Noted by spasbyspas.
7722      - Netutils: Fix memcpy of host address in netlib_gethostaddr().  From
7723        Brennan Ashton.
7724      - Netutils:  If you make a DNS request before the DNS address it would
7725        cause an assertion. The state of the IP setting is not something the
7726        application should be aware of, it should only be concerned with
7727        whether or not the name was resolved.  From Brennan Ashton.
7728      - Netutils: Fix md5 hashing when digest[$i] islower that 16. From
7729        Sergey.
7730      - Stack Monitor: Fix compile problems introduced when the syslog()
7731        prototype changed; Also update Makefile for kernel build From
7732        Radoslaw Adamczyk.
7733      - Examples: Update NxTerm makefile for kernel-build issues. From
7734        Radoslaw Adamczyk.
7735      - Examples: Fixes to keypadtest from Pierre-Noel Bouteville.
7736      - Examples: These examples all set the IP address of eth1 but the
7737        netmask and gateway of eth0 if DHCP is enabled:  discover, tcpecho,
7738        webserver, xmlrpc. That can't be right.
7739
7740NuttX-7.7
7741---------
7742
7743The 107th release of NuttX, Version 7.7, was made on January 26, 2015,
7744and is available for download from the SourceForge website.  Note
7745that release consists of two tarballs:  nuttx-7.7.tar.gz and
7746apps-7.7.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
7747file for build information).
7748
7749Additional new features and extended functionality:
7750
7751    * Core OS:
7752
7753      - Task exit handling:  Add logic to clean up after task_delete() or
7754        pthread_cancel() if the task happens to be waiting on a semaphore
7755        when was is cancelled.
7756      - Stack coloration:  Removed CONFIG_DEBUG_STACK and replaced it with
7757        CONFIG_STACK_COLORATION that does the same thing but without enabling
7758        debug.  From David Sidrane.
7759
7760    * Common Drivers:
7761
7762      - Discrete joystick driver: Added an interface definition and upper
7763        half driver for a discrete joystick device (where X/Y changes are
7764        indicated with button presses).
7765      - Analog joystick driver: Added an interface definition and upper
7766        half driver for a analog joystick device (where X/Y positions are
7767        sampled, numeric values).
7768      - Add driver support for the ADXL345 accelerometer.  From  Alan
7769        Carvalho de Assis
7770      - Generic serial driver:  Add watermark levels to the serial RX flow
7771        control logic.  Modify the rxflowcontrol method to accept the number
7772        of bytes in the buffer and a boolean indication of which watermark
7773        was crossed.
7774
7775    * File Systems/Block Drivers/MTD:
7776
7777      - Add procfs write support.  From Ken Petit.
7778      - Implemented wear-leveling in the SmartFS.  From Ken Pettit.
7779      - MMC/SD Interface: MMCSD SDIO:  Add support for a new
7780        SDWAIT_WRCOMPLETE condition.  The previous logic used a busy-wait
7781        loop to poll the card R1 status to determine when the card was
7782        ready for the next transfer.  That busy-wait can be quite long --
7783        up to hundreds of milliseconds.  An alternative is to look the SD D0
7784        pin which will change state when the card is no longer busy.  This
7785        change avoids the busy-wait poll by reconfiguring the SD D0 pin as a
7786        GPIO interrupt, then waiting for the card to become ready without
7787        taking up CPU cycles. From David Sidrane.
7788
7789    * Drivers:
7790
7791      - Add support for a generic EEPROM driver that accesses EEPROM as a
7792        character driver (vs. an MTD driver).  From S�bastien Lorquet.
7793
7794    * Graphics Support:
7795
7796      - Many new fonts converted for use with NuttX and added by
7797        Pierre-noel Bouteville
7798
7799    * Networking:
7800
7801      - IPv4 support is now conditioned on CONFIG_NET_IPv4.
7802      - Implemented and verified IPv6 support conditioned on
7803        CONFIG_NET_IPv6.  Either IPv4 or IPv4 or both may be selected.
7804        Sockets, of course, must be bound to one or the other. Added support
7805        for IPv6 ioctls to manipulate IP addresses.
7806      - Integrated support for ICMPv6 and the ICMPv6 Neighbor Discovery
7807        Protocol and ICMPv6 ECHO request/reply needed to support ping logic.
7808      - All Ethernet drivers:  Modified to support.  Most, however, are
7809        still missing address filtering logic required for ICMPv6 Neighbor
7810        Discovery Protocol.  See
7811        http://www.nuttx.org/doku.php?id=wiki:howtos:ipv6#ethernet_driver_requirements
7812      - Also added missing raw/packet socket support to all Ethernet drivers.
7813
7814    * Host Simulation:
7815
7816      - Add a configuration build and test the Traveler first person game
7817        using the simulator.
7818      - Add an X11 mouse-based simulation of an analog joystick device
7819
7820    * Atmel SAMA5D Boards:
7821
7822      - Add analog Joystick shield support for the SAMA5D3 Xplained board.
7823
7824    * Freescale KL Drivers:
7825
7826      - Add GPIO interrupt capability for the KL architecture. From Alan
7827        Carvalho de Assis
7828
7829    * Freescale KL Boards:
7830
7831      - Freedom-KL25Z: Add board support for the ADXL345 accelerometer. From
7832        Alan Carvalho de Assis
7833      - Freedom-KL25Z: Update the Freedom KL25Z board CC3000 support to use
7834        the current CC300 interfaces.  From Alan Carvalho de Assis
7835
7836    * NXP LPC43xx Boards:
7837
7838      - A port of NuttX to the LPC4357-EVB from Toby Duckworth.  This port
7839        is a leverage of the LPC3330-Xplorer port and still have a some
7840        misinformation from that port that needs to be updated for the
7841        LPC4357-EVB.
7842
7843    * SiLabs EFM32 Drivers:
7844
7845      - Serial: Add support for serial termios TCGET and TCSET.  For the
7846        moment, only set/get speed is implemented.  From Pierre-noel
7847        Bouteville.
7848      - RMU: Add support for the EFM32 reset management unit (RMU).  From
7849        Pierre-noel Bouteville.
7850
7851    * SiLabs EFM32 Boards:
7852
7853      - Add support for timer/PWM on the EFM32GG.  From Pierre-noel
7854        Bouteville
7855
7856    * STMicro STM32:
7857
7858      - Enable support for the STM32 F102.  From the PX4 team.
7859
7860    * STMicro STM32 Drivers:
7861
7862      - STM32 F429 LTDC: Add interface to perform hardware accelerated layer
7863        operation. Provides access to a reference of a specific ltdc layer.
7864        From Marco Krahl
7865      - STM32 F429 LTDC support: Implemented LTDC framebuffer support for the
7866        generic nuttx framebuffer interface. Also implements the interface to
7867        perform hardware accelerated layer operation by the ltdc controller
7868        and dma2d controller later. From Marco Krahl.
7869      - STM32:  Add support for the internal low speed clock (LSI) as a
7870        source of the RTC clock.  Some  boards do not have the external
7871        32kKhz oscillator installed, for those boards we must fallback to
7872        the crummy internal RC clock.  From Kevin Hester
7873      - STM32 SDIO:  Add support for the new SDWAIT_WRCOMPLETE condition.
7874        From David Sidrane
7875
7876    * STMicro STM32 Boards:
7877
7878      - Add a discrete Joystick support for the STM3210E-EVAL.
7879      - Add analog Joystick shield support for the Nucleo F4x1RE boards.
7880      - STM32 F429i-Disco:  Add support for initializing of the ltdc
7881        controller and the lcd device connected on the stm32f429i-disco.
7882        From Marco Krahl.
7883      - Removed the px4-v2_upstream configuration.  This was not the
7884        official configuration for the PX4 board and has led to confusion
7885        by NuttX users.  The board configuration also requires some ongoing
7886        maintenance and customization to support ongoing PX4 testing and
7887        evaluation.  It is best retained the PX4 repositories where it can
7888        be properly maintained and not in the upstream NuttX repository.
7889
7890    * TI Tiva:
7891
7892       - Add support for the TI Tiva TM4C 129X family.  Some unverified
7893         support for the TM4C 1294 is also in place.
7894
7895    * TI Tiva Drivers:
7896
7897      - Added support for Tiva I2C driver.  Verified on the Tiva TM4C123G
7898        and TM4C129X.
7899      - Added a Tiva TM4C129X Ethernet driver.
7900      - Add a timer library for generic support of Tiva timers
7901      - Add a driver lower half for drivers/timer.c.  Only 32-bit periodic
7902        timers are supported.  This provides userspace access to timers.
7903
7904    * TI Tiva Boards:
7905
7906      - TM4C123G Launchpad:  Add initialization logic for an external AT24
7907        EEPROM.  This is intended only to support testing of the Tiva I2C
7908        driver.
7909      - Board support for the Tiva DK-TM4C129x Connected Development Kit.
7910      - DK-TMC129X:  Add an IPv6-enabled NSH configuration.
7911
7912    * C Library/Header Files:
7913
7914      - Added support for a variadic ioctl() function.  The ioctl()
7915        interface is a non-standard, Unix interface.  NuttX has always used
7916        the older, three-parameter version.  Most contemporary systems now,
7917        however, use a variadic form of the ioctl() function.  Added an
7918        option to insert a shim layer to adapt the three-parameter ioctl()
7919        to use the variadic interface form.  Internally, the ioctl handling
7920        is the same three-parameter logic.  The only real complexity to the
7921        shim is in how the system calls must be handled.
7922      - Added sys/custom_file.h.  Used when CUSTOM_FILE_IO is define and
7923        avoids  re-definition errors about the FILE define.  From Thomas
7924        Gruber via the PX4 repository
7925      - Add CRC8 support to the C library. From Ken Pettit.
7926      - math.h: Added support for the expm1 functions. From Brennan Ashton
7927
7928    * Applications:
7929
7930      - apps/examples/djoystick:  Add a test of the discrete  joystick
7931        driver.
7932      - apps/examples/ajoystick:  Add a test of the analog joystick
7933        driver.
7934      - apps/examples/ltdc: Add ltdc test example. From Marco Krahl
7935      - apps/system/lm75:  Add a tiny application to read the temperature
7936        from an LM-75 (or compatible) temperature sensor
7937      - apps/examples/timer:  Add a trivial test of the timer driver
7938
7939      - apps/system/cu: Add a minimalist implementation  of the 'cu'
7940        terminal program (part of Taylor UUCP for ages). Using it, you can
7941        simply open a serial port and interact with it. Using '~.' you can
7942        leave the terminal program and drop back to nsh.  This  might come
7943        in handy for people that have e.g. GSM modems, GPS receivers or
7944        other devices with text based serial communications attached to
7945        their Nuttx systems. From Harald Welte
7946      - apps/interpreters/micropython:  A port of Micro Python to NuttX.
7947        Contributed by Dave Marples
7948
7949      - apps/netutils/dnsclient:  Can select to be either IPv4 or IPv6, but
7950        not both (IPv6 still does not compile)
7951      - apps/netutils/netlib:  Add new library functions to manipulate IPv6
7952        addresses.
7953      - apps/examples/nettest:  Update test so that it can be used to test
7954        IPv6 TCP sockets
7955      - apps/examples/udp:  The UDP test example has been extend to support
7956        IPv6 domain sockets
7957
7958      - apps/nshlib:  Add logic to initialize IPv6 addresses
7959      - apps/nshlib:  Add the ping6 command to support checking IPv6 networks.
7960      - apps/nshlib: Clean up network status presentation for IPv6
7961
7962Efforts In Progress.  The following are features that are partially
7963implemented but present in this release.  They are not likely to be
7964completed soon.
7965
7966    * IPv6.  While basic IPv6 support was completed in NuttX-7.7,
7967      there are lingering issues with getting IPv6 compatibility
7968      with applications and network utilities.
7969
7970    * Processes.  Much of the work in this release is focused on the
7971      realization of Unix-style user processes in NuttX.  There is more to
7972      be done, however.  The full roadmap and status is available at:
7973      http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
7974
7975    * XMega:  There are some fragments in place for an XMega port.  That
7976      port has not really started, however.
7977
7978    * Galileo:  Similarly, there are fragments in place for an Intel Galileo
7979      port.  The port probably will not happen (I gave my Galileo board away!).
7980
7981Bugfixes.  Only the most critical bugfixes are listed here (see the
7982ChangeLog for the complete list of bugfixes and for additional, more
7983detailed bugfix information):
7984
7985    * Core OS:
7986
7987      - POSIX message queues: msg type should be char * not void * in
7988        mq_send, mq_timedsend, mq_receive, and mq_timedreceive.  Noted by
7989        Pierre-Noel Bouteville
7990      - POSIX message queues: In message queue creation return ENOSPC error
7991        if size exceeds the configured size of pre-allocated messages; Use
7992        ENOSPC vs ENOMEM per OpenGroup.org.  From Pierre-Noel Bouteville.
7993      - Task Names: strncpy() will not copy the terminating \0 into the
7994        destination if the source is larger than the size of the
7995        destination. Ensure that the last byte is always zero and let
7996        strncpy() only copy CONFIG_TASK_NAME_SIZE bytes. The issue of
7997        unterminated names can be observed in ps when creating a pthread
7998        while CONFIG_TASK_NAME_SIZE is set to 8.  From  Daniel Willmann
7999
8000    * Memory Management:
8001
8002      - Granule allocator: Fixes some issues found by the PX4 team using
8003        Coverity.  From Pavel Krienko
8004
8005    * Networking:
8006
8007      - Several fixes correcting issues with the CC3000 networking.  From
8008        Jussi  Kivilinna
8009      - CC3000 Fix: Data can be unaligned.  When dereferenced as an input
8010        ntosh(), a bad value is returned.  Reported by Alan Carvalho de
8011        Assis
8012      - Correct naming of fields in struct sockaddr_in6:  sin6_port and
8013        sin6_family, not sin_port and sin_family.
8014      - accept(): Correct the value returned by accept() in the case where
8015        net_lockingwait() is called.  It was returning -1 and losing the
8016        errno value.  Noted by Rony Xln
8017
8018    * Common Drivers:
8019
8020      - Loop device should return -EINTR is interrupted by a signal.
8021      - M25P serial flash driver:  Add subsector size of the M24P16 part.
8022        From Lazlo
8023      - Common serial driver: In case a thread is doing a blocking operation
8024        (e.g. read()) on a serial device, while it is being terminated by
8025        pthread_cancel(), then uart_close() gets called, but the semaphore
8026        is still blocked. This means that once the serial device is opened
8027        next time, data will arrive on the serial port (and driver
8028        interrupts handled as normal), but the received characters never
8029        arrive in the reader thread.  The problem was fixed by re-
8030        initializing the semaphores on the last uart_close() on the device.
8031        From Harald Welte
8032      - Pipes: Fixes some issues found by the PX4 team using Coverity.  From
8033        Pavel Krienko
8034      - CDC/ACM driver: Fixes some issues found by the PX4 team using
8035        Coverity.  From Pavel Krienko
8036
8037    * NXP LPC43xx Drivers:
8038
8039      - LPC4357: Changes required to get USART 2 & 3 working on the
8040        lpc4357-evb.  From Toby Duckworth.
8041
8042    * STMicro STM32:
8043
8044      - Several fixes correcting issues with the STM32 header files from
8045        Jussi Kivilinna
8046
8047    * STMicro STM32 Drivers:
8048
8049      - Ported Tridge's STM32 I2C noise resilience logic from the PX4
8050        repository.
8051      - STM32 F2 and F4:  Set the GPIO_SPEED_50MHz on all F2 and F4 SPI pin
8052        configurations.  This is based on an F411 SPI1 errata but the fixed
8053        is generalized to all SPI and all F2 and F4.  Discovered and fixed
8054        by Sebastien Lorquet.
8055      - Fix for STM32 OTGHS device driver working in FS mode.  From Ken
8056        Pettit.
8057      - For STM32 OTG HS DEV (in FS mode): Disable ULPI clock enable in RCC
8058        AHB1 Register.  If Both ULPI and the FS clock enable bits are set in
8059        FS mode, then the ARM never awakens from WFI due to a chip issue.
8060        This is only an issue if you are using the internal PHY.  From Ken
8061        Pettit.
8062      - STM32 F429 LTDC: Add missing clut register definition. From Marco
8063        Krahl
8064      - STM32 serial: fix declaration and definition of up_receive() and
8065        up_dma_receive() to match fields in the interface definition of
8066        struct uart_ops_s.  From Freddie Chopin.
8067
8068    * TI Tiva Drivers:
8069
8070      - Fix Tiva IRQ control logic; was limited to only 64 IRQs.  That is a
8071        problem for higher numbered IRQs on many platforms
8072
8073    * C Library/Header Files:
8074
8075      - avsprintf():  Fix a bug in usage of va_list on x86.  On x86,
8076        va_list is a pointer to a single copy on the stack.  avsprintf()
8077        calls lib_vsprintf() twice and so traverses the va_list twice using
8078        va_start.  va_start modifies that single copy on the stack so that
8079        the second call to lib_vsprintf() fails.  This appears to be an
8080        issue with x86 only so far.
8081      - stdint.h:  Don't use hex values to specify minimum values of fixed
8082        width, signed values.  Hex values are inherently unsigned and not
8083        usable for this purpose in all contexts.
8084      - strncpy():  Would trash a lot of memory if n == 0.  From Yasuhiro
8085        Osaki.
8086      - sscanf().  Accept %X and %F as well as %x %f as a format specifiers.
8087        From S�bastien Lorquet
8088
8089    * Applications:
8090
8091      - apps/examples/romfs: fix romfs example builtin app registry issue.
8092        From Librae
8093      - apps/system/cdcacm, composite and usbmsc:  Fix some strangely placed
8094        conditional compilation.  Looks like an automated update went awry
8095      - apps/netutils/telnetd:  Add protection when CONFIG_SCHED_HAVE_PARENT
8096        is enabled:  Call sigaction with SA_NOCLDWAIT so that exit status is
8097        not retained (no zombies) and block receipt of SIGCHLD so that
8098        accept is not awakened by a signal.  If accept() is awakened by a
8099        signal, do not do anything crazy like exit.  Most from Rony Xln
8100      - apps/nshlib/: NSH TFTP get command:  Wrong file name used for the
8101        destination.  From Lazlo
8102
8103NuttX-7.8
8104---------
8105
8106The 108th release of NuttX, Version 7.8, was made on February 11, 2015,
8107and is available for download from the SourceForge website.  Note
8108that release consists of two tarballs:  nuttx-7.8.tar.gz and
8109apps-7.8.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
8110file for build information).
8111
8112This release is primarily a bugfix release for the NuttX-7.7 version that
8113was release just two weeks prior.  That release included substantial
8114modifications in the NuttX networking to accommodate support for IPv6.  This
8115release follows close behind NuttX-7.7 in order to correct some the problems
8116discovered in that networking code.  This release does, however, include a
8117small number of new features and bug fixes unrelated to NuttX networking.
8118
8119Additional new features and extended functionality:
8120
8121    * Core OS:
8122
8123      - Tickless Mode:  added limit of maximum delay that can be request
8124        by the scheduler tickless logic.  This is necessary so that the
8125        tickless logic does not request a delay beyond the capability of the
8126        underlying hardware.  From Macs Neklyudov.
8127
8128    * Common Drivers:
8129
8130      - VFS Unlink: Add an unlink method to both the character and block
8131        driver interface.  This is important because if the driver inode is
8132        unlinked and there are no open references to the driver, then the
8133        driver resources will be stranded.  On the unlink call, the driver
8134        has the opportunity (1) check if there an any open references, and
8135        if not, (2) free the driver resources.
8136      - Pipes and FIFOs:  Implement the unlink method.  If the pipe/FIFO is
8137        unlinked, it will marked the pipe/FIFO as unlinked.  If/when all
8138        open references to the driver are closed, all of the driver
8139        resources will be freed.
8140      - Added an option to use the syslog'ing device as the system console.
8141        This option enables a low-level, write-only console device at
8142        /dev/console (similar to the low-level UART console device).  From
8143        Pierre-noel Bouteville.
8144
8145    * File Systems/Block Drivers/MTD:
8146
8147      - RAM/ROM disk:  Add logic to dispose of the driver and RAM buffer
8148        when the RAM disk has been unlinked and all open references to the
8149        RAM disk have been closed.  Add new parameters to romdisk() to
8150        specify what should be done with the RAM/ROM buffer in this case --
8151        Should it be freed or not?  Changed all calls to ramdisk() to use
8152        these new parameters.
8153
8154    * Networking:
8155
8156      - Add support for local, Unix domain sockets.  Support included for
8157        both SOCK_STREAM and SOCK_DGRAM style local socket.
8158      - UDP enhancement:  Add UDP read-ahead support.  In addition to
8159        eliminating the main reason for lost UDP packets, then change
8160        enables support for for poll/select on UDP sockets and also non-
8161        blocking UDP sockets.  From Macs Neklyudov.
8162      - SLIP interface improvements.  From Macs Neklyudov.
8163      - IPv6 Neighbor Solicitation: Added logic to support verification
8164        that we have the IPv6 address in the Neighbor Table before sending
8165        any packets.  If not, then the Neighbor Solicitation message is
8166        sent.  This feature is important because otherwise the first packet
8167        sent to a remote peer will fail (it would have been replaced with a
8168        Neighbor Solicitation).
8169      - IPv6 Autonomous Auto-Configuration:  Added support for sending
8170        ICMPv6 Router Solicitation and receiving Router advertisement.  The
8171        local IPv6 address, mask, and router address are then auto-configured
8172        from the response..
8173      - IPv6 Router Support:  Add logic to behave like a router (if so
8174        configured) only in the sense that NuttX will send the router
8175        advertisement message in response to any received router solicitation
8176        messages.  Thus, one NuttX node in a network can configure the IPv6
8177        addresses of all other nodes in the network.
8178      - Optional IPv6 address filtering added to all Ethernet drivers for
8179        the all-routers multicast address.
8180
8181    * Atmel AVR:
8182
8183      - Added architecture support for the Atmel AVR ATMega1284P MCU.  From
8184        Jedi Tek'Unum.
8185
8186    * Atmel AVR Boards:
8187
8188      - Added support for the LowPowerLab MoteinoMEGA that is based on the
8189        Atmel AVR ATMega1284P MCU.  From Jedi Tek'Unum.
8190
8191    * Atmel SAMA4:
8192
8193      - Add support for Tickless mode of operation for the SAM4CM platform.
8194        From Macs Neklyudov.
8195
8196    * Atmel SAMA4 Drivers:
8197
8198      - Ethernet: The SAM4E Ethernet driver can now be configuration to
8199        perform all network processing on the work queue.  This greatly
8200        reduces the amount of interrupt level processing to service Ethernet
8201        packets.
8202      - SAM4E Ethernet: Add support multicast address matching and IPv6.
8203
8204    * Atmel SAMA4 Boards:
8205
8206      - SAM4E-EK: The nsh configuration now configures the Ethernet driver
8207        for execution on the work thread.
8208
8209    * Atmel SAMA5D Drivers:
8210
8211      - SAMA5D4 Ethernet: The SAMA5D4 Ethernet driver can now be configuration
8212        to  perform all network processing on the work queue.  This greatly
8213        reduces the amount of interrupt level processing to service Ethernet
8214        packets.
8215      - SAMA5D3 and SAMA5D4 Ethernet: Add support multicast address matching
8216        and IPv6.
8217
8218    * Atmel SAMA5D Boards:
8219
8220      - SAMA5D4-EK;  Added a configuration to testing IPv6.
8221      - SAMA5D4-EK:  Converted the nsh and ipv6 configurations to configure
8222        the Ethernet driver to use the work queue (vs. interrupt level
8223        processing).
8224
8225    * Freescale KL:
8226
8227      - Add architectural support for the K26Z128VLH4 chip.  From Derek B. Noonburg.
8228
8229    * Freescale KL Boards:
8230
8231      - Add board support for the Freedom KL26Z board.  From Derek B. Noonburg.
8232
8233    * NXP LPC17xx Drivers:
8234
8235      - Ethernet: Add support multicast address matching and IPv6.
8236
8237    * SiLabs EFM32:
8238
8239      - Add configurable option to unconditionally enable LE clocking. Even
8240        you don't use core clock LE as source for LFA or LFB, to read are
8241        write any register not clocked by HFPERCLK or HFCORECLK,  HFCORECLKLE
8242        should be enabled.  From Pierre-noel Bouteville.
8243
8244    * SiLabs EFM32 Drivers:
8245
8246      - EFM32 RTC:  RTC driver using BURTC. From Pierre-Noel Bouteville.
8247
8248    * STMicro STM32 Drivers:
8249
8250      - AES: Add driver for STM32L162XX AES peripheral.  From Juha Niskanen.
8251      - Ethernet: The STM32 Ethernet driver can now be configuration to
8252        perform all network processing on the work queue.  This greatly
8253        reduces the amount of interrupt level processing to service Ethernet
8254        packets.
8255      - Ethernet: Add support multicast address matching and IPv6.
8256
8257    * STMicro STM32 Boards:
8258
8259      - Added an IPv6 configuration for the STM32F4-Discovery board (with the
8260        STM32-DISCO_BB base board).
8261      - Converted all STM32F4-Discovery configurations (with base board) to
8262        configure the Ethernet driver to use the work queue (vs. interrupt
8263        level processing).
8264
8265    * TI Tiva Drivers:
8266
8267      - Added support for TM4C123G timers.  From Calvin Maguranis.
8268      - Added a Tiva ADC driver.  From Calvin Maguranis.
8269
8270    * TI Tiva Boards:
8271
8272      - Added TM4C123G timers on the TM4C123G Launchpad.  From Calvin Maguranis.
8273      - Added Tiva ADC support to the TM4C123G-Launchpad.  From Calvin Maguranis.
8274
8275    * C Library/Header Files:
8276
8277      - Math Library: Added support for inverse hyperbolic functions,
8278        isfinite(), error functions, nan(), copysign(), and trunc()
8279        functions.  From Brennan Ashton.
8280
8281    * Applications:
8282
8283      - apps/examples/ustream:  Add a simple test of Unix domain stream
8284        sockets.
8285      - apps/examples/udgram:  Add a simple test of Unix domain datagram
8286        sockets.
8287      - apps/netutils/netlib:  Add utilities to convert to/from prefix
8288        lengths from/to 128-bit network masks.
8289      - apps/nshlib: Modify the NSH IPv6 ifconfig command to show the more
8290        standard post-pended prefix value, rather than the full 128-bit
8291        netmask.
8292
8293Efforts In Progress.  The following are features that are partially
8294implemented but present in this release.  They are not likely to be
8295completed soon.
8296
8297    * Processes.  Much of the work in this release is focused on the
8298      realization of Unix-style user processes in NuttX.  There is more to
8299      be done, however.  The full roadmap and status is available at:
8300      http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
8301
8302    * XMega:  There are some fragments in place for an XMega port.  That
8303      port has not really started, however.
8304
8305Bugfixes.  Only the most critical bugfixes are listed here (see the
8306ChangeLog for the complete list of bugfixes and for additional, more
8307detailed bugfix information):
8308
8309    * Core OS:
8310
8311      - Work Queues:  Fix a backward calculation when determining the time
8312        to the next interesting event. .  From Liio Chen via the PX4
8313        repository.
8314      - clock_systimespec():  Fixes for compilation errors in certain
8315        configurations.  From Macs Neklyudov.
8316
8317    * Graphics
8318
8319      - Fixed a problem with one of the font files.  From Pierre-noel Bouteville.
8320
8321    * Networking:
8322
8323      - IOB Deadlock: There were issues with the TCP write-ahead buffering
8324        if CONFIG_NET_NOINTS was enabled:  There is a possibility of
8325        deadlocks in certain timing conditions:  The network should never
8326        wait for TCP read-ahead buffering space to be available.  It should
8327        drop the packets immediately if no buffering is available. This was
8328        fixed by duplicating most of the IOB interfaces:  The versions that
8329        waited are still present (like iob_alloc()), but now there are non-
8330        waiting versions of the same interfaces (like iob_tryalloc()).  The
8331        TCP read-ahead logic now uses only these non-waiting interfaces.
8332      - TCP Deadlock: Fix another deadlock when CONFIG_NET_NOINTS is enabled.
8333        tcp_write_buffer_alloc() calls sem_wait() with network locked.  That
8334        worked if CONFIG_NET_NOINTS was not defined because interrupts are
8335        automatically restored when the wait happens.  But with
8336        CONFIG_NET_NOINTS=y, the wait blocks with the network locked -- bad
8337        style and also can lead to a deadlock condition.
8338      - ARP response waiting: Fixes another CONFIG_NET_NOINTS issue.  When
8339        called sem_timedwait() with the network locked, the network stays
8340        locked while we wait which is not what we want (without CONFIG_NET_NOINTS,
8341        interrupts are re-enabled while we wait and all is well).
8342      - TCP accept():  Fix a major TCP bug introduced with the NuttX-7.7
8343        IPv6 changes:   Some connection logic was reordered; setting the
8344        socket as 'connected' got moved to BEFORE the point where the check
8345        was made if the socket was already connected.  The resulting behavior
8346        was odd:  Telnet would connect, but then when you exit and reconnect,
8347        it would fail to connect.  But then if try again, it would connect
8348        okay. So the symptom was connect-fail-connect-fail-...
8349      - Lots of build problems introduced into multiple NIC support with the
8350        IPv6 changes of NuttX-7.7.   Many places where conditional logic based
8351        on CONFIG_NETDEV_MULTINIC is  confused with CONFIG_NET_MULTILINK.
8352        Lots of code changed with IPv6 that was never compiled with MULTINIC
8353        enabled.
8354
8355    * Common Drivers:
8356
8357      - Pipes and FIFOs: Fix a race condition between FIFO buffer operations
8358        and the opening and closing of FIFOs which necessary when the FIFOs
8359        are used to support Unix domain, datagram sockets.  The default
8360        policy is the deallocate FIFO buffering when the last client closes
8361        the pipe.  When when used for datagram communications, packets left
8362        in the FIFO will be lost. Some like UDP read-ahead is needed:  The
8363        buffered data in the FIFO needs to be retained until the reader gets
8364        a chance to re-open the FIFO.  Added an ioctl (PIPEIOC_POLICY) to
8365        control the buffer policy.  Default (0) is the legacy behavior; Unix
8366        domain datagram logic sets the alternative policy so that the packet
8367        data persists after the FIFO is closed.
8368      - RAMTRON:  Table of parts is not terminated properly if
8369        CONFIG_RAMTRON_FRAM_NON_JEDEC is not defined.  Noted by David
8370        Sidrane.
8371
8372    * All Architectures:
8373
8374      - Removed all occurrences of up_maskack_irq() that disables interrupts
8375        with up_ack_irq() that only acknowledges the interrupts.  This is only
8376        used in interrupt decoding logic.  Also remove the logic that
8377        unconditionally re-enables interrupts with the interrupt exits.  This
8378        interferes with the drivers ability to control the interrupt state.
8379        This is a necessary, sweeping, global change and unfortunately
8380        impossible to test.
8381
8382    * ARM
8383
8384      - ARMv7-A and ARMv7-M memcpy(): Optimized ARM assembly language
8385        memcpy's were not returning a value in R0 they are required to do.
8386        From David Sidrane.
8387      - ARMv7-A interrupt handler should not automatically re-enable interrupts
8388        on interrupt return.  That interferes with the driver's ability to
8389        manage interrupts.  Analogous change made to all other architectures
8390        as well (ARM7, ARM9, HC, SH, x86, z16, z80, etc,.  See above.).
8391
8392    * STMicro STM32:
8393
8394      - GPIO Interrupts: Disabling any of EXTI 5-9 interrupts was disabling
8395        interrupts for all EXTI 5-9. Same issue with EXTI 10-15.  From Jussi
8396        Kivilinna.
8397
8398    * STMicro STM32 Drivers:
8399
8400      - RTCC:  Fix for recent changes that caused compilation failrues with
8401        STM32L15XX configurations.  From Jussi Kivilinna.
8402      - SPI: The source clock for SPI 4,5, and 6 should be PCLK2, not PCLK1
8403        (for F411, F427, and F429).  Per David Sidrane.
8404
8405    * C Library/Header Files:
8406
8407      - execl():   Fix bad logic in counting the number of arguments.
8408        execl() parameter passing could never have worked.  Noted by
8409        Pierre-noel Bouteville.
8410
8411    * Applications:
8412
8413      - Fix for building with parallel make. Build-server sometimes failed
8414        'make -j24' with errors in the builtin line or or sometimes silently
8415        succeeds but generated builds that contain a random subset of
8416        configured NuttX applications. There are two root causes for this:
8417        (1) Recipes for building builtin_list.h and builtin_proto.h are
8418        not linearizable, and (2) Nothing ensures that 'make context' is run
8419        first for apps/builtin.  This change address both issues. From Juha
8420        Niskanen.
8421
8422NuttX-7.9
8423---------
8424
8425The 109th release of NuttX, Version 7.9, was made on April 14, 2015,
8426and is available for download from the SourceForge website.  Note
8427that release consists of two tarballs:  nuttx-7.9.tar.gz and
8428apps-7.9.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
8429file for build information).
8430
8431Additional new features and extended functionality:
8432
8433    * Core OS:
8434
8435      - Assertions: Add support for dumping board-specific information on
8436        assertions. From David Sidrane.
8437      - boardctl(): :  Add a new non-standard OS interface called boardctl().
8438        This is similar to a driver IOCTL call.  But this is an IOCTL call
8439        directly on the board logic.  This function will eventually replace
8440        all of the ad hoc OS interfaces that are current used to perform
8441        application specific initialization and application driver test
8442        configuration.  It essentially formalizes and institutionalizes
8443        these rogue interface in to at least a single crazy call.
8444
8445    * Graphics:
8446
8447      - Line Joins:  Line drawing graphic functions now take an argument that
8448        will draw a circular "cap" on the ends of lines to support cleaner
8449        joining of lines segments..
8450
8451    * Common Drivers:
8452
8453      - SPI iInterface:  Add an SPIDEV_USER so that there can be board-
8454        specific definitions of SPI devices.
8455      - I2C Interface:  Add a user provided void * argument to the I2C
8456        callback method for the I2C slave interface.  Suggested by Nate
8457        Weibley.
8458      - AT24 EEPROM Driver: Add support for (1) the byte-oriented read()
8459        method, (2) devices that have extended memory regions, and (3)
8460        devices that use 8-bit addressing.
8461      - Freescale MPL115A barometer: Add driver for the Freescale MPL115A
8462        barometer.  From Alan Carvalho de Assis.
8463      - CS2100-CP: Add a driver for the CS2100-CP Fractional-N Multipler
8464        chip.
8465      - RTC IOCTls:  Added the definitions of a driver based RTC interfaces
8466        and RTC upper half driver.
8467
8468    * File Systems/Block Drivers/MTD:
8469
8470      - umount2():  Added to support un-mount flags. umount() is now a macro
8471        that just calls umount2() with flags = 0.
8472      - File system interface: Pass the umount2() flags to every unbind()
8473        implementation.  That is where the decision to umount or not and how
8474        to umount will be made.
8475      - FAT unbind: Add support for umount2(target, MNT_FORCE) in the FAT
8476        file system.
8477
8478    * Networking:
8479
8480      - netdev_register(): Improve the network device registration logic.
8481        When multiple link types are used, modify how each interface number
8482        is assigned to the device name by incrementing the device number
8483        individually for each interface link type.  From Max Neklyudov.
8484      - Add TUN network device.  Used to support the Netutils PPPD
8485        implementation. From Max Neklyudov.
8486
8487    * ARMv7-M
8488
8489      - ARM Cortex-M7:  Add basic support for the Cortex-M7 architecture.
8490      - ARMv7 Common Lazy Exception handling. Add common support for lazy
8491        FPU state saving.  MCU-specific lazy FPU saving was already in place.
8492        This change just makes the code share-able.
8493
8494    * Atmel SAMA5D3/4 Drivers:
8495
8496      - SAMA5 Serial:  Backport support for flowcontrol and termios from
8497        SAM3/4.
8498
8499    * Atmel SAMV7:
8500
8501      - Atmel SAMV7:  Add architecture support for the Atmel SAMV7 family
8502        (Cortex-M7)
8503
8504    * Atmel SAMV7 Boards:
8505
8506      - Atmel SAMV71 Xplained Ultra:  Add board support for this SAMV7 board.
8507        This initialize release includes support for: SDRAM, TWI/I2C, SPI,
8508        Ethernet, HSMCI, DMA, GPIOs, UARTs, AT24 EEPROM and the maXTouch
8509        Xplained Pro LCD.  Drivers are available for SSC/I2C, the WM8904,
8510        the maXTouch trouchscreen, and USB device but have not yet been
8511        fully integrated in this release.
8512
8513    * SiLabs EFM32 Drivers:
8514
8515      - EFM32 USB Device is now functional with the efforts of From Pierre-
8516        noel Bouteville.
8517      - EFM32 I2C:  Add I2C driver.  From Pierre-noel Bouteville.
8518
8519    * STMicro STM32:
8520
8521      - STM32F372/F373: Adds architecture support for this STM32 parts.
8522        Tested on STM32F373CC.  Contributed by  Marten Svanfeldt.
8523
8524    * STMicro STM32 Drivers:
8525
8526      - STM32 RTCC: Break out a new internal interface, stm32_rtc_setdatetime().
8527        This eliminates some un-necessary time conversions.  From Freddie Chopin.
8528      - STM32 RTCC: Add an implementation of the RTC lower half interface
8529        for the STM32.
8530      - STM32 RTCC: Extend the RTC interface to support reading subseconds.
8531        From Jussi Kivilinna.
8532      - STM32 BBSRAM: Adds the ability to use the STM32F2 and STM32F4 Battery
8533        Backed SRAM in the file system. With an option to Save Panic context
8534        to one of the files. From David Sidrane.
8535
8536    * STMicro STM32 Boards:
8537
8538      - Olimexino-STM32: Board support for the Olimexino STM32 board from David
8539        Sidrane.
8540      - Viewtool-STM32F107:  Add support for an optional, add-on Freescale
8541        MPL115A baramoter.  From Alan Carvalho de Assis.
8542
8543    * TI Tiva:
8544
8545      - TM4C1294:  Add support for the TM4C1294.  Contributed by Frank Sautter.
8546
8547    * TI Tiva Drivers:
8548
8549      - Tiva ADC:  Updated files to allow for ADC and PWM triggering by a
8550        timer.  Refactoring of ADC implementation.  From Calvin Maguranis.
8551      - Tiva Timer: Refactoring by Calvin Maguranis
8552
8553    * TI Tiva Boards:
8554
8555      - TM4C123G-launchpad: Add ADC support.  From Calvin Maguranis.
8556      - TM4C123G-launchpad: Add board button interrupt support.  From Calvin
8557        Maguranis.
8558      - TM4C1294 Launchpad:  Add support for the TM4C1294 Launchpad.
8559        Contributed by Frank Sautter.
8560
8561    * Microchip PIC32
8562
8563      - PIC32MZ:  Add architectural support for the PIC32MZ (MIPS32 M14k).
8564        Includes contributions from Kristopher Tate.
8565
8566    * Microchip PIC32MZ Boards
8567
8568      - PIC32MZ Starter Kit: Add basic board support for the PIC32MZ.
8569        Includes contributions from David Sidrane.
8570
8571    * C Library/Header Files:
8572
8573      - gettimeofday():  This function is no longer a core OS interface.  It
8574        is only a wrapper around clock_settime().
8575      - settimeofday(): Added. gettimeofday has been deprecated in POSIX
8576        2008. settimeofday() was never part of POSIX, but I decided to add
8577        it to libc as well just for symmetry.
8578      - Day-of-Week: Add CONFIG_TIME_EXTENDED to support the last 3 members
8579        of the tm struct and support for filling them in with the day of the
8580        week. From David Sidrane.
8581      - sighold(), sigrelse(), sigignore(), sigset() and sigpause():  New
8582        signal handling functions.
8583      - sys/select.h: Extend the fd_set type definition so that it can
8584        handle more than 32 descriptors (if so configured).  From Max
8585        Neklyudov.
8586      - netdb.h:  Add a mostly-commented-out version of the standard netdb.h
8587        header file.
8588      - include/nuttx/board.h:  Remove common board function prototypes from
8589        other files and consolidate them in this new header file.
8590
8591    * Applications:
8592
8593      - OS test: Improved error checking for sem_timedwait() from Juha
8594        Niskanen.
8595      - OS test: Add a simple test of sigprocmask, sighold, and sigrelse.
8596      - PPPD test:  Add PPPD test case.  Split out from the PPPD daemon by
8597        Brennan Ashton.
8598      - Netutils: Add a PPP daemon.  From Max Neklyudov.
8599      - NSH:  NSH initialization now calls boardctl(BOARDIOC_INIT) instead
8600        of nsh_archinitialize().   Remove support for CONFIG_NSH_ARCHMAC.
8601        It is not used and there are better ways to do that operation.
8602      - NSH:  Allow NSH 'date' command with no hardware RTC.  This command
8603        is useful without an RTC too.  Also, this permits testing on the
8604        simulator which never has an RTC.
8605      - apps/examples/:  Several tests changed (touchscreen adc, pwm,
8606        graphics).  No longer call directly into the OS, but rather
8607        indirectly via boardctl().
8608      - Modbus: Includes extensions to support RTU master mode by
8609        Armink(383016632@qq.com): https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.
8610        Ported to NuttX by Darcy Gong.
8611      - TZ database:  All logic to build timezone database needed for
8612        localtime() support.  Does not do much else yet.
8613
8614Efforts In Progress.  The following are features that are partially
8615implemented but present in this release.  They are not likely to be
8616completed soon.
8617
8618    * Processes.  Much of the work in this release is focused on the
8619      realization of Unix-style user processes in NuttX.  There is more to
8620      be done, however.  The full roadmap and status is available at:
8621      http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
8622
8623    * XMega:  There are some fragments in place for an XMega port.  That
8624      port has not really started, however.
8625
8626Bugfixes.  Only the most critical bugfixes are listed here (see the
8627ChangeLog for the complete list of bugfixes and for additional, more
8628detailed bugfix information):
8629
8630    * Core OS:
8631
8632      - atexit(): Fix compile failure due to reference to undefined variable
8633        in certain configurations.  From Juha Niskanen.
8634      - syscalls: Last changes to message queue prototypes did not make it
8635        into call gate logic.  Some additional errors had crept as well since
8636        the system calls are seldom used.
8637      - waitpid(): Do not use uninitialized boolean in waitpid().  From Juha
8638        Niskanen.
8639      - Timing functions:  Fix some nanosecond comparisons.  Comparisons should
8640        be greater than OR EQUAL TO 1000000000 for maximum value of nanoseconds
8641        in struct tm.  From Juha Niskanen.
8642      - Time initialization: Fix an error in time initialization when there
8643        is no RTC and the time is initialized from a fixed configured value.
8644        The call to clock_calendar2utc() was returning the time in units of
8645        seconds.  The initialization logic, however, was expecting to get
8646        time in units of days.  This problem has been there forever but
8647        obviously has not significant impact to behavior in systems where
8648        time is not visible.
8649      - mq_timedsend():  Should not check for valid time if there is space
8650        in the message queue.  Noted by Freddie Chopin.
8651      - select() and sem_timedwait(): Fix places where the errno value was
8652        being overwritten by subsequent actions so that the returned errno
8653        value was incorrect.  From Max Neklyudov.
8654      - clock_systimer64(): Fix a problem in clock_systimer64 that occurs
8655        when (1) the 64-bit system time is enabled, and (2) the value of
8656        CONFIG_USEC_PER_TICK is less than 1 milliseconds (such as when using
8657        the tickless mode of operation).  In that case, the conversion of
8658        time to 64-bit millisecond value in clock_systmer64() causes some
8659        bad times to be returned.  Time was converted to milliseconds, then
8660        to configured ticks.  Precision was lost in the millisecond
8661        conversion. The fix is to first convert time to a 64-bit microsecond
8662        value, then to the configured tick value. Noted by David Sidrane.
8663      - clock_systimespec():  When an RTC is used clock_systimespec() must
8664        subtract the basetime from the returned time.  It needs to return
8665        the time since power up, no the current time.  Issue noted by Max
8666        Neklyudov.
8667      - AIO: correct some backward tests in aio_read() and aio_write():
8668        Socket descriptors have higher numbers than file descriptors.  In
8669        aio_contain(),  Copy u.ptr (void *) when initializing aioc and not
8670        the case specific u.aioc_filep.  From Michal Ulianko.
8671
8672    * File Systems/Block Drivers/MTD:
8673
8674      - procfs:  Fix potential NULL pointer dereference of 'node'.  From
8675        Juha Niskanen.
8676      - FAT: fat_unbind() was accessing 'fs->fs_sem' after freeing the 'fs'
8677        struct. From Juha Niskanen.
8678      - mkfatfs:  Use DMA memory for mkfatfs when needed. This makes mkfatfs
8679        use fat_dma_alloc() when CONFIG_FAT_DMAMEMORY is set. This is needed
8680        to ensure mkfatfs operates with boards that use DMA for microSD.
8681        From Andrew Tridgell via the PX4/NuttX repository.
8682      - FAT unmount: Fix a bug in the FAT unbind() logic.  There were
8683        problems with the way certain internal list handling was
8684        implemented. The end result is that newly opened or cloned file
8685        structures were never being added to the list of open files.  So
8686        when the unmount() happens, it always looked like there were not
8687        open files and a crash could ensue.
8688      - FAT mounting:  Fix misthink when CONFIG_ENDIAN_BIG=y.  From Lwazi Dube.
8689
8690    * Common Drivers:
8691
8692      - CAN upper half driver: Some lines had to be reordered in the can_open
8693        function otherwise the open count will only be incremented from 0 to
8694        1. This caused problems when trying to open the can bus from two
8695        different tasks. SourceForge Patch #46.
8696
8697    * Crypto:
8698
8699      - crypto:  Fix issues when AES support was added for the STM32L1.
8700        From Juha Niskanen.
8701
8702    * Networking:
8703
8704      - Network initialization: Divide net_intiialize() into net_setup() and
8705        net_initialize() to solve a chicken-and-egg problem.  net_setup()
8706        must be called before up_initialize() is called so that networking
8707        data structures are ready to register new network devices.
8708        net_initialize() now does only timer related operations and is
8709        called AFTER up_initialize() where the timers are configured.
8710        Problem noted by Max Neklyudov.
8711      - netdev_unregister():  Fix a list handling error.  From Max Neklyudov.
8712      - Socket dup: Do not call sockfd_socket() twice.  From Juha Niskanen.
8713
8714    * Common Drivers:
8715
8716      - max11802 touchscreen:  Fix possible unmatched IRQ restore (not
8717        normally a problem, but could happen in certain configurations).
8718        Noted by Juha Niskanen.
8719      - MMCSD SPI Multi-block transfers: ACMD23 must be preceded with CMD55
8720        command as any other ACMD commands. Also, after the block reading
8721        wait loop must be inserted before writing the next block of data to
8722        the sd card.  From Dmitry Nikolaev via Jussi Kivilinna.
8723      - MMCSD SDIO:  Fix some bad logic when file system debug is turned on:
8724        Arguments to syslog were missing so that garbage was being printed.
8725      - Common upper-half serial driver: Report correct number of bytes free
8726        in serial buffer with FIONWRITE.  From Sami Pelkonen via Jussi Kivilinna.
8727      - Pipes/Fifos: Fix zero-lenth writes to pipes/FIFOs. From Jussi Kivilinna.
8728      - USB device MSC: Add NULL pointer check.  From Juha Niskanen.
8729      - BCH driver: Avoid NULL pointer dereference when bch->refs  == 255.
8730        From Juha Niskanen.
8731      - Various drivers: The inode unlink method should not be support if
8732        operations on the root pseudo-filesystem are disabled.
8733
8734    * ARMv7-M
8735
8736      - ARMv7M MPU:  Bad syntax in ARMv7-M MPU logic would cause failure to
8737        write the correct value to the MPU_RASR register. From Juha Niskanen.
8738
8739    * Atmel SAM3/4 Drivers:
8740
8741      - SAM3/4 Serial TERMIOS:  A side-effect of changing serial settings
8742        via TERMIOS (such as tcsetattr) is that serial interrupts were being
8743        left disabled.  This is not a problem if the serial configuration is
8744        changed when there are no open references to the serial device.  In
8745        that case, serial interrupts are disabled and will not be enabled
8746        enabled until the serial device is first opened.  But it is fatal if
8747        the serial device is already opened and if there is a task waiting
8748        to receive data.  In that case, the side-effect of disabling
8749        interrupts is fatal:  That task is then left hanging with interrupts
8750        disabled.
8751      - SAM3/4 Serial: The IMR register is read-only.  This means that
8752        sam_restoreints() did not actually re-enable UART interrupts
8753        (Fortunately, that function was not being used up to this point).
8754      - SAMA5 HSMCI:  Fix a bug in SAMA5 HSMCI.  The bitfield mask and shift
8755        values were reversed resulting in a trashed value for the number of
8756        blocks in the BLOCKR register.  This was sufficient to prevent DMA
8757        writes from working.
8758
8759    * Atmel SAMA5 Drivers:
8760
8761      - SAMA5 Timer/Counter: Fix typos in timer/counter header file.  From
8762        Bob Doiron.
8763
8764    * STMicro STM32 Drivers:
8765
8766      - STM32 PWR and RTC: Changes to support fully write protecting the
8767        backup domain. N.B. stm32_pwr_enablebkp did not account for the delay
8768        from enable to the domain being writable. The KISS solution is a
8769        up_udelay. A more complex solution would be a negated write test
8770        with restore.  From David Sidrane.
8771      - STM32 SPI:  Add missing SPI callback functions to the STM32 SPI
8772        driver.  From Freddie Chopin.
8773      - STM32 I2C: Add missing NULL check.  From Juha Niskanen.
8774      - STM32 USB device: Fix stale initialization invalidating later NULL
8775        check.  From Juha Niskanen.
8776      - STM32 UART: Fix RX DMA setup for UART5.  From  Jussi Kivilinna.
8777      - STM32 UART: Make input hardware flow-control work with RX DMA.  From
8778        Jussi Kivilinna.
8779      - STM32 RTC and clock control:  The STM32F4Discovery board doesn't
8780        come with a Low speed external oscillator so the default LSE source
8781        for the RTC doesn't work. In stm32_rtcc.c the up_rtc_initialize()
8782        logic doesn't work with the LSI. The check on RTC_MAGIC on the BK0R
8783        register lead to rtc_setup() call that rightfully enables the LSI
8784        clock; but the next times, when the rtc is already setup, the
8785        rtc_resume() call does NOT start the LSI clock! The right place to
8786        put LSE/LSI initialization is inside stm32_stdclockconfig() in
8787        stm32fxxxxx_rcc.c.  Doing this I checked the possible uses of the
8788        LSI and the LSE sources: the LSI can be used for RTC and/or the
8789        IWDG, while the LSE only for the RTC (and to output the MCO1 pin).
8790        This change is not verifed for any other platforms.  From Leo
8791        Aloe3132
8792
8793    * Tiva Drivers:
8794
8795      - Tiva GPIO driver needed small fixes in the configuration routines and
8796        discovered false-positive bugs in interrupt testing: interrupts are
8797        now verified to actually be working reliably. From Calvin Maguranis .
8798
8799    * MIPS32:
8800
8801      - mips32/Toolchain.mk: Current Pinguino toolchain uses the prefix p32-
8802        instead of mips-.
8803
8804    * C Library/Header Files:
8805
8806      - sigaddset() and sigdelset(): Need to set errno if a bad signal
8807        number is received.
8808      - sfrtime():  Missing implementation of %C in sfrtime() C (was being
8809        treated as %y).  From Freddie Chopin.
8810      - pthread.h: Fix PTHREAD_COND_INITIALIZER.
8811      - ungetc.c: Fix NULL pointer dereference in ungetc() if 'stream' was
8812        NULL, 'stream->fs_oflags' was evaluated.  From Juha Niskanen.
8813      - Fixes to asinh(), atanh(), and sinh():  The 'basic' expansions all
8814        exhibited bad cancellation errors near zero (<= 1E-10). This can be
8815        easily seen e.g. with x = 1E-30, the results are all zero though they
8816        should be extremely close to x. The cutoff values (1E-5, 1E-9) are
8817        chosen so that the next term in the Taylor series is negligible (for
8818        double). Functions could maybe be optimized to use only first term (x)
8819        and a smaller cutoff, just bigger than where the cancellation occurs
8820      - localtime(): Inconsistent configuration name: CONFIG_LIBC_TZDIR vs
8821        CONFIG_LIBC_TZ_TZDIR.  Former wins.
8822
8823    * Applications:
8824
8825      - Modbus:  Fix some compile problems when TCP is enabled.
8826
8827NuttX-7.10
8828----------
8829
8830The 110th release of NuttX, Version 7.10, was made on June 9, 2015,
8831and is available for download from the SourceForge website.  Note
8832that release consists of two tarballs:  nuttx-7.10.tar.gz and
8833apps-7.10.tar.gz.  Both may be needed (see the top-level nuttx/README.txt
8834file for build information).
8835
8836Additional new features and extended functionality:
8837
8838    * Binary Loader:
8839
8840      - ARMv-7M, binfmt/, STM32: Add support uClibc++ exceptions.  This
8841        involved additional handling for relative relation types, additional
8842        support for unwinding, as well as additional changes.  The
8843        culmination of a big effort from Leo Aloe3132.
8844
8845    * Graphics/Graphic Drivers:
8846
8847      - RA8875 LCD driver contributed by Marten Svanfeldt.
8848
8849    * File Systems/Block Drivers/MTD:
8850
8851      - Union File System: Add support for a union file system that can be
8852        used to overlay and merge the content of two mounted file systems.
8853
8854    * USB Host:
8855
8856      - USB Hub Support: Bring in USB hub-related files from
8857        https://github.com/kaushalparikh/nuttx.  This is the work of Kaushal
8858        Parikh.  This is quite a bit more hub logic was needed in before the
8859        USB hub support was fully functional.  This involved changing many
8860        USB host controller driver interfaces and modifications to many
8861        drivers.
8862      - USB host CDC/ACM class driver:  Added initial implementation of a
8863        host-side CDC/ACM driver.  Initial version was a great learning
8864        experience, but probably should be partially redesigned (as
8865        discussed in the top-level TODO file).
8866      - IPv6 Routing: Complete implementation of the IPv6 routing logic.
8867        From Max Neklyudov.
8868
8869    * Networking:
8870
8871      - Local Sockets: Add poll support for Unix stream sockets.  From Jussi
8872        Kivilinna.
8873      - net/: ARP, ICMP, ICMPv6, PKT, TCP, and UDP now all receive event
8874        notifications from both network device packet processing, but now
8875        also from Device-specific events such as when the network goes down.
8876        The device notification callback structure is now supports dual
8877        linkages so that the client can receive notifications from both
8878        source; The device structure now includes a list of clients that
8879        want to receive device related notifications.  This prevents network
8880        actions from hanging when the device goes down and will be an
8881        essential part of future support for removable network devices.
8882        Some of the core logic was contributed by Max Neklyudov.
8883      - TUN: Misc. improvements to the TUN driver, mostly related to poll().
8884        Also several bugfixes. From Max Neklyudov.
8885
8886    * Simulation Platform:
8887
8888      - Simulator: Add logic to test localtime and TZ database.  See
8889        apps/system/README.txt for info.
8890      - Simulation:  Add a configuration for testing the Union File System.
8891
8892    * Calypso:
8893
8894      - Calypso Compal-E86: Updates for execution out of FLASH on the C139
8895        phone.  From Craig Comstock.
8896
8897    * Atmel SAMD/L:
8898
8899      - SAML21 Support: And chip definitions, configuration framework,
8900        memory map and pin configuration files for SAML21 support.
8901
8902    * Atmel SAMD/L Boards:
8903
8904      - SAML21-Xplained:  Add a board support for the SAML21 Xplained Pro.
8905        This is based on the similar SAMD20 Xplained Pro board.
8906
8907    * Freescale/NXP KL:
8908
8909      - KL25Z64: Added support for the KL25Z64.  The KL25Z64 is a lower
8910        memory variant of the KL25Z128 and is used on the Teensy LC.  From
8911        Michael as SourceForge patch 50.
8912
8913    * Freescale/NXP KL Boards:
8914
8915      - Teensy-LC: Add board support for the Teensy LC board.  Support is
8916        based off the Freedom KL25Z board.  LED, PWM, and UART0 have been
8917        tested. The SPI pins are mapped correctly but have not yet been
8918        tested.  From Michael Hope as SourceForge patch 51.
8919
8920    * NXP LPC111x:
8921
8922      - LPC111x:  Support for the LPC11xx family (the LPC1115 MCU in
8923        particular).  Contributed by Alan Carvalho de Assis.
8924
8925    * NXP LPC111x Boards:
8926
8927      - LPCXpresso LPC1115:  Support for the LPCXpression LPC1115
8928        board.  Contributed by Alan Carvalho de Assis.
8929
8930    * NXP LPC17xx Drivers:
8931
8932      - LPC17xx Ethernet: Add support for the Micrel KSZ8041 PHY to the
8933        LPC17xx Ethernet driver.
8934
8935    * NXP LPC17xx Boards:
8936
8937      - Lincoln60:  Add a network enabled configuration for the Lincoln60
8938        board.
8939
8940    * Atmel SAM3/4 Drivers:
8941
8942      - SAM4CM:  Add support for optical mode for the SAM4CM UART1.  From
8943        Max Neklyudov.
8944
8945    * Freescale (NXP) Kinetis:
8946
8947      - Kinetis K20: Basic support for the Kinetis K20 architecture.  Taken
8948        from PX4.  This is the work of Jakob Odersky.
8949
8950    * Atmel SAMV7 Boards:
8951
8952      - SAMV71-Xplained w/maXTouch Xplained Pro:  A TWIHS fix was the last
8953        barrier to getting the touchscreen working in the maXTouch Xplained
8954        Pro LCD.  Added the NxWM integrated graphics demonstration
8955        configuration.
8956
8957    * STMicro STM32:
8958
8959      - STM32: Added support for STM32F302K8 and STM32F302K6.  From Ben Dyer
8960        via PX4/David Sidrane.
8961      - STM32F205RG: Add basic support for the STM32F205RG.  From SourceForge
8962        Ticket 40 (anonymous, 2015-05-31).
8963      - STM32 F3:  Add DBGMCU register definitions for the F3 family.  From
8964        Greg Meiste.
8965
8966    * STMicro STM32 Drivers:
8967
8968      - STM32 LCDC: Defined a second interface for the dma2d controller.
8969        LTDC only controls the display visibility but the DMA2D controller
8970        changes the content of the frame buffer (buffer of the layer). From
8971        Marco Krahl.
8972      - STM32 PVD: Added support for STM32's Programmable Voltage Detector
8973        (PVD) feature. By Dmitry Nikolaev, submitted by Juha Niskanen.
8974
8975    * STMicro STM32 Boards:
8976
8977      - STM32F429i-Disco: Add support for the new DMA2D features to the LTDC
8978        configuration.  From Marco Krahl.
8979
8980    * TI Tiva Boards:
8981
8982      - TM4C1294 Launchpad:  Added TM4C1294NCPDT EN0_LED2 (10/100-Base-Tx);
8983        removed all booster pack pin definitions. From Frank Sautter.
8984
8985    * C Library/Header Files:
8986
8987      - libc:  Add an option to disable support for long long formats in
8988        lib_vsprintf().  On very tiny platforms, this reduces the footprint
8989        by omitting large libgcc.a libraries to perform the 64-bit
8990        arithmetic operations. From Alan Carvalho de Assis.
8991
8992    * Applications: apps/system:
8993
8994      - nuttx/zoneinfo:  Add logic to build a ROMFS file system
8995        containing the timezone data.
8996
8997    * Applications: apps/nshlib:
8998
8999      - Add poll support for Unix stream sockets.  From Jussi Kivilinna.
9000      - Enhancements to NSH ifconfig for case of multi-link operation, TUN
9001        device and local connections.  From Max Neklyudov.
9002      - Enhanced output to NSH ping command from Max Neklyudov.
9003      - The NSH mount command now recognizes the Union filesystem type when
9004        listing mounted file systems.
9005
9006    * Applications: apps/netutils:
9007
9008      - apps/netutils/thttpd/ and apps/examples/thttpd/: Add support for
9009        using binfs/ with the Union FS instead of NXFLAT.  NXFLAT is
9010        probably the better solution but recently compiler changes make it
9011        unusable.  binfs or ELF are fallback binary formats.  This commit
9012        adds an option to use binfs with the Union FS.
9013
9014    * Applications: apps/examples:
9015
9016      - Modify/simpify apps/examples build files.  From Roman Saveljev.
9017      - apps/examples/ltdc:  Add testing support for the STM32 LTDC's 2D DMA.
9018        From Marco Krahl.
9019      - apps/examples/ostest: Add a test of nested signals.  There are no
9020        failures to handle signals but neither am I getting any nested signal
9021        handling.
9022      - apps/examples/elf: Add configuration options to support building the
9023        hello++4 example that depends upon having uClibc++ available.  Also
9024        add hello++5 to the ELF example  From  Leo aloe3132.
9025      - apps/examples/unionfs: Add a test of the union file system to
9026        apps/examples.
9027
9028Efforts In Progress.  The following are features that are partially
9029implemented but present in this release.  They are not likely to be
9030completed soon.
9031
9032    * Processes.  Much of the work in this release is focused on the
9033      realization of Unix-style user processes in NuttX.  There is more to
9034      be done, however.  The full roadmap and status is available at:
9035      http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
9036
9037    * XMega:  There are some fragments in place for an XMega port.  That
9038      port has not really started, however.
9039
9040Bugfixes.  Only the most critical bugfixes are listed here (see the
9041ChangeLog for the complete list of bugfixes and for additional, more
9042detailed bugfix information):
9043
9044    * Core OS:
9045
9046      - boardctl():  Add missing case causing that caused failures of PWM
9047        test.
9048      - pthread_kill(): Re-implemented pthread_kill().  It was just a simple
9049        wrapper around kill() but since the correct dispatching of signals
9050        for multi-threaded task groups has been implemented, calling kill()
9051        does not do what pthread_kill() is supposed to do.  The corrected
9052        implementation of pthread_kill() will direct the signal specifically
9053        to the specific pthread and no other.
9054      - uint32_t callbacks: Update the type passed to watchdog timer
9055        handlers.  Using uint32_t is a problem for 64-bit machines because
9056        it it too small to pass a pointer.  uintptr_t is a more appropriate
9057        type.
9058      - mq_timedreceive(): move the location where the errno value is set;
9059        the ETIMEDOUT errno setting was being overwritten by subsequent
9060        actions before returning.  Noted by Freddie Chopin.
9061      - POSIX message queues:  Move mq_setattr() and mq_getattr() from
9062        nuttx/libc/mqueue to nuttx/sched/mqueue.  Also add syscall support
9063        for mq_setattr() and mq_getattr().  This is necessary in protected
9064        and kernel builds because in those cases the message queue
9065        structure is protected and cannot be accessed directly from user
9066        mode code.
9067
9068    * File Systems/Block Drivers/MTD:
9069
9070      - MTD:  Increase the size of the fields in the geometry structure
9071        (again) to support larger FLASH sizes.  Needed by Sebastien Lorquet.
9072
9073    * Common Drivers:
9074
9075      - poll(): Fix resource leak and memory corruption on poll failure.
9076        From Jussi Kivilinna.
9077
9078    * USB Host:
9079
9080      - LPC31xx and SAMA5Dx EHCI:  Fix cache related problem in LPC31 and
9081        SAMA5Dx EHCI drivers. All buffers are now aligned with the cache
9082        line size in both starting address and in length.  This cause major
9083        problems in unlucky builds where the USB host buffers where
9084        unaligned and abutting other data. The cache flush and invalidate
9085        operations could be subverted by accesses to adjacent data or could
9086        have unexpected side effects.  This bug has been in the ECHI drivers
9087        forever, but was only revealed due to unlucky memory allocations
9088        during the integration of the hub feature.
9089
9090    * USB Device:
9091
9092      - All USB device class drivers:  There needs to be a check to make
9093        sure that the size of a returned string does not exceed the size of
9094        the allocated request buffer.  Strings such as vendor names or
9095        product names will be truncated to fit in the request buffer.
9096
9097    * Networking:
9098
9099      - TCP:  Correct failures in long Telnet sessions by increasing th
9100        size of the number of bytes sent from uint16_t to uint32_t.  This
9101        avoids an integer overflow that causes a long Telnet session to be
9102        closed unexpectedly.  From Rony XLN.
9103      - Network locks: Correct some network lock logic:  Two error
9104        conditions where the network was not being unlocked and one where it
9105        was getting unlocked twice.  From Jussi Kivilinna.
9106      - Local Sockets: Local stream sockets had problem of double releasing
9107        pipes (both server and client attempt release), which causes wrong
9108        pipe pair being closed in multi-client case. Solve by adding per
9109        connection instance ID to pipe names.  From  Jussi Kivilinna.
9110      - TCP:  Fix an important TCP networking bug: 16-bit flags was being
9111        converted to 8-bits in a few locations, causing loss of status
9112        indications.
9113      - TCP: net_startmonitor() always returned OK.  In the race case
9114        where a socket has already been closed, it correctly handled the
9115        disconnection event but still returned OK.  Returning OK caused the
9116        callers of net_startmonitor() to assume that the connection was
9117        okay, undoing the good things that net_startmonitor() did and
9118        causing the socket to be incorrectly marked as connected.  This
9119        behavior was noted by Pelle Windestam.
9120      - setsockopt() failed when setting timeouts to values less tha 100
9121        msec.  That is because the timeout is limited to stops of 1
9122        decisecond and because the conversion of structure timeval was
9123        truncating the microsecond remainder.  The utility
9124        net_timeval2dsec() now accepts and option to determine how it
9125        handles the remainder:  truncate, discarding the remainder, use
9126        the remainder to round to the closed decisecond value, or use any
9127        non-zero remainder to the next larger whole decisecond value.  Bug
9128        discovered by Librae.
9129      - TCP: In the TCP connection operation, it was trying to setup the
9130        network monitor BEFORE the socket was successfully connected.  This,
9131        of course, has ALWAYS failed because the socket is not yet connected
9132        and the TCP state is not yet correct for a connected socket.  However,
9133        because of other changes net_startmonitor() now returns a failure
9134        condition that causes worse problems when trying to connect.  The fix
9135        is to move the logic that starts the network monitor to AFTER the
9136        socket has been successfully connected.
9137
9138    * Atmel SAM3/4 Drivers:
9139
9140      - SAM4CM and SAMA5D Free-running timer: Logic that samples the free
9141        running counter reads the pending interrupt status register and can
9142        cause interrupts to be lost.  So, if when the status register is
9143        read, the logic must also handle the timer overflow event. Found
9144        and fixed by Max Neklyudov.
9145
9146    * Atmel SAMA5 Drivers:
9147
9148      - SAM3/4 Serial:  When reconfigured, serial does not receive bytes
9149        from UART.  This happens because RX interrupt was disabled in the
9150        setup routine.  Fixed this I save interrupt configuration before
9151        UART shutdown and restore it after.  From Max Neklyudov.
9152
9153    * NXP LPC17xx Drivers:
9154
9155      - LPC176x GPIO:  Reorder steps when an output GPIO is configured in
9156        order to avoid transient bad values from being output.  From Hal
9157        Glenn.
9158      - LPC17 USB OHCI:  Correct some initialization of data structures.
9159        When hub support is enabled, it would overwrite the end of an array
9160        and clobber some OS data structures.
9161      - LPC17xx Ethernet:  Review, update, and modify the Ethernet driver so
9162        that it works better with CONFIG_NET_NOINTS=y.  Also, update all
9163        LPC17xx networking configurations so that they have
9164        CONFIG_NET_NOTINTS=y selected.
9165
9166    * SiLabs EMF32 Drivers:
9167
9168      - EFM32 SPI: Add missing SPI GPIO pin initialization.  From Pierre-noel
9169        Bouteville.
9170
9171    * STMicro STM32:
9172
9173      - STM32 F3:  Added missing EXTI definitions for the STM32 F3; Correct
9174        an error the port D base address in the STM32 F30x and F37x memory
9175        maps.  From Greg Meiste.
9176
9177    * STMicro STM32 Drivers:
9178
9179      - STM23 RTC: Fix an error introduced into stm32_pwr_enablebkp().
9180        That function must preserve the previous state of backup domain
9181        access on return.
9182      - STM32 RTC counter: Now need to enable backup domain write access
9183        when setting the time.  From Darcy Gong.
9184      - STM32 OTG FS and HS: Added protection in the event that out-of-bound
9185        endpoint numbers are received.  From David Sidrane.
9186
9187    * STMicro STM32 Boards:
9188
9189      - STM32F429i Disco: (1) Fix a bad return value if the LCD driver is
9190        already initialized. (2) The LCD driver initialization is now
9191        performed during the early boot sequence.  (3) Increased the size
9192        of the message queue from 32 to 64 in the lcd configuration.  From
9193        Marco Krahl.
9194
9195    * TI Tiva
9196
9197      - Fixes for Tiva TM4C1294NCPDT.  From Frank Sautter.
9198
9199    * Atmel SAMV71 Drivers:
9200
9201      - SAMV7 TWIHS: Fix SAMV TWIHS logic that performs multi-message
9202        transfers with and without repeated starts.
9203
9204    * Atmel SAMA5D3/4 Dirvers:
9205
9206      - SAMA5 CAN: Fix SAMA5 CAN frame construction.  From Max Holtzberg.
9207
9208    * C Library/Header Files:
9209
9210      - stdlib.h:  MAX_RAND should be RAND_MAX.
9211      - assert.h: Wrap definitions of assertion macros in do while so that
9212        they are valid C statements.  Numerous places throughout the code
9213        where semicolons were missing at the end of an assertion also had to
9214        be fixed. Suggested by orbitalfox.
9215      - inetntoa(): Correct errors in printing IP address when type char is
9216        signed and the value is >= 128.  From Max Neklyudov.
9217
9218    * Tools:
9219
9220      - Tools: Fix test for the existence of the apps/ directory in
9221        configure.c. Fix backward interpretation of options, -l was selecting
9222        Windows and -w was selecting Linux. This was SourceForege Ticket #39.
9223
9224    * Applications: apps/nshlib:
9225
9226      - apps/nshlib/nsh_timcmds.c: Check return values from time functions.
9227      - apps/nshlib/: Fix handling of gmtime_r return value in time commands.
9228        gmtime_r returns a pointer, not an int.
9229
9230    * Applications: apps/netutils:
9231
9232      - apps/netutils/ntp: Fix mismatched sched_lock/unlock.  Noted by Juha
9233        Niskanen.
9234
9235    * Applications: apps/examples:
9236
9237      - apps/examples/nxlines:  Fix missing right bracket that causes
9238        compile error when CONFIG_NX_XYINPUT=y.  From Librae.
9239      - apps/examples: When boardctl() fails, need to print errno not the
9240        returned value which will always be -1.
9241      - apps/examples: Correct use of the BOARDIOC_GRAPHICS_SETUP boardctl()
9242        call.
9243
9244NuttX-7.11 Release Notes
9245------------------------
9246
9247The 111th release of NuttX, Version 7.11, was made on August 13 2015,
9248and is available for download from the Bitbucket.org website.  Note
9249that release consists of two tarballs:  nuttx-7.11.tar.gz and
9250apps-7.11.tar.gz.  These are available from:
9251
9252    https://bitbucket.org/patacongo/nuttx/downloads
9253    https://bitbucket.org/nuttx/apps/downloads
9254
9255Both may be needed (see the top-level nuttx/README.txt file for build
9256information).
9257
9258Additional new features and extended functionality:
9259
9260    * Core OS:
9261
9262      - clock_gettime(): Use up_timer_gettime for CLOCK_MONOTONIC in
9263        tickless mode.  From  Max Neklyudov.
9264      - waitpid(): Implement WNOHANG for waitpid() only and for the case of
9265        CONFIG_SCHED_HAVE_PARENT not selected.  From Max Neklyudov.
9266      - SCHED_SPORADIC:  Add a sporadic scheduler to NuttX.
9267      - Extend the processor-specific interface to include information to
9268        support the Sporadic Scheduler.
9269      - sem_tickwait():  Added this function for internal use within the OS.
9270        It is a non-standard but more efficient version of sem_timedwait()
9271        for use in higher performance device drivers.
9272
9273    * Binary Loader:
9274
9275    * Graphics/Graphic Drivers:
9276
9277      - Graphics:  Implement anti-aliasing in order to clean the drawing of
9278        all edges.  Anti-aliasing is supported in the horizontal, raster
9279        direction only.
9280      - SSD1306 LCD Driver: Modify the SSD1306 LCD driver to support either
9281        the SPI or I2C interface.  From Alan Carvalho de Assis.
9282
9283    * File Systems/Block Drivers/MTD:
9284
9285      - mount: Add the ability to mount a file system on top of en existing
9286        node in the pseudo-file system.
9287      - epoll(): Add a very simple epoll layer just around poll calls. To
9288        satisfy build app requirements.  From Anton D. Kachalov.
9289
9290    * Common Device Drivers:
9291
9292      - IOCTL: Add relay IOCTL definitions. From Max Neklyudov.
9293      - I/O Expander Framework:  Add an I/O expander driver framework. From
9294        Sebastien Lorquet
9295      - NXP PCA9555 I/O Explander.  Add PCA9555 driver.From Sebastien
9296        Lorquet
9297      - BMP180 Barameter: Add support to Bosch BMP180 barometer.  From
9298        Alan Carvalho de Assis.
9299      - CAN IOCTLs:  Add CAN IOCTL command definitions to manage CAN message
9300        filtering
9301      - CAN Driver:  Add configuration to support DLC to byte conversions
9302        needed for CAN FD mode.
9303      - SPI Slave Interface:  Add a definition of an SPI slave interface.
9304      - LM92 Temperature Sensor:  Add a driver for the LM92 temperature
9305        sensor.  Contributed by Paul Alexander Patience.
9306      - AS5048B Rotary Magnetic Sensor: Add support for an AS5048B rotary
9307        magnetic sensor.  From Paul Alexander Patience.
9308      - Ramtron Driver:  Update to include supportf for newer RAMTRON parts.
9309        From David Sidrane.
9310      - MB7040 Sonar Driver: Add support for a MB7040 sonar driver.  From
9311        Paul Alexander Patience.
9312      - ms5805 Altimeter Driver: Add support for an MS5805 altimeter.  From
9313        Paul Alexander Patience.
9314
9315    * Networking:
9316
9317      - DNS Client: Implement the low-level network DNS packet protocol to
9318        request and receive IPv6 address mappings.
9319      - NetDB:  Add support for a DNS host name resolution cache.  This can
9320        save a lot of DNS name server lookups (but might also have the
9321        negative consequence of using stale IP address mappings.
9322      - NetDB:  Name resolution logic now supports lookups from a file like
9323        /etc/hosts.
9324      - Network Initialization: Add CONFIG_NETDEV_LATEINIT that can be
9325        used to suppress calls to up_netinitialize() from early in
9326        initialization.
9327      - FTMAC100 Ethernet MAC Driver. Add support for Faraday FTMCA100
9328        Ethernet MAC/ From Anton D. Kachalov.
9329      - UDP Networking:  Add support for send() for connected UDP sockets.
9330
9331    * Crypto:
9332
9333      - Add CFB and MAC AES modes.  From Max Neklyudov.
9334
9335    * Simulation Platform:
9336
9337      - Simulation: Implement board_power_off() for the simulation platform.
9338        This allows for a graceful exit from the simulation.
9339
9340    * MoxaRT:
9341
9342      - MoxaRT SoC: Add support for MoxaRT SoC found in the most Moxa serial
9343        converters such as NP51x0, NP66xx, UC72xx.  From Anton D. Kachalov.
9344
9345    * MoxaRT Boards:
9346
9347      - Moxa NP51x0: Moxa NP51x0 series of 2-port advanced RS-232/422/485
9348        serial device servers.  From Anton D. Kachalov.
9349
9350    * ARMv6-M:
9351
9352      - ARMv6-M Assertions: Port some per-process stack dumping logic from
9353        ARMv7-M to ARMv6-M.  From Alan Carvalho de Assis.
9354
9355    * Atmel SAMD/L Boards:
9356
9357      - SAML21: DMA: Add SAML21 DMA support.
9358      - SAMD21: Add architecture support for the SAMD21 family.
9359      - SAMD21-Xplained:  Board configuration for the SAMD21 Xplained board.
9360
9361    * Atmel SAM3/4 Drivers:
9362
9363      - SAM4E: Add default loop optimization if EEFC_FMR is available in the
9364        configuration (i.e., for SAM4S and 4E). From Marco Aur�lio da Cruz.
9365      - crypto/ and SAM4CM: Add CFB and MAC AES modes.  From Max Neklyudov.
9366      - SAM3/4:  Add a TWI driver for the SAM4CM.  From  Max Neklyudov.
9367
9368    * Freescale (NXP) Kinetis:
9369
9370      - Kinetis: Add support for MK20DN--VLH5 and MK20DX---VLH5.  Needed
9371        for backward compatible support for Teensy-3.0.
9372
9373    * Freescale (NXP) Kinetis Boards:
9374
9375      - Teensy 3.x:  Add board support for the PJRC Teensy-3.0 and
9376        Teensy-3.1 boards.
9377
9378    * Atmel SAMV7 Drivers:
9379
9380      - SAMV7:  Add an MCAN driver for the SAMV7 platform.
9381      - SAMV7 SPI Slave Driver: Add the an SPI slave driver.
9382
9383    * STMicro STM32:
9384
9385      - STMicro STM32 F7:  Add architecture support for the STMicro STM32
9386        F7.
9387      - STM32 F446:  Add support for the STMicro STM32 F446.  From David
9388        Sidrane.
9389
9390    * STMicro STM32 Drivers:
9391
9392      - STM32 F7:  Add an STM32 F7 Ethernet driver.
9393      - STM32 F7:  Port the STM32 F4 DMA driver.
9394      - STM32 F4 ADC:  Add DMA support to the ADC driver for STM32 F4.  From
9395        Max Kriegler.
9396
9397    * STMicro STM32 Boards:
9398
9399      - STM32F762G-Disco:  Add support for the STMicro STM32 F7 Discovery
9400        board.
9401      - STM32F4-Disco: Add support to BMP180 driver on the STM32F4 Discovery.
9402        From Alan Carvalho de Assis.
9403
9404    * C Library/Header Files:
9405
9406      - Add asctime(), asctime_r(), ctime(), and ctime_r().
9407      - sethostname(): Add support for sethostname().
9408      - gethostbyname() and gethostbyaddr():  Add support for
9409        gethostbyname() and gethostbyaddr().  Also support included for the
9410        non-standard gethostbyname_r() and gethostbyaddr_r().  This moves
9411        the DNS client logic from apps/ into the NuttX libc implementation.
9412
9413    * Tools:
9414
9415      - testbuild.sh:  Add a script that can be used to perform building
9416        testing for several board configurations.
9417
9418    * Build/Configuration System:
9419
9420      - apps/ Build System:  No longer depends on hardcoded lists of
9421        directories. Instead, it does a wildcard search to find all
9422        appropriate directories.  This means that to install a new
9423        application, you simply have to copy the directory (or link it) into
9424        the apps/ directory.  If the new directory includes a Makefile and
9425        Make.defs file, then it will automatically be included in the build.
9426      - mkkonfig.sh: Add the tool mkkconfig.sh that dynamically builds the
9427        apps/Kconfig file at configuration time.  The hardcoded
9428        configuration file has been removed and now the top-level Makefile
9429        executes tools/mkkconfig.sh to auto-generate the top-level Kconfig
9430        file.  A new apps/ make target call preconfig: was added to support
9431        this operation.  Now you do not have to modify the top-level Kconfig
9432        file to add a new directory into the configuration; the top-level
9433        subdirectory simply needs to include a Kconfig file and it will
9434        automatically be included in the configuration.  The native Windows
9435        build is temporarily broken until a new apps/tools/mkconfig.bat
9436        script is generated.
9437      - mkkconfig.bat:  Add the Windows script corresponding to
9438        apps/tools/mkkconfig.sh.  Needed for a Windows native build.
9439
9440    * Applications: apps/nshlib:
9441
9442      - NSH shutdown command: NSH will now support an (optional) shutdown
9443        command if the board provides the option CONFIG_BOARDCTL_POWEROFF.
9444        The command can also be used to reset the system if
9445        CONFIG_BOARDCTL_RESET=y.
9446      - NSH uname command:  Add support for a uname command.
9447      - NSH nslookup command:  Add an nslookup command.
9448
9449    * Applications: apps/system:
9450
9451      - NetDB:  Add a system command to access the network database.
9452      - readline():  Add support for Unix-style tab complete to readline.
9453         Contributed by Nghia Ho.
9454      - readline():  Extended the tab-completion support to also expand NSH
9455        command names.
9456      - readline():  Add support for an in-memory command line history that
9457        can be retrieved using the up and down arrows.  Contributed by Nghia
9458        Ho.
9459
9460    * Applications: apps/netutils:
9461
9462      - DNS client:  Moved the DNS client logic into the NuttX C library.
9463        It is a necessary part for the full implementation of the netdb logic
9464        and provides more flexibility in that location.
9465      - Replace calls to the non-standard dns_gethotip() with calls to
9466        standard gethostbyname().
9467      - NetLib: Create netlib wrapper functions around dns_getserver() and
9468        dns_setserver() to isolate application code from changes to those
9469        interfaces.
9470
9471    * Applications: apps/examples:
9472
9473      - OS test:  Extend the OS test to include a test of
9474        pthread_mutex_trylock() for recursive mutexes. From Juha Niskanen.
9475      - OS test: Add a test for the sporadic scheduler.
9476
9477Bugfixes.  Only the most critical bugfixes are listed here (see the
9478ChangeLog for the complete list of bugfixes and for additional, more
9479detailed bugfix information):
9480
9481    * Core OS:
9482
9483      - pthreads: Use -1 instead of 0 as PID for unclaimed mutexes.  From
9484        Juha Niskanen.
9485      - pthreads: Implement pthread_mutex_trylock() for recursive mutexes.
9486        From Juha Niskanen.
9487      - pthread_create():  Group binding needs to be cleared before
9488        sched_releasetcb(), as otherwise group_leave() will be called and
9489        group->tg_nmembers decremented or group being released. group_leave()
9490        should be called only after group_join() is called, not after
9491        group_bind().  From Jussi Kivilinna.
9492      - Protected Mode User Memory Allocator: Redesigned how the user space
9493        heap is accessed from the kernel code in protected mode.  It used to
9494        call memory management functions in user space via function pointers
9495        in the userspace interface.  That is inefficient because the first
9496        thing that those memory management functions do is to trap back into
9497        the kernel to get the current PID.  Worse, that operation can be
9498        fatal is certain fragile situations such as when a task is exiting.
9499        The solution is to remove all of the memory management function
9500        calls from the interface.  Instead, the interface exports the users
9501        pace heap structure and then kernel size implementations of those
9502        memory management functions will operate on the userspace heap
9503        structure. This avoids the unnecessary system calls and, more
9504        importantly, failures do to freeing memory when a test exits.
9505      - pthread_create(): Fix an (unlikely) error in fallback value in the
9506        event of a failure (which should never occur).
9507
9508    * Common Drivers:
9509
9510      - STMPE811 Driver:  In stmpe811_instanciate() when
9511        CONFIG_STMPE811_MULTIPLE is enabled, and the call to
9512        stmpe811_checkid() fails, then the linked device list is not
9513        restored to its previous state. From Sebastien Lorquet.
9514      - CAN driver:  Fix an issue in the CAN driver where the rx_sem count
9515        can grow beyond bounds.
9516
9517    * File System/Block Drivers:
9518
9519      - NFS client: Fix prototype of unbind method.  The function prototype
9520        was not updated for NFS after a recent change to the file system
9521        interface.  From Manuel St??.
9522
9523    * Networking/Network Drivers:
9524
9525      - netconfig.h:  Fix some backward compilation that was emitting #error
9526        in the wrong condition when SLIP was enabled.
9527      - SLIP Driver:  Fix a missed name change when many of network
9528        interface names changed sometime back but were apparently never
9529        updated for SLIP.
9530      - Networking:  Allow receipt of empty UDP packets.  From Max Neklyudov.
9531
9532    * ARMv6-M:
9533
9534      - ARMv6-M: Fix Cortex-M0 assembly error when the interrupt stack is
9535        enabled.  From Alan Carvalho de Assis.
9536
9537    * Atmel SAMD/L Drivers:
9538
9539      - SAMD20, D21, L21: In the SAML21, SERCOM5 uses a different SLOW clock
9540        channel (and, hence, also a different SLOW GCLK generator).  This
9541        means that the channel selection cannot be a global definition but
9542        must be a per SERCOM configuration setting.
9543      - SAMD/L:  Several fixes to register definitions and types. From
9544        Janne Rosberg.
9545
9546    * Atmel SAM3/4 Drivers:
9547
9548      - SAM3/4 UART: Back out an error introduced with commit
9549        02c33f66c5a8be774034cd40e4125e9323c7b4d8.  Causes an infinite loop in
9550        up_lowputc().  From Max Neklyudov.
9551      - SAM4CM: Fix SUPC register definitions. From Max Neklyudov.
9552      - SAM3/4 WDT: Correct some problems with SAM3/4 watchdog driver.
9553        Includes some small improvements.  From Max Neklyudov.
9554
9555    * Atmel SAMV7 Drivers:
9556
9557      - SAMV7 UART: Also back the bad cloned change o sam_lowputc.c for
9558        SAMV7 platform.
9559
9560    * NXP LPC43xx Drivers:
9561
9562      - LPC4350: Correct some LPC4350 GPIO pin configurations.  From
9563        Alessandro Temil.
9564
9565    * SiLabs EMF32 Drivers:
9566
9567      - EFM32 SPI: Correct write to incorrect register in EFM32 SPI driver.
9568        From Pierre-noel Bouteville.
9569
9570    * STMicro STM32 Drivers:
9571
9572      - STM32 F15x: STM322 F15x stm32_stdclockconfig() was calling
9573        stm32_pw_setvos() which accessed PWR_CR via an inactive APB From
9574        Juha Niskaneni.
9575      - STM32 Ethernet: Extend STM32 Ethernet operating frequency to 180MHz.
9576        From Sebastien Lorquet.
9577
9578    * STMicro STM32 Boards:
9579
9580      - SAMV7 Xplained: In clock configuration, divider was set to 25 to get
9581        25*12MHz=300MHz CPU clock.  The correct multiplier is 24 because the
9582        calculation if (24+1)*12MHz.  So the board was running at 312MHz.
9583        From Efim Monjak.
9584
9585    * ARMv7-A:
9586
9587      - Cortex-A5 vfork():  Fix a Cortex-A compilation error when system
9588        calls are enabled in modes other than CONFIG_BUILD_KERNEL.
9589
9590    * Atmel SAMA5 Drivers:
9591
9592      - SAMA5Dx EHCI:  Fix some bad conditional compilation that left a
9593        function undefined if CONFIG_USBHOST_ASYNCH is not selected.
9594
9595    * C Library/Header Files:
9596
9597      - getopt():  Uninitialized variable can cause hardfault from getopt()
9598        if required argument is missing. From George McWilliams.
9599
9600    * Applications: apps/nshlib:
9601
9602      - NSH/THHPD:  Change decoding to handle the increased size of the
9603        scheduling policy field in the TCB.
9604
9605    * Applications: apps/netutils:
9606
9607      - THTTPD:  Fix compilation problems when
9608        CONFIG_THTTPD_GENERATE_INDICES is defined.
9609      - THTTPD: Missing gci-src as a dependency path when building with
9610        BINFS enabled.
9611
9612    * Applications: apps/examples:
9613
9614      - poll() example: Fix a few bit-rot compilation errors.
9615      - Nx Lines example:  If CONFIG_NX_ANTIALIASING=y, then the nxlines
9616        example now erases a line that is 2 pixels longer and 2 pixels wider
9617        than the line it drew.  That eliminates edges effects due to
9618        applying the anti-aliasing algorithm twice.  A better solution
9619        would be to make anti-aliasing an option for each graphics call so
9620        you would rend the line with anti-aliasing ON and clear it with
9621        anti-aliasing OFF. but I don't have the wherewithal for that change
9622        today.
9623      - OS test: Improve synchronization in round robin tests. On very fast
9624        processors, there are race conditions that make the test fail.
9625        Need better interlocking to assure that the threads actually do start
9626        at the same time.
9627
9628NuttX-7.12 Release Notes
9629------------------------
9630
9631The 112th release of NuttX, Version 7.12, was made on October 1, 2015,
9632and is available for download from the Bitbucket.org website.  Note
9633that release consists of two tarballs:  nuttx-7.12.tar.gz and
9634apps-7.12.tar.gz.  These are available from:
9635
9636    https://bitbucket.org/patacongo/nuttx/downloads
9637    https://bitbucket.org/nuttx/apps/downloads
9638
9639Both may be needed (see the top-level nuttx/README.txt file for build
9640information).
9641
9642Additional new features and extended functionality:
9643
9644    * Graphics/Graphic Drivers:
9645
9646      - Added SSD1351 OLED controller support.  Contributed by Paul
9647        Alexander Patience.
9648
9649    * Common Device Drivers:
9650
9651      - MS58xx: Generalize the MS5805 altimeter driver to support other
9652        family members. From Paul Alexander Patience.
9653      - CAN driver interface: Add an error indication bit to the CAN
9654        message report.
9655      - Developed a new interface for QSPI.  Most QSPI hardware (such as the
9656        SAMV71) used a programmed interface to access the QuadSPI FLASH.
9657        That programmed interface is no compatible with the simpler NuttX
9658        SPI data transfer interface.
9659      - Added a driver for ST25L1*K QuadSPI parts.
9660      - Renamed the battery driver interface to battery_gauge since it
9661        really only implements a battery fuel gauge.  From Alan Carvalho de
9662        Assis.
9663      - Added a new framework to support a batter charger interface.  From
9664         Alan Carvalho de Assis.
9665      - Added a BQ24250 battery charger driver. From Alan Carvalho de Assis.
9666
9667    * Networking:
9668
9669      - Added support for the local loopback device (dev lo, hostname localhost).
9670      - Added NetDB support for the local loopback device.
9671      - Network initialization:  Automatically initialize all the TUN and
9672        loopback devices if they arein the configuration.
9673
9674    * Simulation Platform:
9675
9676      - The simulation now runs under Cygwin64.  Modern Cygwin X86_64
9677        machines follow the Microsoft ABI for parameter passing.  The Linux
9678        System 5 ABI would not work on X86_64-based Cygwin machines.  Newer
9679        Cygwin tool chains do nor pre-pend symbol names with the underscore
9680        character.
9681
9682    * Atmel SAMA5Dx:
9683
9684      - Added architectural support for the Atmel SAMA5D2 parts.  Not fully
9685        verified in this NuttX release.
9686
9687    * Atmel SAMA5Dx Boards:
9688
9689      - Added support for the Atmel SAMA45D2 Xplained Ultra board.  Not
9690        fully verified in this NuttX release.
9691
9692    * Atmel SAMV7 Drivers:
9693
9694      - SAMV7 USBHS DCD: The device controller driver is (finally)
9695        functional.
9696
9697    * NXP LPC17xx:
9698
9699      - Implement options to use external SDRAM and or SRAM for the heap.
9700        From Pavel Pisa.
9701
9702    * NXP LPC43x:
9703
9704      - Added architectural support for the LPC4370.  From Lok Tep.
9705
9706    * NXP LPC43xx Drivers:
9707
9708      - Added Ethernet support.  From Ilya Averyanov.
9709      - Added LPC43xx EHCI driver from Ilya Averyanov.
9710
9711    * NXP LPC43xx Drivers:
9712
9713      - Added support for the NXP LPC4370-Link2 development board from Lok
9714        Tep.
9715
9716    * STMicro STM32:
9717
9718      - Added architectural for STM32F303K6, STM32F303K8, STM32F303C6,
9719        STM32F303C8, STM32F303RD, and STM32F303RE devices.  From Paul
9720        Alexander Patience.
9721
9722    * STMicro STM32 Drivers:
9723
9724      - Added OTG support for STM32F44x.  From David Sidrane.
9725
9726    * STMicro STM32 Boards:
9727
9728      - Added support for the STMicro Nucleo F303ERE board from Paul
9729        Alexander Patience.
9730
9731    * C Library/Header Files:
9732
9733      - stdlib: Add support for div() to the C library.  From OrbitalFox.
9734        Also added ldiv() and lldiv() which are equivalent to div() with
9735        long and long long types, respectively, instead of int.
9736      - Added an implementation of the standard shutdown function.
9737
9738    * Tools:
9739
9740      - tools/mksymtab: declare g_symtab array as const to occupy RO section
9741        (Flash).  From Pavel Pisa.
9742
9743    * Build/Configuration System:
9744
9745      - Simplify configs/ Makefiles by combining common logic into a new
9746        Board.mk Makefile fragment.  From Paul Alexander Patience.
9747
9748    * Applications: apps/system:
9749
9750      - apps/system/symtab: Optional canned symtab inclusion to the build.
9751        When option CONFIG_SYSTEM_SYMTAB is selected and symbol table file
9752        libc/symtab/canned_symtab.inc is prepared then application can use
9753        system provided complete symbol table. The option has substantial
9754        effect on system image size. Mainly code/text. If loading of
9755        applications at runtime is not planned do not select this.  From
9756        Pavel Pisa.
9757
9758    * Applications: apps/canutils:
9759
9760      - apps/canutils/uavcan: Add support for libuavcan.  From  Paul Alexander Patience.
9761
9762    * Applications: apps/examples:
9763
9764      - apps/examples/can:  Extend the CAN loopback test by adding more
9765        command line options.
9766      - apps/examples/usbserial: Can now be run as an NSH builtin-function.
9767        Now uses a configurable IO buffer size.
9768      - apps/examples/nettest: Add option to suppress network initialization.
9769        This is necessary if the nettest is run from NSH which has already
9770        initialized the network.
9771      - apps/examples/nettest: Extend test so that can be performed using
9772        the local loopback device.
9773      - apps/examples/netloop:  Add a test of the local loopback device.
9774      - apps/examples/udpblaster: Add a test to stress the network by
9775        sending UDP packets at a very high rate. .
9776      - apps/examples/uavcan: libuavcan example from Paul Alexander Patience.
9777
9778Bugfixes.  Only the most critical bugfixes are listed here (see the
9779ChangeLog for the complete list of bugfixes and for additional, more
9780detailed bugfix information):
9781
9782    * Core OS:
9783
9784      - wd_create():  Correct a counting error in the number of available
9785        watchdog timers.  When the number of free timers is low, the counter
9786        could be incremented below zero.
9787      - mq_open(): When message queue is opened, inode_reserve() leaves the
9788        reference count at zero.  mq_open() logic must assure that the
9789        reference count of the newly created inode is one.
9790      - work_queue(): Logic that sets the queued indication and the logic
9791        that does the actual queuing must be atomic.
9792
9793    * Binary Loader:
9794
9795      - Fix a memory leak in the built-in application logic: File was not
9796        being closed. From Bruno Herrera.
9797
9798    * File System/Block Drivers:
9799
9800      - poll():  If we fail to setup the poll for any file descriptor, for
9801        any reason, set the POLLERR bit.
9802      - rwbuffer: Fix some logic errors.  From Dmitry Nikolaev via Juha
9803        Niskanen.
9804      - ROMFS: One allocation was not being freed if there was a subsequent
9805        failure to allocation I/O buffers resulting in a memory leak on
9806        certain error conditions.  From Bruno Herrera.
9807
9808    * Networking/Network Drivers:
9809
9810      - Fix a bug in tun interface driver.  From Max Neklyudov.
9811      - recvfrom(): Correct wait for new data when NET_UDP_READAHEAD is
9812        enabled.  Fix size accounting when recvfrom_udpreadahead() sets
9813        state.rf_recvlen == -1.  I have not checked if data are accumulated
9814        to the right position in the buffer however. From Pavel Pisa.
9815      - networking:  Correct return value from psock_tcp_accept().  From
9816        SaeHie Park.
9817      - TCP: Fix a problem in when there are multiple network devices.
9818        Polls were being sent to all TCP sockets before. This is not good
9819        because it means that packets may sometimes be sent out on the wrong
9820        device.  That is inefficient because it will cause retransmissions
9821        and bad performance.  But, worse, when one of the devices is not
9822        Ethernet, it will have a different MSS and, as a result, incorrect
9823        data transfers can cause crashes. The fix is to lock into a single
9824        device once the MSS is locked locked down.
9825      - net/tcp:  The logic that binds a specific network device to a
9826        connection was faulty for the case of multiple network devices.  On
9827        bind(), the local address should be used to associate a device with
9828        the connection (if the local address is not INADDR_ANY); On connect(),
9829        the remote address should be used (in case the local address is
9830        INADDR_ANY).  On accept(), it does not matter but the remote address
9831        is the one guaranteed to be available.
9832      - net/tcp: Fix unbuffered send compilation error when Ethernet is not
9833        enabled.  From Alan Cavalho de Assis.
9834
9835    * ARMv7-M:
9836
9837      - All ARMV7-M IRQ setup:  Always set the NVIC vector table address
9838        unconditionally.  This is needed in cases where the code is running
9839        with a bootload and when the code is running from RAM.  It is also
9840        needed by the logic of up_ramvec_initialize() which gets the vector
9841        base address from the NVIC.  Suggested by Pavel Pisa.
9842      - Fix some H/W floating point logic: In the original implementation,
9843        !defined(CONFIG_ARMV7M_CMNVECTOR) was a sufficient test to determine
9844        if lazy floating point register saving was being used.  But recents
9845        changes added common lazy register as well so now that test must be
9846        (!defined(CONFIG_ARMV7M_CMNVECTOR) || defined(CONFIG_ARMV7M_LAZYFPU)).
9847      - ARMv7-M, all "lazy" interrupt stack logic.  Assembly instruction
9848        that fetches the saved value is incorrect; replace with more
9849        traditional push and pop.  This is an important fix.  Noted by
9850        Stefan Kolb.
9851      - All ARMV7-M: Force 8-byte stack alignment when calling from assembly
9852        to C to interrupt handling.
9853      - up_schedulesigaction(): Fix logic that determines if there is a
9854        pending signal action before scheduling the next signal action.
9855        Both the test and the scheduling action need to be atomic.  This
9856        problem was fixed on the ARMv7-M but also ported to other
9857        architectures that had the same issue.
9858
9859    * NXP LPC43xx:
9860
9861      - LPC43xx: Fix NVIC_SYSH_PRIORITY_STEP define.  From Ilya Averyanov.
9862      - LPC43xx: Fix missing #define in eeprom.  From Ilya Averyanov.
9863
9864    * NXP LPC43xx Drivers:
9865
9866      - Fixed the SPI driver.  From Ilya Averyanov.
9867
9868    * Atmel SAMA5 Drivers:
9869
9870      - LPC31 and SAMA5D EHCI: Fix qh_ioccheck to move bp to next QH.  From
9871        Ilya Averyanov.
9872      - LPC31 and SAMA5D EHCI:  Performance improvement:  Do not disable the
9873        asynchronous queue when adding a new QH structure.  From  Ilya
9874        Averyanov.
9875
9876    * C Library/Header Files:
9877
9878      - gethostbyname(): correct returned address format when DNS is used.
9879        The hostent.h_addr_list should point to raw in_addr or in6_addr
9880        as defined in the standard. Original implementation used that for
9881        numeric addresses but for DNS lookup returned pointer to whole
9882        sockaddr_in or sockaddr_in6.  From Pavel Pisa .
9883      - asin(): The function did not convert for some input values.  asing()
9884        did not convert for values which do not belong to the domain of the
9885        function. But aside of that the function also did not converge for
9886        allowed values.  I achieved a conversion of the function by
9887        reducing the DBL_EPSION and by checking if the input value is in
9888        the domain of the function. This is a fix for the problem but the
9889        function should always terminate after a given number of iterations.
9890        From Stefan Kolb.
9891      - Change all references from avsprintf to vasprintf.  From Sebastien
9892        Lorquet.
9893
9894    * Applications: apps/nshlib:
9895
9896      - Fix error handling in 'cat' command.  On a failure to allocate
9897        memory, a file was not being closed.  From Bruno Herrera.
9898      - Fix error handling in 'mv' command.  On a failure to expand the
9899        second path, the memory allocated for the expansion of the first
9900        path was not being freed.  From Bruno Herrera.
9901
9902    * Applications: apps/system:
9903
9904      - apps/system/netdb:  Failed to build if CONFIG_NET_HOSTFILE was not
9905        defined because gethostbyaddr() was not available.  Noted by
9906        OrbitalFox.
9907
9908    * Applications: apps/netutils:
9909
9910      - Various Kconfig files in netutils:  Fix some changes from from
9911        NETUTILS_DNSCLIENT to NETDB_DNSCLIENT.  From Pavel Pisa.
9912
9913    * Applications: apps/modbus:
9914
9915      - Macros PR_BEGIN_EXTERN_C and PR_END_EXTERN_C were not defined in
9916        all contexts.  Replace with explicit expansion in all cases. From Stefan Kolb.
9917
9918NuttX-7.13 Release Notes
9919------------------------
9920
9921The 113th release of NuttX, Version 7.13, was made on December 5, 2015,
9922and is available for download from the Bitbucket.org website.  Note
9923that release consists of two tarballs:  nuttx-7.13.tar.gz and
9924apps-7.13.tar.gz.  These are available from:
9925
9926    https://bitbucket.org/patacongo/nuttx/downloads
9927    https://bitbucket.org/nuttx/apps/downloads
9928
9929Both may be needed (see the top-level nuttx/README.txt file for build
9930information).
9931
9932Additional new features and extended functionality:
9933
9934    * Core OS:
9935
9936      - External RTC:  Added OS support for external RTC chips.
9937      - boardctl():  Add a command to the boardctl() interface to obtain a
9938        board unique ID.
9939
9940    * File Systems:
9941
9942      - TMPFS:  Add support for a new TMPFS, RAM file system.  The TMPFS
9943        file system does not require any significant amount of memory
9944        itself.  It will grow dynamically as files are added and shrink back
9945        when files are deleted.  A very low overhead way to retain temporary
9946        files.
9947      - VFS:  The VFS was extended to support standard file operations on
9948        block drivers (open, close, read, write, etc.).  The open() interface
9949        accomplishes this by creating a temporary characer driver to mediate
9950        the character oriented accesses to tje block driver.
9951      - HOSTFS:  Added a HOSTFS file system for use with the simulator.  The
9952        HOSTFS file system mounts in the simulated Nuttx context by provides
9953        proxied access to the file system on the host PC.  This is useful for
9954        providing file system content and nonvolatile storage of files in the
9955        simulation environment.  From Ken Pettit.
9956      - MTD/PROCFS:  Add an interface to un-register an MTD procfs entry.
9957        From Ken Pettit.
9958      - filemtd:  A new MTD conversion layer that will convert a regular file
9959        (or driver file) to an MTD device.  This is useful for testing on the
9960        simulation using the HOSTFS.  From Ken Pettit.
9961      - PROCFS:  Extended to include networking entries in the procfs. Device
9962        status, device statistics, and network statistics are now available
9963        from the PROCFS.
9964      - PROCFS:  The PROCFS file system can now be configured so that it
9965        supports runtime registration of PROCFS entries with
9966        CONFIG_FS_PROCFS_REGISTER=y.
9967
9968    * Graphics/Graphic Drivers:
9969
9970      - ST7565 Driver:  Extend to include support for the ERC12864-3. From
9971        Pierre-noel Bouteville.
9972
9973    * Common Device Drivers:
9974
9975      - User buttons: Added a character driver to support application access
9976        to board buttons.  Supports notification of button activity via
9977        signals.
9978      - User LEDs:  Added a character driver to support application access
9979        to on-board LEDs.
9980      - Zero Cross: Added a Zero Cross device driver support.  From Alan
9981        Carvalho de Assis.
9982      - MAX6675:  Added support to Thermocouple-to-Digital converter MAX6675.
9983        From Alan Carvalho de Assis.
9984      - BCH:  Block-to-character (BCH) driver should forward ioctl() calls
9985        to the contained block driver.
9986      - S25FL1xx:  Added a S25FL1xx QuadSPI FLASH driver.
9987      - On-Chip FLASH: Added an upper half MTD device that can use the
9988        interfaces defined in included/nuttx/progmem.h to provide a
9989        standard MTD driver.
9990      - Serial: Implemented high level DMA infrastructure for serial
9991        devices.  From Max Neklyudov.
9992      - AT24XX:  Add support for multiple AT24xx EEPROM parts, each with
9993        unique I2C addresses, but otherwise identical.
9994      - External RTC:  Added drivers for external I2C RTC chips: DS3102,
9995        DS1307, DS3231, DS3232, and NXP PCF85263.
9996      - W25: Added support for byte write mode to the W25 FLASH driver. From
9997        Ken Pettit.
9998      - dev/loop:  Added a loop character device.  losetup() and loteardown()
9999        should not be called directory from applications. Rather, these
10000        functions are now available as IOCTL commands to the loop driver.
10001      - dev/smart:  Added support for a /dev/smart loop device. From Ken
10002        Pettit.
10003
10004    * Networking:
10005
10006      - Driver Statistics: Most network drivers do not support statistics.
10007        Those that do only supported them when DEBUG is enabled.  Each
10008        driver collected an architecture specific set of statistics and
10009        there was no common mechanism to view those statistics.  Thus,
10010        the driver feature was mostly useless.  This release standardizes
10011        the driver statistics and puts the definition in the common network
10012        device structure defined in netdev.h where they can be accessed by
10013        network applications.  All Ethernet drivers that collect statistics
10014        have been adapted to use these common statistics.
10015
10016    * Simulation Platform:
10017
10018      - W25 FLASH:  Added support for W25 FLASH simulation. From Ken Pettit.
10019      - HOSTFS: Added support for the HOSTFS file system (see "File Systems",
10020        above).
10021
10022    * Atmel SAMV7:
10023
10024      - SAME70:  Added support for the SAME70 family of chips.
10025      - Tickless: SAMV7 now supports the tickless mode of operation.
10026
10027    * Atmel SAMV7 Drivers:
10028
10029      - MPU:  Added MPU and protected build support.
10030      - QSPI:  Added a QuadSPI FLASH driver.  This driver operates in the
10031        memory-mapped, Serial Memory Mode (SMM).
10032      - FLASH:  Added support to write on-chip FLASH.
10033      - Timer/Counter:  TC driver ported to SAMV7 from the SAMA5.  Free-running
10034        and one-short timer logic also ported.
10035      - PCK: Brought programmable clock (PCK) logic from SAMA5 into SAMV7.
10036      - Timer/Counter:  Support PCK6 as an optional source for the timer/
10037        counter clock.
10038
10039    * Atmel SAMV7 Boards:
10040
10041      - SAME70-Xplained:  Add NSH and networking configurations for the
10042        SAME70 Xplained board.  Includes verified support for serial console,
10043        LEDs, buttons, SDRAM, HSMCI SD card, and networking.
10044      - SAMV7-XULT and SAME70-Xplained: If Tickless mode is selected then
10045        enable PCK6 as a timer/counter clock source
10046
10047    * STMicro STM32:
10048
10049      - CCM PROCFS: Is no longer a part of the 'base' procfs entries and can
10050        now only be supported via run time registration with
10051        CONFIG_FS_PROCFS_REGISTER=y.
10052
10053    * STMicro STM32 Drivers:
10054
10055      - Timers:  Add a compatible lower-half timer driver for use with the
10056        common timer upper-half driver.  From Wail Khemir.
10057
10058    * STMicro STM32 Boards:
10059
10060      - STM32F4-Discovery: Add low level support for the Zero Cross driver
10061        for the STM32F4-Discovery.  From Alan Carvalho de Assis.
10062      - STM32F4-Discovery: Add board config to support for the MAX6675. From
10063        Alan Carvalho de Assis.
10064
10065    * C Library/Header Files:
10066
10067      - bsearch():  Added the bsearch() function from NetBSD.
10068      - freopen():  Added support for freopen().
10069      - strftime():  Added day-of-week support (when avaialable).
10070
10071    * Tools:
10072
10073      - nxstyle: Add crappy style checking tool nxstyle.c.  See thee tools/
10074        README file for more info.
10075
10076    * Applications: NSH
10077
10078      - mksmartfs command: Add configuration option to supported multiple
10079        rootdirectories. From Ken Pettit.
10080      - Add support for 'basename' and 'dirname' commands.
10081      - set command:  Like bash, NSH set command now strips off any leading
10082        or trailing whitespace.
10083      - mount command: The mount commands now accepts mount options
10084        (currently needed only for the hostfs file system).  From Ken
10085        Pettit.
10086      - losetup command:  NSH no longer calls losetup() and loteardown
10087        directly. Now it opens /dev/loop and accomplishes these things
10088        using ioctl() calls.
10089      - ifconfig command:  If CONFIG_NETDEV_STATISTICS=y, then print the
10090        network driver statistics in the ifconfig.
10091      - ifconfig, ifup, and ifdown:  These commands now uses /proc/net/<dev>
10092        to view network device configuration and status and /proc/net/stat
10093        to show network statistics.  A consequence of this is that you
10094        cannot view this network information if the procfs is not enabled
10095        and mounted at /proc.
10096      - losmart command:  Added a new NSH losmart command.  losmart setups
10097        up a loop device for the smart MTD driver similar to losetup but
10098        with different syntax.  From Ken Pettit.
10099      - ps command:  The 'ps' command now uses /proc/<pid>/ to obtain task
10100        status information.  A consequence of this is that you cannot use
10101        the 'ps' command if the procfs is not enabled and mounted at /proc.
10102
10103    * Applications: apps/system:
10104
10105      - apps/system/hexed:  Port the hexed command line hexadeciamal editor
10106         to Nuttx.  See http://apps.venomdev.net/hexed/.
10107
10108    * Applications: apps/fsutils:
10109
10110      - apps/fsutils/smartfs: Move into apps/fsutils from kernel, now uses
10111        only open and ioctl.  From Ken Pettit.
10112
10113    * Applications: apps/examples:
10114
10115      - apps/examples/fstest:  Add a generic file system test.  This is
10116        essentially the same as examples/smart, but has all of the SmartFS
10117        specific logic ripped out.  This was created for testing the new
10118        TMPFS.
10119      - apps/examples/zerocross: Add a Zero Cross application example. From
10120        Alan Carvalho de Assis.
10121      - apps/examples/media:  Add a simple test for access of media via a
10122        block driver or MTD driver.
10123
10124Bugfixes.  Only the most critical bugfixes are listed here (see the
10125ChangeLog for the complete list of bugfixes and for additional, more
10126detailed bugfix information):
10127
10128    * Core OS:
10129
10130      - Fixed an error in clock_timespec_subtract().  Found by Lok.
10131      - pthreads: CRITICAL BUGFIX: Logic was wiping out the indication that
10132        of the type of a pthread.  Hence, it could be confused as a task.
10133        Found because this was causing a crash when /proc/nnn/cmdline was
10134        printed.
10135
10136    * File System/Block Drivers:
10137
10138      - SMART MTD: Fix some Smart wear-leveling bugs.  Fixed SmartFS wear
10139        level error that occurs when the logical sector size is too small to
10140        save all wear level status bytes in a single sector.  Logical
10141        sectors 1 and 2 were simply not being allocated and then the
10142        read_sector and write_sector routines were failing.  From Ken
10143        Pettit.
10144
10145    * Graphics/Graphic Drivers:
10146
10147      - ILI9432:  Fixed errors in orientation. Portrait, RPortrait, and
10148        Landscript should work correly now.  They were displayed mirrored.
10149        From  Marco Krahl.
10150
10151    * Common Drivers:
10152
10153      - CAN:  Fix a problem in the CAN upper-half driver that occurs only
10154        for CAN hardware that support a H/W FIFO of outgoing CAN messages.
10155        In this case, there can be a hang condition if both the H/W and
10156        S/W FIFOs are both full.  In that case, there may be no event to
10157        awaken the upper half driver.  Add a new (conditional) CAN upper
10158        half interface called can_txready() that can be used by the lower
10159        half driver to avoid this hang condition.
10160      - MS58xx:  Fix some issues with initialization and with CRC
10161        calculation.  From Karim Keddam.
10162      - W25: Fixed W25 FLASH driver page read/write logic. From Ken Pettit.
10163
10164    * Atmel SAMV7 Drivers:
10165
10166      - USART1 pin configuration: Reconfigure System I/O when using USART1.
10167        From Frank Benkert.
10168      - MCAN:  Added a call to can_txready() to the MCAN driver.
10169
10170    * STMicro STM32 Drivers:
10171
10172      - stm32 F4:  Fix some TIM12 pin mappings.  From Max Kriegleder.
10173
10174    * STMicro STM32 Boards:
10175
10176      - STM32F429i-Disco:  Calculated partition boundries based on page
10177        block sizes but mtd_partition() is expecting calculations based on
10178        erase block size. From Alan Carvalho de Assis.
10179
10180    * C Library/Header Files:
10181
10182      - sys/types.h: When building on a 64-bit machine, the size of size_t
10183        should be 64-bits. In general, I believe that sizeof(size_t) should
10184        be the same as sizeof(uinptr_t).  mmsize_t should always be 32-bits
10185        in any event.  The last change to stddef has been backed out.  With
10186        these changes, the simulator builds without errors or warnings an a
10187        64-bit machine.
10188
10189    * Applications: apps/nshlib:
10190
10191      - The I/O buffer, g_iobuffer, should not be a global buffer.  That
10192        will not work in an environment where there are multiple NSH
10193        sessions.  The I/O buffer must, instead, be a part part of the
10194        session-specific data defined in nsh_console.h.
10195
10196NuttX-7.14 Release Notes
10197------------------------
10198
10199The 114th release of NuttX, Version 7.14, was made on January 28, 2016,
10200and is available for download from the Bitbucket.org website.  Note
10201that release consists of two tarballs:  nuttx-7.14.tar.gz and
10202apps-7.14.tar.gz.  These are available from:
10203
10204    https://bitbucket.org/patacongo/nuttx/downloads
10205    https://bitbucket.org/nuttx/apps/downloads
10206
10207Both may be needed (see the top-level nuttx/README.txt file for build
10208information).
10209
10210Additional new features and extended functionality:
10211
10212    * Core OS:
10213
10214      - modules:  Add support for kernel modules:  insmod, rmmod, support
10215        functions.  procfs support for user lsmod functioniality.
10216      - SIGEV_THREAD:  Add support for the SIGEV_THREAD notification method
10217        in struct sigevent.  This initial implementation will only work in
10218        the FLAT build since it utilizes the work queue for signal
10219        callbacks.  See the top-level TODO file for additional details.
10220      - 64-Bit Timer:  If the 64-bit timer is selected, then use it whenever
10221        clock_systimer() is called rather then chopping the 64-bit timer
10222        down to 32-bits.  Add a new type, systime_t to represent the 32- or
10223        64-bit system timer. This eliminates clock_systimer32() and
10224        clock_systime64(); there is now only clock_systimer().
10225
10226    * Common Device Drivers:
10227
10228      - Telnet Driver: Move the Telnet driver from apps/ to
10229        nuttx/drivers/net.  It is a driver a belongs in the OS.   Now works
10230        like the loop device:  A new interface called telnet_initialize()
10231        registers a telnet session "factory" device at /dev/telnet.  Via
10232        ioctl, the factory device can create instances of the telnet
10233        character devices at /dev/telnetN to support Telnet sessions.
10234      - PCA9635PW:  Add a driver for the PCA9635PW I2C LED driver IC which
10235        can be used to control the intensity of up to 16 LEDs.  From
10236        Alexander Entinger.
10237      - MCP9844: Driver for the MCP9844 I2C digital temperature sensor with
10238        a selectable resolution.  From Alexander Entinger.
10239      - PN532: Add driver for the NXP PN532 NFC-chip.  From Janne Rosberg
10240        and others at Offcode Ltd.
10241      - LSM9DS1:  Add driver for the STMicro LSM9DS1 chip. The LSM9DS1 is a
10242        system-in-package featuring a 3D digital linear acceleration sensor,
10243        a 3D digital angular rate sensor, and a 3D digital magnetic sensor.
10244        From Paul Alexander Patience.
10245      - CAN Interface:  Add more extensive error reporting capaibility to
10246        the CAN interface definitions.  From Frank Benkert.
10247      - SPI Interface:  Add an optional hwfeatures() method to the SPI
10248        interface.
10249
10250    * Simulation Platform:
10251
10252      - NSH configuration uses the custom start up scriptwith a read-only
10253        passwd file.  Includes hooks for an MOTD message.
10254
10255    * ARMv7-R
10256
10257      - ARMv7-R:  Add basic architecture support for the ARMv7-R processor
10258        family.
10259
10260    * Atmel AVR:
10261
10262      - Atmega2560:  Add support for the Atmega2560.  From Dimitry Kloper.
10263      - debug.h: Add an AVR-specific header file used when the AVR MEMX
10264        pointer is used.  From Dimitri Kloper.
10265
10266    * Atmel AVR Boards:
10267
10268      - Arduino-Mega2560: Add support for the Arduino-Mega2560.  From
10269        Dimitry Koper.
10270
10271    * Atmel SAMV7 Drivers:
10272
10273      - Port the TRNG driver from the SAMA5D3/4 to the SAMV7.
10274      - Port the WDT driver from the SAMA5D3/4 to the SAMV7.
10275      - Add an RSWDT driver.
10276
10277    * Atmel SAMV7 Boards:
10278
10279      - SAMV71-XULT:  Add configuration for testing OS modules.
10280
10281    * Freescale Kinetis:
10282
10283      - MK60N512VLL100: Add support for the MK60N512VLL100 Kinetis part.
10284        From Andrew Webster.
10285
10286    * Freescale Kinetis Boards:
10287
10288      - ENET:  Numerous updates to the Kinetis ENET driver. That driver is
10289        now functional. From Andrew Webster.
10290
10291    * NXP LPC43xx Boards:
10292
10293      - WaveShare LPC4337-WS:  Support for the WaveShare LPC4337-WS board.
10294        From Lok Tep.
10295
10296    * STMicro STM32 Drivers:
10297
10298      - Timer Capture:  Add timer input capture driver.  From Pierre-Noel
10299        Bouteville.
10300
10301    * STMicro STM32 Boards:
10302
10303      - Olimex STM32 H407:  Added a port to the Olimex STM32 H407 board.
10304        This board features the STMicro STM32F407ZGT6 (144 pins).
10305        Contributed by Neil Hancock.
10306
10307    * TI TMS550 Boards:
10308
10309      - TI LaunchXL-TMS57004:  Add basic board support for TI LaunchXL-
10310        TMS57004.  Still a work in progress.
10311
10312    * C Library/Header Files:
10313
10314      - sys/time.h: Add timeradd(), timersub(), timerclear(), timerisset(),
10315        and timercmp() as macros. These are non-POSIX interfaces, but
10316        included in most BSD deriviatives, including Linux.  From Manuel St??.
10317      - AVR support: Introduce support for Atmel toolchain in-flash strings.
10318        Atmel toolchain AVR compiler provides a transparent in-flash object
10319        support using __flash and __memx symbols. The former indicates to
10320        compiler that this is a flash-based object.  The later used with
10321        pointer indicates that the referenced object may reside either in
10322        flash or in RAM. The compiler automatically makes 32-bit pointer
10323        with flag indicating whether referenced object is in flash or RAM
10324        and generates code to access either in run-time. Thus, any function
10325        hat accepts __memx object can transparently work with RAM and flash
10326        objects.
10327        For platforms with a Harvard architecture and a very small RAM like
10328        AVR this allows to move all constant strings used in trace messages
10329        to flash in the instruction address space, releasing resources for
10330        other things. This change introduces IOBJ and IPTR type qualifiers.
10331        The 'I' indicates that the object may lie in instruction space on a
10332        Harvard architecture machine. For platforms that do not have __flash
10333        and __memx or similar symbols IOBJ and IPTR are empty, making the
10334        types equivalent to, for example, 'const char' and 'const char*'.
10335        For Atmel compiler these will become 'const __flash char' and
10336        'const __memx char*'.  All printf() functions and syslog() functions
10337        are changed so that the qualifier is used with the format parameter.
10338        From Dimitry Kloper.
10339      - debug.h:  Add configuration to support an architecture-specific
10340        debug.h header file. From Dimitri Kloper.
10341      - netdb:  Add support for the use of a DNS resolver file like
10342        /etc/resolv.conf.
10343      - TEA:  Add an implementation of the Tiny Encryption Algorithm.
10344      - math32.h:  Add some utilities to support 64-bit arithmetic
10345        operations for platforms that do not support long long types.
10346
10347    * Tools:
10348
10349      - tools/cnvwindeps.c:  Add a tool that will convert paths in
10350        dependencies generated by a Windows compiler so that they can be
10351        used with the Cygwin make.
10352      - tools/mkwindeps.sh: A script that coordinates use of cnvwindeps.exe.
10353        Dependencies now work on the Cygwin platform when using a Windows
10354        ative toolchain.
10355
10356    * Applications: NSH
10357
10358      - Module Commands:  Add module commands: insmod, rmmod, and lsmod.
10359      - Time Command:  Add a 'time' command that may be used to time the
10360        execution of other commands.
10361      - Password Commands:  Add useradd, userdel, and passwd commands.
10362      - MOTD:  Now supports a Message of the Day (MOTD) that will be
10363        presented after the NSH greeting.
10364      - Session Logins:  All sessions may be protected with logins using the
10365        encrypted password in /etc/passwd.
10366      - Extended Logins.  Added optional platform-specific function to
10367        perform password verification and optional delay after each failed
10368        login attempt.
10369
10370    * Applications: apps/fsutils:
10371
10372      - apps/fsutils/passwd: Utility library for accessing a password file
10373        like /etc/passwd.
10374
10375    * Applications: apps/netutils:
10376
10377      - apps/netutils/telnetd:  Now creates Telnet sessions by opening a new
10378        factory device at /dev/telnet and then using ioctl calls to create
10379        the session character drivers at /dev/telnetN.
10380      - apps/netutils/netlib:  Add netlib_get_dripv4addr() and
10381        netlib_get_ipv4netmask().  From Pelle Windestam.
10382
10383    * Applications: apps/examples:
10384
10385      - apps/examples/module:  Add a test harness for verifying NuttX kernel
10386        modules.
10387      - apps/examples/pca9635:  Add a simple test of PCA9635PW PWM LED driver.
10388        From Alan Carvalho de Assis.
10389      - apps/examples/ostest:  Add a test of POSIX timers using SIGEV_THREAD.
10390
10391Bugfixes.  Only the most critical bugfixes are listed here (see the
10392ChangeLog for the complete list of bugfixes and for additional, more
10393detailed bugfix information):
10394
10395    * Core OS:
10396
10397      - pthreads: CRITICAL BUGFIX: Logic was wiping out the indication that
10398        of the type of a pthread.  Hence, it could be confused as a task.
10399      - waitpid:  CRITICAL BUGFIX.  Add a reference count to prevent waitpid
10400        from using stale memory released by the waited-for task group.
10401      - clock_systimespec():  Fix an error in a time conversion.
10402
10403    * File System/Block Drivers:
10404
10405      - poll(): Fix handling of sem_tickwait() return value sem_tickwait()
10406        does not return an -1+errno, it returns a negated errno value.
10407        Noted by Freddie Chopin.
10408
10409    * Common Drivers:
10410
10411      - TUN Driver:  Fix a compile time error in the TUN driver.  From
10412        Vladimir Komendantskiy.
10413      - USB Host HID Parser:  Wrong size used in memcpy().  From Hang Xu.
10414      - PCA9555: Fixed a bug in the function pca9555_setbit which occurs if
10415        someone tries to set one of the pins 8-15. The problem is that
10416        after the check if the pin is greater than 7 the variable addr is
10417        incremented and used in the Call I2C_WRITEREAD. But later in the
10418        call to the I2C_WRITE buf[0] is used as address but this address is
10419        not incremented as it should be. Note address does mean the address
10420        to the register in the ioexpander and not the I2C address.  From
10421        Stefan Kolb.
10422
10423    * Networking:
10424
10425      - TCP/IOB:  Numerous fixes, mostly relate to TCP and IOB buffering
10426        and race conditions.  These were necessary for for the NuttX
10427        networking later to be stable in some stress testing.  From Andrew
10428        Webster.
10429
10430    * Atmel SAMV7 Drivers:
10431
10432      - USBHS Device: In USBHS device driver, fix check if zero length
10433        packet is needed.
10434
10435    * STMicro STM32 Drivers:
10436
10437      - OTG FS Host:  Fix some backward arguments to stm32_putreg().  Note
10438        by Hang Xu.
10439
10440    * Tools:
10441
10442      - tools/mkdeps.c:  Extended/fixed support for --winpath option.
10443        Dependencies now work under Cygwin with a native Windows toolchain.
10444
10445    * Build System:
10446
10447      - apps/platform/Makefile:  Use a relative path to the board directory
10448        link rather than the absolute path.  For Cygwin, the absolute would
10449        would need converted with cygpath.  But just using the relative path
10450        is a simpler solution.
10451
10452NuttX-7.15 Release Notes
10453------------------------
10454
10455The 115th release of NuttX, Version 7.15, was made on March 27, 2016,
10456and is available for download from the Bitbucket.org website.  Note
10457that release consists of two tarballs:  nuttx-7.15.tar.gz and
10458apps-7.15.tar.gz.  These are available from:
10459
10460    https://bitbucket.org/patacongo/nuttx/downloads
10461    https://bitbucket.org/nuttx/apps/downloads
10462
10463Both may be needed (see the top-level nuttx/README.txt file for build
10464information).
10465
10466Additional new features and extended functionality:
10467
10468    * Core OS:
10469
10470      - Add a state variable that provides the current level of OS
10471        initialization.  This is needed by some logic that may attempt to
10472        run early in the start-up sequence but cannot run if a sufficient
10473        level of initialization has not yet occurred.
10474      - Spinlocks:  Add interface definitions for to support spinlocks as
10475        needed for multi-CPU configurations.
10476      - SMP support.  Support for Symmetric Multi-Processing (SMP) added.
10477        This affects many internal data structures, spinlock extensions
10478        and renaming of interrupt enable/disable interfaces, new platform
10479        interfaces to support CPU initialization and inter-actions, and
10480        new application interfaces to manage CPU affinity.  The changes
10481        are too extensive to summarize here; see the SMP Wiki page at
10482        http://www.nuttx.org/doku.php?id=wiki:nxinternal:smp.  The
10483        new platform interfaces are also described in the NuttX porting
10484        guide: http://www.nuttx.org/doku.php?id=documentation:portingguide.
10485        Only partially verified; awaiting hardware for the complete
10486        verification.
10487      - TLS:  Basic definitions needed to support thread local storage
10488        (TLS).  TLS is not used anywhere yet (and may not be used in the
10489        near future either).
10490      - Performance Monitoring:  Add a configuration option to buffer
10491        RTOS instrumentation data in an in-memory buffer.
10492      - boardctl():  Add boardctl() support that will permit applications
10493        to control USB devices.
10494
10495    * File Systems/Block Drivers:
10496
10497      - procfs:  Add /proc/kmm entry that shows that state of the kernel
10498        heap.  Only useful in PROTECTED and KERNEL build modes where there
10499        is a kernel heap.
10500      - procfs:  Add support for showing CPU in the tast status if SMP is
10501        enabled.
10502
10503    * Networking:
10504
10505      - ARP: Add support for IOCTL commands to manage the ARP table.
10506      - IEEE 802.15.4 and 6LowPAN:  There are some radio drivers and a
10507        directory structure is in place.  However, most of this
10508        development is occurring on a fork and is not yet available in the
10509        NuttX repositories.  Hopefully in NuttX-7.16.
10510
10511    * Common Device Drivers:
10512
10513      - ADS1242:  Driver for the  24-Bit Differential Input ADC ADS1242 that
10514        communicates via SPI with a MCU. Reading the ADC conversion result
10515        as well as configuring the ADC, setting the input channel, etc. is
10516        implemented via ioctl calls.  However, it does not yet implement
10517        the standard ADC interface.  From Alexander Entinger.
10518      - U-Blox Modem:  Add an upper half driver for the U-Blox Modem.  From
10519        Vladimir Komendantskiy.
10520      - I2C: Add an I2C, "upper half", character drivers to support raw I2C
10521        data transfers for test applications.
10522      - RGB LED: Add a driver to manage a RGB LED via PWM.  From Alan
10523        Carvalho de Assis.
10524      - Performance Monitoring:  Add a character driver that will allow an
10525        application to read buffered scheduler instrumentation data.
10526
10527    * Simulation Platform:
10528
10529      - SMP:  Add multi-CPU support to the simulation to support SMP
10530        investigation.  There are issues with the simulation and it is less
10531        than perfect but sufficient for some very preliminary testing of
10532        the core SMP feature.
10533
10534    * ARMv7-A, ARMv7-R, and ARMv7-M:
10535
10536      - ARMv7-A, ARMv7-R, and ARMv7-M: Add test-and-set logic and
10537        definitions needed to supports spinlocks.
10538      - ARMv7-A: Added MPCOre Generic Interrupt Controller (GICv2) and
10539        Global Timer support
10540      - ARMv7-A: Now includes in MCU-specific hooks needed for SMP support.
10541
10542    * Atmel SAMV7 Drivers:
10543
10544      - HSMSI: HSMCI driver can now be configured to handle unaligned data
10545        buffers.
10546
10547    * NXP Freescale LPC11xx/17xx/43xx and LPC2378 Drivers:
10548
10549      - I2C: Backported the LPC43XX I2C driver, replacing the LPC11XX,
10550        LPC17XX, and LPC2378 I2C drivers.  This gives us the I2C_TRANSFER
10551        method in all I2C drivers.
10552
10553    * NXP Freescale LPC17xx Boards:
10554
10555      - Support for the u-blox GSM and GPS module evaluation board with
10556        NXP LPCExpresso LPC1768.  The GSM module is one of LISA-C200,
10557        LISA-U200 or SARA-G350. The GPS module is one of MAX-M7 or
10558        MAX-M8.  From Vladimir Komendantskiy.
10559
10560    * NXP Freescale i.MX6:
10561
10562      - Basic support is in place for the i.MX6 Quad/Dual MCUs.
10563        Verification is, however, waiting for the receipt of hardware.
10564
10565    * NXP Freescale i.MX6 Boards:
10566
10567      - Sabre-6Quad:  Basic support for the NXP/Freescale Sabre 6Quad
10568        board is in place but waiting for hardware for verification.
10569
10570    * STMicro STM32:
10571
10572      - STM32F46xx:  Support for STM32F46xx from Paul Alexander Patience
10573      - STM32L4:  Add support for the STM32L4 family.  From Sebastien
10574        Lorquet.
10575
10576    * STMicro STM32 Boards:
10577
10578      - STM32F4 Discovery: Add PWM support for the onboard RGB LED. From
10579        Alan Carvalho de Assis.
10580      - Nucleo-L476:  Add support for the Nucleo-L476 board.  From Sebastien
10581        Lorquet.
10582      - STM32L476VG Discovery: Add support for the STM32L476VG Discovery
10583        board.  From Dave.
10584
10585    * Tools:
10586
10587      - tools/refesh.sh now has a --silent option so that it can be used in
10588        batch modes without human input.
10589
10590    * Build System:
10591
10592      - Added a 'make olddefconfig' target that will refresh a .config file
10593        without interaction.
10594
10595    * Applications: NSH
10596
10597      - 'arp':  Add an 'arp' command that will support access to the OS ARP
10598        table.
10599      - 'ps':  The 'ps' command will show CPU if SMP is enabled.
10600
10601    * Applications: apps/netutils:
10602
10603      - apps/netutils/chat: Chat logic contributed by Vladimir
10604        Komendantskiy.
10605      - apps/netutils/netlib:  Add utility functions to support accesses to
10606        the ARP table.
10607
10608    * Applications: apps/examples:
10609
10610      - apps/examples/chat: Chat example contributed by Vladimir
10611        Komendantskiy.
10612      - apps/sysem/ubloxmodem:  Example to control the power
10613        state of the modem in nsh.  From  Vladimir Komendantskiy.
10614      - apps/examples/leds: An example to demonstrate use of LED driver.
10615      - apps/examples/smp:  Add a test to verify SMP configurations.
10616      - apps/examples/rgbled:  Example using the RGB LED driver to drive an
10617        RGB LED via PWM.  From Alan Carvalho de Assis.
10618      - apps/examples/ostest:  Add a test of TLS.
10619      - apps/examples/sched_note:  Add a simple example to exercise the
10620        scheduler instrumentation logic.
10621
10622Bugfixes.  Only the most critical bugfixes are listed here (see the
10623ChangeLog for the complete list of bugfixes and for additional, more
10624detailed bugfix information):
10625
10626    * Core OS:
10627
10628      - Signals:  Move the list of signal actions from the TCB to the group
10629        structure.  Signal handlers are not per thread but, rather, per task
10630        group.  I know, I preferred it the other way too, but this is more
10631        compliant with POSIX.
10632      - Semaphores: Add an internal, non-standard interface to reset a
10633        semaphore count.  This is sometimes needed by drivers in order to
10634        recover from error conditions.  Were previously using sem_init()
10635        which is both inappropriate and incorrect if the semaphore count is
10636        negative.
10637      - Low-Priority Work Queue:  Fix logic to find an IDLE worker thread;
10638        the test for busy was backward.  From Linfei Chen.
10639
10640    * File System/Block Drivers:
10641
10642      - FAT:  Add an option to force all transfers to be performed
10643        indirectly using the FAT file system's internal sector buffers.
10644        This is a fix for the case where the user provided buffers are not
10645        properly aligned for DMA (as with THTTPD).
10646      - MTD:  Increase block size in mtd_geometry_s to 32-bits.
10647
10648    * Common Drivers:
10649
10650      - I2C:  Restructured the I2C interface as necessary to eliminate some
10651        thread-safety issues inherent in the legacy I2C interface design.
10652        This effects the interface definition, all I2C clients, and all low-
10653        level I2C drivers.  I have used caution, but I still expect a change
10654        of this magnitude to introduce some errors. Any bug reports of bug
10655        fixes will be much appreciated.
10656      - I2C_RESET:  Eliminate up_i2creset().  It should not be a global
10657        function; Now it is an I2C interface method.
10658      - PCA555:  Add logic to make the PCA555 driver thread safe.
10659      - syslog: If syslog timestamping is enabled, don't try to get the time
10660        if the timer hardware has not yet been initialized.
10661      - AT24xx driver: Correct missing address calculation logic.  From Frank
10662        Benkert.
10663
10664    * Networking:
10665
10666      - Networking drivers that support CONFIG_NET_NOINTS:  Fix a race
10667        condition that can cause the TX poll timer to stop running.  From
10668        Manuel Stuhn.
10669      - Timer Poll:  Fix some logic when there are multiple network
10670        interfaces.  In this case, TCP timeout events can really only being
10671        processed when the poll from the correct device is received.
10672
10673    * Atmel SAMV7 Drivers:
10674
10675      - SAMV7 USB HS device:  The USB driver has had some issue that would
10676        occasionally cause loss of packets.  Back last December, a fix was
10677        put in for this but the fix apparently worsens the problem; now
10678        causing hangs.  The basic problem is that the number of busy banks
10679        (NBUSYBKS) status is not real time but is delayed.  This was fixed;
10680        now when the DMA completes and NBUSYBKS > 0, the NBUSYBK is
10681        interrupt is enabled and the operations are deferred until NBUSYBKS
10682        is truly zero.
10683
10684    * Tools:
10685
10686      - tools/testbuild.sh:  .config files were not being updated because
10687        (a) kconfig-conf was being called in the wrong directory and (b)
10688        apps/Kconfig had not yet been created.  Now uses 'make
10689        olddefconfig'.
10690
10691    * Applications: apps/system:
10692
10693      - apps/system/i2c:  The I2C tool now obeys it OS interfacing: it now
10694        uses an I2C character driver to access the I2C bus.
10695      - apps/system/cdcacm, usbmsc, and composite:  Use new boardctl()
10696        instead of calling directly in the OS when possible.
10697
10698    * Applications: apps/netutils:
10699
10700      - apps/netutils/dhcpd: DHCPD no longer calls directly into the OS but
10701        uses the new network IOCTL commands to modify the ARP table.
10702
10703    * Applications: apps/modbus:
10704
10705      - apps/modbus/nuttx/portserial.c:  Was not returning an error on
10706        failure to open the device driver.  From Olololshka kokoko.
10707
10708    * Applications: apps/examples:
10709
10710      - apps/examples/usbserial, composite, usbterm:  Use new boardctl()
10711        instead of calling directly in the OS when possible.  There are
10712        still a few bad OS calls for USB device interfaces that do not yet
10713        have boardctl() commands.
10714
10715    * Applications: apps/platform:
10716
10717      - Moved C++ initialization logic out of the RTOS and into the
10718        application space, specifically to apps/platform/board, where it
10719        belongs.
10720
10721NuttX-7.16 Release Notes
10722------------------------
10723
10724The 116th release of NuttX, Version 7.16, was made on June 1, 2016,
10725and is available for download from the Bitbucket.org website.  Note
10726that release consists of two tarballs:  nuttx-7.16.tar.gz and
10727apps-7.16.tar.gz.  These are available from:
10728
10729    https://bitbucket.org/nuttx/nuttx/downloads
10730    https://bitbucket.org/nuttx/apps/downloads
10731
10732Both may be needed (see the top-level nuttx/README.txt file for build
10733information).
10734
10735Additional new features and extended functionality:
10736
10737    * Core OS:
10738
10739      - Power Management: Add activity domain to all PM interfaces and
10740        driver callbacks.  If CONFIG_PM_NDOMAINS == 1, then the legacy
10741        behavior is preserved.  If CONFIG_PM_NDOMAINS > 1, then multiple
10742        PM domains are supported.  This will allow separate control for
10743        certain power management groups.  For example, a network can be
10744        shut down without affect an ongoing UI (and vice versa).
10745      - board_app_initialize():  board_app_initialize() now accepts an
10746        argument that may be used to support initialization in different
10747        configurations.
10748
10749    * File System and Block and MTD Drivers:
10750
10751      - N25Qxxx: Add MTD support for Micron N25Qxxx family of QSPI flash.
10752        From Dave (ziggurat29).
10753      - SST26F:  Add an MTD driver for SST26F spi/qspi flash devices (SPI
10754        mode only).  From Sebastien Lorquet.
10755      - File Descriptor Detach: Add logic to detach a file structure from a
10756        file descriptor. This is for use only within the OS.  It permits an
10757        open file or driver to be used across multiple threads.
10758
10759   * Networking and Network Drivers:
10760
10761      - listen()/accept():  Separate out psock_listen() and psock_accepti()
10762        for internal, thread independent OS usage (i.e., without a socket
10763        descriptor).
10764      - VNC Server:  Add support for a VNC server.  This logic is code
10765        complete and functional, but not well tested.
10766
10767    * Graphics and Graphic Drivers:
10768
10769      - Framebuffer driver:  Add a display number to each interface in order
10770        to support multiple display devices.
10771      - VNC Server:  Add support for a VNC server.  This logic is code
10772        complete and functional, but not well tested.
10773      - LCD Backpack: Add support for PCF8574 LCD Backpack driver. This
10774        driver supports an interface board that is based on the PCF8574 I/O
10775        expander and supports the HD44780-based (or compatible) LCD modules.
10776        There are a myriad of different vendors of such, but they are
10777        principally the same, save wiring and minor features like jumpers
10778        for I2C addresses. This driver supports known and unknown variants.
10779        From Dave (ziggurat29).
10780
10781    * Common Device Drivers:
10782
10783      - RTC:  Simplify the RTC interface.  The old interface was way too
10784        complex and was not fully implemented anywhere.
10785      - BH1750FVI:  Add a character driver for Rohm Ambient Light Sensor
10786        BH1750FVI.  From Alan Carvalho de Assis.
10787      - CAN:  Improve CAN error reporting. From Frank Benkert.
10788      - aes.h:  Modifications to the crypto API needed for LPC43xx.  From
10789        Alexander Vasiljev.
10790      - ADC:  Interface no longer uses global adc_receive() call.  Added a
10791        new bind() method to the ADC interface.  Now the ADC upper half
10792        driver will register its receipt-of-data callback.  This change
10793        allows the ADC lower half driver to be used with a differ ADC upper
10794        half.
10795
10796     * Simulation Platform:
10797
10798      - Linux Host Networking:  Enhance networking support for the
10799        simulation under Linux. Includes updated support for Linux TUN/TAP,
10800        and the addition of support for Linux bridge devices.  From Steve.
10801
10802    * ARMv7-A, ARMv7-R, and ARMv7-M:
10803
10804      - ARMv7-M:  Convert more assembly language files for use with the IAR
10805        toolchain.  From Kha Vo.
10806      - ARMv7-A:  Complete re-design of SMP-related logic to initialize each
10807        CPUn, n > 0, when CONFIG_SMP=y.
10808
10809    * Atmel SAMV7:
10810
10811      - Add a JTAG config and ERASE config to Kconfig to set the
10812        CCFG_SYSIO SYSIO Pins.  From David Sidrane.
10813      - System Reset: Add the up_systemreset interface to the samv7 arch.  The
10814        approach is slightly different in that: 1) It enables ARCH_HAVE_RESET
10815        and allows the user to set if, and for how long, to drive External
10816        nRST signal. It also does not contain a default board_reset, as that
10817        really should be done in the config's src if CONFIG_BOARDCTL_RESET
10818        is defined.  From David Sidrane.
10819
10820    * Atmel SAMV7 Boards:
10821
10822      - SAMV71-XULT: Add configuration(s) that were be used to verify VNC
10823        graphics output as well as mouse and keyboard input.
10824
10825    * NXP Freescale i.MX6 Boards:
10826
10827      - Sabre-6Quad:  The basic i.MX6 port is complete.  This is a minimal
10828        port at present and probably still has some as-of-yet-undiscovered
10829        issues.
10830      - Sabre-6Quad: Basic SMP NSH configuration is now working.  But this
10831        is probably only because the SMP test case does not stress the
10832        logic.  There are know outstanding SMP issues as noted in the
10833        Sabre-6Quad README.txt file.
10834
10835    * NXP Freescale LPC43xx:
10836
10837      - LPC4337jet100: Add definitions for the LPC4337jet100 chip.  From
10838        Alexander Vasiljev.
10839
10840    * NXP Freescale LPC43xx Drivers:
10841
10842      - AES:  Add AES support.  From Alexander Vasiljev.
10843
10844    * STMicro STM32:
10845
10846      - STM32 L4: Add configuration options to allow SRAM2 to be used for
10847        heap, or not at all, and to zero-initialize it on OS start, or not
10848        at all. From Dave dev@ziggurat29.com.
10849      - STM32 L4: Add support for HSE and MSI clocks, and auto trim of MSI
10850        to LSE (needed for USB).  From Dave (ziggurat29)
10851      - STM32 L4: Add support for unique id function to arch; modified board
10852        to support unique id boardctl.  From Dave (ziggurat29)
10853
10854    * STMicro STM32 Drivers:
10855
10856      - STM32 F4 RTC: Add a custom RTC driver with support for alarms.  From
10857        Neil Hancock.
10858      - STM32 L4 QSPI: Add a QSPI driver with DMA support and (optional
10859        memory mapped mode support. From Dave ziggurat29).
10860      - STM32, STM32 L4, and STM32 F7 Serial:  Add support for compliant
10861        SD-style breaks. From David Sidrane.
10862      - STM32 L4 CAN: Add CAN support for STM32L4.  From Sebastien Lorquet.
10863      - STM32 1-Wire:  Add support for a custom 1-wire driver.  The serial
10864        driver already supports a 1-wire interface, but this driver uses the
10865        same serial logic to implement a lower half driver much like the
10866        I2C lower half driver.  From Aleksandr Vyhovanec.
10867      - STM32 L4 SPI: Add support for SPI 4 and 5 on stm32f411 chips. From
10868        Konstantin Berezenko.
10869      - STM32 ADC: Allow omitting use of channels in a lower part of PWM.
10870        From Pierre-noel Bouteville.
10871      - STM32 L4 I2C: Get I2C working for STM32L4.  From Dave (ziggurat29).
10872
10873    * STMicro STM32 Boards:
10874
10875      - STM3220G-EVAL:  Add support for both the IAR and uVision GCC IDEs.
10876        From Kha Vo.
10877      - STM32F429I Discovery:  Add support for the uVision GCC IDE.   From
10878        Kha Vo.
10879      - STM32F4 Discovery: Integrate BH1750FVI driver in the STM32F4 Discovery
10880        board.  From Alan Carvalho de Assis.
10881      - STM32L476VG Discovery:  Add support for QSPI based N25Qxxx flash.
10882        From Dave (ziggurat29)
10883      - STM32L476VG Discovery: Add board ioctls for allowing user application
10884        to cause QSPI memory mapped mode to be engaged and disengaged.  Also
10885        partitioned QSPI flash for file system and other (eventually xip).
10886        From Dave (ziggurat29)
10887      - Nucleo-144: Basic port for the Nucleo-144 board with the STM32F746ZG
10888        MCU.  From Kconstantin Berezenko.
10889      - STM32F103 Minimum: Add support for this minimual STM32F103CBT6 "blue"
10890        board.  From Alan Carvalho de Assis.
10891      - STM32F411E Discovery:  Add basic configuration for stm32f411e-disco
10892        board with STM32F411VE chip.  From Konstantin Berezenko.
10893
10894    * Build/Configuration System:
10895
10896      - Moved NuttX repository to https://bitbucket.org/nuttx/nuttx.
10897        Eliminated use of sub-modules.
10898      - Add support for the IAR toolchain for the limited case of the ARMv7-M
10899        architecture and the STM32 chip.  From Aleksandr Vyhovanec.
10900      - make export: Pass top-level make to the script to allow -j greater
10901        than 1.  From David Sidrane.
10902      - fs/Kconfig:  Allow CONFIG_FS_WRITABLE to be manually selectable. This
10903        is needed when there are no writable file systems, but write support
10904        is still needed in BCH or FTL.
10905      - arch/*/Makefile: Add definitions that can be overrided to use GCC
10906        instead of LD in the final link.  From Paul Alexander Patience .
10907
10908    * Applications: apps/netutils:
10909
10910      - apps/netutils/esp8266:  ESP8266 driver application.  From Pierre-noel
10911        Bouteville.
10912
10913    * Applications: apps/examples:
10914
10915      - apps/examples/alarm:  Add a simple test of the ALARM iotcl calls of
10916        the RTC driver.
10917      - apps/examples/nximage:  Add a configuration option to select
10918        greyscale.
10919
10920    * Platforms: apps/platform:
10921
10922      - apps/platform/nucleo-144: Add platform files for NUCLEO-144
10923        (NUCLEO-F746ZG).  From Mark Olsson.
10924      - apps/examples/media:  You can now override the default device driver
10925        path by providing an alternal path on the command line.  From
10926        S�bastien Lorquet.
10927
10928Works-In-Progress:
10929
10930    * IEEE802.14.5/6LowPAN.  Hooks and framework for this effort were
10931      introduced in NuttX-7.15.  Work has continued on this effort on
10932      forks from the main repositories, albeit with many interruptions.
10933      The completion of this wireless feature will postponed until at
10934      least NuttX-7.17.
10935
10936    * i.MX6 SMP.  Partially functional, but there is more that still
10937      needs to be done.
10938
10939Bugfixes.  Only the most critical bugfixes are listed here (see the
10940ChangeLog for the complete list of bugfixes and for additional, more
10941detailed bugfix information):
10942
10943    * Core OS:
10944
10945      - Various places:  Search for places where a stray semicolon following
10946        an if condition cause the if body to be executed unconditionally.
10947        Fixes in all SAM DMA logic, unionfs, OS signalling logic, and others.
10948      - enter/leave_critical_section() may attempt to access task lists
10949        before they have been initialized in the SMP configuration.
10950
10951    * File System/Block Drivers:
10952
10953      - SMART MTD:  Return code of smart_scan not checked, can cause success
10954        result in failure case, leading to 'dev' pointer being invalid. From
10955        Dave (ziggurat29)
10956      - mount: Fix a backward debug assertion.  Noted by David Sidrane.
10957
10958    * Common Drivers:
10959
10960      - NRF24L01: Fix backward calculation of relative frequency.  Noted by
10961        Henry Zhang.
10962      - PCA9555 I/O expander: Fix an error in the PCA9555 driver: Under
10963        certain error conditions, interrupts were not being re-enabled.
10964        Sebastien Lorquet.
10965      - ADS1255: Must not do SPI access from interrupt handler.  Use the
10966        worker thread instead.  Must also lock the SPI bus before using it.
10967      - Several SPI-based drivers modified.  All drivers that use SPI must
10968        call SPI_LOCK and SPI_UNLOCK.  This is not optional.
10969      - MS583730:  Fix a bug in crc computation for ms583730. Implement
10970        POSIX read.
10971
10972    * Atmel SAMV7:
10973
10974      - Fix typo in MATRIX register definitions.  From Stefan Kolb.
10975      - SAMV7 Tickless Mode: This is a fix to a problem in the handling of
10976        the oneshot timer. Due to a wrong assumption concerning the behavior
10977        directly after the start of the timer/counter the function
10978        sam_oneshot_cancel(�) calculates the wrong remaining time. The code
10979        assumes that the counter register is zero directly after the start
10980        of the timer, but this is not true. To start the time/counter a
10981        software trigger is invoked, this trigger starts the timer/count and
10982        sets the counter register to zero, but the reset of the counter
10983        register is not performed instantly. According to the datasheet:
10984        "The counter can be reset by a trigger. In this case, the counter
10985        value passes to zero on the next valid edge of the selected clock."
10986        Thus the counter is set to zero between 0 and USEC_PER_TICK
10987        microseconds after the clock was started.
10988        In my fix I use the freerun count value to determine if at least one
10989        tick passed since the start of the timer and thus if the value of
10990        the oneshot counter is correct. I also tried to use the function
10991        up_timer_gettime(�) to achieve this but, at least if compiled with
10992        no optimization the problem vanishes without using the value of the
10993        function, the function call takes too long.
10994        Another problem treated in the fix is that if the oneshot timer/counter
10995        is canceled, we only know the remaining time with a precision of
10996        USEC_PER_TICK microseconds. This means the calculated remaining time
10997        is between 0 and USEC_PER_TICK microseconds  too long. To fix this I
10998        subtract one tick if the calculated remaining time is greater than
10999        one tick and otherwise set the remaining time to zero. By doing so
11000        the measured times are much more precise as without it.  From Stefan
11001        Kolb.
11002
11003    * Atmel SAMA5:
11004
11005      - SAMA5:  Stefan Kolb's change to the SAMV7 Oneshot Timer should also
11006        be applied to the SAMA5 oneshot time since the drivers are identical.
11007
11008    * Atmel SAM3/4:
11009
11010      - SAM3/4:  Stefan Kolb's change to the SAMV7 Oneshot Timer should also
11011        be applied to the SAM3/4 oneshot time since the drivers are identical.
11012
11013    * Atmel SAMV7 Drivers:
11014
11015      - SAMV7 TWIHS (as well as SAM3/4 and SAMA5:  Ensure that the TWIHS
11016        (i2c) hw get's its clock set when the sequence of
11017        sam_i2cbus_initialize(), sam_i2cbus_uninitialize(), then
11018        sam_i2cbus_initialize() or twi_reset() is called.  I found this a
11019        while back in the stm32 family, so there may be more arch-es with
11020        this sort of bug. I suppose any driver that has the notion of "do
11021        not set the freq if it is already set" could be suspect.  From David
11022        Sidrane.
11023      - USBHS Device: Remove disabling of whole USB on suspend of USBHS.
11024        This fix removes the disabling of the whole USB peripheral on
11025        suspend interrupt. Its enough to freeze the clock instead. When
11026        disabling the whole peripheral, the next wakeup-interrupt comes up
11027        with an disabled clocking. The unfreeze clock has no effect, because
11028        the master clock is disabled. This makes all registers, including
11029        the IDR unwriteable and the IRQ falls in an endless loop blocking
11030        the whole system. Furthermore the disabling of the peripheral clock
11031        prevents hotplugging or reconnecting the USB.  From  Frank Benkert.
11032      - MCAN: Fix missing unlock of device in MCAN mcan_txempty().  From
11033        Frank Benkert.
11034
11035    * STMicro STM32:
11036
11037      - STM32 L4 Clocking: Problem with resetting backup domain clears
11038        clocking options set up before in *rcc.c use INITS flag to avoid
11039        magic reg value to detect power up reset state of RTC correct a
11040        problem clearing interrupt flags (they weren't) which prevented an
11041        alarm from ever being used more than once per reset cycle.  From
11042        Dave (ziggurat29)
11043
11044    * STMicro STM32 Drivers:
11045
11046      - STM32L4 SPI: That STM32Lr SPI driver is quite different. They now
11047        handle frames of arbitrary size between 4 and 16 bits. It was broken
11048        before a new bit has to be set (RX fifo threshold) to handle <= 8-bit
11049        transactions. If not set, the default is 16-bit packed >=8-bit
11050        frames and the RXNE bit is never set (it is set when 16-bits are
11051        received). weird things as always. This also add 8-bit access
11052        routines to the data register, because a 16-bit access to the data
11053        register when the frame size is below 9 bits is interpreted as a
11054        packed dual frame exchange. Sebastien Lorquet.
11055      - STM32:  Correct some bad commits that broke the LTDC display example.
11056        From Marco Krahl.
11057      - STM32 F4 RTC: Fix logic in F4 RTCC driver that prevent ALARM
11058        interrupt.  From Neil Hancock.
11059      - STM32 F1 ADC: Fix STM32 ValueLine ADC IRQ number selection. From
11060        David Sidrane.
11061
11062    * STMicro STM32 Boards:
11063
11064      - STM32F429I Discovery:  Correct some bad commits that broke the LTDC
11065        display example.  From Marco Krahl.
11066
11067    * TI Tiva:
11068
11069      - GPIO Interrupts: Fix a bug of GPIO falling-edge interrupt for tiva.
11070        From Young.
11071
11072    * C Library:
11073
11074      - math: Add a NAN test on 'x' in asin function of lib_asin.c. Suggested
11075        by Pierre-noel Bouteville.
11076
11077    * Build/Configuration System:
11078
11079      - Several Makefiles: Add .PHONY definitions to prevent 'clean up to date'
11080        message weirdness when 'make clean' is done with no .config or
11081        Make.defs file.
11082
11083NuttX-7.17 Release Notes
11084------------------------
11085
11086The 117th release of NuttX, Version 7.17, was made on July 25, 2016,
11087and is available for download from the Bitbucket.org website.  Note
11088that release consists of two tarballs:  nuttx-7.17.tar.gz and
11089apps-7.17.tar.gz.  These are available from:
11090
11091    https://bitbucket.org/nuttx/nuttx/downloads
11092    https://bitbucket.org/nuttx/apps/downloads
11093
11094Both may be needed (see the top-level nuttx/README.txt file for build
11095information).
11096
11097Additional new features and extended functionality:
11098
11099    * File System and Block and MTD Drivers:
11100
11101      - drivers/mtd: Add a driver of IS25xP SPI flash devices.  Based on
11102        sst25xx driver.  From Marten Svanfeldt.
11103
11104    * Networking and Network Drivers:
11105
11106      - Break out internal interface psock_ioctl().
11107
11108    * Common Device Drivers:
11109
11110      - PTYs: Added support for pseduo-terminals: Device drivers that can be
11111        used for communications between tasks (usually with re-directed I/O).
11112        Based on existing pipe logic.
11113      - Button upper half driver:  Added support for poll().
11114      - CAN:  Add support for poll. From Paul Alexander Patience.
11115      - GPIO:  Add support for a simple GPIO driver.  It supports only pre-
11116        configured input, output, and interrupting pins with basic input and
11117        output operations.  Interrupt events can lead to notification via a
11118        signal.
11119      - I/O Expander: Shadow-Mode: The output- and configuration registers of
11120        the IO-Expander are held in the microcontrollers memory and only
11121        written to the IO-Expander.  This reduces bus traffic and is more
11122        error-proof than the normal read-modify-write operation. Retry Mode:
11123        If enabled and an error occurs while writing to the IO-Expander the
11124        current transmission is automatically repeated once. From Michael
11125        Spahlinger.
11126      - Pipes/FIFOs:  Add support to allocating different sizes for pipe and
11127        fifo buffers.  Adds mkfifo2() and pipe2() which are just like mkfifo()
11128        and pipe(), but allow control of the size of the underlying, in-memory
11129        circular buffer.  Move pipe() and mkpipe() to the C library, they are
11130        no longer core OS interfaces.  Capability currenty used only by PTY
11131        logic to support, configurable, smaller buffers for PTYs.
11132
11133    * SYSLOG/Debug Output:
11134
11135      - SYSLOG: Consolidated all SYSLOG logic in drivers/syslog.  Added an
11136        abstraction layer that supports:  (1) redirection of SYSLOG outpout.
11137        This is usually so that you can boot with one SYSLOG output but
11138        transition to another SYSLOG output when the OS has initialialized,
11139        (2) adds common serialization of interrupt output as a configuration
11140        option.  Without this configuration setting, interrupt level output
11141        will be asynchronous.  And (3) vsyslog is now a system call and is
11142        usable with other-than-FLAT builds.
11143      - SYSLOG: syslog() will now automatically redirect output to
11144        lowsyslog() if called from an interrupt handler.
11145      - Extended SYSLOG logic so that we can send SYSLOG output to a file.
11146      - SYSLOG character device channel will now expand LF to CR-LF.
11147        Controllable with a configuration option.
11148      - Add a SYSLOG character device that can be used to re-direct output
11149        to the SYSLOG channel (Not be be confused the SYSLGO output to a
11150        character device).
11151      - Debug features are now enabled separately from debug output.
11152        (1) CONFIG_DEBUG is gone. It is replaced with CONFIG_DEBUG_FEATURES.
11153        (2) The macros dbg() and vdbg() have renamed as _err() and _info(),
11154        respectively. This also applies to all of the variants as well,
11155        XXdbg() and XXvdbg().  (3) Add a new debug level, _warn() (and
11156        all variants XXwarn(), XXvwarn(), etc.). (4) Debug assertions can
11157        now be enabled separately from debug output. (5) You can now enable
11158        subsystem/device driver debug output at different output levels. For
11159        example, CONFIG_DEBUG_FS no longer enables file system debug output
11160        It enables general file system debug logic and enables selection of
11161        CONFIG_DEBUG_FS_ERROR, CONFIG_DEBUG_FS_WARN, and CONFIG_DEBUG_FS_INFO.
11162      - Since the SYSLOG layer now automatically handles low-level vs.
11163        high-level output, the low-level (ll) variants of the debug macros
11164        were eliminated.
11165      - Reviewed all uses of *err().  These macro family should indicate
11166        only error conditions.  Convert *err() to either *info() or add
11167        ERROR:, depending on if an error is reported.
11168      - _alert(): New debug macro: _alert().  This is high priority,
11169         unconditional output and is used to simplify and standardize crash
11170         error reporting.
11171      - Many CONFIG_DEBUG_* options did not have matching macros defined in
11172        include/debug.h.  Rather, there were various definitions scattered
11173        throughout the sourse tree.  These were collected together and
11174        centralized with single macro definitions in include/debug.h
11175
11176    * Simulation Platform:
11177
11178      - Added the simulated QSPI (N25Q) flash to the simulation and extened
11179        flash simulation capabilities to run with MTD drivers based on config
11180        options (currently m25p, sst26 and w25). From Ken Pettit.
11181
11182    * Atmel SAMV7 Drivers:
11183
11184      - SPI: SPI-Freq. 40MHz; VARSELECT; hw-features This change adds the
11185        following improvements:
11186
11187          o Increase the allowed SPI-Frequency from 20 to 40 MHz.
11188          o Correct and rename the "VARSELECT" option   This option was
11189            included in the code as "CONFIG_SPI_VARSELECT" but nowhere
11190            defined in a Kconfig file. The change renames it to
11191            "CONFIG_SAMV7_SPI_VARSELECT" and corrects the implementation
11192            according the datasheet of Atmel. In short, this option
11193            switches the processor from "fixed peripheral selection"
11194            (single device) to "variable peripheral selection" (multiple
11195            devices on the bus).
11196          o Add a new Function to the interface to control the timing and
11197            delays of the chip according the ChipSelect lines. This function
11198            can control the delay between the assertion of the ChipSelect and
11199            the first bit, between the last bit and the de-assertion of the
11200            ChipSelect and between two ChipSelects. This is needed to tune
11201            the transfer according the specification of the connected devices.
11202          o Add three "hw-features" for the SAMV7, which controls the behavior
11203            of the ChipSelect:
11204              - force CS inactive after transfer: this forces a (short) de-
11205                assertion of the CS after a transfer, even if more data is
11206                available in time
11207              - force CS active after transfer: this forces the CS to stay
11208                active after a transfer, even if the chip runs out of data.
11209                Btw.: this is a prerequisit to make the LASTXFER bit working
11210                at all.
11211              - escape LASTXFER: this suppresses the LASTXFER bit at the end
11212                of the next transfer. The "escape"-Flag is reset automatically.
11213
11214        From Frank Benkert
11215      - TWISHS:  Driver improvements from Michael Spahlinger.
11216      - GPIO-Driver fixed for Open-Drain Pins:
11217
11218          o sam_gpioread: Now the actual line level from the pin is read
11219            back.   This is extremely important for Open-Drain Pins, which
11220            can be used bidirectionally
11221          o Re-Implemented twi_reset-function and enhanced it so it can be
11222            called from inside the driver (see next point)
11223          o Glitch-Filter: Added a configuration option to enable the twi-
11224            built-in glitch filter
11225          o Added a "Single Master Mode": In EMC Testing the TWI-Bus got
11226            stuck because the TWI-Master detected a Multi-Master access (but
11227            there is no second master). With the option "Single Master" we
11228            detect these events and automatically trigger a twi_reset. We
11229            also do an automatic recovery if a slave got stuck (SDA stays
11230            low).
11231
11232        With the above changes I�C-Bus reliability in harsh environments (eg.
11233        EMC) is greatly improved. The small change in the GPIO-Driver was
11234        necessary because otherwise you cannot read back the correct line
11235        status of Open-Drain Outputs and this is needed by the twi_reset
11236        function.  From Michael Spahlinger
11237
11238    * NXP Freescale LPC43xx Drivers:
11239
11240      - EMC: Extend LPC43xx EMC code to support SDRAM on a dynamic memory
11241        interface.  From Vytautas Lukenskas.
11242
11243    * NXP Freescale Kinetis:
11244
11245      - Kinetis K64:  Add basic support for the K64 family.  I leveraged the
11246        changes from https://github.com/jmacintyre/nuttx-k64f and merged
11247        into the existing kinetis code  with a lot of changes and additions
11248        (like pin multiplexing definitions).
11249
11250    * NXP Freescale Kinetis Drivers:
11251
11252      - Add a KinetisUSB device controller driver.  Derived from the pic32mx
11253        usb driver, which uses the same usb controller.  From kfazz.
11254      - Kinetis pwm support, based on the KL pwm driver.  From kfazz.
11255      - Kinetis Ethernet:  Add support for the KSZ8081 PHY.
11256      - Kinetis Ethernet:  Modified Ethernet driver to try all PHY addresses
11257        and then only fail if the driver cannot find a usable PHY address.
11258        This means that you no longer have to specific the PHY address in
11259        advance.
11260      - Kinetis Ethernet:  Add support for CONFIG_NET_NOINTS.  The driver no
11261        longer runs the networking at interrupt level but can defer interrupt
11262        work to the high-priority work queue.
11263
11264    * NXP Freescale Kinetis Boards:
11265
11266      - Teensy-3.x:  Add USB support and a usbnsh configuration.
11267        From kfazz (2016-06).
11268      - Freedom-K64F: Add support for the NXP Freedom-K64F board at 120MHz.
11269        This is primarily the work of Jordan Macintyre.  I leveraged this
11270        code from https://github.com/jmacintyre/nuttx-k64f which was, itself,
11271        a leverage from the old K60 TWR configuration.  This includes
11272        significant corrections (LEDs, buttons, README, etc) and extensions
11273        and updates to match more recent BSPs.
11274      - Freedom-K64F:  Added a configuration that supports networking.
11275
11276    * STMicro STM32:
11277
11278      - STM32 F1-4: Added support for the STM32F105R.  From Konstantin
11279        Berezenko.
11280      - STM32 F4: Added support for the STM32FF76xxx and STM32FF7xx
11281        families. From David Sidrane.
11282      - STM32 F1-4:  Add support for Tickless mode (two timer
11283        implementation).  From Max Neklyudov.
11284      - STM32 L4: Add support for tickless OS, and incidentally timers,
11285        PWM, oneshot, free-running....  From ziggurat29.
11286
11287    * STMicro STM32 Drivers:
11288
11289      - STM32 F1-4: Add the up_getc() function to STM32 in order to support
11290        the minnsh configuration.  From Alan Carvalho de Assis.
11291      - STM32 F7: Add SPI driver.  From David Sidrane.
11292      - STM32 F7: Add SPI, I2C, and ADC drivers.  From Lok Tep.
11293      - STM32 L4: Add ioctls to set/get CAN bit timing in stm32l4.  Add
11294        ioctl hooks to allow future management of can id filters. From
11295        Sebastien Lorquet.
11296      - STM32 L4: Add some CAN mode IOCTL calls.  These will be useful for
11297        device autotest when the application boots.  They are redundant
11298        with the CONFIG_CAN_LOOPBACK option, which can now just be
11299        interpreted as a default setting.  From Sebastien Lorquet.
11300      - STM32 F1-4: Port STM32L4 CAN IOCTLs to STM32.  From Sebastien Lorquet.
11301      - STM32 L4: Implementation of loopback IOCTLs.  From Sebastien
11302        Lorquet.
11303      - STM32 F7: Added SDMMC1 support for stm32F7 74-75.  From Lok Tep.
11304      - STM32 F7: Add USB support.  From Lok Tep.
11305      - STM32 F7: Added PWR, RTC, and BBSRAM support for stm32f7. From David
11306        Sidrane.
11307      - STM32 F7: Added STMF7xxx RTC.  From David Sidrane.
11308      - STM32 F7: Added STM32F7 DBGMCU.  From David Sidrane.
11309      - STM32 L4: Port support for both RX FIFOs from STM32 CAN.  From Paul
11310        Alexander Patience.
11311
11312    * STMicro STM32 Boards:
11313
11314      - Added a minnsh configuration for the STM32F103-Minimum board.  From
11315        Alan Carvalho de Assis .
11316      - Added support for the Nucleo-F767ZI board. From David Sidrane.
11317      - Nucleo-144/Nucleo-F767ZI:  Add test for STM32 F7 SPI.  From David
11318        Sidrane.
11319      - Nucleo-144: Added SDMMC support to Nucleo-144. From David Sidrane.
11320      - Olimex STM32-E4077:  Add support for Olimex STM32 E407 board.  From
11321        Mateusz Szafoni.
11322      - Nucleo-144: Added USB OTG device to Nucleo-144.  From David Sidrane.
11323      - Nucleo-144: Added bbsram test to Nucleo-144.  From David Sidrane.
11324      - STM32F4 Disovery:  Add CAN support for STM32F4 Discovery.  From
11325        Matthias Renner.
11326      - STM32F4 Disovery:  added a canard configuration files.  From
11327        Matthias Renner.
11328      - STM32F4 Discovery: Add FPU support for ostest for the STM32F4
11329        Disovery platform. From David Alessio.
11330      - STM32L476 Discovery: Update stm32l476 disco to include init code for
11331        smartfs and nxffs for cases where those fs are included in build.
11332        From ziggurat29.
11333
11334    * C Library/Header Files:
11335
11336      - include/assert.h: Check if NDEBUG is defined.  From Paul Alexander
11337        Patience.
11338      - assert.h: Define static assert for C++ usage.  From Paul Alexander
11339        Patience.
11340      - Add crc64 support. From  Paul Alexander Patience.
11341      - hex2bin:  Move the portable library portion of apps/system/hex2bin
11342        the C library with the OS internals.  It is used in certain internal
11343        boot-loader builds.
11344      - Add raise().
11345      - libm: This change should significantly improve the performance of
11346        single precision floating point math library functions. The vast
11347        majority of changes have to do with preventing the compiler from
11348        needlessly promoting floats to doubles, performing the calculation
11349        with doubles, only to demote the result to float. These changes only
11350        affect the math lib functions that return float. From David Alessio.
11351      - printf(): If there are no streams, let printf() fall back to use
11352        syslog() for output.
11353      - Move pipe() and mkpipe() to nuttx/libc, they are no
11354        longer core OS interfaces.  Capability currenty used only by PTY logi
11355        to support, configurable, smaller buffers for PTYs.
11356      - Move driver-related files from include/nuttx to include/nuttx/drivers.
11357        Move driver related prototypes out of include/nuttx/fs/fs.h and into
11358        new include/drivers/drivers.h.
11359      - include /nuttx/lib: Move library-related files from include/nuttx to
11360        include/nuttx/lib.
11361
11362    * Build/Configuration System:
11363
11364      - Custom Board Configuration: Add logic to support custom board
11365        directories that include a Kconfig file.  During the context phase
11366        of the build, any Kconfig file in the custom board directory is
11367        copied into configs/dummy, replacing the existing Kconfig file with
11368        the target Kconfig file.
11369      - Remove the includes/apps link to apps/include.  It is no longer
11370        used.  From Sebastien Lorquet.
11371
11372    * Tools:
11373
11374      - tools/tesbuild.sh will now build NxWM configurations.
11375
11376    * Appplication Build/Configuration System:
11377
11378      - Change to the way that apps/ Kconfig files are generated in
11379        order to better support reuse of the apps/ directory in NuttX
11380        products.  Changes include: Make the full tree use wildcards
11381        make.defs, Add empty preconfig rules to 'leaf' makefiles, Use
11382        directory.mk for recursive dir makefiles, Individual app kconfig
11383        fixes, Recursive Kconfig autogeneration, Add kconfig files for
11384        pcode and tiff, and fix a gitignore rule,  From S�bastien Lorquet.
11385      - apps/include directory structure reorganized.  There are no longer
11386        any header files in the apps/include/. directory.  Rather, sub-
11387        directories were added to match the partitioning of apps/ sub-
11388        directories and the header files were moved into the appropriate
11389        sub-directory.  This change is intended to help with some changes
11390        being considered by S�bastien Lorquet.
11391      - Call all includes from <apps/bla/bla.h> to "bla/bla.h". From Sebastien
11392        Lorquet.
11393      - Add apps/include to include path in top-level Make.defs file.
11394
11395    * Applications: apps/nshlib:
11396
11397      - Make NSH net-initialization be a configuration option. From Marten
11398        Svanfeld.
11399      - Add NTP client initialization in NSH network startup logic.  From
11400        David S. Alessio .
11401      - 'ps' command now prints out the stack usage if stack coloration is
11402        enabled.  From Frank Benkert.
11403      - Allow stack usage to be disabled on constrained systems. From David
11404        Sidrane.
11405
11406    * Applications: apps/netutils:
11407
11408      - NTP Client:  Add retries.  From David S. Alessio.
11409      - NTP Client:  The NTP client will now optionally use pool.ntp.org as
11410        the NTP server; and reset the retry count upon success -- more robust.
11411        From David Alessio.
11412      - ESP8266: Add logic to set the BAUD rate.  From Pierre-noel Bouteville.
11413      - ESP8266: In Kconfig, select ARCH_HAVE_NET when NETUTILS_ESP8266 is
11414        selected.  This allows, among other things, support for network debug
11415        output.  From Pierre-noel Bouteville.
11416
11417    * Applications: apps/fsutils:
11418
11419      - flash_eraseall: IOCTL wrapper for MDCIO_BULKERASE command.   Was in
11420        nuttx/drivers/mtd.  Moved to apps/fsutils because the call directly into
11421        the OS was incorrect.
11422
11423    * Applications: apps/canutils:
11424
11425      - canlib: Basic CAN utility library. From Sebastien Lorquet.
11426
11427    * Platforms: apps/system:
11428
11429      - flash_eraseall: Now uses the IOCTL wrapper at apps/fsutils/flash_eraseall.
11430
11431    * Platforms: apps/platform:
11432
11433      - Add platform files for Olimex STM32 E407.  From Mateusz Szafoni.
11434
11435    * Applications: apps/examples:
11436
11437      - apps/examples/canard:  Add canard example application.  From
11438        Matthias Renner.
11439      - apps/examples/pty_test: PTY test program.  From Alan Carvalho de
11440        Assis.
11441
11442Works-In-Progress:
11443
11444    * IEEE802.14.5/6LowPAN.  Hooks and framework for this effort were
11445      introduced in NuttX-7.15.  Work has continued on this effort on
11446      forks from the main repositories, albeit with many interruptions.
11447      The completion of this wireless feature will postponed until at
11448      least NuttX-7.18.
11449
11450    * i.MX6 SMP.  Partially functional, but there is more that still
11451      needs to be done.
11452
11453Bugfixes.  Only the most critical bugfixes are listed here (see the
11454ChangeLog for the complete list of bugfixes and for additional, more
11455detailed bugfix information):
11456
11457    * Core OS:
11458
11459      - semaphores: Need to set errno to EINVAL on errors in sem_post()
11460        and sem_wait(). From Paul Alexander Patience.
11461
11462    * File System/Block Drivers/MTD Drivers:
11463
11464      - Several MTD FLASH drivers nullify the freed 'priv' structure and
11465        failed to return NULL as stated in the comments. Result, will
11466        operate on a NULL pointer later.  Noted by David Sidrane.
11467      - VFS ioctl().  Per comments from David Sidrane, file_ioctl() should
11468        not return succeed if the ioctl method is not supported.  It
11469        probably should return ENOTTY in that case.
11470      - SST26 Driver: Before accessing the sst26 flash, the "Global Unlock"
11471        command must me executed, which I do in the sst26 driver.  BUT re-
11472        reading the datasheet, the WREN instruction is required to enable
11473        the execution of this command. This was not done. I have no idea how
11474        the driver currently works except by chance. The writes should never
11475        happen at all, the flash is half-enabled!  From Sebastien Lorquet.
11476      - N25Qxx Driver: Alter the notion of 'blocksize' to be equivalent to
11477        'flash write page size' in order to align with assumptions in the
11478        smartfs driver (at least, maybe other things do as well).  Correct a
11479        bug that was previously masked by having blocksize=eraseblocksize
11480        which would cause buffer overflows and delicious hardfaults.
11481        Trivial spelling changes in comments, etc.  From ziggurat29.
11482      - SmartFS: Fix a 32-byte memory leak.  From Ken Pettit.
11483      - SMART MTD layer: Fixes freesector logic error when sectorsPerBlk=256,
11484        adds DEBUGASSERT for invalid geometry and additional memory debug
11485        logic.  Also fixes the dangling pointer on error bug.  From Ken
11486        Pettit.
11487
11488    * Common Drivers:
11489
11490      - USB CDC/ACM Device Class: cdcacm_unbind leaks write request objects.
11491        This arises due to freeing the bulk IN endpoint before the loop
11492        that frees the requests via cdcasm_freereq.  That function checks
11493        the parameters and skips the freeing if either is NULL.  Freeing
11494        the bulk IN enpoint will cause the first param to be NULL, thereby
11495        bypassing the free operation.  To fix, I moved the release of the
11496        bulk IN endpoint until after to loop (much as was the case for the
11497        OUT and read requests, which did not exhibit the problem).  From
11498        ziggurat29.
11499      - Pipes and FIFOs: Add missing configuration for pipe ring buffer
11500        size.  From Frank Benkert.
11501      - UART 16550: Handle when CONFIG_SERIAL_UART_ARCH_IOCTL is not
11502        enabled. From Heath Petersen.
11503      - Common Serial Upper Half:  Fix a race condition noted by Stefan
11504        Kolb.  Between the test if the TX buffer is full and entering a
11505        critical section, bytes may be removed from the TX buffer making
11506        the wait unnecessary.  The unnecessary wait is an inefficiency,
11507        but not really a problem.  But with USB CDC/ACM it can be a problem
11508        because the entire TX buffer may be emptied when we lose the race.
11509        If that happens that uart_putxmitchar() can hang waiting for data
11510        to be removed from an empty TX buffer.
11511      - USB MSC Device Class: Add locks when removing request from queue.
11512        From Wolfgang Reissnegger.
11513      - USB MSC Device Class: Fix reversed logic on waiting for SCSI thread
11514        start.  The scsi thread was waiting for the wrong condition.
11515        However, this was masked by the fact that the code creating the
11516        scsi thread was also holding usbmsc_scsi_lock(priv) while
11517        initializing data, hence this lock synchronized the scsi thread
11518        start with init completion.  From Wolfgang Reissnegger.
11519
11520    * Graphics and Graphic Drivers:
11521
11522      - Correct conditional compilation in ST7565 LCD driver.  From Pierre-
11523        noel Bouteville
11524
11525    * Networking:
11526
11527      - In both IPv6 and IPv4 incoming logic:  (1) Should check if the
11528        packet size is large enough before trying to access the packet
11529        length in the IP header.  (2) In the comparison between the IP
11530        length and the full packet length, need to subtract the size of
11531        he link layer header before making the comparison or we will get
11532        false positives (i.e., the packet is really too small)
11533      - TCP Networking: While working with version 7.10 I discovered a
11534        problem in TCP stack that could be observed on high network load.
11535        Generally speaking, the problem is that RST flag is set in
11536        unnecessary case, in which between loss of some TCP packet and its
11537        proper retransmission, another packets had been successfully sent.
11538        The scenario is as follows:  NuttX did not receive ACK for some sent
11539        packet, so it has been probably lost somewhere. But before its
11540        retransmission starts, NuttX is correctly issuing next TCP packets,
11541        with sequence numbers increasing properly. When the retransmission
11542        of previously lost packet finally succeeds, tcp_input receives the
11543        accumulated ACK value, which acknowledges also the packets sent in
11544        the meantime (i.e. between unsuccessful sending of lost packet and
11545        its proper retransmission). However, variable unackseq is still set
11546        to conn->isn + conn->sent, which is truth only if no further
11547        packets transmission occurred in the meantime.  Because of incorrect
11548        (in such specific case) unackseq value, few lines further condition
11549        if (ackseq <= unackseq)is not met, and, as a result, we are going to
11550        reset label.  From Jakub Lagwa.
11551
11552    * ARMv7-M:
11553
11554      - ARM stack check: Fix double fault on IDLE task with stack size = 0.
11555        From David Sidrane.
11556
11557    * Atmel SAMV7 Drivers:
11558
11559      - CAN: CAN Message Filtering fixed: (1) stdfilters didn't work because
11560        the filter was never enabled (wrong number of bits to shift), and
11561        (2) Filters were never used because the configuration register
11562        cannot be written without using the initialization mode. Both bugs
11563        are fixed by this change. Filtering has been tested with both
11564        standard and extended identifiers and is now working properly. From
11565        Michael Spahlinger.
11566
11567    * Atmel SAMA5:
11568
11569
11570    * Atmel SAM3/4 Drivers:
11571
11572      - Fix some errors in AFEC header file.  From OrbitalFox.
11573      - DAC: DACC_WPMR_WPKEY_MASK -> DACC_WPMR_WPKEY.  From Wolfgang
11574        Reissnegge.
11575      - Timer:  Fix ops check in TCIOC_STOP.  From Wolfgang Reissnegge.
11576      - I2C: Fix reversed logic in twi_startmessage().  From Wolfgang
11577        Reissnegger.
11578      - SAM3/4 UDP: Fix handling of endpoint RX FIFO banks.  This fixes
11579        a race condition where the HW fills a FIFO bank while the SW is
11580        busy, resulting in out of sequence USB packets.
11581
11582    * Atmel SAMV7 Drivers:
11583
11584      - USBHS Device:  This change solves a problem which causes data loss
11585        while sending data via USB. This problem is caused by an incorrect
11586        handling of the endpoint state in the USB driver sam_usbdevhs.  This
11587        leads under some circumstances to situations in which an DMA
11588        transfer is setup while a previous DMA transfer is currently active.
11589        Amongst other things I introduced the new endpoint state
11590        USBHS_EPSTATE_SENDING_DMA for the fix.  To reproduce the problem, I
11591        used a program which send as many data as possible via a CDC/ACM
11592        device and verified the received data on the PC.  From Stefan Kolb.
11593
11594    * NXP Freescale Kinetis Drivers:
11595
11596      - Timers: Support up to 8 channels per timer.  From kfazz.
11597
11598    * NXP Freescale Kinetis Boards:
11599
11600      - Teensy 3.x clock fixes:  The High Gain bit in MCG_C1 was preventing
11601        teensy from booting except after a programming session. The second
11602        change doesn't appear to change any functionality, but complies with
11603        restrictions in the k20 family reference manual on FEI -> FBE clock
11604        transiions.  From kfazz.
11605
11606    * NXP Freescale LPC17xx Drivers:
11607
11608      - LPC17 Ethernet:  Needs to correctly ignore PHYID2 revision number
11609        when comparing PHY IDs.
11610
11611    * NXP Freescale LPC43xx Drivers:
11612
11613      - Fix errors in GPIO interrupt logic.  From v01d (phreakuencies)
11614      - Ethernet:  Correct auto-negotiation mode in the LPC43xx Ethernet.
11615        From Alexander Vasiljev
11616      - Writing zero to NVIC_IRQ_ENABLE has no effect.  Disable interrupts
11617        with  NVIC_IRQ_CLEAR. From Paul Alexander Patience.
11618      - SPIFI: If CONFIG_SPIFI_SECTOR512 undefined, lpc43_bwrite doesn't do
11619        actual write (probably copy/paste errors). Still not sure about
11620        current state of lpc43_spifi implementation, but for me NXFFS works
11621        with this change.  From Vytautas Lukenskas.
11622
11623    * Qemu-i486:
11624
11625      - Fix qemu-i486/ostest/Make.defs test for M32.  From Heath Petersen.
11626
11627    * SiLabs EFM32 Drivers:
11628
11629      - Fix EFM32 FLASH conditional compilation.  From Pierre-noel
11630        Bouteville
11631      - Writing zero to NVIC_IRQ_ENABLE has no effect.  Disable interrupts
11632        with  NVIC_IRQ_CLEAR. From Paul Alexander Patience.
11633
11634    * STMicro STM32:
11635
11636      - STM32 F1-F4:  In PWM driver, just update duty if frequency is not
11637        changed and PSM started.  This removeis glitch or blinking when
11638        only duty is frequently changed.  From Pierre-noel Bouteville.
11639
11640    * STMicro STM32 Drivers:
11641
11642      - STM32 F7: Fixed STM32F7 DMA stm32_dmacapable.  DMA working on SDMMC.
11643        From David Sidrane.
11644      - STM32 F1-F4 Timer Driver: Change calculation of per- timer pre-scaler
11645        value.  Add support for all timers
11646      - STM32 F1-F4: Correct conditional compilation in STM32 timer capture
11647        logic.  From Pierre-noel Bouteville
11648      - STM32 F1-F4: Fix STM32 DMA code and configuration for STM32F37X chips.
11649        From Marten Svanfeldt.
11650      - STM32 F1-F4: Fix compilation errors in debug mode of stm32_pwm.c.
11651        From Konstantin Berezenko.
11652      - STM32 F1-F4: Correct the CAN2 RX IRQ number for stm32f10xx chips.
11653        From Konstantin Berezenko.
11654      - STM32 F1-F4: Move backup domain reset to earlier in the
11655        initialization sequence (stm32_rcc.c() in order to avoid disabling
11656        LSE during RTC initialiation.  From Alan Carvalho de Assis.
11657      - STM32 F1-F4: When configuring a GPIO via stm32_configgpio() the
11658        function will first set the mode to output and then set the initial
11659        state of the gpio later on.  If you have an application with an
11660        externaly pulled-up pin, this would lead to a glitch on the line
11661        that may be dangerous in some applications (e.G. Reset Line for
11662        other chips, etc).  This changes sets the output state before
11663        configuring the pin as an output.  From Pascal Speck .
11664      - STM32 F7: Apply Pascal Speck's GPIO STM32 change to STM32 L4.
11665      - STM32 L4: Apply Pascal Speck's GPIO STM32 change to STM32 L4.
11666        From Sebastien Lorquet.
11667      - STM32 F7:  BUGFIX: PLLs IS2 and SAI P Calculation. From David
11668        Sidrane.
11669      - STM32 L4:  STM32 CAN fixes need to be backported to STM32L4 as well.
11670      - STM32 F1-F4 and L4: Writing zero to NVIC_IRQ_ENABLE has no effect.
11671        Disable interrupts with  NVIC_IRQ_CLEAR. From Paul Alexander
11672        Patience.
11673      - STM32 F7: STMF7xxx RTC: (1) Remove proxy #defines, (2) Ensure the
11674        LSE(ON) etal are set and remembered in a) A cold start (RTC_MAGIC
11675        invalid) of the RTC, and b) A warm start (RTC_MAGIC valid) of the
11676        RTC but a clock change.  The change was needed because in bench
11677        testing a merge of the latest's STM32  53ec3ca (and friends) it
11678        became apparent that the sequence of operation is wrong in the
11679        reset of the Backup Domain in the RCC code.  PWR is required before
11680        the Backup Domain can be futzed with. !!!This Code should be tested
11681        on STM32 and if needed rippled to the STM32 families.  From David
11682        Sidrane.
11683      - STM32 F1-F4: STM32 BBSRAM fixed (and formatted) flags.  From David
11684        Sidrane.
11685      - STM32 F7: STM32F7 BBSRAM fixed (and formatted) flags. From David
11686        Sidrane.
11687      - STM32 L4: Fix incorrect clock setup for LPTIM1.  From ziggurat29.
11688      - STM32 F4/L4 RTC ALARM: were enabling interrupts too early in the
11689        power-up sequence,  BEFORE the interrupt system was being
11690        initialized.
11691
11692    * STMicro STM32 Boards:
11693
11694      - STM32 board.h: Fix STM32 timer input clock definitions.  From David
11695        Sidrane.
11696
11697    * TI Tiva Drivers:
11698
11699      - Bug Fix in tiva_serial.c - UART5, UART6 and UART7 were not being
11700        configured as TTYS0 for printing over serial console. From Shirshak
11701        Sengupta.
11702
11703    * C Library/Header Files:
11704
11705      - include/signal.h:  Change type of SIG_ERR, SIG_IGN, ... to
11706        _sa_handler_t.  The type void does not work with the IAR toolchain.
11707        From Aleksandr Vyhovanec.
11708      - crc16: fix error. From  Paul Alexander Patience.
11709      - strtoul() and strtoull():  Fix errno settings required by function
11710        definition.  Resolved Bitbucket Issue #1. From Sebastien Lorquet.
11711
11712    * Build/Configuration System:
11713
11714      - Build system: This change fixes a build problem that only occurs
11715        when reconfiguring from Linux to Windows or vice-versa.  It is a
11716        problem that was present but not usually experienced until two
11717        things happened: (1) The pre_config target was added to run before
11718        the menconfig operation and (2) the context target was added before
11719        the pre_config target in order to set up the correct symbolic links
11720        (in the apps/platform directory) needed by the pre_config target.
11721        But then now if you start with a Linux system and run 'make
11722        menuconfig' to switch to Linux, the context target will execute
11723        first and set up POSIX style symbolic links before doing the
11724        menuconfig.  Then after the menuconfig, the make will fail on
11725        Windows if you are using a Windows native toolchain because that
11726        native toolchain cannot follow the Cygwin- style symbolic links.
11727        The fix here is to also execute the clean_context AFTER executing
11728        menuconfig.  A lot more happens now:  It used to be that doing
11729        'make menuconfig' only did the menuconfig operation.  Now it does
11730        context, pre_config, menuconfig, clean_context.  Not nearly as
11731        snappy as it used to be.
11732      - Need to build the drivers/ directory even it file descriptors are
11733        not supported.  There are things in the drivers/ directory that are
11734        still needed (like SYSLOG logic).
11735      - Remove all inclusion of header files from the apps/include
11736        directory from NuttX core logic.  There should be no dependency on
11737        logic within NuttX on logic within apps/.  This caused a lot of
11738        reshuffling of logic:  binfmt pcode support, usbmonitor is now a
11739        kernel thread, TZ/Olson database moved to libc/zoneinfo.
11740
11741    * Application Build/Configuration System:
11742
11743      - Make sure that APPNAME is defined in all Makefiles that generate
11744        applications.  From Sebastien Lorquet.
11745
11746    * apps/builtins:
11747
11748      - apps/builtins: exec_builtin was not using the provided open flags.
11749        As a result >> redirection was not working; it was treated the same
11750        as >.
11751
11752    * apps/nshlib:
11753
11754      - apps/nshilib: PS Command: When Priority Inheritance is enabled, the
11755        format of /proc/<PID>/status changes to show both the current
11756        priority and the thread�s base priority.  This messes up the format
11757        of cmd_ps. From David Alessio.
11758
11759    * apps/netutils:
11760
11761      - apps/netutils, uIP webserver:  Fix a data declaration in a header
11762        file.
11763
11764    * apps/canutils:
11765
11766      - apps/canutils/libuavcan: Fix for recent change to STM32 timer
11767        frequency definiitions.
11768
11769    * apps/examples:
11770
11771      - apps/examples/alarm: ioctl call was clobbering file descriptor.
11772      - apps/examples/can: Some variables were not declared in all required
11773        cases. From Sebastien Lorquet.
11774      - apps/examples/media: media example was intended to take either a
11775        command line argument, or a compiled-in default value from config.
11776        However, the default was ignored, leading to confusing error
11777        messages. From ziggurat29.
11778
11779NuttX-7.18 Release Notes
11780------------------------
11781
11782The 118th release of NuttX, Version 7.18, was made on October 8, 2016,
11783and is available for download from the Bitbucket.org website.  Note
11784that release consists of two tarballs:  nuttx-7.18.tar.gz and
11785apps-7.18.tar.gz.  These are available from:
11786
11787    https://bitbucket.org/nuttx/nuttx/downloads
11788    https://bitbucket.org/nuttx/apps/downloads
11789
11790Both may be needed (see the top-level nuttx/README.txt file for build
11791information).
11792
11793Additional new features and extended functionality:
11794
11795    * Core OS:
11796
11797      - Add standard adjtime() interface and basic timekeeping support.
11798        Normally used with an NTP client to keep system time in
11799        synchronization.  From Max Neklyudov.
11800      - Use the oneshot timer with optional entropy to measure CPU load if
11801        so configured.
11802
11803    * File System and Block and MTD Drivers:
11804
11805      - Add Fujistu MB85RS256B ramtron support.  From Beat K�ng.
11806      - SPI-based MTD driver for Macronix MX25L3233F or MX25L6433F.  From
11807        Aleksandr Vyhovanec.
11808
11809    * Graphics/Display Drivers:
11810
11811      - SH1106 0.96 OLED module support (SSD1306 compatible) + I2C fixes.
11812        From v01d (phreakuencies).
11813
11814    * Sensor Drivers:
11815
11816      - Add KXTJ9 Accelerometer driver from the Motorola Moto Z MDK.
11817      - Add MFRC522 RFID ISO14443 and Mifare transceiver driver.  From Alan
11818        Carvalho de Assis.
11819      - Add driver for the LIS3MDL 3 axis magnetometer.  From Alexander
11820        Entinger.
11821      - Add driver for the MLX90393 3 axis magnetometer. From Alexander
11822        Entinger.
11823      - Add driver for the LIS3DSH 3 axis accelerometer. From Alexander
11824        Entinger.
11825      - Add driver for the Bosch BMG160 3 axis gyroscope. From Alexander
11826        Entinger.
11827      - Add support for the  Sensixs XEN1210 3D-board. This sensor is used
11828        on NANOSATC-BR2 a Brazillian CUBESAT project.  From Alan Carvalho
11829        de Assis.
11830      - Add a new ioctl command (set MAXPOS) for Tiva QEI.  From Young.
11831
11832    * Other Common Device Drivers:
11833
11834      - I/O Expander: Remove hard-coded PCA9555 fields from ioexpander.h
11835        definitons.  Add support for an attach() method that may be used
11836        when any subset of pin interrupts occur.
11837      - I/O Expander Interface:  Encode and extend I/O expander options to
11838        include interrupt configuration.
11839      - PCA9555 Driver:  Replace the signalling logic with a simple callback
11840        using the new definitons of ioexpander.h.  This repartitioning of
11841        functionality is necessary because (1) the I/O expander driver is
11842        the lower-lower part of any driver that uses GPIOs (include the GPIO
11843        driver itself) and should not be interacting directly with the much
11844        higher level application layer.  And (2) in order to be compatible
11845        with the GPIO driver (and any arbitrary upper half driver), the
11846        PCA9555 should not directly signal, but should call back into the
11847        upper half.  The upper half driver that interacts directly with the
11848        application is the appropriate place to be generating signal.
11849      - Add a skeleton I/O Expander driver (based on the PCA9555 driver).
11850      - Add PCF8574 I/O Expander driver.
11851      - GPIO driver:  Add IOCTLs to get the pin type and to unregister a
11852        signal handler.
11853      - Add a GPIO lower-half driver that can be used to register a GPIO
11854        character driver for accessing pins on an I/O expander.
11855      - Add an SPI helper function that encapsulates and manages a sequence
11856        of SPI transfers.
11857      - Add an SPI character driver that will permit access to the SPI bus
11858        for testing purposes.
11859      - Add oneshot timer lower half interface definition.
11860      - Add an upper-half, oneshot timer character driver.
11861      - Add Audio Tone Generator for NuttX.  From Alan Carvalho de Assis.
11862      - Add USB host support for composite devices.  This feature is not
11863        well tested.
11864      - drivers/ioexpander: Add an (untested) TCA64XX I/O Expander driver
11865        leveraged from Project Ara.
11866
11867    * Simulation Platform:
11868
11869      - Add a simulated I/O Expander driver.
11870      - Add simulator-based test support for apps/examples/gpio.
11871      - Add a configuration useful for testing Mini Basic.
11872      - Add a simulated oneshot lowerhalf driver.
11873
11874    * Atmel SAM3/4 Drivers:
11875
11876      - SAM4CM: Add option to support oneshot timer without free-running
11877        timer.  Add oneshot lower half driver.
11878
11879    * Atmel SAMA5 Drivers:
11880
11881      - SAMA5D: Add option to support oneshot timer without free-running
11882        timer.  Add oneshot lower half driver.
11883
11884    * Atmel SAMV7 Drivers:
11885
11886      - SAMV71/SAME70: Add option to support oneshot timer without
11887        free-running timer.  Add oneshot lower half driver.
11888      - Add support for SAMV7 DACC module.  From Piotr Mienkowski.
11889
11890    * NXP Freescale Kinetis Drivers:
11891
11892      - Add support for I2C and RTC.  From v01d (phreakuencies).
11893
11894    * NXP Freescale Kinetis Boards:
11895
11896      - Add teensy 3.x I2C support.  From v01d (phreakuencies).
11897
11898    * STMicro STM32:
11899
11900      - Add IAR-style STM32F1xx vectors. Tested on STM32F103RB and
11901        STM32F107RC.  From Aleksandr Vyhovanec.
11902
11903    * STMicro STM32 Drivers:
11904
11905      - Add timekeeping support for the STM32 tickless mode.  From Max
11906        Neklyudov.
11907      - Add a oneshot, lower-half driver for STM32.
11908      - STM32 L4: Add oneshot lower half driver for STM32 L4.
11909      - STM32 L4: Add support for quadrature encoders on STM32L4. Sebastien
11910        Lorquet.
11911
11912    * STMicro STM32 Boards:
11913
11914      - stm32f103-minimum: Add board support to MFRC522 driver.  From Alan
11915        Carvalho de Assis.
11916      - Add oneshot board initialization to stm32f103-minimum.  From Alan
11917        Carvalho de Assis.
11918      - stm32f103-minimum: Add board configuration to initialize Audio Tone
11919        Generator.  From Alan Carvalho de Assis.
11920      - stm32bufferfly2: Add support for the Kamami stm32butterfly2
11921        development board with optional ETH phy.  From  Michal Lyszczek.
11922      - stm32f103-minimum: Add board config support to SPI LCD module
11923        JLX12864G-086.  From Alan Carvalho de Assis.
11924      - stm32l476-mdk: Support basic booting and nsh on Motorola MDK. The
11925        Motorola MDK is based off of an earlier version of NuttX.
11926        This only provides a basic NSH shell.  From Jim Wylder.
11927      - STM32 F4 Discovery:  Add support for XEN1210 3D-board.  From Alan
11928        Carvalho de Assis.
11929      - stm32f103-minimum:  Add stm32_bringup support and userled example to
11930        STM32F103 Minimum board.  From Alan Carvalho de Assis.
11931      - Add support for qencoders on various nucleo boards.  From Sebastien
11932        Lorquet.
11933      - olimex-stm32-e407: Add some networking configurations.  From Mateusz
11934        Szafoni.
11935
11936    * TI Tiva Drivers:
11937
11938      - Add tiva PWM lower-half driver implementation. From Young.
11939      - Tiva QEI:  Add QEI lower-half driver for Tiva series chip.  From
11940        Young.
11941
11942    * C Library/Header Files:
11943
11944      - Separate XorShift128 PRNG from /dev/urandom and make it generally
11945        available.
11946      - Add POSIX type sig_atomic_t.  From Sebastien Lorquet.
11947      - Add the difftime() function.  The function depends on the toolchain-
11948        dependent CONFIG_HAVE_DOUBLE so is not available on tiny platforms.
11949        From Sebastien Lorquet.
11950      - Add support for remove().  From Sebastien Lorquet.
11951      - Add system() to stdlib.h.  Actual implementation is in
11952        apps/system/system.
11953
11954    * Build/Configuration System:
11955
11956      - Rename arch/sh to arch/renesas.
11957      - Remove contactless drivers from drivers/wireless to drivers
11958        contactless.  From Sebastien Lorquet.
11959      - Move all modem-related IOCTL commands to a common file to assure
11960        that they will be unique.
11961
11962    * Tools:
11963
11964      - Add sethost.sh.   This is a script that you can use to quickly
11965        change the host platform from Linux to Windows/Cygwin. Might save
11966        you a lot of headaches.
11967
11968    * Applications: apps/nshlib:
11969
11970      - Add logic to support an NSH-specific system command.
11971      - Add printf command to NSH, e.g., controlling /dev/userleds from
11972        command line: nsh> printf \x01 > /dev/userleds. From Alan Carvalho
11973        de Assis.
11974
11975    * Platforms: apps/system:
11976
11977      - Port tee command from NetBSD.
11978      - Add a generic system command.  Current implentation cannot use
11979        /bin/sh and spawns the custom NSH system command directly.
11980
11981    * Platforms: apps/platform:
11982
11983      - Add C++ support for STM32L476-MDK.
11984
11985    * Platforms: apps/interpreters:
11986
11987      - Add a port of Mini Basic, version 1.0, written by Malcom McLean and
11988        released under the Creative Commons Attribution license.
11989
11990    * Applications: apps/examples:
11991
11992      - Add a simple test of the GPIO driver.
11993      - Add RFID_READUID sample application. From Alan Carvalho de Assis.
11994      - Add Oneshot timer example.
11995      - Add a simple test of the system command.
11996
11997Works-In-Progress:
11998
11999    * IEEE802.14.5/6LowPAN.  Hooks and framework for this effort were
12000      introduced in NuttX-7.15.  Work has continued on this effort on
12001      forks from the main repositories, albeit with many interruptions.
12002      The completion of this wireless feature will postponed until at
12003      least NuttX-7.19.
12004
12005Bugfixes.  Only the most critical bugfixes are listed here (see the
12006ChangeLog for the complete list of bugfixes and for additional, more
12007detailed bugfix information):
12008
12009    * Core OS:
12010
12011      - Explicitly initialize the group tg_exitsem with sem_init().  The
12012        existing logic worked because the correct initialization value is
12013        all zero, but it is better to initialize the semaphore explicitly.
12014      - The TCB nchildren field should not be incremented when pthreads are
12015        created.
12016      - Move fields related to parent/child task relationship out of TCB
12017        into group structure where they belong.  Child is a group, not a
12018        thread.
12019      - mq_send() was not setting the errno value on certain failures to
12020        allocate a message.
12021      - Define 'group' even if HAVE_GROUPID is not set.  From Mateusz
12022        Szafoni.
12023      - Vector table should have dimension NR_IRQS, not NR_IRQS+1. From
12024        Sagitta Li.
12025      - pthreads:  When a pthread is started, there is a small bit
12026        of logic that will run on the thread of execution of the new
12027        pthread.  In the case where the new pthread has a lower
12028        priority than the parent thread, then this could cause both the
12029        parent thread and the new pthread to be blocked at the priority of
12030        the lower priority pthread (assuming that CONFIG_PRIORITY_INHERITANCE
12031        is not selected). This change temporarily boosts the priority of the
12032        new pthread to at least the priority of the new pthread to at least
12033        the priority of the parent thread.  When that bit of logic has
12034        executed on the thread of execution of the new pthread, it will then
12035        drop to the correct priority (if necessary) before calling into the
12036        new pthread's entry point.
12037
12038    * File System/Block Drivers/MTD Drivers:
12039
12040      - FAT performance improvement. In large files, seeking to a
12041        position from the beginning of the file can be very time consuming.
12042        ftell does lssek(fd, 0, SET_CURR).  In that case, that is wasted
12043        time since we are going to seek to the same position.  This fix
12044        short-circuits fat_seek() in all cases where we attempt to seek to
12045        current position.  Suggested by Nate Weibley.
12046      - MTD: Fixed cloned typos in several FLASH drivers.  From Aleksandr
12047        Vyhovanec.
12048      - mount: Corrects a bad assertion noted by Pierre-noel Bouteville.
12049        Also fixes a reference counting problem in an error condition:
12050        When the mountpoint inode is found but is not an appropriate
12051        mountpoint, the reference count on the inode was not being
12052        decremented.
12053
12054    * Common Drivers:
12055
12056      - Various serial drivers: Fix FIONWRITE and add FIONSPACE.  All
12057        implementations of FIONWRITE were wrong.  FIONWRITE should return
12058        the number of bytes waiting in the outgoing send queue, not the free
12059        space.  Rather, FIONSPACE should return the free space in the send
12060        queue.
12061      - Add missing prototype for btn_lower_initialize().
12062      - Make DAC sample structure packed.  From Marc Recht�.
12063
12064    * Networking:
12065
12066      - TCP:  tcp_ipvX_bind() not actually using the port selected with
12067        port==0.  Also removes duplicate call to pkt_input().  Issues noted
12068        by Pascal Speck.
12069      - drivers/net: NET_TUN=y => NET_MULTIBUFFER=y.  From Vladimir
12070        Komendantskiy.
12071      - slip driver: Fix calculations using MSEC_PER_TICK.  If
12072        USEC_PER_TICK is less than 1000, then MSEC_PER_TICK will be
12073        zero.  It will be inaccurate in any case.
12074
12075    * Atmel SAM3/4 Drivers:
12076
12077      - SAM3/4 GPIO: Enable peripheral clock for GPIO port when GPIO is
12078        configured as input. The value of a GPIO input is only sampled when
12079        the peripheral clock for the port controller the GPIO resides in is
12080        enabled.  Therefore we need to enable the clock even when polling a
12081        GPIO.  From Wolfgang Reissnegger.
12082      - All SAM Ethernet Drivers: Add support so that the drivers can be
12083        built with CONFIG_NET_MULTIBUFFER=y.
12084      - SAM3/4: Fix GPIO pull-up/down code. Enabling the pull-down resistor
12085        while the pull-up resistor is still enabled is not possible. In this
12086        case, the write of PIO_PPDER for the relevant I/O line is discarded.
12087        Likewise, enabling the pull-up resistor while the pull-down resistor
12088        is still enabled is not possible. In this case, the write of
12089        PIO_PUER for the relevant I/O line is discarded.  From Wolfgang
12090        Rei�negger.
12091
12092    * Atmel SAMV7 Drivers:
12093
12094      - All SAM Ethernet Drivers: Add support so that the drivers can be
12095        built with CONFIG_NET_MULTIBUFFER=y.
12096      - SAM GPIO: Apply Wolfgang's change for SAM3/4 to SAMA5 and SAMV7.
12097
12098    * Atmel SAMA5:
12099
12100      - Add missing oneshot max_delay method.
12101      - All SAM Ethernet Drivers: Add support so that the drivers can be
12102        built with CONFIG_NET_MULTIBUFFER=y.
12103      - SAM GPIO: Apply Wolfgang's change for SAM3/4 to SAMA5 and SAMV7.
12104
12105    * NXP Freescale LPC43xx Drivers:
12106
12107      - LPC43xx serial: Fix typos in LPC43 serial driver.  Found by Vytautas
12108        Lukenskas.
12109      - LPC43xx Serial: There are some small problems in LPC43xx RS485 mode
12110        configuration. In particular: (1) UART0,2,3 do not have DTR pins
12111        (different from UART1), so, Kconfig needs to be adjusted. (2)
12112        lpc43_uart.c in RS485 mode only configures DIR pin, but doesn't
12113        enable pin output for UART0,2,3. (3) should be option to reverse DIR
12114        control pin output polarity. (4) lpc43xx/chip/lpc43_uart.h doesn't
12115        have USART3 definitions.  NOTE: I didn't modified and didn't tested
12116        USART1, as it has different hardware.  From Vytautas Lukenskas.
12117        From Vytautas Lukenskas.
12118
12119    * SiLabs EFM32 Drivers:
12120
12121      - EFM32 SPI drivers adopted incompatible conventions (See STM32 for
12122        details of the issue).
12123
12124    * STMicro STM32 Drivers:
12125
12126      - STM32, STM32 L4, and EFM32 SPI drivers adopted incompatible
12127        conventions somewhere along the line.  They set the number of bits
12128        to negative when calling SPI_SETBITS which had the magical side-
12129        effect of setting LSB first order of bit transmission.  This is not
12130        only a hokey way to pass control information but is supported by no
12131        other SPI drivers.  This change three things:  (1) It adds
12132        HWFEAT_LSBFIRST as a new H/W feature. (2) It changes the
12133        implementations of SPI_SETBITS in the STM32 and EFM32 drivers so
12134        that negated bit numbers are simply errors and it adds the
12135        SPI_HWFEATURES method that can set the LSB bit order, and
12136        (3) It changes all calls with negative number of bits from all
12137        drivers: The number of bits is now always positive and
12138        SPI_HWFEATURES is called with HWFEAT_LSBFIRST to set the bit order.
12139      - Add missing SPI2 and SPI3 support for STM32F3F3.  Add STM32F37XX DMA
12140        channel configuration.  For STM32F37XX, SYSCFG_EXTICR_PORTE defined
12141        twice.  From Alan Carvalho de Assis.
12142      - STM32: Make stm32_pwr_enablebkp thread safe.  From Max Neklyudov.
12143      - Fix bad pllmul values for STM32F1XX connectivity line. STM32F1XX
12144        connectivity line supports only x4, x5, x6, x7, x8, x9 and x6.5
12145        values. From Michal Lyszczek.
12146      - STM32F3 SPI:  Fix the number of bit setting for the F3.  That and
12147        data packing work differently on the STM32F3 than for other STM32
12148        parts.
12149      - STM32 and STM32 L4: Enabling SPI DMA loses other bits in CR2.
12150      - STM32F3 SPI:  Cannot write always 16-bit value to DR register
12151        because of how the F3 implements data packing.
12152      - STM32F411 and STM32F446 map i2c2_sda_4 to different alternate
12153        function numbers.  From Konstantin Berezenko.
12154      - STM32 DMA Fix: Change stm32 adc dma callback to send channel
12155        number instead of index.  From Konstantin Berezenko.
12156      - STM32 OTGFS device: Fix for lost first word from FIFO
12157
12158        1) Do not overwrite Reserved Bits in GINTSTS (per ref manual)*
12159        2) Acknowledge all pending int on entry to ISR that are Only rc_w1*
12160        3) Do not disable RXFVL*
12161        4) Loop until RXFVL is cleared*
12162        5) Only clear the NAK on the endpoint on the OTGFS_GRXSTSD_PKTSTS_SETUPDONE to not loose the first WORD of FIFO all the data  (Bug Fix)
12163
12164        Changed marked *are just driver clean up and ensure ints are not lost. The bug fix is #5
12165
12166        Test case open putty and observer the Set/Get LineCoding. Without this fix #5 the Get will not match the Set, and in fact the data might be skewed by 4 bytes, that are lost from the FIFO if the OTGFS_DOEPCTL0_CNAK bit is set in the OTGFS_GRXSTSD_PKTSTS_SETUPRECVD as opposed to the OTGFS_GRXSTSD_PKTSTS_SETUPDONE
12167
12168        Set Line Coding DATA1: 4B | 00 c2 01 00 00 00 08 | c8 1B
12169        Get Line Coding DATA1: 4B | .. .. .. .. 00 00 08   c8 .. 00 00 07 | 7a 72
12170
12171        From David Sidrane.
12172      - STM32 L4 OTGFS device: Apply stm32 fix to stm32l4.  From Sebastien
12173        Lorquet.
12174      - STM32 F7: Remove duplicate call to pkt_input from Ethernet driver.
12175        Issues noted by Pascal Speck.
12176      - STM32 L4: Add support for USART3-USART5.  For STM32L4 parts, the
12177        higher number USART ports supported varies.  Add the HAVE_USARTx
12178        definitions to the configuration to allow enabling the higher
12179        numbered USART ports. From Jim Wylder.
12180      - STM32 USB: Set USB address to avoid a failed assertion.  From
12181        Pierre-noel Bouteville.
12182      - STM32 L4 and L7 USB: Pierre's assertion-avoidance change should
12183        also be applied to STM32 F7 and L4.
12184      - STM32, L4, and F7:  Remove GPIO_ETH_RMII_TX_CLK. TX_CLK is not
12185        present in RMII. Mateusz Szafoni.
12186      - STM32 Ethernet: Correct typo in conditional logic.  From Neil
12187        Hancock.
12188      - STM32 L4 USB Device: Fixed L4 USB Driver by avoiding SETUPDONE and
12189        EPOUT_SETUP.  From David Sidrane.
12190      - STM32 SPI: stm32_modifycr2 should be available on all platforms if
12191        DMA is enabled.
12192      - STM32 DMA2D: fix an error in up_dma2dcreatelayer where an invalid
12193        pointer was returned when a certain underlying function failed.
12194        From Jens Gr�f.
12195
12196    * TI Tiva Drivers:
12197
12198      - Fix two bugs of tiva pwm lower-half driver implementation. From
12199        Young.
12200      - Tiva Ethernet:  Needs support for CONFIG_NET_MULTIBUFFER=y.
12201
12202    * C Library/Header Files:
12203
12204      - lib_dumpbuffer() now prints a large on-stack buffer first to avoid
12205        problems when the syslog output is prefixed with time.  From
12206        Pierre-noel Bouteville.
12207      - libc/math: This fixes the following libc/math issues: (1) asin[f l]()
12208        use Newton�s method to converge on a solution. But Newton�s method
12209        converges very slowly (> 500,000 iterations) for values of x close to
12210        1.0; and, in the case of asinl(), sometimes fails to converge (loops
12211        forever). The attached patch uses an trig identity for values of
12212        x > sqrt(2). The resultant functions converge in no more than 5
12213        iterations, 6 for asinl().  (2) The NuttX erf[f l]() functions are
12214        based on Chebyshev fitting to a good guess. The problem there�s a
12215        bug in the implementation that causes the functions to blow up with
12216        x near -3.0. This patch fixes that problem. It should be noted that
12217        this method returns the error function erf(x) with fractional error
12218        less than 1.2E-07 and that�s fine for the float version erff(), but
12219        the same method is used for double and long double version which
12220        will yield only slightly better precision. This patch doesn't
12221        address the issue of lower precision for erf() and erfl(). (3) a
12222        faster version of copysignf() for floats is included. From David S.
12223        Alessio.
12224      - strtod() was not returning endptr on error conditions.
12225      - libc/math: floor(), floorf(), and floorl():  Fix logic error.  Was
12226        not correctly handling negative integral value.
12227      - isatty() should be prototyped in unstid.h, not termios.h.  From
12228        Sebastien Lorquet.
12229      - nxglib: Fix handling of near-horizontal lines of width 1 in
12230        nxgl_splitline().  Missing handling for degenerate condition caused
12231        width 1 lines such as (0, 0) - (100, 10) to have gaps in the
12232        drawing. From Petteri Aimonen.
12233
12234    * Build/Configuration System:
12235
12236      - Top-Level Makefiles:  Fix a chicken-and-egg problem. In the menuconfig
12237        target, the context dependency was executed before kconfig-mconf.  That
12238        was necessary because the link at apps/platform/board needed to be set
12239        up before creating the apps/Kconfig file.  Otherwise, the platform
12240        Kconfig files would not be included.  But this introduces the chicken-
12241        and-egg problem in some configurations. In particular:  (1) An NX
12242        graphics configuration is used that requires auto-generation of
12243        source files using cpp, (2) the configuration is set for Linux, but
12244        (3) we are running under Cygwin with (4) a Windows native toolchain.
12245        In this case, POSIX-style symbolic links are set up but the Windows
12246        native toolchain cannot follow them. The reason we are running
12247        'make menuconfig' is to change from Linux to Cygwin, but the target
12248        fails.  During the context phase, NX runs CPP to generate source files
12249        but that fails because the Windows native toolchain cannot follow
12250        the links.  Checkmate.  This was fixed by changing all of the make
12251        menuconfig (and related) targets.  They no longer depend on context
12252        being run.  Instead, they depend only on the dirlinks target.  The
12253        dirlinks target only sets up the directory links but does not try
12254        to run all of the context setup; the compiler is never invoked; no
12255        code is autogenerated and things work.
12256      - CXXFLAGS:  Add -fcheck-new whenever -fno-exceptions is used. From
12257        Beat K�ng.
12258
12259    * Tools
12260
12261      - tools/refresh.sh: Recent complexities added to apps/ means that
12262        configuration needs the correct Make.defs file in place in order to
12263        configure properly.
12264      - tools/kconfig2html.c: Update to handle absolute paths when sourcing
12265        Kconfig files.
12266      - tools/mkfsdata.pl was still generating the old-style apps/include
12267        inclusion paths.
12268
12269    * Application Build/Configuration System:
12270
12271      - Add DIRLINK and DIRUNLINK tool definitions to apps/Make.defs.
12272
12273    * apps/nshlib:
12274
12275      - Fix FIFO_SIZE vs PIPE_SIZE.
12276      - Fix hex representation of IP address in Kconfig.  Noted by Michal
12277        Lyszczek.
12278      - nsh_syscmds.c: missing semicolon.  From Mateusz Szafoni.
12279      - In system command, don't try to flush output streams if stdio
12280        buffered I/O is not supported.
12281
12282    * apps/canutils:
12283
12284      - libuavcan: Under certain circumstances, DELIM is not be defined in
12285        Makefile.
12286      - Add definition for APPNAME in apps/canutils/canlib.  From Sebastien
12287        Lorquet.
12288
12289    * apps/gpsutils:
12290
12291      - Fix an error minmea.  From Aleksandr Vyhovanec.
12292
12293    * apps/examples:
12294
12295      - apps/examples/oneshot:  If the requested delay is > max_delay, then
12296        break the delay up into several pieces.
12297
12298NuttX-7.19 Release Notes
12299------------------------
12300
12301The 119th release of NuttX, Version 7.19, was made on December 26, 2016,
12302and is available for download from the Bitbucket.org website.  Note
12303that release consists of two tarballs:  nuttx-7.19.tar.gz and
12304apps-7.19.tar.gz.  These are available from:
12305
12306    https://bitbucket.org/nuttx/nuttx/downloads
12307    https://bitbucket.org/nuttx/apps/downloads
12308
12309Both may be needed (see the top-level nuttx/README.txt file for build
12310information).
12311
12312Additional new features and extended functionality:
12313
12314    * Core OS:
12315
12316      - sched/semaphore, sched/phread/, libc/semaphore, libc/pthread: Add
12317        pthread_mutexattr_get/set_protocol and non-standard
12318        sem_get/set_protocol. These may use to enable or disable priority
12319        inheritance on a single semaphore.
12320      - Spinlocks:  Added capability to provide architecture-specific memory
12321        barriers.
12322      - SMP: Add spin_trylock().  Use this in conditions where other CPUs need
12323        to stopped but we cannot call enter_critical_section().
12324      - sched note:  Extend OS instrumentation to include some SMP events.
12325        Also add spinlock instrumentation;  In SMP configurations, add a
12326        filter mask to log only notes from certain CPUs.
12327      - sched note:  Permit spinlock and critical section notes in in-memory
12328        buffer iff sched_not_get() interfaces is disabled.
12329      - sched note:  Add additional note to see if/when CPU is started in SMP
12330        mode.
12331      - sched note:  Record ID enumeration now results on constant values; ID
12332        values do not change with configuration.  This makes writing post-processing software much easier.
12333      - boardctl:  Add new boardctl() command, BOARDIOC_NX_START, to start the
12334        NX server as a kernel thread.
12335      - pthreads:  Add pthread_cleanup_push() and pthread_cleanup_pop().
12336      - pthreads: Added pthread_setcanceltype() and pthread_testcancel().
12337      - pthreads: Add support for cancellation points.
12338      - task_delete() now obeys all cancellation point semantics.
12339      - Add task_setcancelstate(), task_setcanceltype(), and
12340        task_testcancel().  These are non-standard interfaces analogous to the
12341        correponding pthread_ interfaces that provide cancellation controls
12342        for tasks.
12343
12344    * Graphics/Display Drivers:
12345
12346      - boardctl:  Add new boardctl() command, BOARDIOC_NX_START, to start the
12347        NX server as a kernel thread.
12348
12349    * Networking/Network Drivers:
12350
12351      - Network drivers:  Add option to use low-priority work queue to all
12352        Ethernet and MAC level drivers.
12353      - Network Drivers:  Adapt all Ethernet (and other MAC) drivers to work
12354        as though CONFIG_NET_MULTIBUFFER were set.  Remove all references to
12355        CONFIG_NET_MULTIBUFFER.
12356      - Eliminate CONFIG_NO_NOINTS.  There is no longer any support for
12357        interrupt level processing of the network stack. Lots of files changed.
12358
12359    * Other Common Device Drivers:
12360
12361      - Vishay VEML6070:  Add Vishay VEML6070 driver.  From Alan Carvalho de
12362        Assis.
12363
12364    * ARMv7-A
12365
12366      - ARMv7-A/i.MX6:  Add SCU register definitions.  Add some controls to
12367        enable SMP cache coherency in SMP mode.  Makes no difference, however
12368        -- cache still incoherent on i.MX6.
12369      - ARMv7 GIC: SGIs are non-maskable but go through the same path as
12370        other, maskable interrupts.  Added logic to serialize SGI processing
12371        when necessary.
12372
12373    * Atmel SAM3/4:
12374
12375      - SAM3/4:  Add SMP support for the dual-core SAM4CM.  From Masayuki
12376        Ishikawa.
12377
12378    * Atmel SAM3/4 Drivers:
12379
12380      - Add support for the SAM5CMP-DB board.  From Masayuki Ishikawa.
12381
12382    * Atmel SAM3/4 Boards:
12383
12384      - SAM4CMP-DB:  Add support for the Atmel SAM4CMP-DB board running in an
12385        SMP configuration.  From Masayuki Ishikawa.
12386      - SAM4CMP-DB: Add hooks to auto-mount the procfs file system on startup
12387        in board bring-up logic.
12388
12389    * Atmel SAMV7 Drivers:
12390
12391      - SAMv7:  Register the watchdog device at the configured device path
12392        CONFIG_WATCHDOG_DEVPATH vs. hard-coded /dev/wdt.  From Frank Benkert.
12393
12394    * Calypso
12395
12396      - Calyps: Remove all Calypso board configurations.  Remove Calypso
12397        architecture support and support for Calypso SERCOMM driver.
12398
12399    * Misoc LM32:
12400
12401      - Misoc LM32:  Adds basic support for the Misoc procoessors and the LM32
12402        in particular.  From Ramtin Amin.
12403      - Misoc LM32:  Add signal handling logic.  From Ramtin Amin.
12404      - Misoc LM32:  Add logic to flush/invalidate caches.  From Ramtin Amin.
12405
12406    * Misoc LM32 Drivers:
12407
12408      - Misoc LM32 Serial:  Add interrupting Misoc serial driver.  From Ramtin
12409        Amin.
12410      - Misoc LM32 Timer:  Add timer driver.  From Ramtin Amin.
12411      - Misoc LM32:  Add Misoc Ethernet driver  From Ramtin Amin.
12412
12413    * Misoc LM32 Boards:
12414
12415      - Misoc LM32 Qemu:  Board support for testing Misoc LM32 with Qemu. From
12416        Ramtin Amin.
12417      - Misoc LM32 Qemu:  Integrate network support into configs/misoc/hello.
12418        From Ramtin Amin.
12419      - Misoc LM32 Qemu:  Remove configs/misoc/include/generated directory.  I
12420        suppose the intent now is that this is a symbolic link?  DANGER!
12421        This means that you cannot compile this code with first generating
12422        these files a providing a symbolic link to this location!   There is a
12423        sample directory containing generated sources.  This is really only
12424        useful for performing test builds.  You really must generate the Misoc
12425        architecture for a real-life build.  From Ramtin Amin.
12426
12427    * NXP Freescale i.MX6 Drivers:
12428
12429      - i.MX6:  Add an untested SPI driver taken directly from the i.MX1 port.
12430
12431    * NXP Freescale Kinetis:
12432
12433      - Kinetis:  Added missing headers.  Kinetis broke out SPI to
12434        kinetis/kinetis_spi.h. Broke out DMA to use the modern Nuttx chip
12435        inclusion - still STUBS.  Add Kinetis support for ARMV7-M Common
12436        Vector and FPU.  Allow CONFIG_ARMV7M_CMNVECTOR,
12437        CONFIG_STACK_COLORATION, CONFIG_ARCH_FPU.  Fix  i2c driver offset
12438        swapped for value in kinetis_i2c_putreg.  From David Sidrane.
12439
12440    * NXP Freescale Kinetis Drivers:
12441
12442      - Kinetis: Add UID Unique ID.  From Neil Hancock.
12443
12444    * NXP Freescale Kinetis Boards:
12445
12446      - Freedom-K64F board: Add support for UID Unique ID.  From Neil Hancock.
12447
12448    * NXP Freescale LPC17xx Boards:
12449
12450      - Olimex-LPC1766-STK:  Enable procfs in NSH configuration. Automount
12451        /proc on startup.
12452
12453    * NXP Freescale LPC43xx Drivers:
12454
12455      - LPC43xx: Add timer driver:  From Alan Carvalho de Assis.
12456      - LPC43xx GPDMA driver:  The GPDMA block is basically the same as the
12457        LPC17xx.  Only the clock configuration is different and LPC43xx has
12458        four different DMA request sources, where LPC17xx has only two. From
12459        Alan Carvalho de Assis.
12460
12461    * NXP Freescale LPC43xx Boards:
12462
12463      - Bambino 200E:  Add basic support to Micromint Bambino 200E board.
12464        This includes contributions from Jim Wolfman.  From Alan Carvalho de
12465        Assis.
12466      - Bambino 200E:  Add support for timer driver.  From Alan Carvalho de
12467        Assis.
12468
12469    * RGMP:
12470
12471      - Remove RGMP and RGMP drivers.
12472
12473    * RISC-V:
12474
12475      - RISC-V: Add support for the RISC-V architecture and
12476        configs/nr5m100-nexys4 board.  The board support on this is pretty
12477        thin, but it seems like maybe a good idea to get the base RISC-V stuff
12478        in since there are people interested in it.  From Ken Pettit.
12479
12480    * STMicro STM32 Drivers:
12481
12482      - STM32 F3:  Implemention of the STM32 F37xx SDADC module. There are
12483        also changes to ADC, DAC modules. SDADC has only been tested in DMA
12484        mode and does not support external TIMER triggers. This is a work in
12485        progress.  From  Marc Recht�.
12486      - STM32 F3:  Add PWM driver support for STMF37xx.  The changes have been
12487        tested successfuly for TIM4 and TIM17 (different IPs).  From  Marc
12488        Recht�.
12489      - STM32 F4:  Support oversampling by 8 for the STM32 F4. From David
12490        Sidrane.
12491      - STM32 F4:  Added Timers 2-5 and control of SAI and I2S PLLs.  Added
12492        support for stmf469 SAI and I2S PLL configuration and STM446 fixes.
12493        From David Sidrane.
12494      - STM32 F4:  Expanded OTGFS support to stm32F469 and stm32f446.  Added
12495        missing bit definitions, Used stm32F469 and stm32f446 bit
12496        definitions,  Removed unsed header file.  From David Sidrane.
12497      - STM32 F4:  Allow dma in 1 bit mode in STM32F4xxx.  From David Sidrane.
12498      - STM32 F7:  Allow the config to override the clock edge setting.  From
12499        David Sidrane.
12500      - STM32 L4:  Support Complementary PWM outputs on STM32L4.  From
12501        Sebastien Lorquet.
12502      - STM32 L4:  Add implementation of dumpgpio for stm32l4, was required
12503        for pwm debug. From Sebastien Lorquet.
12504
12505    * STMicro STM32 Boards:
12506
12507      - STM32F103 Minimum:  Add button support.  From Alan Carvalho de Assis.
12508      - STM32F103 Minimum:  Add support to PWM on STM32F103-Minimum board.
12509        From Alan Carvalho de Assis.
12510      - STM32F103 Minimum:  Add RGB LED support on STM32F103 Minimum board.
12511        From Alan Carvalho de Assis.
12512      - STM32F103 Minimum:  Add Vishay VEML6070 driver support to the
12513        STM32F103-Minimum board.  From Alan Carvalho de Assis.
12514      - Nucleo-F303RE:  Add STM32 F303RE hello configuration.   From Marc
12515        Recht�.
12516      - Nucleo-L476:  Support PWM testing on board Nucleo L476.  From
12517        Sebastien Lorquet.
12518      - Nucleo L476:  Add support for timers to Nucleo L476.  From Sebastien
12519        Lorquet.
12520      - Hymini STM32v:  Enable CONFIG_RTC in the hymini-stm32v/nsh2
12521        (kitchensink) config. From Maciej W�jcik.
12522      - Olimex STM32-p407:  Add support for the Olimex STM32 P407 board.
12523
12524    * TI Tiva Drivers:
12525
12526      - Tiva PWM: Support PWM_PULSECOUNT feature for TI tiva.  From Young.Mu.
12527
12528    * Xtensa/ESP32
12529
12530      - Xtensa ESP32:  Basic architectural support for Xtensa processors and
12531        the Expressif. ESP32 added.
12532      - Xtensa ESP32:  Add EXPERIMENTAL hooks to support lazy Xtensa
12533        co-processor state restore in the future.
12534      - Xtensa ESP32:  Basic port is function in both single CPU and dual CPU
12535        SMP configurations.  There is an NSH configuration for each CPU
12536        configuration.  Outstanding issues include missing clock configuration
12537        logic, missing partition tables to support correct configuration from
12538        FLASH, and some serial driver pin configuration issues.
12539      - Xtensa ESP32: Add stack checking logic.
12540
12541    * Xtensa/ESP32 Boards:
12542
12543      - ESP32 Core v2:  Basic support for Expressif ESP32 Core v2 board
12544        added.  The initial release includes an NSH and an SMP test
12545        configuration.
12546      - ESP32 Core v2:  Add configuration to support linking NuttX for
12547        execution out of IRAM.
12548      - ESP32 Core v2:  Automatically mount /proc at start-up.
12549      - ESP32 Core v2:  Add an OS test to verify the port.
12550
12551    * C Library/Header Files:
12552
12553      - libc/locale:  Add a dummy setlocale() function to avoid drawing the
12554        function from newlib.  Add clocale header file.
12555      - include/locale.h:  Modify locale.h to add localeconv() and lconv
12556        structure.  From Alan Carvalho de Assis.
12557      - libc/locale:  Allows c++ code to compile with or without
12558        CONFIG_LIBC_LOCALE and will generate a link error if
12559        CONFIG_LIBC_LOCALE is not defined and setlocale is referenced. With
12560        CONFIG_LIBC_LOCALE defined setlocale will act as if MB string is not
12561        supported and return "C" for POSIX. C and "". From David Sidrane.
12562      - libc/wchar:  Add wcslen, wmemchr, wmemcmp, wmemcpy wmemset, btowc,
12563        mbrtowc, mbtowc, wcscmp, wcscoll, and wmemmove to NuttX.  From Alan
12564        Carvalho de Assis.
12565      - libc/wctype:  Add functions wcrtomb, wcslcpy, wcsxfrm, wctob, wctomb,
12566        wctype, localeconv, strcoll, strxfrm, swctype, towlower, towupper and
12567        wcsftime.   Add wctype.h; Move lib_wctype.c to libc/wctype.  From Alan
12568        Carvalho de Assis.
12569      - include/ctype.h : Add isblank() macro to ctype.h.  From Alan Carvalho
12570        de Assis.
12571      - lic/stdlib:   Add strtof() and strtold() as simply a copy of strtod
12572        with types and limits changed.
12573      - sscanf():  Use strtof() instead of strtod() if a short floating point
12574        value was requested.  The should help performance with MCUs with
12575        32-bit FPU support with some additional code size.
12576      - sscanf(): Add scansets to the scanf function. Enabled
12577        CONFIG_LIBC_SCANSET option.  From  Aleksandr Vyhovanec.
12578      - include/inttypes.h: Add architecture-specific inttypes.h.  From Paul
12579        A. Patience.
12580      - C Library:  Allow option to enable IP address conversions even when
12581        the IP address family is not supported.
12582
12583    * Build/Configuration System:
12584
12585      - The Smoothie project needs to compile C++ inside config/boardname/src/
12586        to use with High Priority Interruption, then I modified the board
12587        configs Makefile to support it.  It works fine for the first time
12588        compilation, but if we execute "touch config/boardname/src/Pin.cxx"
12589        and execute "make" it will not detect that Pin.cxx was modified. I
12590        think there is some other place I should modify, but I didn't find
12591        it.  From Alan Carvalho de Assis.
12592
12593    * Tools:
12594
12595      - tools/: Add tools/showsize.sh.
12596
12597    * NSH: apps/nshlib:
12598
12599      - NSH: dd command will show statistics.  From  Masayuki Ishikawa.
12600
12601    * Applications: apps/system:
12602
12603      - apps/system/sched_note:  Extend to include additions to instumentation
12604        for SMP.
12605      - apps/system/sched_note:  Add support for spinlock notes.
12606      - apps/system/sched_note:  Add support for new scheduler instrumentation.
12607
12608    * Platforms: apps/platform:
12609
12610      - ESP32 Core v2:  Add platform support for the ESP32 core v2 board.
12611      - Olimex STM32-p407: Add platform support for the Olimex STM32 P407.
12612
12613    * Graphics: apps/graphics
12614
12615      - graphics/traveler/tcledit and libwld:  Add an X11 Tcl/Tk tool that can
12616        be used to edit Traveler world files.
12617      - Graphics: Remove all NX server taks.  Instead, call boardctl() to the
12618        NX server kernel thread.
12619
12620    * Applications: apps/examples:
12621
12622      - examples/buttons:  Add a new buttons example that uses the button
12623        character driver instead of the architecture buttons directly. From
12624        Alan Carvalho de Assis.
12625      - examples/cctype:  Add an example to verify cctype functions.
12626      - Remove RGMP example.
12627      - examples/ostest:  Extend the pthread cancellation test to exercise
12628        pthread_cleanup_push() (and pthread_cleanup_pop() indirectly via
12629        pthread_cancel() and pthread_exit().
12630      - examples/ostest: enhance pthread cancellation test some.
12631
12632Works-In-Progress:
12633
12634    * IEEE802.14.5/6LowPAN.  Hooks and framework for this effort were
12635      introduced in NuttX-7.15.  Work has continued on this effort on
12636      forks from the main repositories, albeit with many interruptions.
12637      The completion of this wireless feature will postponed until at
12638      least NuttX-7.20.
12639
12640Bugfixes.  Only the most critical bugfixes are listed here (see the
12641ChangeLog for the complete list of bugfixes and for additional, more
12642detailed bugfix information):
12643
12644    * Core OS:
12645
12646      - sched/semaphore: Within the OS, when a thread obtains a semaphore
12647        count it must call sem_addholder() if CONFIG_PRIORITY_INHERITANCE is
12648        enabled.  If a count is available, then sem_wait() calls
12649        sem_addholder(), otherwise it waited for the semaphore and called
12650        sem_addholder() when it eventually received the count.  This caused a
12651        problem when the thread calling sem_wait() was very low priority.
12652        When it received the count, there may be higher priority threads
12653        "hogging" the CPU that prevent the lower priority task from running
12654        and, as a result, the sem_addholder() may be delayed indefinitely.
12655        The fix was to have sem_post() call sem_addholder() just before
12656        restarting the thread waiting for the semaphore count.  This problem
12657        was noted by Benix Vincent who also suggested the solution.
12658      - Many files: Make sure that priority inheritance is not enabled for
12659        semaphores whose primary use is signaling (vs locking of resources) by
12660        calling sem_setprotocol().
12661      - sched/semaphore:  sem_trywait() no longer modifies the errno value
12662        UNLESS an error occurs.  This allows these functions to be used
12663        internally without clobbering the errno value.  From Freddie Chopin.
12664      - sched/clock: Correct clock initialization.  The correct range for the
12665        month is 0-11 but is entered as 1-12 in the .config file.  Add ranges
12666        to START_YEAR, MONTH, and DAY in sched/Kconfig.
12667      - sched/clock:  Correct calculation for the case of Tickless mode with a
12668        32-bit timer.  In that case, the calculation was returning millisecond
12669        accuracy.  That is not good when the timer accuracy is < 1 msec.  From
12670        Rajan Gill.
12671      - Work Queue:  When queuing new LP work, don't signal any threads if
12672        they are all busy.  From Heesub Shin.
12673      - Work Queue: Signal sent from work_signal() may interrupt the low
12674        priority worker thread that is already running. For example, the
12675        worker thread that is waiting for a semaphore could be woken up by the
12676        signal and break any synchronization assumption as a result. It also
12677        does not make any sense to send signal if it is already running and
12678        busy. This change fixes it.  From Heesub Shin.
12679      - Fix DEBUGASSERT() in group_signal.c.  From Masayuki Ishikawa.
12680      - Eliminate bad boardctl() commands:  Remove all references to
12681        BOARDIOC_PWMSETUP and board_pwm_setup(). Remove all references to
12682        BOARDIOC_ADCSETUP and board_adc_setup(). Remove
12683        BOARDIOC_CAN_INITIALIZE.  CAN initialization is now done in the board
12684        initialization logic just like every other device driver.
12685      - pthreads:  Fix an error in pthread_mutex_destroy().  An error could
12686        occur while destroying a mutex after a pthread has been canceled while
12687        holding the mutex.
12688      - task_restart: Make sure new task starts with pre-emption disabled and
12689        not in a critical section.
12690      - Enter/leave Critical Sections.  Major redeign to
12691        enter/leave_critical_section logic to deal with the case where
12692        interrupts are disabled only on the local CPU.  In this case, some
12693        rather complex spinlocks must be used to maintain the critical section
12694        accross all CPUs.
12695      - SMP Critical Sections:  Fixes for the SMP case: (1) Change order for
12696        SMP case in enter_critical_section:  (1) Disable local interrupts
12697        BEFORE taking spinlock and (2) If SMP is enabled, if any interrupt
12698        handler calls enter_critical_section(), it should take the spinlock.
12699      - SMP wdogs:  Wdog timers use a tasking interface that to manipulate
12700        wdogs, and a different interface in the timer interrupt handling logic
12701        to manage wdog expirations.  In the single CPU case, this is fine.
12702        Since the tasking level code calls enter_critical_section, interrupts
12703        are disabled and no conflicts can occur.  But that may not be the case
12704        in the SMP case.  Most architectures do not permit disabling
12705        interrupts on other CPUs so enter_critical_section must work
12706        differently:  Locks are required to protect code. this change adds
12707        locking (via enter_critical section) to wdog expiration logic for the
12708        the case if the SMP configuration.
12709      - SMP vfork():  Fix a race condition in the SMP case.  Existing logic
12710        depended on the fact that the child would not run until waitpid was
12711        called because the child had the same priority as the parent.  BUT in
12712        the SMP case that is not true... the child may run immediately on a
12713        different CPU.
12714      - SMP: This change adds a new internal interfaces and fixes a problem
12715        with three APIs in the SMP configuration.  The new internal interface
12716        is sched_cpu_pause(tcb).  This function will pause a CPU if the task
12717        associated with 'tcb' is running on that CPU.  This allows a different
12718        CPU to modify that OS data stuctures associated with the CPU.  When
12719        the other CPU is resumed, those modifications can safely take place.
12720        The three fixes are to handle cases in the SMP configuration where one
12721        CPU does need to make modifications to TCB and data structures on a
12722        task that could be running running on another CPU.  Those three cases
12723        are task_delete(), task_restart(), and execution of signal handlers.
12724        In all three cases the solutions is basically the same:  (1) Call
12725        sched_cpu_pause(tcb) to pause the CPU on which the task is running,
12726        (2) perform the necessary operations, then (3) call up_cpu_resume() to
12727        restart the paused CPU.
12728      - SMP: Add logic to avoid a deadlock condition when CPU1 is hung waiting
12729        for g_cpu_irqlock with interrupts interrupts and CPU0 is waiting for
12730        g_cpu_paused.
12731      - SMP: Enforce this rule: Tasks which are normally restored when
12732        sched_unlock() is called must remain pending (1) if we are in a
12733        critical section, i.e., g_cpu_irqlock is locked , or (2) other CPUs
12734        still have pre-emption disabled, i.e., g_cpu_schedlock is locked.  In
12735        those cases, the release of the pending tasks must be deferred until
12736        those conditions are met.
12737
12738    * File System/Block Drivers/MTD Drivers:
12739
12740      - AT24XX EEPROM MTD driver:  Added EEPROM timeout.  Fromo Aleksandr
12741        Vyhovanec.
12742      - fs/procfs:  Fix procfs status for SMP case.
12743
12744    * Graphics/Graphic Drivers:
12745
12746      - Fonts:  Correct some default font IDs.  From Pierre-Noel Bouteville.
12747
12748    * Common Drivers:
12749
12750      - usbhost/enumerate:  Fix possible buffer overwrite.  From Janne Rosberg.
12751      - usbhost/composite:  Fix compile; missing semicolons.  From Jann Rosberg.
12752      - syslog:  Fixes required for file syslog output.  From Max Kriegleder.
12753      - SPI configuration:  Fix Kconfig warning.  This change moves the
12754        ARCH_HAVE_SPI options outside the check for SPI.  Those options don't
12755        depend on SPI, and Kconfig files  in arch/ enable them even if SPI
12756        isn't  enabled.  Source the driver's Kconfig in drivers/Kconfig only
12757        if support for the driver is enabled prevents us from defining these
12758        ARCH_HAVE options in the driver's Kconfig. We should probably remove
12759        the other checks in drivers/Kconfig and check if the drivers are
12760        enabled only in their Kconfig.  From Paul A. Patience.
12761      - drivers/timer:  Remove the timer driver TIOC_SETHANDLER IOCTL call.
12762        This calls directly from the timer driver into application code.  That
12763        is non-standard, non-portable, and cannot be supported.  Instead, add
12764        timer driver hooks to support signal notification of timer
12765        expiration.  Signal notification logic added by Sebastien Lorquet.
12766      - All timer lower half drivers.  Port Sebastien's changes to all other
12767        implementations of the timer lower half.
12768      - USB MSC Device:  Fix length of mode6 sense reply packet.  From
12769        Wolfgang Rei�negger.
12770      - USB Composite Host:  Fix end offset in usbhost_copyinterface().  From
12771        Janne Rosberg.
12772      - USB CDC/ACM Host:   Add CDC_SUBCLASS_ACM and CDC_PROTO_ATM to
12773        supported class and proto.  From Janne Rosberg.
12774      - SSD1306:  Fix errors in SPI mode configuration.  From Gong Darcy.
12775      - CDC/ACM Device Class:  uart_ops_s portion of cdcacm will not be
12776        initialized with correct functions if CONFIG_SERIAL_DMA is selected.
12777
12778    * Networking/Network Drivers:
12779
12780      - drivers/net/tun.c: Fix bug in TUN interface driver.  From  Max Nekludov.
12781
12782    * ARMv7-A:
12783
12784      - ARMv7-A SMP: Add SMP logic to signal handling.
12785
12786    * ARMv7-M:
12787
12788      - ARMv7-M: Fix double allocation of MPU region in mmu.h.
12789
12790    * ARMv7-R:
12791
12792      - ARMv7-R:  Fix compilation error.  This change fixes compilation errors
12793        on MPU support for ARMv7-R.  From Heesub Shin.
12794      - ARMv7-R: fix invalid drbar handling.  In ARMv7-R, [31:5] bits of DRBAR
12795        is physical base address and other bits are reserved and SBZ. Thus,
12796        there is no point in passing other than the base address.  From Heesub
12797        Shin.
12798      - ARMv7-R:  Remove the redundant update on SCTLR. mpu_control() is
12799        invoking cp15_wrsctlr() around SCTLR update redundantly.  From Heesub
12800        Shin.
12801      - ARMv7-R:  Add new Kconfig entries for D/I-cache. Unlike in ARMv7-A/M,
12802        Kconfig entries for data and instruction caches are currently missing
12803        in ARMv7-R. This change adds those missing Kconfig entries. Actual
12804        implmenetation for those functions will be added in the subsequent
12805        patches.  From Heesub Shin.
12806      - ARMv7-R: Add cache handling functions.  This change adds functions for
12807        enabling and disabling d/i-caches which were missing for ARMv7-R.
12808        From Heesub Shin.
12809      - ARMv7-R: Fix typo in mpu support.  s/ARMV7M/ARMV7R/g. From Heesub Shin.
12810      - ARMv7-R: Fix CPSR corruption after exception handling.  A sporadic
12811        hang with consequent crash was observed when booting. It seemed to be
12812        caused by the corrupted or wrong CPSR restored on return from
12813        exception. NuttX restores the context using code like this:  msr spsr,
12814        r1.  GCC translates this to:  msr spsr_fc, r1.  As a result, not all
12815        SPSR fields are updated on exception return.  This should be: msr
12816        spsr_fsxc, r1.  On some evaluation boards, spsr_svc may have totally
12817        invalid value at power-on-reset. As it is not initialized at boot, the
12818        code above may result in the corruption of cpsr and thus unexpected
12819        behavior. From Heesub Shin.
12820      - ARMv7-R: Fix to restore the Thumb flag in CPSR.  Thumb flag in CPSR is
12821        not restored back when the context switch occurs while executing thumb
12822        instruction.  From Heesub Shin.
12823
12824    * Atmel SAM3/4 Drivers:
12825
12826      - SAM3/4 UDP:  Add delay between setting and clearing the endpoint RESET
12827        bit in sam_ep_resume().  We need to add a delay between setting and
12828        clearing the endpoint reset bit in SAM_UDP_RSTEP. Without the delay
12829        the USB controller will (may?) not reset the endpoint.  If the
12830        endpoint is not being reset, the Data Toggle (DTGLE) bit will not to
12831        be cleared which will cause the next transaction to fail if DTGLE is
12832        1. If that happens the host will time-out and reset the bus.  Adding
12833        this delay may also fix the USBMSC_STALL_RACEWAR in usbmsc_scsi.c,
12834        however this has not been verified yet.  From Wolfgang Rei�negger.
12835      - SAM3/4: Remove unused 'halted' flag from UDP driver.  From Wolfgang
12836        Rei�negger.
12837      - SAM3/4: Remove 'stalled' flag from the UDP driver.  This flag is not
12838        necessary because the state of the endpoint can be determined using
12839        'epstate' instead. From Wolfgang Rei�negger.
12840
12841    * Atmel SAM3/4 Boards:
12842
12843      - SAM4S Xplained Pro: Configuration uses old, improper timer interface.
12844        CONFIG_TIMER disabled in configuration.  Remove obsolete timer
12845        initialization logic.
12846
12847    * Atmel SAMV7 Drivers:
12848
12849      - SAMv7 USBDEVHS:  A problem occurred with the SAMV7 USBDEVHS driver  if
12850        the USB cable is unplugged while a large amount of data is send over
12851        an IN endpoint using DMA. If the USB cable is plugged in again after a
12852        few seconds it is not possible to send data over this IN endpoint
12853        again, all other endpoints work as expected.  The problem occurs
12854        because if the USB cable is unplugged while an DMA transfer is in
12855        flight the transfer is canceled but the register SAM_USBHS_DEVDMACTRL
12856        is left in an undefined state.  The problem was fixed the problem by
12857        resetting the register SAM_USBHS_DEVDMACTRL to a known state.
12858        Additionally all pending interrupts are cleared.  From Stefan Kolb.
12859      - SAMV7 MCAN: Prevent Interrupt-Flooding of ACKE when not connected to
12860        CAN-BUS. An Acknowledge-Error will occur every time no other CAN Node
12861        acknowledges the message sent. This will also occur if the device is
12862        not connected to the can-bus. The CAN-Standard declares, that the Chip
12863        has to retry a given message as long as it is not sent successfully
12864        (or it is not cancelled by the application). Every time the chip tries
12865        to resend the message an Acknowledge-Error-Interrupt is generated. At
12866        high baud rates this can lead in extremely high CPU load just for
12867        handling the interrupts (and possibly the error handling in the
12868        application). To prevent this Interrupt-Flooding we disable the ACKE
12869        once it is seen as long we didn't transfer at least one message
12870        successfully.  From Frank Benkert.
12871      - SAMV7 MCAN:  Make delete_filter functions more robust.  From Frank
12872        Benkert.
12873
12874    * Atmel SAMA5 Drivers:
12875
12876      - SAMA5 PWM:  Driver does not build when executing from SDRAM before
12877        board frequencies are not constant.  Rather, the bootloader configures
12878        the clocking and we must derive the clocking from the MCK left by the
12879        bootloader.  This means lots more computations.  This is untested on
12880        initial change because I don't have a good PWM test setup right now.
12881
12882    * Misoc LM32:
12883
12884      - Misoc LM32: Corrects a bug that never occured in qemu on simulation or
12885        real fpga. The error was that the r1 register was being modified out
12886        of context switching and not restoring it.  From Ramtin Amin
12887
12888    * NXP Freescale i.MX6:
12889
12890      - i.MX6 interrupt handling:  Additional logic needed to handle nested
12891        interrupts when an interrupt stack is used.  Nesting can occur because
12892        SGI interrupts are non-maskable.
12893
12894    * NXP Freescale LPC43xx Drivers:
12895
12896      - LPC43xx serial: Fix a typo in ioctl TIOCSRS485 ioctl.  From Vytautas
12897        Lukenskas.
12898      - LPC43xx serial:  Restore RS485 mode on serial port open (if RS485 is
12899        enabled via menuconfig).  From Vytautas Lukenskas.
12900      - LPC43xx SD/MMC:  Correct some definitions on SMMC control register in
12901        lpc43_sdmmc.h.  From Alan Carvalho de Assis.
12902      - LPC43xx SD card:  Correct pin configuration options needed for SD card
12903        pins.  From Alan Carvalho de Assis.
12904
12905    * SiLabs EFM32:
12906
12907      - EFM32: Fix a compilation error.  From Pierre-noel Bouteville.
12908
12909    * STMicro STM32 Drivers:
12910
12911      - STM32 CHxN channels are always outputs.  From Sebastien Lorquet.
12912      - STM32 DAC:  Fix shift value whenever there are is a DAC2 and, hence,
12913        up to three interfaces.  From Marc Recht�.
12914      - STM32 F1:  Add TIM8 to STM32F103V pinmap.  From Maciej W�jcik.
12915      - STM32 F1: Fix for F1 RTC Clock, tested on F103.  From Maciej W�jcik.
12916      - STM32 F3:  STM32F303xB and STM32F303xC chips have 4 ADCs.  From Paul
12917        A. Patience.
12918      - STM32 F4:  A new implementation of the STM32 F4 I2C bottom half.  The
12919        common I2C as this did not handled correctly in the current
12920        implementation (see also https://github.com/PX4/NuttX/issues/54).  The
12921        changes almost exclusively affect the ISR.  From Max Kriegleder.
12922      - STM32 F4  OTGHS Host:  If STM32F446 increase number of channels to
12923        16.  From Janne Rosberg.
12924      - STM32 F4:  I think, that Size is (highest address+1 - Base address).
12925        Base address has been removed and if address+count >= size we are
12926        outside of the Flash.  From David Sidrane.
12927      - STM32 F4:  Fix ADC compilation error when DMA isn't enabled. From Paul
12928        A. Patience.
12929      - STM32 F4:  STM32F427 was rebooting. Over reached family.  From David
12930        Sidrane.
12931      - STM32 F4:  Added STM32F469 RAM size and deliberated STM32F446 size.
12932        From David Sidrane.
12933      - STM32 F4:  Typo in stm32f76xxxx_pinmap.h edited online with
12934        Bitbucket.  From David Sidrane.
12935      - STM32 F7:  stm32_i2c.c Dejavu.  Fixes a bug previously found in the
12936        F4. From David Sidrane.
12937      - STM32 F7:  OTGDEV fixed typo.  From David Sidrane.
12938      - STM32 F7:  Fix to SPI-Master driver.  Without this the chip select
12939        decoding feature will not work properly.  From Michael Spahlinger.
12940      - STM32 F7:  STM32F7 SD/MMC driver depends on CONFIG_SDIO_DMA which is
12941        only defined in stm32/Kconfig.  Changed to CONFIG_STM32F7_SDMMC_DMA
12942        and defined in stm32f7/Kconfig.
12943      - STM32 F7:  Fix some STM32F7 copy paste errors.  From David Sidrane.
12944      - STM32 L4:  Complementary PWM outputs on STM32L4"  (1) too many
12945        parentheses when calculating max chan count and (2) channel 4 does not
12946        have a complementary output. From Sebastien Lorquet.
12947      - STM32 L4:  Fix I2C devices RCC registers.  From Sebastien Lorquet.
12948      - STM32 L4:  Enable and renaming for 32l4 UARTs 4 and 5. From Sebastien
12949        Lorquet.
12950      - STM32 L4:  Change the way to configure quadrature encoder prescalers.
12951        From Sebastien Lorquet.
12952      - STM32 L4:  Correct USART1/2 definitions.  Use default mbed UART4
12953        settings.  From Sebastien Lorquet.
12954
12955    * STMicro STM32 Boards:
12956
12957      - STM32F103 Minimum: Fix Timers 2 to 7 clock frequencies. From Alan
12958        Carvalho de Assis.
12959      - Nucleo-F303RE:  Remove duplicate setting from board.h.   From  Marc
12960        Recht�.
12961      - Nucleo F303RE: Various fixes to get the ADC configuration building
12962        again after PR.  Refresh all configurations.
12963      - Nucleo L476RG: Add better selection of timer.
12964
12965    * TI Tiva Boards:
12966
12967      - DK-TM4C129x: Typo fix.  From Wolfgang Rei�negger.
12968
12969    * Xtensa ESP32:
12970
12971      - ESP32 core v2:  Flush the UART TX buffer in the esp32 serial shutdown
12972        routine. The ROM bootloader does not flush the FIFO before handing
12973        over to user code, so some of this output is not currently seen when
12974        the UART is reconfigured in early stages of startup.  From Angus
12975        Gratton.
12976      - Xtensa ESP32:  Corrects a problem with dispatching to signal
12977        handlers:  Cannot vector directly to the signal handling function as
12978        in other ABIs under the Xtensa Window ABI.  In that case, we need to
12979        go through a tiny hook when performs the correct window call (call4)
12980        otherwise registers will be scrambled in the signal handler.
12981
12982    * Xtensa ESP32 Boards:
12983
12984      - ESP32 core v2:  Changes the openocd config file's default flash
12985        voltage from 1.8V to 3.3V. This is not necessary right now, but may
12986        save some hard-to-debug moments down the track (3.3V-only flash
12987        running at 1.8V often half-works and does weird things...).  From
12988        Angus Gratton.
12989
12990    * C Library/Header Files:
12991
12992      - libc/stdio:  Fixes sscanf() %sn where strlen(data) < n.  From David
12993        Sidrane.
12994      - libc/stdio:  Include wchar.h in lib_libvsprintf.c to fix compilation
12995        error.  From Alan Carvalho de Assis.
12996      - include/sys/time.h: timersub macro modified per recommendations of
12997        phreakuencies.
12998      - include/ctype.h and cxx/cctype:  Implement ctype.h functions as inline
12999        if possible.  cctype can then properly select namespace.
13000      - include/: Fix a number of header files with mismatched 'extern C {'
13001        and '}'.
13002      - libc/unisted:  Change brings strtol() and related functions more
13003        conformant with POSIX.  Corner cases like strtol(-2147483648, NULL,
13004        10) now pass clang -fsanitize=integer without warnings.  From Juha
13005        Niskanen.
13006      - libc/unistd: sleep() was returning remaining nanoseconds (kind of),
13007        instead the remaining seconds.  From Eunbong Song.
13008      - termios.h:  Fix CRTSCTS define to include input and output flow. From
13009        Lorenz Meier.
13010
13011    * Build/Configuration System:
13012
13013      - configs/*/defconfig: The buttons example was changed to archbuttons.
13014        As a result all of the button configurations are broken and need some
13015        renaming in the defconfig files.  Noted by Frank Berkert.
13016      - config/*/defconfgs: More fallout from name change of
13017        apps/examples/buttons to archbuttons.
13018      - configs:  All QE encoder files.  Last change made timer hard-coded to
13019        3. Make configurable.
13020      - configs: Remove all traces of the no-longer existent ARCHBUTTONS
13021        example.  Remove all button configurations that depended on the
13022        obsoleted ARCHBUTTON example.
13023      - minnsh Configurations:  Remove minnsh configurations and support
13024        logic:  up_getc() and lowinstream.  This was an interesting exercise
13025        to see just how small you could get NuttX, but otherwise it was not
13026        useful:  (1) the NSH code violated the OS interface layer by callup
13027        up_getc() and up_putc() directly, and (2) while waiting for character
13028        input, NSH would call up_getc() which would hog all of the CPU.  Not a
13029        reasonable solution other than as a proof of concept.
13030
13031    * Application Build/Configuration System:
13032
13033      - Make.defs:  Using wrong link script if native window tool used with
13034        Cygwin.
13035
13036    * apps/platform:
13037
13038      - ESP32 Core v2 Platform: Fix some naming that prevented building the
13039        C++ support.
13040
13041    * apps/nshlib:
13042
13043      - NSH Library:  nsh_getdirpath(), use snprint instead of sprintf to
13044        avoid possibility of buffer overrun.  Noted by Chung Hwan Kim.
13045
13046    * apps/system:
13047
13048      - Remove std_readline().  This called up_getc() and up_putc() directly,
13049        violating the POSIX OS interface.
13050
13051    * apps/netutils:
13052
13053      - FTPD: Fixed bug that didn't free ftpd ressources on exit.  From Pascal
13054        Speck.
13055      - NTP client: Fix missing left parenthesis.  From Pierre-Noel Bouteville.
13056      - cJSON: Import patch to fix:cJSON_PrintUnformatted() behaves unexpected
13057        if an empty array shall be printed to text. from Jerome Lang
13058        2012-04-19. From Pierre-Noel Bouteville.
13059      - esp8266 update cosmetic and many bug fix.  From Pierre-Noel Bouteville.
13060      - FTPD:  Fix bug un ftpd file or socket may be not closed.  From
13061        Pierre-Noel Bouteville.
13062
13063    * apps/modbus:
13064
13065      - Modbus Master is missing many files and doesn't compile at all. More
13066        details in
13067        https://groups.yahoo.com/neo/groups/nuttx/conversations/topics/13734.
13068        From Vytautas Lukenskas.
13069
13070    * apps/examples:
13071
13072      - The examples/qencoder app was trying to init the encoder by a direct
13073        call into the board, cheating in a local header to declare the
13074        normally unavailable function prototype.  From Sebastien Lorquet.
13075      - apps/examples/timer: Should detach signal handler before exiting.
13076      - examples/qencode: The examples/qencoder app was trying to init the
13077        encoder by a direct call into the board, cheating in a local header to
13078        declare the normally unavailable function prototype.  From Sebastien
13079        Lorquet.
13080      - apps/examples/archbuttons:  Removed becaue it violates OS interface
13081        principles.
13082      - examples/adc, pwm, can: Remove all usage of BOARDIOC_ADCTEST_SETUP,
13083        BIOARDIOC_PWMSETUP.  Remove BOARDIOC_CAN_INITIALIZE.  CAN
13084        initialization is now done in the board initialization logic just like
13085        every other device driver.
13086      - examples/ostest: Add some delays to the pthread cancellation test.
13087        With deferred cancellation enabled, things happen more asynchronously.
13088
13089NuttX-7.20 Release Notes
13090------------------------
13091
13092The 120th release of NuttX, Version 7.20, was made on March 8, 2017,
13093and is available for download from the Bitbucket.org website.  Note
13094that release consists of two tarballs:  nuttx-7.20.tar.gz and
13095apps-7.20.tar.gz.  These are available from:
13096
13097    https://bitbucket.org/nuttx/nuttx/downloads
13098    https://bitbucket.org/nuttx/apps/downloads
13099
13100Both may be needed (see the top-level nuttx/README.txt file for build
13101information).
13102
13103Additional new features and extended functionality:
13104
13105    * Core OS:
13106
13107      - Kernel Modules:  Module initializer may now return a symbol table.
13108      - Modules:  Extend the module interface so that we can access symbols
13109        exported by the module.
13110      - Shared Libraries:  In the FLAT build mode, kernel modules may be
13111        used to provide minimal shared library functionality.
13112      - Modules/Shared Libraries:  Add support for dependencies between
13113        modules.
13114      - Module Library:  Add build a configuration logic for a shared module
13115        library.
13116      - Shared Libraries: Implement module based shared libraries for the
13117        PROTECTED mode build.
13118      - Interrupt handling:  irq_attach() now includes an argument of type
13119        xcpt_t that retained with the handler address.  That argument is
13120        then provided to the interrupt handler when the interrupt occurs.
13121        The common parameter passing replaces the ad hoc parmater passing
13122        implemented in current drivers.  From Mark Schulte.
13123      - Adapt many drivers to utilize the IRQ argument feature.
13124      - All functions that used to return an xcpt_t old handler value, now
13125        return an int error code.  The oldhandler value is no longer useful
13126        with the recent changes to the interrupt argument passing.  Some of
13127        the functions effected include board_button_irq(), arch_phy_irq(),
13128        STM32 EXTI functions (Alarm, COMP, PVD), GPIO interrupt logic like
13129        kinetis_pinirq(), stm32_gpiosetevent(), and others.
13130      - IRQ subsystem:  Add support for smaller interrupt tables as
13131        described at
13132        http://www.nuttx.org/doku.php?id=wiki:howtos:smallvectors .  This
13133        is partially the work of Mark Schulte.
13134
13135    * File Systems/Block and MTD Drivers
13136
13137      - Pseudo File System:  Add support for soft links in the top-level
13138        pseudo file system.
13139      - Soft links:  Add an implementation of readlink().
13140      - Add fstat() support.  Implement fstat() method in binfs, romfs,
13141        unionfs, tmpfs, nxffs, nfx, hostfs, procfs, and smartfs.
13142      - fstat:  Add fstat() support to FAT.  From Alan Carvalho de Assis.
13143
13144    * Graphics/Display Drivers:
13145
13146      - Fonts: Add support for Tom Thumb small mono-space font. From Alan
13147        Carvalho de Assis.
13148      - Graphics:  Separated of font cache from graphics/nxterm.  Now in
13149        libnx/nxfronts where it can be shared with other grapics
13150        applications.
13151
13152    * Networking/Network Drivers:
13153
13154      - Ethernet drivers:  Add framework for serialization in the case where
13155        multiple low-priority work queues are used.
13156
13157    * Other Common Device Drivers:
13158
13159      - Add capabilities() method to SDIO interface.  Remove
13160        CONFIG_SDIO_WIDTH_D1_ONLY.  That should not be a global propertie,
13161        but rather a capability/limitation of single slot when there may be
13162        multiple slots.
13163      - Removed dmasupported() method from the SDIO interface.  That is now
13164        a bit in the capability set.
13165      - drivers/sensors: Add driver for the ST L3GD20 3 axis gyro.  From
13166        raiden00.
13167
13168    * Atmel SAM3/4:
13169
13170      - SAM3/4: Add support for ATSAM4S4C.  From Wolfgang Rei�negger.
13171
13172    * NXP Freescale i.MX6 Boards:
13173
13174      - Sabre 6quad:  Enable examples/smp test in i.MX6 SMP/NSH
13175        configurations.
13176
13177    * NXP Freescale Kinetis:
13178
13179      - Kinetis:  Added support for CHIP_MK60FN1M0VLQ12 chip.  From Maciej
13180        Skrzypek.
13181      - Kinetis:  Add support for K64/K66 RTC lower half driver. From Neil
13182        Hancock.
13183      - Kinetis:  Extensive modification of MCG support based feature
13184        configuration.  From David Sidrane.
13185      - Kinetis:  Add support for K66 family.  From David Sidrane.
13186      - Kinetis:  Created a kinetis SIM versioning scheme pulled in by
13187        Kinetis chip.h.  From David Sidrane.
13188      - Created a kinetis PMC versioning scheme pulled in by Kinetis
13189        chip.h.  From David Sidrane.
13190      - Kinetis: Extend clock configuration logic.  Refactor
13191        implementation.  From David Sidrane.
13192
13193    * NXP Freescale Kinetis Drivers:
13194
13195      - Kinetis Ethernet:  Kinetis Support RMII clock source select.  This
13196        defined the RMII clock source select bits and allows the selection
13197        to be made via Kconfig. From David Sidrane.  Freedom-K66F uses
13198        ENET_1588_CLKIN as RMII clock
13199      - Kinetis Serial:  Added configurable 1|2 stop bits.
13200        HAVE_SERIAL_CONSOLE -> HAVE_UART_CONSOLE to be consistent with
13201        HAVE_LPUART_CONSOLE naming. From David Sidrane.
13202      - Kinetis LPserial:  Add LPUART serial driver and Clock
13203        configuartaion to freedom-k66f board.  From David Sidrane.
13204      - Kinetis USB device:  Refactor clocking in kinetis_usbdev.  From
13205        David Sidrane.
13206
13207    * NXP Freescale Kinetis Boards:
13208
13209      - Add support for NXP Freedom-k66f development board.  From David
13210        Sidrane.
13211      - Kinetis Freedom K66F:  Add Ethernet support.  From David Sidrane.
13212      - Add twr-k64f120m config.  From Marc Recht�.
13213
13214    * NXP Freescale LPC43xx Boards:
13215
13216      - Bamboo-200E: Add netnsh configuration.  From Alan Carvalho de Assis.
13217      - Add usbnsh config to Bambino 200E board.  From Alan Carvalho de
13218        Assis.
13219
13220    * STMicro STM32:
13221
13222      - STM32 F7: Allow board to configure HSE clock in bypass-mode. This
13223        is needed to enable HSE with Nucleo-F746ZG board.  From Jussi
13224        Kivilinna.
13225      - STM32 F7: stm32_allocateheap: allow use DTCM memory for heap.
13226        STM32F7 has up to 128KiB of DTCM memory that is currently left
13227        unused.  This change adds DTCM to main heap if
13228        CONFIG_STM32F7_DTCMEXCLUDE is not enabled.  From Jussi Kivilinna.
13229      - Add basic support for the STM32F334.  From Mateusz Szafoni.
13230      - STM32F33XX DAC, OPAMP, COMP, ADC, HRTIM headers.   From Mateusz
13231        Szafoni.
13232
13233    * STMicro STM32 Drivers:
13234
13235      - STM32 F7 SDMMC:  Add support for single bit operation on SDMMC2.
13236      - STM32 L4:  Port STM32L4 SAI driver from MDK.
13237      - STM32 L4:  Bring power management logic from Motrola MDK into NuttX.
13238      - STM32 L4:  Bring LPTIM driver in from the Motorola MDK.
13239      - STM32 L4 COMP: Port from Motorola MDK.
13240
13241    * STMicro STM32 Boards:
13242
13243      - STM32F429i Discovery: Add support for NxWM on STM32F429i-Disco
13244        board. From Alan Carvalho de Assis.
13245      - STM32F103 Minimum: Add support for nRF24 on STM32F103-Minimum
13246        board. From Alan Carvalho de Assis.
13247      - Olimex STM32 P407: Add a NSH protected build configuration; Enable
13248        procfs/ in all configurations.
13249      - Olimex STM32 P407: Add support for on-board microSD slot.
13250      - STM32F429i Discovery:  Add support for the L3GD20 driver.  From
13251        raiden00.
13252      - STM32F103 Minimum: Add support to QEncoder on STM32F103 Minimum
13253        board.   From Alan Carvalho de Assis.
13254      - Olimex STM32 P407:  Add external SRAM support.
13255      - Add basic support for the Nucleo F334R8 board.  From Mateusz
13256        Szafoni.
13257      - STM32F103 Minimum: Add SDCard support over SPI on STM32F103-Minimum
13258        board.  From Alan Carvalho de Assis.
13259      - STM32F103 Minimum: Add support to USB Device on STM32F103-Minimum
13260        board.  From Alan Carvalho de Assis.
13261
13262    * C Library/Header Files:
13263
13264      - compiler.h: packed_struct replaced by begin_packed_struct and
13265        end_packed_struct. Now support IAR style packed structures.  From
13266        Aleksandr Vyhovanec.
13267      - Math library: Leverage optimized ARMv8-M functions from BSD license
13268        ARM file.
13269      - Shared libraries:  Add a non-standard dllfnc.h function to set the
13270        symbol table.
13271      - C Library: Add a support for setvbuf(). This is a collaborative
13272        effort.  Alan Carvalho de Assis did the initial prototype.
13273      - C Library: Add setbuf() which is a trivial wrapper around setvbuf().
13274      - C library:  Add swab().
13275      - C library: Add strtoimax and strtoumax.
13276      - C library:  Add ffs(), rindex(), an index().  Add strings.h.  Move
13277        strcasecmp, strncasecmp, bzero, bcmp, and bcopy to where they
13278        belong in strings.h.h, not string.h.  bzero, bcmp, and bcopy are
13279        legacy functions; the contemporary counterparts should be used
13280        instead.
13281      - C library: Add fstatfs().
13282      - Update cwchar.  Add cwctype.
13283
13284    * Build/Configuration System:
13285
13286      - Add configuration support for builds with Ubuntu under Windows 10.
13287
13288    * Tools:
13289
13290      - tools/noteinfo.c: A hack tool that I use to analyze some sched_note
13291        output.  Needs a home and may be useful to others.
13292      - tools/mkconfig.c: Add logic to keep all of the buffering options in
13293        sync.
13294
13295    * NSH: apps/nshlib:
13296
13297      - NSH: Add support for the 'ln' command.
13298      - NSH ls command: if node is a symobolic link, use readlink() to get
13299        and the display the target of the symblic link.
13300      - NSH: Add readlink command.
13301
13302    * Applications: apps/examples:
13303
13304      - apps/examples/nxtext: Make line spacing configurable.
13305      - apps/system/zmodem/host/nuttx/compiler.h synchronized with
13306        nuttx/nuttx/include/nuttx/compiler.h.  From Aleksandr Vyhovanec.
13307      - apps/examples/sotest:  Add a test for shared libraries.
13308      - apps/examples/ostest:  Add a test of setvbuf().
13309      - apps/examples/stat:  Add a simple test for stat(), fstat(),
13310        statfs(), and fstatfs().
13311
13312Works-In-Progress:
13313
13314    * IEEE802.14.5/6LowPAN.  Hooks and framework for this effort were
13315      introduced in NuttX-7.15.  Work has continued on this effort on
13316      forks from the main repositories, albeit with many interruptions.
13317      The completion of this wireless feature will postponed until at
13318      least NuttX-7.21.
13319
13320Bugfixes.  Only the most critical bugfixes are listed here (see the
13321ChangeLog for the complete list of bugfixes and for additional, more
13322detailed bugfix information):
13323
13324    * Core OS:
13325
13326      - SMP: There were certain conditions that we must avoid by preventing
13327        the release of the pending tasks while withn a critical section.
13328        But this logic was incomplete; there was no logic to prevent other
13329        CPUs from adding new, running tasks while on CPU is in a critical
13330        section.  This commit corrects this.  This is matching logic in
13331        sched_addreadytorun to avoid starting new tasks within the critical
13332        section (unless the CPU is the holder of the lock).  The holder of
13333        the IRQ lock must be permitted to do whatever it needs to do.
13334      - SMP: Make checks for CPU lock set more robust.  There are certain
13335        conditions early in initialization on during interrupt handling
13336        where things need to be done a little differently.
13337      - sched_cpulocked:  Avoid use of spinlock.  That has been reported to
13338        cause a deadlock (2016-12-28).
13339      - SMP: Fix a gap where we may try to make modifications to the task
13340        lists without being in a critical sections.  That permits
13341        concurrent access to the tasks lists and many subtle problems.
13342        This fix just remains in the critical section throughout the
13343        operation (and possible until the task is restore in the event of a
13344        context switch).  Makes a big difference in stability.
13345      - SMP: Fix an error in critical section logic when performing a
13346        context switch from an interrupt handler.  The g_cpu_irqset bit was
13347        not being set for the CPU so other CPUs did not know about the
13348        critical section.
13349      - SMP Signals: Fix some SMP signal delivery logic. Was not handling
13350        some critical sections correctly and was missing logic to signal
13351        tasks running on other CPUs.
13352      - SMP:  Fix timer related issues:  Round robin and sporadic
13353        scheduling were only being performed for tasks running on the CPU
13354        that processes the system timer interrupt.  Similary, CPU load
13355        measurements were only be processed for running on the CPU that
13356        receives the sampling interrupt.
13357      - sched_note: Fix spinlock instrumentation.  From Masayuki Ishikawa.
13358      - In all implementations of _exit(), use enter_critical_section() vs.
13359        disabling local interrupts.
13360      - sigtimedwait:  When timer expires, up_unblock_task() is called.
13361        This is okay in the single CPU case because interrupts are disable
13362        in the timer interrupt handler.  But it is insufficient in the SMP
13363        case.  enter_ and leave_critical_section() must be called in order
13364        to manage spinlocks correctly.
13365      - Fix a compile error: in sched_cpuload.c:Line136, the variables ts
13366        and secs are not defined if CONFIG_CPULOAD_ONESHOT_ENTROPY = 0.
13367        However, these variables are used regardless of
13368        CONFIG_CPULOAD_ONESHOT_ENTROPY at lines~180:onwards.  From Rajan Gill.
13369      - CPU load: Correct computation of the nominal period to use when the
13370        source is a oneshot timer.
13371      - Cancellation points:  Fix some backward logic in conditional
13372        compilation.
13373      - Remove an unused variable when calling sigwaitinfo() and
13374        sigtimedwait().  From Masayuki Ishikawa.
13375
13376    * File System/Block and MTD Drivers:
13377
13378      - procfs:  Correct to snprintf-related errors in fs_procfsproc.c.
13379        Resolves issue #24.
13380      - Add logic to VFS rename:  If target of rename exists and is a
13381        directory, then the source file should be moved 'under' the target
13382        directory. POSIX also requires that if the target is a file, then
13383        that old file must be deleted.
13384      - Fix open() a block device with
13385        CONFIG_DISABLE_PSEUDOFS_OPERATIONS=y. From Masayuki Ishikawa.
13386      - File System: Don't build block driver proxy if PSEUDOFS_OPERATIONS
13387        are disabled.
13388      - sendfile():  Fix error introduced with commit
13389        ff73be870e38959b0aaee5961dc47b4b58dc2d86.  Noted by Maciej W�jcik.
13390
13391    * Graphics/Graphic Drivers:
13392
13393      - NxWM configurations.  If using a 7-bit character set, then the
13394        cursor character cannot be 137 (graphic block).  Use 95
13395        (underscore) instead.
13396      - NX server: Correct message queue names.  Should not be at /dev,
13397        but rather relative to /var/mqueue.
13398
13399    * Common Drivers:
13400
13401      - MMCSD_SDIO: Only wait for card ejected if card detection is
13402        supported. From Alan Carvalho de Assis.
13403      - Typos withim mtd/ with Macronix MX25L.  In
13404        NuttX/drivers/mtd/Make.defs letters X between M and 25 are
13405        missing.  Noted by Oleg Evseev.
13406      - USBMSC: Always set LUN readonly flag.  From Wolfgang Rei�negger.
13407      - drivers/lcd:  ssd1306_configspi() must have global scope.
13408      - MMC/SD SDIO:  Some drivers need to start DMA before sending CMD24
13409        and some AFTER.  From Alan Carvalho de Assis.
13410      - drivers/tone.c:  Handle configuration with multiple PWM channels.
13411        This resolves issue #30: Audio Tone Generator and PWM Multiple
13412        Output Channel options.
13413      - drivers/tone.c:  50% duty needs to be expressed a a fixed precision
13414        number.
13415      - drivers/spi/Kconfig:  There is too much SPI in the configuration
13416        menu; SPI Driver Support menu is empty.  From Maciej W�jcik.
13417      - option to enable Memory Card debug output was hidden with SD cards
13418        connected through SPI.   From Maciej W�jcik.
13419      - usbhost_cdcacm: fix tx outbuffer overflow and remove now invalid
13420        assert.  From Janne Rosberg.
13421
13422    * Networking/Network Drivers:
13423
13424      - Networking: Fixed some issues that prevented IPv6 from working with
13425        IPv4 enabled.  From Pascal Speck.
13426      - Networking: fixed a nullptr-dereference on iob_clone.  From Pascal
13427        Speck.
13428      - Ethernet: Need two work structures (minimum) in all Ethernet
13429        drivers so that pending poll work is not lost when an interrupt
13430        occurs.
13431
13432    * ARMv7-R:
13433
13434      - I found an issue inside the cp15_coherent_dcache function:  The
13435        "mcr CP15_BPIALLIS(r0)" should only be used with SMP
13436        configurationa. In non-SMP configuration this instruction could
13437        become undefined.  From Manohara HK.
13438
13439    * Atmel SAM3/4 Drivers:
13440
13441      - SAM3/4: GPIO bit numbering typo fixes.  From Wolfgang Rei�negger.
13442
13443    * Atmel SAM3/4 Boards:
13444
13445      - Add missing sched_note_*() calls in sam4cm SMP functions.
13446
13447    * NXP/Freescale Kinetis:
13448
13449      - Kinetis: Fixed wrong MCG VDIV calculation on new NXP K60.  From
13450        Maciej Skrzypek.
13451      - Kinetis: Need to set HAVE_UART_DEVICE when UART4 is selected.  From
13452        Maciej Skrzypek.
13453      - Kinetis MCG: Wrong FRDIV set in MCG_C1.  From Maciej Skrzypek.
13454
13455    * NXP/Freescale Kinetis Drivers:
13456
13457      - Kinetis Serial: Fixed compile error when UART5 is selected.  From
13458        Maciej Skrzypek.
13459      - Kinetis SDHC - Enable clock after selected.  From David Sidrane.
13460      - Kinetis:  Correct some SPI and I2C configuration issues.  From
13461        David Sidrane.
13462      - Kinetis Ethernet:  Add #define for number of loops for auto
13463        negotiation to complete.  From Marc Recht�.
13464      - Kinetis Werial:  Fixed up_rxint - did not disable the RX
13465        interuppts. There was an OR where and AND NOT was needed.  From
13466        David Sidrane.
13467
13468    * NXP/Freescale LPC43xx:
13469
13470      - LPC43 pinset definitions:  Add more 1 bit to pinset to reach
13471        SFSCLK0-SFSCLK3. Remove PINCONFIG_DIGITAL.  From Alan Carvalho de
13472        Assis.
13473
13474    * NXP/Freescale LPC43xx Drivers:
13475
13476      - LPC43 serial:  Correct conditional logic that selects /dev/ttySN.
13477        Problem noted by Alan Carvalho de Assis.
13478
13479    * NXP/Freescale i.MX6:
13480
13481      - i.MX6: Fix clearing GPT status register.  From Masayuki Ishikawa.
13482
13483    * STMicro STM32:
13484
13485      - STM32, STM32L4 Oneshot: Fix logic so that it can support multiple
13486        oneshot timers.
13487      - STM32 F7: Added missing ARCH_HAVE_RESET for F7.  From David Sidrane.
13488      - STM32:  Add missing STM32_BKP_BASE.  From David Sidrane.
13489      - STM32 and STM32F7: Fixes the BKP reference counter issue.  From
13490        David Sidrane.
13491
13492    * STMicro STM32 Drivers:
13493
13494      - Fix for SAMv7 SPI: DLYBS value was calculated, but never written to
13495        any registers. This led to incorrect timings on the bus.  From
13496        Michael Spahlinger.
13497      - STM32 QEncoder: Fix QEncoder driver, based on STM32L4 driver.  From
13498        Alan Carvalho de Assis.
13499      - STM32 QEncoder:  Enable clocking to the timer on QE setup; disable
13500        clock on QE teardown.
13501      - STM32 Ethernet: Need two work structures so that pending poll work
13502        is not lost when an interrupt occurs.  This change has also been
13503        ported to all all other effected Ethernet drivers.
13504      - STM32 OTGHS host:  stm32_in_transfer() fails and returns NAK if a
13505        short transfer is received.  This causes problems from class
13506        drivers like CDC/ACM where short packets are expected.  In those
13507        protocols, any transfer may be terminated by sending short or NUL
13508        packet.  From Janne Rosberg.  Adapted Janne Rosberg's patch to
13509        STM32 OTGHS host to OTGFS host, and to similar USB host
13510        implementations for STM32 L4 and F7.
13511
13512    * STMicro STM32 Boards:
13513
13514      - STM32F4 Discovery: Fix issues with QEncoder support.  From Alan
13515        Carvalho de Assis.
13516
13517    * C Library/Header Files:
13518
13519      - Add debug assertion in libdtoa to catch attempts to use floating
13520        point output formats from within an interrupt handler.  That will
13521        cause assertions or crashes downstream because __dtoa will attempt
13522        to allocate memory.  From Pierre-noel Bouteville.
13523      - libc: Fix ARMv7-A/R memcpy assembly.
13524      - Fix return value if x is NaN.  From Aleksandr Vyhovanec.
13525
13526    * apps/nshlib:
13527
13528      - NSH: Eliminate a warning when all memory inspection commands are disabled.
13529
13530    * apps/graphics:
13531
13532      - apps/graphics/traveler/tools: Fix linkage issue. The -lm should
13533        come after -o binname.  From Alan Carvalho de Assis.
13534
13535    * apps/netutils:
13536
13537      - The CONFIG_NETUTILS_HTTPD_PATH constant is used by httpd_mmap.c and
13538        httpd_sendfile.c but It was not present in Kconfig menu.  From
13539        Maciej W�jcik.
13540
13541    * apps/examples:
13542
13543      - Configurations that enable OSTEST must not disable signals.
13544      - apps/examples/ostest:  Was ignoring
13545        CONFIG_EXAMPLES_OSTEST_FPUTESTDISABLE.
13546      - In apps/examples/mtdpart/mtdpart_main.c where
13547        CONFIG_EXAMPLES_MTDPART_NPARTITIONS defining is checked should be
13548        #ifndef instead of #ifdef.  Noted by Oleg Evseev.
13549
13550NuttX-7.21 Release Notes
13551------------------------
13552
13553The 121st release of NuttX, Version 7.21, was made on June 6, 2017,
13554and is available for download from the Bitbucket.org website.  Note
13555that release consists of two tarballs:  nuttx-7.21.tar.gz and
13556apps-7.21.tar.gz.  These are available from:
13557
13558    https://bitbucket.org/nuttx/nuttx/downloads
13559    https://bitbucket.org/nuttx/apps/downloads
13560
13561Both may be needed (see the top-level nuttx/README.txt file for build
13562information).
13563
13564Additional new features and extended functionality:
13565
13566    * Core OS:
13567
13568      - pthread rwlocks:  Add an implementation for read/write locks
13569        (rwlocks) into the pthread library.  These locks are writer
13570        priority, such that if any writers come in they are given priority
13571        for writing.  From Mark Schulte.
13572      - pthread robust mutexes:  Implement robust mutex support:
13573        pthread_mutex_lock() and trylock() will return EOWNERDEAD if the
13574        mutex is locked by a thread that no longer exists.  Add
13575        pthread_mutex_consistent() to recover from this situation.  Keep
13576        list of all mutexes held by a thread in a list in the pthread's TCB.
13577        When pthread exits or is cancelled, mutexes held by thread are
13578        marked inconsistent and the highest priority thread waiting for the
13579        mutex is awakened.  There is a configuration option to (a) support
13580        only robust mutexes, (b) support only traditional unsafe mutexes,
13581        or (c) Support both unsafe and robust mutexes via
13582        pthread_mutexattr_get/setrobust().
13583      - pthread cancellation points:  Add logic to disable cancellation
13584        points within the OS.  This is useful when an internal OS function
13585        that is NOT a cancellation point calls an OS function which is a
13586        cancellation point.  In that case, irrecoverable states may occur if
13587        the cancellation is within the OS. From Juha Niskanen.
13588      - clock:  Add clock_resynchronize and use subseconds RTC.  Add
13589        clock_resynchronize for better synchronization of CLOCK_REALTIME and
13590        CLOCK_MONOTONIC to match RTC after resume from low-power state.  Add
13591        up_rtc_getdatetime_with_subseconds under
13592        CONFIG_ARCH_HAVE_RTC_SUBSECONDS to allow initializing (and
13593        resynchronizing) system clock with subseconds accuracy RTC.  From
13594        Jussi Kivilinna.
13595      - clock:  Add new type ssystime_t for relative 64-bit ticks, change
13596        ticks<->time conversion functions to use ssystime_t.  From Jussi
13597        Kivilinna.
13598      - clock:  Add testing for 32-bit overflow of 64-bit system timer.  From
13599        Jussi Kivilinna.
13600
13601    * File Systems/Block and MTD Drivers
13602
13603      - drivers/mtd/w25.c:  Erase sector only if it is not in erased state.
13604        From Jussi Kivilinna.
13605
13606    * Graphics/Display Drivers:
13607
13608      - drivers/lcd:  Extend st7565 driver to include support for the
13609        AQM_1248A.  From Masayuki Ishikawa.
13610      - drivers/lcd:  Add driver for Nokia 5110 (Philips PCD8544).  From Alan
13611        Carvalho de Assis.
13612
13613    * Networking/Network Drivers:
13614
13615      - Extensive modifications to support wireless network (see below).
13616      - TUN driver:  Implement TAP (OSI layer 2) mode. Enable by setting the
13617        IFF_TAP flag instead of the IFF_TUN flag in ifr_flags.  From Thomas
13618        Keh.
13619      - Add user-space networking stack API (usrsock).  User-space
13620        networking stack API allows user-space daemon to provide TCP/IP
13621        stack implementation for NuttX network.  Main use for this is to
13622        allow use and seamless integration of HW-provided TCP/IP stacks to
13623        NuttX.  For example, user-space daemon can translate /dev/usrsock
13624        API requests to HW TCP/IP API requests while rest of the user-space
13625        can access standard socket API, with socket descriptors that can be
13626        used with NuttX system calls.  From Jussi Kivilinna.
13627      - net/:  Network driver now retains Ethernet MAC address in a union so
13628        that other link layer addresses may be used in a MULTILINK
13629        environment.
13630
13631    * Wireless Networking/Wireless Drivers:
13632
13633      - BCM43362:  Support for Broadcom's BCM43362 WiFi chip was contributed
13634        by Simon Piriou as part of the port of the Particle Photon board.
13635        Only station functionality is available at present.  This work
13636        includes not on the WiFi driver, but the support Particle Photon
13637        board, the infrasture for IEEE 802.11 FullMAC networking including
13638        the network device interface, WiFi configuration, AP scanning and
13639        authentication and association with an AP.
13640      - IEEE 802.11 networking tools and support.
13641      - IEEE 802.15.4 MAC support.  This is an effort that was started some
13642        time back by Sebastien Lorquet (with some help from Matte Poppe).
13643        Recently, Anthony Merlino has taken on this effort and has made
13644        some significant progress.  Using the Microchip MRF24J40 module with
13645        the Mikroe Clicker2-STM32 board along with a PC-based IEEE 802.15.4
13646        sniffer, Anthonly has verified correct transmittion and receipt of
13647        basic frames.
13648      - Microchip MRF24J40: As mentioned above, this IEEE 802.15.4 radio
13649        driver is now basically functional.
13650      - IEEE 802.15.4 Network Driver:  A driver that interfaces the NuttX
13651        network with the IEEE 802.15.4 MAC has been developed but is still
13652        incomplete and has not been verified.
13653      - IEEE 802.15.4 Network Loopback Driver:  A simple IEEE 802.15.4 MAC
13654        loopback driver was developed.  This driver allowed for parallel
13655        development of the IEEE 802.15.4 MAC and 6LoWPAN.
13656      - 6LoWPAN:  The Contiki 6LoWPAN stack has been ported so that works
13657        within the NuttX networking framework and interfaces with the new
13658        IEEE 802.15.4 MAC via the network driver.  Live testing with
13659        IEEE 802.15.4 radios has not yet been done; all testing has used
13660        the loopback driver.  There are no known problems and the stack
13661        is ready for additional testing.
13662      - Add option to enable wireless debug output.
13663
13664    * Other Common Device Drivers:
13665
13666      - Add entropy pool and strong random number generator.   Entropy pool
13667        gathers environmental noise from device drivers, user-space, etc.,
13668        and returns good random numbers, suitable for cryptographic use.
13669        Based on entropy pool design from *BSDs and uses BLAKE2Xs algorithm
13670        for CSPRNG output.  Patch also adds /dev/urandom support for using
13671        entropy pool RNG and new 'getrandom' system call for getting
13672        randomness without file-descriptor usage (thus avoiding file-
13673        descriptor exhaustion attacks). The 'getrandom' interface is similar
13674        as 'getentropy' and 'getrandom' available on OpenBSD and Linux
13675        respectively.  From Jussi Kivilinna.
13676      - XBox One controller:  Adds USB host driver support for the XBox One
13677        controller.  Currently only the latest version (XBox One X)
13678        controller works.  The older XBox One controllers do not enumerate
13679        correctly.  From Brian Webb.
13680      - drivers/analog:  Add basic COMP driver.  From Mateusz Szafoni.
13681      - drivers/analog:  Add driver for the LTC1767L ADC.  From Martin
13682        Lederhilger.
13683      - drivers/analog:  Add basic OPAMP driver.  From Mateusz Szafoni.
13684      - drivers/sensors:  Add driver for ST HTS221 humidity sensor.  From
13685        Juha Niskanen.
13686      - drivers/sensors:  Add driver for ST LPS25H pressure sensor.  From
13687        Juha Niskanen.
13688      - drivers/sensors:  Add driver for ST LIS2DH accelerometer.  From Timo
13689        Voutilainen.
13690      - drivers/usbmisc:  Add driver for Fairchild FUSB301 USB type-C
13691        controller.  From Harri Luhtala.
13692      - RTC:  Add interface for check if RTC time has been set.  New
13693        interface allows checking if RTC time has been set.  This allows to
13694        application to detect if RTC has valid time (after reset) or should
13695        application attempt to get real time by other means (for example, by
13696        launching ntpclient or GPS).  From Jussi Kivilinna.
13697      - Buttons:  Change return value of board_buttons() and the type of
13698        btn_buttonset_t to uint32_t so that more than 8 buttons can be
13699        supported.
13700      - drivers/syslog:  Use monotonic clock for timestamp when available.
13701        From Jussi Kivilinna.
13702      - SPI:  Add an instance argument to the SPIDEV definitions.  Thus,
13703        instead of specifying a FLASH device, for example, as SPI_FLASH, you
13704        would now use SPI_FLASH(0) where the "instance" argument now
13705        distinguishes multiple FLASH devices on the same SPI bus.  From
13706        Sebastien Lorquet.
13707      - IOBs:  Move from net/iob to a better location in mm/iob where they
13708        can be shared outside of the networking logic.  Current also used
13709        by IEEE 802.15.4 MAC and by syslog (when buffering enabled).
13710      - syslog:  Add option to buffer SYSLOG output to avoid interleaving.
13711        Uses new shareable IOBs.  Additional logic to assure that the the
13712        write from the buffer is a single atomic write in normal debug
13713        output.
13714      - drivers/can:  Move CAN subsystem to its own directory and put device
13715        drivers there.  From Alan Carvalho de Assis.
13716      - drivers/can:  Add Microchip MCP2515 CAN Bus controller driver.  From
13717        Alan Carvalho de Assis.
13718      - drivers/audio:  Add cs43l22 audio driver.  From Taras Drozdovsky.
13719      - drivers/input:  Add Cypress MBR3108 CapSense touch button driver.
13720        From Juha Niskanen.
13721
13722    * Simulation
13723
13724      - configs/sim/sixlowpan:  Configuration for testing the 6LoWPAN with
13725        the IEEE 802.15.4 loopback network driver.
13726
13727    * Infineon XMC4xxx:
13728
13729      - arch/arm/src/xmc4:  Initial, partial support for Infineon XMC4xxx.
13730
13731    * Infineon XMC4xxx Boards:
13732
13733      - XMC4500 Relax:  Add basic board support infrastructure of Infineon
13734        XMC4500 Relax Lite v1.  Basic serial, LED, and button button support
13735        for a simple NSH configuration.  There are still stome remaining
13736        issues with serial communications.
13737
13738    * MicroChip PIC32MX Boards:
13739
13740      - pic32mx7mmb:  Add support for the Pinquino toolchain.
13741      - pic32mx7mmb:  Add support for PROCFS file system.
13742
13743    * NXP Freescale Kinetis:
13744
13745      - Kinetis:  Allow board to add pullups on SDHC lines.  From David
13746        Sidrane.
13747      - Kinetis:  Use optional BOARD_OSC_CR and BOARD_OSC_DIV in clock
13748        configuration.  From David Sidrane.
13749
13750    * NXP Freescale Kinetis Drivers:
13751
13752      - Kinetis:  Add Timer PWM Module (TPM) to K66 chip.  From David
13753        Sidrane.
13754      - Kinetis:  Added HW flow control and termios.  From David Sidrane.
13755      - Kinetis:  Add ARCH_HAVE_I2CRESET.  From David Sidrane.
13756
13757    * NXP Freescale LPC43xx:
13758
13759      - Add support for LPC4337FET256.  From Andreas Bihlmaier.
13760
13761    * STMicro STM32:
13762
13763      - Change STM32 tickless to use only one timer.  From Konstantin
13764        Berezenko.
13765      - STM32 F7:  Add support for LSE RTC and enable RTC subseconds.  From
13766        Jussi Kivilinna.
13767      - STM32 L1: stm32l15xx_rcc:  Add support for using MSI as system
13768        clock. From Juha Niskanen.
13769      - STM32 L1:  stm32l15xxx_rcc: configure medium performance voltage
13770        range and zero wait-state when allowed by SYSCLK setting.  Zero
13771        wait-state for flash can be configured when:  (1) Range 1 and
13772        SYSCLK <= 16 Mhz, (2) Range 2 and SYSCLK <= 8 Mhz, or (3) Range 3
13773        and SYSCLK <= 4.2 Mhz.  Medium performance voltage range (1.5V)
13774        can be configured when SYSCLK is up to 16 Mhz and PLLVCO up to
13775        48 Mhz.  From Juha Niskanen.
13776      - STM32 F0: Add basic support for STM32F0.  From Alan Carvalho de
13777        Assis.
13778      - STM32 F0:  Add basic support for STM32F07x family.
13779      - STM32 L1: stm32l15xx_rcc: Allow board to configure HSE clock in
13780        bypass-mode.  Allows using MCO output from ST-link chip (on Nucleo
13781        and Discovery boards) as HSE input.  From Juha Niskanen.
13782      - STM32 L1: Add support for STM32L152CC, STM32L152RC and STM32L152VC.
13783        From Juha Niskanen.
13784      - STM32 F0:  Add support for HSI48.
13785      - STM32 L4:  Add support for the STM32L496XX family.  From Juha
13786        Niskanen.
13787      - STM32 L4: modularize Kconfig to support different product
13788        lines/families.  This is modeled after STM32F7. Idea is to declare
13789        each chip in Kconfig but allow for flash size override.  Commit adds
13790        many STM32L4_HAVE_XXX feature test macros.  From Juha Niskanen.
13791      - STM32 L4:  Separate SYSCFG into product line specific files for
13792        clarity.  From Juha Niskanen.
13793      - STM32 L4:  Add support for many new MCUs from the STM32L4X3XX
13794        product line.  From Juha Niskanen.
13795      - STM32 L4:  Add dbgmcu header files.  From Juha Niskanen.
13796      - STM32 F410:  Add support for STM32F410.  STM32F410 is a version of
13797        STM32F4 with 32 KB of RAM and 62 or 128 KB of flash.  From Gwenhael
13798        Goavec-Merou.
13799
13800    * STMicro STM32 Drivers:
13801
13802      - SDIO:  Extensions to support the SDIO interface to the BCM43362 from
13803        Simon Piriou.
13804      - STM32 F2:  Add USB OTG HS support for stm32f20xxx cores.  From Simon
13805        Piriou.
13806      - STM32 F2, F4, and F7:  Add BOARD_DISABLE_USBOTG_HSULPI flag.  From
13807        Simon Piriou.
13808      - STM32 F33:  Move DMA logic to a separate files + add ADC support.
13809        From Mateusz Szafoni.
13810      - STM32 F3:  Add COMP support.  From Mateusz Szafoni.
13811      - STM32 F33:  Support for COMP character driver.  From Mateusz Szafoni.
13812      - STM32 F4:  Implement DMA support for the STM32F4 I2C.  From Rajan Gill.
13813      - STM32 F7:  Add stm32 RNG support.  This is copied from stm32l4.
13814        Tested on STM32F746ZG board.  From Juha Niskanen.
13815      - STM32 L1:  Add STM32L162VE to chip.h.  From Juha Niskanen.
13816      - STM32 F4:  Add I2C3 SDA pin mapping for STM32F411.  From no1wudi.
13817      - STM32 L1:  stm32_flash:  Add EEPROM writing for STM32L15XX.  From
13818        Juha Niskanen.
13819      - STM32 F7:  Serial:  Add interface to get uart_dev_t by USART number,
13820        stm32_serial_get_uart.  From Jussi Kivilinna.
13821      - STM32 F4:  Provide TIM5 definition for STM32F429.  From Matias v01d.
13822      - STM32 F0:  Add an untested port of the F1 USB device to the STM32F0.
13823      - STM32 F0:  Add support for the STM32F09X family.  From Juha
13824        Niskanen.
13825      - STM32 F0:  Initial cut at I2C driver.  Still a work in progress.
13826        From Alan Carvalho de Assis.
13827      - STM32 F33:  Add OPAMP support.  From Mateusz Szafoni.
13828      - STM32 L4: stm32l4_i2c:  Add I2C4 code.  From Juha Niskanen.
13829      - STM32 L4:  Add GPIO_PORTI definition.  From Juha Niskanen.
13830      - STM32 F7 Serial:  Allow configuring Rx DMA buffer size.  From Jussi
13831        Kivilinna.
13832      - STM32 L4:  Firewall for stm32l4x3xx.  Not tested for any product
13833        family, but now it at least compiles.  L496 devices can have one bit
13834        wider Volatile Data Segment.  From Juha Niskanen.
13835      - STM32 TIM:  Add method to get timer width.  Freerun timer: Use timer
13836        width to get the correct clock rollover point.
13837      - STM32 L4:  Add internal flash write support.  From Juha Niskanen.
13838      - STM32 L4:  Port stm32l4_serial_get_uart function from STM32F7.  From
13839        Juha Niskanen.
13840      - STM32 Ethernet:  Add support for KSZ8081 PHY interrupts.  From
13841        Sebastien Lorquet.
13842      - STM32 F4:  Add I2S driver.  From Taras Drozdovsky.
13843      - STM32 L4:  Add IWDG peripheral.  This is the same as for STM32
13844        except that prescale and reload can be changed after watchdog has
13845        been started, as this seems to work on L4.  From Juha Niskanen.
13846      - STM32 F7:  Add SPI DMA support.  From Jussi Kivilinna.
13847
13848    * STMicro STM32 Boards:
13849
13850      - Support for the Particle Photon board was contributed by Simon
13851        Piriou.  The Photon board is based on a STM32F205G MCU with and on-
13852        board BCM43362 WiFi chip that interfaces via the STM32's SDIO
13853        interface.  Board configuration support includes, in addition,
13854        buttons, LEDS, IWDG, USB OTG HS, and procfs support.  Configurations
13855        available for nsh, usbnsh, and wlan configurations.
13856      - Clicker2-STM32:  Support for the Mikroelektronika Clicker 2 for
13857        STM32 was added by Anthony Merlino.  This board, along with the
13858        MRF24J40 Click board is the platform used to deveop the IEEE
13859        802.15.4 support.  The boad configuration includes the MRF24J40
13860        initialization logic and SPI support.  Configurations exist for nsh,
13861        knsh, usbnsh, and mrf24j40-radio.
13862      - Nucleo_F334R8:  Add ADC example.  From Mateusz Szafoni.
13863      - Nucleo-F334R8:  Add COMP support.  From Mateusz Szafoni.
13864      - Nucleo-F334R8:  Use new COMP driver.  From Mateusz Szafoni.
13865      - Adds USB host support to stm32f411-disco board.  From Brian Webb.
13866      - Add stm32f0discovery board support.  From Alan Carvalho de Assis.
13867      - Nucleo-F072RB:  Add board configuration.
13868      - Nucleo-F334R8:  Add OPAMP support.  From Mateusz Szafoni.
13869      - Nucleo-F072RB:  Add support for the I2C driver used by I2C tools.
13870      - Nucleo-L496ZG:  Add nucleo-l496zg board files.  From Juha Niskanen.
13871      - Nucleo-F091RC:  Add nucleo-f091rc board files.  From Juha Niskanen.
13872      - Nucleo-L432KC:  Add nucleo-l432kc board files.  From Sebastien
13873        Lorquet.
13874      - Nucleo-L452RE:  Add nucleo-l452re board files.  From Juha Niskanen.
13875      - stm32f103-miniumum:  Add board support to use the Nokia 5110
13876        LCD display driver.  From Alan Carvalho de Assis.
13877
13878    * C Library/Header Files:
13879
13880      - C library:  Add strerror_r().
13881      - C Library:  Add wcstoull(), swprintf(), wcstod(), wcstof(), wcstol(),
13882        wcstold(), wcstoul(), wcstoll() functions.  Add mbsnrtowcs() and
13883        wcsnrtombs() (just returning success).  Add mbtowc() and wctomb() to
13884        C++ std namespace.  From Alan Carvalho de Assis.
13885      - C Library:  Add ffsl(), ffsll(), fls(), flsl(), flsll() and use
13886        GCC's __builtin_ctz/__builtin_clz for faster implementation of these.
13887        From Jussi Kivilinna.
13888      - fixedmath:  Add square root and b32_t conversion operators.  From
13889        Jussi Kivilinna.
13890      - locale.h:  Add a bogus definition of locale_t.
13891      - C library:  Versions mbrlen and mbsrtowcs taken and adapted from
13892        FreeBSD code (at https://github.com/freebsd/freebsd/).  From Matias
13893        v01d.
13894
13895    * Build/Configuration System:
13896
13897      - Include C++ library in 'make export'.  From Alan Carvalho de Assis.
13898      - configs:  Remove all setenv.sh and setenv.bat files.  Remove all
13899        references to setenv.sh and setenv.bat from all config README files.
13900      - Kconfig/deconfigs:  Add CONFIG_ARCH_TOOLCHAIN_GNU to indicate that
13901        the toolchain is based on GNU gcc/as/ld.  This is in addition to the
13902        CPU-specific versions of the same definition.
13903      - Move prototype for up_cxxinitialize() from nuttx/include/nuttx/arch.h
13904        to apps/include/platform/cxxinitialize.h.
13905
13906    * Tools:
13907
13908      - Add initialconfig.c so that perhaps in the future we will be able to
13909        use this to generate a new configuration from scratch (rather than
13910        having to derive new configurations from existing configurations).
13911        NOTE: Not yet intregated into the build system.
13912
13913    * NSH: apps/nshlib:
13914
13915      - Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>].  Set the
13916        'exit on error control' and/or 'print a trace' of commands when
13917        parsing scripts in NSH.  The settinngs are in effect from the point
13918        of exection, until they are changed again, or in the case of the init
13919        script, the settings are returned to the default settings when it
13920        exits.  Included child scripts will run with the parents settings and
13921        changes made in the child script will effect the parent on return.
13922        Use 'set -e' to enable and 'set +e' to disable (ignore) the exit
13923        condition on commands. The default is -e. Errors cause script to
13924        exit.  Use 'set -x' to enable and 'set +x' to disable (silence)
13925        printing a trace of the script commands as they are ececuted. The
13926        default is +x. No printing of a trace of script commands as they are
13927        executed.  From David Sidrane.
13928      - Print expanded variables if -x.  From David Sidrane.
13929      - ifconfig command:  Extend ifconfig to support 6LoWPAN.  Adapt to
13930        some changes in configuration variable usage.
13931      - Network initialization:  If IEEE802.11 selected use wlan0 instead of
13932        eth0 for network device name.
13933      - Network initialization:  NSH now has configuration options to select
13934        the wireless properties.  It builds the configuration structure and
13935        passes this to wpa_driver_wext_associate() so that it will set the
13936        network as configured.
13937      - Network initialization:  Add a new option CONFIG_NSH_NETLOCAL that
13938        will suppress some built in operations and will support manual
13939        configuration of a wireless network through command line tools.
13940
13941    * Examples/Tests: apps/examples:
13942
13943      - examples/xbc_text: Adds a test program for the XBox One controller
13944        driver.  From Brian Webb.
13945      - examples/ostest:  Add a test of robust mutexes.
13946      - examples/ostest: Add tests for pthread_rwlock.  Adding tests to be
13947        used to verify the pthread_rwlock lock works.  From Mark Schulte.
13948      - examples/ostest:  Additional test for rwlock and one for cancel
13949        cleanup handlers.  From Juha Niskanen.
13950      - examples/usrsocktest:  Add application for USRSOCK testing.  From
13951        Jussi Kivilinna.
13952      - examples/nettest:  Adapt for use in testing 6LoWPAN.
13953      - examples/nettest:  If doing loopback, but not using the official
13954        loopback device, then use the server should use the configured client
13955        IP address.
13956      - examples/udpblaster:  Several fixes to work with 6LoWPAN.
13957      - examples/udpblaster:  Add logic to bind the local UDP socket to a
13958        well-known address.
13959      - examples/configdata:  Add stacksize and priority.  From Juha Niskanen.
13960
13961    * Network Utilities: apps/netutils:
13962
13963      - netutils/netlib:  Add IEEE 802.11 wireless IOCTL wrappers.
13964      - netutils/netlib: Add a helper function to convert a string to a
13965        6LoWPAN node address.
13966      - netlib and NSH: Add logic to get/set the IEEE802.15.4 PAN ID.
13967      - netutils/dhcpc:  Make the network device name a configuration
13968        option.  Was hardcoded to eth0 but may, instead, need to be wlan0.
13969      - netutils/dhcpc:  Remove hard-coded interface device.  Now passed as
13970        a parameter to dhcpc_open().  From Sebastien Lorquet.
13971
13972    * Wireless Utilities: apps/wireless:
13973
13974      - wireless/wapi:   Port of Wapi wireless services.  The original
13975        depended on features not supported by NuttX:  Removed logic that
13976        depends on Linux netlink.  Removed functionality that depended on
13977        the Linux procfs:  This includes only 1) listing of available
13978        interfaces and 2) listing of all routes.
13979      - wireless/wapi:  Create command line Wapi application based on
13980        Wapi sample code.
13981      - wireless/wapi:  wpa_driver_wext_associate() now accepts a
13982        configuration parameter that can be used to specify the wireless
13983        properties.
13984      - wireless/wapi:  Add basic wapi_event_stream_extract implementation.
13985        From Simon Piriou.
13986      - wireless/ieee802154:  Add iwpan and i8sak tools.  iwpan is similar
13987        in concept to wapi.  From Anthony Merlino (i8sak was originally
13988        by Sebastien Lorquet).
13989      - wireless/ieee802154/libmac:  IEEE 802.15.4 MAC library.
13990      - wireless/wext:  Add drivers_wext from the WPA supplicant; Integrate
13991        into NSH.  From Simon Piriou.
13992
13993    * System Utilities (apps/system)
13994
13995      - apps/system/dhcpc:  Add a command to renew or establish a lease on an
13996        IPv4 address.
13997      - apps/system/ntpc:  Add a command to start or stop the NTPC daemon.
13998      - apps/system/ramtest: Make stacksize and priority conigurable.
13999
14000    * Platform-Specific Support (apps/platform)
14001
14002      - apps/platform:  Create gnu/ subdirectory that contains the one and
14003        only GNU C++ initialization function.  Remove all other C++
14004        initialization functions.
14005
14006Bugfixes.  Only the most critical bugfixes are listed here (see the
14007ChangeLog for the complete list of bugfixes and for additional, more
14008detailed bugfix information):
14009
14010    * Core OS:
14011
14012      - Priority inheritance:  When CONFIG_SEM_PREALLOCHOLDERS==0, there is
14013        only a single, hard-allocated holder structure.  This is problem
14014        because in sem_wait() the holder is released, but needs to remain in
14015        the holder container until sem_restorebaseprio() is called.  The call
14016        to sem_restorebaseprio() must be one of the last things the
14017        sem_wait() does because it can cause the task to be suspended. If in
14018        sem_wait(), a new task gets the semaphore count then it will fail to
14019        allocate the holder and will not participate in priority
14020        inheritance.  This fix is to add two hard-allocated holders in the
14021        sem_t structure:  One of the old holder and one for the new holder.
14022      - Priority inheritance:  sem_holder sem_findholder missing
14023        inintalization of pholder.  sem_findholder would fail and code
14024        optimization covered this up.  From David Sidrane.
14025      - Partial Fix priority inheritance CONFIG_SEM_PREALLOCHOLDERS=0.  From
14026        David Sidrane.
14027      - Priority inheritance:  sem_boostholderprio prevent overrun of
14028        pend_reprios.  The second case rtcb->sched_priority <=
14029        htcb->sched_priority did not check if there is sufficient space in
14030        the pend_reprios array.  From David Sidrane.
14031      - lp_worker:  Guard from pend_reprios overflow.  From David Sidrane.
14032      - Priority inheritance: Fixes improper restoration of base_priority in
14033        the case of CONFIG_SEM_PREALLOCHOLDERS=0.  The call to
14034        sem_restorebaseprio_task context switches in the
14035        sem_foreachholder(sem, sem_restoreholderprioB, stcb); call prior to
14036        releasing the holder. So the running task is left as a holder as is
14037        the started task. Leaving both slots filled thus failing to perform
14038        the boost/or restoration on the correct tcb.  This PR fixes this by
14039        releasing the running task slot prior to reprioritization that can
14040        lead to the context switch.  To faclitate this, the interface to
14041        sem_restorebaseprio needed to take the tcb from the holder prior to
14042        the holder being freed. In the failure case where sched_verifytcb
14043        fails it added the overhead of looking up the holder.  There is also
14044        the additional thunking on the foreach to get from holer to
14045        holder->tcb.  An alternate approach could be to leve the interface
14046        the same and allocate a holder on the stack of sem_restoreholderprioB
14047        copy the sem's holder to it, free it as is done in this pr and
14048        then pass that address sem_restoreholderprio as the holder. It could
14049        then get the holder's tcb but we would keep the same sem_findholder
14050        in sched_verifytcb.  From David Sidrane.
14051      - Priority inheritance:  Fixes improper restoration of base_priority.
14052        From David Sidrane.
14053      - sem_holder:  Indexing error.  From David Sidrane.
14054
14055          if (sem->holder[0].htcb != NULL || sem->holder[**1**].htcb != NULL)
14056      - realloc():  When realloc() has to fall back to calling malloc(), size
14057        including overhead was being provided to malloc(), causing a slightly
14058        larger allocation than needed.  Noted by initialkjc@yahoo.com.
14059      - scheduler:  Fix tg_flags check with GROUP_FLAG_NOCLDWAIT.  From Masayuki
14060        Ishikawa.
14061      - scheduler:  Fix CHILD_FLAG_EXITED in include/nuttx/sched.h.  From
14062        Masayuki Ishikawa.
14063      - binfmt/elf:  Fix offset value when calling elf_read() in
14064        elf_symname().  From Masayuki Ishikawa.
14065      - binfmt/elf:  Fix offset value when calling elf_read() in
14066        elf_sectname().  From Masayuki Ishikawa.
14067      - There can be a failure in IOB allocation to some asynchronous
14068        behavior caused by the use of sem_post().  Consider this scenario:
14069        (1) Task A holds an IOB.� There are no further IOBs.� The value of
14070        semcount is zero. Task B calls iob_alloc().� Since there are not
14071        IOBs, it calls sem_wait().� The value of semcount is now -1.  (2)
14072        Task A frees the IOB.� iob_free() adds the IOB to the free list and
14073        calls sem_post() this makes Task B ready to run and sets semcount to
14074        zero NOT 1.� There is one IOB in the free list and semcount is zero.
14075        When Task B wakes up it would increment the sem_count back to the
14076        correct value.  (3) But an interrupt or another task runs occurs
14077        before Task B executes.� The interrupt or other tak takes the IOB off
14078        of the free list and decrements the semcount.� But since semcount is
14079        then < 0, this causes the assertion because that is an invalid state
14080        in the interrupt handler. So I think that the root cause is that
14081        there the asynchrony between incrementing the semcount.  This change
14082        separates the list of IOBs:  Currently there is only a free list of
14083        IOBs.  The problem, I believe, is because of asynchronies due
14084        sem_post() post cause the semcount and the list content to become out
14085        of sync.  This change adds a new 'committed' list:  When there is a
14086        task waiting for an IOB, it will go into the committed list rather
14087        than the free list before the semaphore is posted.  On the waiting
14088        side, when awakened from the semaphore wait, it will expect to find
14089        its IOB in the committed list, rather than free list.  In this way,
14090        the content of the free list and the value of the semaphore count
14091        always remain in sync.
14092      - binfmt:  Fix .dtor memory allocation.  From Masayuki Ishikawa.
14093
14094    * File System/Block and MTD Drivers:
14095
14096      - SmartFS:  If whence is SEEK_END, the file offset shall be set to the
14097        size of the file plus offset. Noted by eunb.song@samsung.com.
14098      - mtd/progmem:  Fix incorrect target address calculation.
14099        progmem_read/write() is incorrectly calculating the target address,
14100        expecting the offset argument is given in a block number. This is
14101        completely wrong and as a result invalid flash region is accessed.
14102        Byte-oriented read/write interfaces of mtd device accept the target
14103        address in a byte offset, not a block number.  From Heesub Shin.
14104      - procfs:  Fix wrong member IDs are displayed when 'cat
14105        /proc/<pid>/group/status'.  From Nobutaka Toyoshima.
14106      - procfs:  Fix incorrect uptime with CONFIG_SYSTEM_TIME64.  From
14107        Masayuki Ishikawa.
14108      - vfs/poll: round timeout up to next full tick.  Calling poll() with
14109        timeout less than half tick (thus MSEC2TICK(timeout) => 0) caused
14110        returning error with EAGAIN. Instead of rounding timeout down, value
14111        should be rounded up. Open Group spec for poll says:
14112        "Implementations may place limitations on the granularity of timeout
14113        intervals. If the requested timeout interval requires a finer
14114        granularity than the implementation supports, the actual timeout
14115        interval will be rounded up to the next supported value."  From Jussi
14116        Kivilinna.
14117      - mtd/config:  erase block between block read and write.  From Juha
14118        Niskanen.
14119      - mtd:  Build RAMTRON and AT45DB drivers only if selected.  From Juha
14120        Niskanen.
14121      - mtd/config:  Fix byte read interface test.  From Juha Niskanen.
14122      - mtd:  Fix some unallocated and NULL pointer issues.  rwb->wrflush and
14123        rwb->wrmaxblocks in rwbuffer could get unallocated values from
14124        ftl_initialize() in some configurations.  Also fixes related assert:
14125
14126          up_assert: Assertion failed at file:rwbuffer.c line: 643
14127
14128        that can happen with the following configuration:
14129
14130          CONFIG_FTL_WRITEBUFFER=y
14131          CONFIG_DRVR_WRITEBUFFER=y
14132          # CONFIG_FS_WRITABLE is not set
14133
14134        These problems are caused by CONFIG variable differences between the
14135        buffer layers. TODO: This is not a perfect solution. readahead
14136        support has similar issues.  From Juha Niskanen.
14137      - net procfs:  Fix buffer corruption and refactor netdev_statistics.c.
14138        From Masayuki Ishikawa.
14139      - FAT:  Fix 'Missing unlock' in fs_fat32.c.  From Masayuki Ishikawa.
14140      - VFS fdopen:  Add missing file stream flags clearing.  Clear file
14141        stream structure regardless of config options. Structure clearing is
14142        needed as previous use of stream list entry might leave fs_flags
14143        set.  From Harri Luhtala.
14144      - mtd/smart: Fix use of uninitialized variable.  From Jussi Kivilinna.
14145      - mtd/w25.c:  Enable short delay after sector/chip erase.  From Jussi
14146        Kivilinna.
14147      - mtd/config:  Add some error checks for I/O errors.  From Juha
14148        Niskanen.
14149
14150    * Graphics/Graphic Drivers:
14151
14152      - net procfs:  Some long lines were being generated that cause buffer-
14153        related problems and corrupted output.
14154
14155    * Networking/Network Drivers:
14156
14157      - Fixed wrong assert on udp dgram send.  From Pascal Speck.
14158      - TCP/IPv6: Fix a compile issue when IPv6, but not IPv4 is enabled.
14159      - net/socket/accept:  Fix building with CONFIG_NET_LOCAL_STREAM.  From
14160        Jussi Kivilinna.
14161      - Argument of network device IOCTL should be unsigned long, just as
14162        will all other IOCTL methods.
14163      - net/socket:  Fix cloning of local and raw sockets.  From Jussi
14164        Kivilinna.
14165      - TCP:  Wait for 3-Way Handshare before accept() returns.  From Simon
14166        Piriou.
14167      - TCP:  Send RST if applicaiton 'unlistens()' before we complete the
14168        connection sequence.
14169      - TCP:  An RST received during the 3-way handshake requires a little
14170        more clean-up.
14171      - IPv6:  Fix net_ipv6_pref2mask().  From Masayuki Ishikawa.
14172      - network IOCTL commands:  The only place in net/netdev/netdev_ioctl.c
14173        where the interface state should change is for SIOCSIFFLAGS.  The
14174        other ones .. SIOCSIFADDR, SIOSLIFADDR, SIODIFADDR ..  should not
14175        change the link state.  From Sebastien Lorquet.
14176      - TCP:  Fix tcp_findlistner() in dual stack mode.  From Masayuki
14177        Ishikawa.
14178
14179    * Common Drivers:
14180
14181      - Fix as5048b by adding missing frequency parameter.  From Andreas
14182        Bihlmaier.
14183      - multiple fixes in nrf24l01 driver:  (1) signal POLLIN if there is
14184        already data in the FIFO, (2) send ETIMEDOUT to userspace after 2
14185        seconds if TX IRQ was not received, (3) handle FIFO overflow, (4)
14186        handle invalid pipes/empty FIFO, and (5) multiple cosmetics (missing
14187        static, duplicate define, missing \n).  From Leif Jakob.
14188      - input/mxt:  Prevent overriding i2c transfer return value.
14189        put_reg/get_reg function was overriding i2c transfer error code with
14190        i2creset return value, that lead to OK status although actual
14191        transfer failed.  From Juha Niskanen.
14192      - drivers/audio/wm8904:  WM8904 has same problem as that fixed by Juha
14193        Niskanen in the MaxTouch driver.
14194      - UART 16550:  Missing left parenthesis in function prototype.  This is
14195        Bitbucket Issue #41.
14196      - USBMSC:  Fix a wrong lun number issue.  From Masayuki Ishikawa.
14197      - drivers/i2c:  Fix compile issues if CONFIG_DISABLE_PSEUDOFS_OPERATIONS
14198        is enabled.
14199      - drivers/serial: I discovered a problem in the file
14200        drivers/serial/serial.c concerning the function uart_close(�). In the
14201        case that a serial device is opened with the flag O_NONBLOCK the
14202        function uart_close(�) blocks until all data in the buffer is
14203        transmitted. The function close(�) called on an handle opened with
14204        O_NONBLOCK should not block. The problem occurred with a CDC/ACM
14205        device.  From Stefan Kolb.
14206      - drivers:  Fix some bad NULL checks.  From Juha Niskanen.
14207      - drivers:  Rename newly introduced up_i2creset to I2C_RESET.  From
14208        Juha Niskanen.
14209      - drivers/bch:  BCH character driver bch_ioctl() always returns -ENOTTY
14210        for DIOC_GETPRIV command.  It should returns OK if DIOC_GETPRIV
14211        command succeeds.  From  EunBong Song.
14212      - Replace sprintf() with snprintf() in pipe.c.  From Nobutaka Toyoshima.
14213      - drivers/bch:  Fix 'Missing Unlock' in bchdev_driver.c.  From Masayuki
14214        Ishikawa.
14215      - button_upper:  Fix interrupt enabling for poll-events.  From Jussi
14216        Kivilinna.
14217      - drivers/{sensors,usbmisc}:  Fix uninitialized I2C frequency.  From
14218        Juha Niskanen.
14219
14220    * ARM:
14221
14222      - Set EABI stack alignment for all ARM architectures (remove OABI
14223        code).  From David Cabecinhas.
14224      - Remove redundant interrupt stack coloring and OABI code.  From David
14225        Cabecinhas.
14226      - Fix off-by-one interrupt stack allocation in 8-byte aligned
14227        architectures.  From David Cabecinhas.
14228
14229    * ARMv6-M:
14230
14231      - CONFIG_DEBUG_HARDFAULT should be available for Cortex-M0 too.
14232
14233    * Microchip/Atmel SAM3/4 Drivers:
14234
14235      - SAM3/4:  Fixed configurations for TWI master.  Obviously an
14236        incomplete port from SAMA5.
14237
14238    * Microchip/Atmel SAMv7 Drivers:
14239
14240      - SAMV7: Watchdog:  Fix Forbidden Window Value.  According the Datasheet
14241        the WDD Value is the lower bound of a so called Forbidden Window and
14242        to disable this we have to set the WDD Value greater than or equal to
14243        the WDV Value.  This seems to be a bug in the datasheet. It looks
14244        like we have to set it to a greater value than the WDV to really
14245        disable this Thing.  When triggering the Watchdog faster than the
14246        (very slow) clock source of the Watchdog fires, this Forbidden Window
14247        Feature resets the System if WDD equals to WDV.  This Changeset
14248        disables the Forbidden Window by setting the WDD Value to the Maximum
14249        (0xfff) Value possible.  From Frank Benkert.
14250      - SAMV7 EMAC:  Add conditional logic to account the fact that the
14251        SAMV71 has 6 rather than 3 queues after version 1.  From Ian McAfee.
14252
14253    * NXP/Freescale Kinetis Drivers:
14254
14255      - Kinetis:  Fixed GPIO _PIN_OUTPUT_LOWDRIVE swapped with
14256        _PIN_OUTPUT_OPENDRAIN.  From David Sidrane.
14257      - Ensure interrupts are back on BEFORE running code dependant on
14258        clock_systimer.  From David Sidrane.
14259      - Kinetis k66, k64, k60, k40, k20: Pin mux configure all I2C signals as
14260        Open Drain.  The output structure of the GPIO for I2C needs to be
14261        open drain.  When left at the default, one can observe on a scope the
14262        slave contending with the push-pull during the ACK.  From David
14263        Sidrane.
14264      - Kinetis K66:  Fixed TMP2_CH1 definition.  From David Sidrane.
14265      - Kinetis K66:  Define ALT1 to match ref manual.  From David Sidrane.
14266      - Kinetis K66:  GPIO and pin mux cleanup.  From David Sidrane.
14267      - Kinetis ADC:  Various corrections and updates.  From David Sidrane.
14268
14269    * NXP/Freescale LPC43xx:
14270
14271      - Add missing PINCONF_INBUFFER in several places of
14272        lpc4310203050_pinconfig.h.  From Andreas Bihlmaier.
14273      - Fix logic in preprocessor checks and correct arguments to
14274        lpc43_pin_config initialization.  From Andreas Bihlmaier.
14275
14276    * NXP/Freescale LPC43xx Drivers:
14277
14278      - Fix logic error in lpc43_adc.  From Andreas Bihlmaier.
14279      - Use correct macro for irqid (fortunately both point to
14280        LPC43_IRQ_EXTINT+18).  From Andreas Bihlmaier.
14281      - Actually write modified value to register.  From Andreas Bihlmaier.
14282      - Increase number of supported PWM channels from 4 to 6.  From Andreas
14283        Bihlmaier.
14284
14285    * Silicon Labs EFM32 Drivers:
14286
14287      - EFM32 I2C: Fix timeout calculation.  From Masayuki Ishikawa.
14288
14289    * STMicro STM32:
14290
14291      - As discovered by dcabecinhas.  This fix assume the 8 byte alignment
14292        options for size stack size or this will overwrite the first word
14293        after TOS.  See
14294        https://github.com/PX4/Firmware/issues/6613#issuecomment-285869778.
14295        From David Sidrane.
14296      - STM32 F7:  In stm32_allocateheap.c There are 5 not 4 configurations.
14297        From David Sidrane.
14298
14299    * STMicro STM32 Drivers:
14300
14301      - STM32, STM32 F7, STM32 L4:  OTG host drivers: Do not do data toggle
14302        if interrupt transfer is NAKed.  Sugested by webbbn@gmail.com.
14303      - Save elapsed time before handling I2C in stm32_i2c_sem_waitstop().
14304        This change follows the same logic as in previous fix to
14305        stm32_i2c_sem_waitdone().  It is possible that a context switch
14306        occurs after I2C registers are read but before elapsed time is saved
14307        in stm32_i2c_sem_waitstop(). It is then possible that the registers
14308        were read only once with "elapsed time" equal 0. When scheduler
14309        resumes this thread it is quite possible that now "elapsed time" will
14310        be well above timeout threshold. In that case the function returns
14311        and reports a timeout, even though the registers were not read
14312        "recently". Fix this by inverting the order of operations in the loop
14313        - save elapsed time before reading registers. This way a context
14314        switch anywhere in the loop will not cause an erroneous "timeout"
14315        error.  From Freddie Chopin.
14316      - STM32, STM32 F7, and STM32 L4:  Clone Freddie Chopin's I2C change to
14317        similar STM32 I2C drivers.  From David Sidrane.
14318      - STM32:  OTG host implementations of stm32_in_transfer() must obey the
14319        polling interval for the case of isochronous and interrupt endpoints.
14320      - STM32:  Fix erase sector number for microcontrolers with more than 11
14321        sectors.  Erase a sector from the second bank cause the bit 4 of SNB
14322        being set but never unsed, so trying to erase a sector from the first
14323        bank was acually eraseing a sector from the second bank.  From Jos�
14324        Roberto de Souza.
14325      - STM32:  Make up_progmem thread safe.  Writing to a flash sector while
14326        starting the erase of other sector have a undefined behavior so lets
14327        add a semaphore and syncronize access to Flash registers.  But for
14328        the semaphore to work it needs to be initialized so each board needs
14329        call stm32_flash_initialize() on initialization, so to avoid runtime
14330        problems it is only using semaphore and making it thread safe if
14331        initialized, after all boards starts to call stm32_flash_initialize()
14332        we can remove the boolean and the check.  From Jos� Roberto de Souza.
14333      - STM32:  Add workaround for flash data cache corruption on
14334        read-while-write.  This is a known hardware issue on some STM32 see
14335        the errata of your model and if you make use of both memory banks you
14336        should enable it.  From Jos� Roberto de Souza.
14337      - STM32 Flash fixes.  From Jos� Roberto de Souza.
14338      - STM32 Flash:  Missing unlock on F1 HSI off path.  From David Sidrane.
14339      - STM32 F4 I2C: I needed to use DS3231,�I remember�that�in past it
14340        worked ok, but now for stm32f4xx is used another driver (chip
14341        specific,�stm32f40xxx_i2c.c) and DS3231 driver doesn't work.  After
14342        investigating a problem I found that I2C driver (isr routine) has a
14343        few places there it sends stop bit even if not all messages are
14344        managed. So, e.g., removing stm32_i2c_sendstop (#1744) and adding
14345        stm32_i2c_sendstart after data reading helps to make DS3231 working.
14346        From  Alexander Oryshchenko; verified by David Sidrane.
14347      - STM32 F7 Serial:  Serial fix for dropped data:  (1) Revert the
14348        inherited dma bug from the stm32.  see
14349        https://bitbucket.org/nuttx/nuttx/commits/df9ae3c13fc2fff2c21ebdb098c520b11f43280d
14350        for details.  And (2) Most all CR1-CR3 settings can not be configured
14351        while UE is true. Threfore we make all operation atomic and disable
14352        UE and restore it's originalstate on exit.  From David Sidrane.
14353      - STM32 L1:  Fix IWDG and WWDG debug mode stop for STM32L15XX.  From
14354        Juha Niskanen.
14355      - STM32 F7:  Fix UART7 and UART8 IFLOWCONTROL options.  From Jussi
14356        Kivilinna.
14357      - STM32 F7:  Add warning for RXDMA + IFLOWCONTROL combination.
14358        Combination of RXDMA + IFLOWCONTROL does not work as one might
14359        expect.  Since RXDMA uses circular DMA-buffer, DMA will always keep
14360        reading new data from USART peripheral even if DMA buffer underruns.
14361        Thus this combination only does following: RTS is asserted on USART
14362        setup and deasserted on shutdown and does not perform actual RTS
14363        flow-control.  Data loss can be demonstrated by doing long up_mdelay
14364        inside IRQ critical section and feeding data to RXDMA+IFLOWCONTROL
14365        UART.  From Jussi Kivilinna.
14366      - STM32 F7 Serial:  Do not stop processing input in SW flow-control
14367        mode.  From Jussi Kivilinna.
14368      - STM32 L4 DMA: Correct bad channel definition.  From Sebastien Lorquet.
14369      - STM32 F7:  Warn if no DMA2 configured when using ADC with DMA.  Also
14370        correct ADC channel numbers that DMA callback passes to upper half
14371        driver.  From Juha Niskanen.
14372      - STM32 F7 ADC:  Do not override ADCPRE_DIV when measuring
14373        internal voltage.  From Juha Niskanen.
14374      - STM32 L4:  Don't think these chips have DPFPU, DTCM or ITCM.  From
14375        Juha Niskanen.
14376      - STM32 F7 Flash:  macro naming errors, there is no FLASH_CONFIG_F for
14377        F7.  From Juha Niskanen.
14378      - STM32 L4: stm32l4x6xx_pinmap:  Update I2C4 and DCMI pins.  From Juha
14379        Niskanen.
14380      - STM32 L4: stm32l4_i2c: change wrong macro to CONFIG_I2C_POLLED.  From
14381        Juha Niskanen.
14382      - Fix STM32F7 I2C interrupt handler.  From Jussi Kivilinna.
14383      - STM32:  Serial Allow configuring Rx DMA buffer size.  From David
14384        Sidrane.
14385      - STM32 CAN: I had the problem that the transmit FIFO size (= actual
14386        elements in FIFO) was slowly increasing over time, and was full after
14387        a few hours.  The reason was that the code hit the line
14388        "canerr("ERROR: No available mailbox\n");" in stm32_cansend, so
14389        can_xmit thinks it has sent the packet to the hardware, but actually
14390        has not. Therefore the transmit interrupt never happens which would
14391        call can_txdone, and so the size of the FIFO size does not decrease.
14392        The reason why the code actually hit the mentioned line above, is
14393        because stm32can_txready uses a different (incomplete) condition than
14394        stm32can_send to determine if the mailbox can be used for sending,
14395        and thus can_xmit forwards the packet to stm32can_send.
14396        stm32can_txready considered mailboxes OK for sending if the mailbox
14397        was empty, but did not consider that mailboxes may not yet be used if
14398        the request completed bit is set - stm32can_txinterrupt has to
14399        process these mailboxes first.  Note that I have also modified
14400        stm32can_txinterrupt - I removed the if condition, because the CAN
14401        controller retries to send the packet until it succeeds. Also if the
14402        condition would not evaluate to true, can_txdone would not be called
14403        and the FIFO size would not decrease also.  From Lederhilger Martin.
14404      - STM32 Serial:  Fix freezing serial port.  Serial interrupt
14405        enable/disable functions do not disable interrupts and can freeze
14406        device when serial interrupt is received while execution is at those
14407        functions. Trivially triggered with two or more threads write to
14408        regular syslog stream and to emergency stream. In this case, freeze
14409        happens because of mismatch of priv->ie (TXEIE == 0) and actually
14410        enabled interrupts in USART registers (TXEIE == 1), which leads to
14411        unhandled TXE interrupt and causes interrupt storm for USART.  From
14412        Jussi Kivilinna.
14413      - STM32 I2C:  Make private symbols static.  From Juha Niskanen.
14414      - STM32 L4 GPIO:  Put back EXTI line source selection.  From Juha
14415        Niskanen.
14416      - STM32 L4 RTC:  Store RTC MAGIC to backup reg, not to address zero.
14417        From Juha Niskanen.
14418
14419    * STMicro STM32 Boards:
14420
14421      - Disable serial console on stm32f103-minimum usbnsh example project
14422        config. Devices enumerate after this change.  From Bob Ryan.
14423      - Nucleo-144:  Default for choice in Kconfig was not one of the
14424        possible choices.
14425      - Nucleo-F4X1RE User LEDS: Issue #51 reports compilation problems with
14426        stm32_userled.c.  Reported by Gappi92.
14427
14428    * TI Tiva Drivers:
14429
14430      - Tiva I2C:  Correct an error in conditional compilation.
14431      - Tiva SSI:  Resolves issue 52 'Copy-Paste error in
14432        tiva_ssibus_initialize()' submitted by Aleksandr Kazantsev.
14433
14434    * C Library/Header Files:
14435
14436      - C Library vsnprintf():  Fix precision for string formatting.  Fixes
14437        use of format precision to truncate input string.  From Jussi
14438        Kivilinna.
14439      - C Library vsnprintf():  If size is zero, then vsnprintf() should
14440        return the size of the required buffer without writing anything.
14441        From Jussi Kivilinna.
14442      - C Library netdb: in dns_query_callback, ret != -EADDRNOTAVAIL
14443        condition consumes error returns including EAGAIN in this case,
14444        dns query retransmission doesn't work.  From Ritajina.
14445      - C Library netdb:  Fix time info in lib_dnscache.c.  From Masayuki
14446        Ishikawa.
14447      - C Library netdb: Fix bugs in lib_gethostbynamer.c. This fix sets
14448        h_name in struct hostent returned by gethostbyname().  From Masayuki
14449        Ishikawa.
14450      - C Library Defect Workaround: replace '%6.6u' format with an
14451        equivalent '%06u'.  From Tomasz Wozniak.
14452
14453    * Tools
14454
14455      - Fix mksyscall host binary name.  From Alan Carvalho de Assis.
14456
14457    * Applications (apps/)
14458
14459      - Fix some calls to task_create():  argv[0] is the first parameter, not
14460        the name of the task.
14461      - Bitbucket Issue 5:  I found an unexpected behavior in apps/
14462        configuration generation. Adding external symbolic link in apps/
14463        directory and using Make.defs for Kconfig generation, Kconfig file
14464        has a wrong path in the source argument. It contains original dir
14465        path outside of the source tree instead path to sub-directory in
14466        apps/.  The problem is connected with make/system symbolic link path
14467        resolution.  Corrected by a patch submitted by Artur Madrzak with
14468        Issue 5.
14469      - apps/: Make more globals static to avoid name clashes.  From Juha
14470        Niskanen.
14471
14472    * NSH: apps/nshlib:
14473
14474      - NSH library:  In nsh_argexand(), if CONFIG_NSH_ARGCAT is defined but
14475        CONFIG_NSH_CMDPARMS defined and/or CONFIG_DISABLE_ENVIRON not
14476        defined, then there is a situation that causes an infinite loop in
14477        the parser.  Noted by Freddie Chopin.
14478      - NSH library:  Fix building when CONFIG_NET_USRSOCK enabled with other
14479        link-layers.  From Jussi Kivilinna.
14480      - NSH library:  Fix some warnings about integer/pointer casts of
14481        different sizes (probably only effects 64-bit simulation).
14482      - NSH library:  Fix open flags in nsh_codeccmd.c.  From Masayuki
14483        Ishikawa.
14484      - I need to look at the registers that are at or around 0xe000ef90.
14485        Using mw and xd, I see that nsh does not support pointers greater
14486        than 0x7fffffff.  A quick look at the source shows that the pointers
14487        for those two commands are set with calls to strtol() rather than
14488        strtoul().  Changing the two pointer-setting instances to strtoul()
14489        fixes the problem, at least for my architecture/config.  From Ian
14490        McAfee.
14491      - NSH library: Fix a resource leak in cmd_hexdump().  From Nobutaka
14492        Toyoshima.
14493
14494    * Examples/Tests: apps/examples:
14495
14496      - apps/examples/hidkbd:  Remove call to arch_usbhost_initialize().
14497        That is violation of the OS interfacing rules and will no longer be
14498        supported.  USB host should be initialized as part of the normal
14499        board bring-up logic as with any other devices and should not involve
14500        illegal calls from applications into the OS.
14501      - apps/examples/usbterm:  Removed because it is not very useful and
14502        because it can be configured to use an illegal call into the OS.
14503      - examples/mm: Fix Makefile.  Built-in was not being registered.
14504      - examples/hidkbd:  Add some missing configuration settings.
14505      - examples/random:  Avoid stack overflows.  From Juha Niskanen.
14506      - examples/nettest:  Fix an error in pre-processor expression.
14507      - examples/mtdpart:  Prevent part array overflow.  mtdpart examples
14508        create partions and allocate from 1 index not a 0 index to part[]
14509        array. This cause buffer overflow for part array.  This change fixes
14510        this problem.  From  EunBong Song.
14511      - examples/can:  Fix can example app to print data when
14512        CONFIG_EXAMPLES_CAN_READ is defined.  From Alan Carvalho de Assis.
14513
14514    * Network Utilities: apps/netutils:
14515
14516      - Not a clean fix, but at least makes DHCP working with
14517        CONFIG_NETDEV_MULTINIC.  From Andreas Bihlmaier.
14518      - Ensure netlib will not be broken when setip will not bring the
14519        network up anymore.  From Sebastien Lorquet.
14520
14521    * CAN Utilities: apps/canutils:
14522
14523      - Fix libcanard github download link to get it compiling correctly.
14524        From Alan Carvalho de Assis.
14525      - Fix to use the new canardInit() function.  From Alan Carvalho de
14526        Assis.
14527
14528    * System Utilities (apps/system)
14529
14530      - system/dhcpc:  Add missing argument of fprintf.
14531
14532    * Tools (apps/tools):
14533
14534      - The dedicated windows tool at tools/mkkconfig.bat uses $APPSDIR,
14535        which is not a windows shell variable, and is left uninitialized, but
14536        in fact should be the current directory.  From Sebastien Lorquet.
14537
14538NuttX-7.22 Release Notes
14539------------------------
14540
14541The 122nd release of NuttX, Version 7.22, was made on September 9, 2017,
14542and is available for download from the Bitbucket.org website.  Note
14543that release consists of two tarballs:  nuttx-7.22.tar.gz and
14544apps-7.22.tar.gz.  These are available from:
14545
14546    https://bitbucket.org/nuttx/nuttx/downloads
14547    https://bitbucket.org/nuttx/apps/downloads
14548
14549Both may be needed (see the top-level nuttx/README.txt file for build
14550information).
14551
14552Additional new features and extended functionality:
14553
14554    * Core OS:
14555
14556      - pthreads:  Move functions from sched/pthreads to libc/pthreads.  These
14557        functions just coordinate other OS interface calls but are not a
14558        fundamental OS interfaces and, hence, do not belong within the OS:
14559        pthread_yield(), pthread_once(), pthread_cond_init(),
14560        pthread_cond_destroy(), pthread_barrier_init(),
14561        pthread_barrier_destroy(), and pthread_barrier_wait().
14562      - Add power-related debug output.
14563
14564    * File Systems/Block and MTD Drivers
14565
14566      - RAMTRON:  Add support for splitting block writes in chunks.  Some
14567        Re-RAMs like MB85AS4MT have a write buffer size limitation.  From
14568        Boris Astardzhiev.
14569      - MTD: Add driver for Macronix QuadSPI flash memory.  From Simon Piriou.
14570
14571    * Graphics/Display Drivers:
14572
14573      - SSD1306 LCD Driver:  (1) Separate lcd_dev_s setup to separate object.
14574        g_oleddev takes 1 KiB because framebuffer and was allocated to .data
14575        section because of lcd_dev_s function pointer setup. Move lcd_dev_s
14576        setup out, so that g_oleddev goes to .bss and avoid wasting ROM. (2)
14577        Fix memory corruption caused by ssd1306_getrun(). ssd1306_getrun was
14578        writing one extra byte (with value 0) past target buffer when pixlen
14579        is multiple of 8. When pixlen was not multiple of 8, last byte of
14580        buffer was fully cleared, instead of modifying only the (pixlen % 8)
14581        bits of last byte.  (3) Add support for board power control.
14582        ThingseeOne has regulator for controlling display power on/off.  Patch
14583        adds support for board based power control to SSD1306 driver. (4) Add
14584        DD-12864WO-4A/SSD1309 support to SSD1306 driver. From Jussi Kivilinna.
14585
14586    * Networking/Network Drivers:
14587
14588      - Sockets: Support listening sockets in the getsockname() function.
14589        From Roland Takacs.
14590      - IP Forwading:  At the IP level, network may be configured to forward
14591        IP packets that are not destined for the target through a different
14592        network device, decrementing the packet TTL.
14593      - IP forwarding:  Add optional support to forward broadcast and
14594        multicast packets.  Add missing ICMP support.
14595      - ICMPv6:  Add 6LoWPAN and IP forwarding support.
14596      - ICMPv6:  Support source link-layer address option in RA.  From
14597        Masayuki Ishikawa.
14598      - TUN Driver: Add definitions that will permit TUN-only networking.
14599      - Socket I/F:  Created a socket interface used to provide socket support.
14600        Each address family has an interface that describes how to perform
14601        socket operations on that address family.  Currently only a couple of
14602        methods are defined in the socket interface call table
14603      - Remove CONFIG_NET_MULTILINK.  This increases code size by a little,
14604        but greatly reduces the complexity of the network code.
14605      - Network procfs:  Add support for routing tables at proc/net/route.
14606      - Network procfs:  Add support for network procfs statistics for the
14607        PF_IEEE802154 address family.
14608      - Network Driver Backlog:  Remove driver based backlog support.  This
14609        affects the entire network, but is used by only one driver.  The only
14610        supported RX backlog is now via common read-ahead buffering.
14611
14612    * Wireless Networking/Wireless Drivers:
14613
14614      - IEEE 802.15.4 MAC / MRF24J60 Driver:  Extensive updates for
14615        association/beacon-enabled networks.  From Anthony Merlino.
14616      - IEEE 802.15.4 MAC / MRF24J60 Driver:  Hook in setdevmode from newly
14617        added radio attribute setting.  From Anthony Merlino.
14618      - IEEE 802.15.4 MAC: Supports get request for coordinator address.  From
14619        Anthony Merlino.
14620      - IEEE 802.15.4 MAC: Notify radio layer of changes in devmode.  From
14621        Anthony Merlino.
14622      - IEEE 802.15.4:  Add special attribute that can be used to perform a
14623        regdump of the radio.  From Anthony Merlino.
14624      - IEEE 802.15.4 loopback driver:  Better simulation addressing: short
14625        and extended addresses, panid, and IP address conversion.
14626      - IEEE 802.15.4 Network Driver:  Add logic to setup the network mask,
14627        update the MAC-based IPv6 addressing when the network is brought up.
14628        The idea is that addressing changes are supposed to occur only while
14629        the network is down but won't take effect until the network is up
14630        again.
14631      - PktRadio:  Add an infrastructure to support networking on generic
14632        (non-IEEE 802.15.4) packet radios.
14633      - PktRadio Loopback Driver:  Add a PktRadio loopback network driver to
14634        testing testing with 6LoWPAN and PktRadios on the simulator.
14635      - Spirit Network Driver:  The Spirit1 radio (SPSGRF-915) is the first
14636        generic PktRadio Network driver.  Based on STMicros STack packets
14637        with 8-bit addressing.  We need to use the STack packets in order to
14638        provide the source address and automatic ACKing.
14639      - Network procfs:  Fix so that PktRadio address are shown correctly.
14640      - Networking:  Add support for some packet radio IOCTL commands.
14641      - 6LoWPAN:  Added handling for TCP and ICMPv6 packets.
14642      - 6LoWPAN:  Add configurable support for 6LoWPAN star topology.  With
14643        this change, the endpoints which are the 'points' of the star will
14644        forward all traffic to the coordinator.  The coordinator is assumed to
14645        be the 'hub' of the star.  This function also used IPv6 forwarding.
14646      - 6LoWPAN:  The original, Contiki-based design used only a single buffer
14647        for reassemblying larger packets.  This could be a problem issue for
14648        hub configurations which really need the capability concurrently
14649        reassemble multiple incoming streams concurrently. These was also a
14650        design issue in that the reassembly buffer could be corrupted by
14651        outgoing packets.  The design was extended to support multiple
14652        reassembly buffers, each associated with the reassembly tag and source
14653        address.  This assures that there can be be no corruption of the
14654        reassembly once it has started.
14655      - 6LoWPAN PktRadio:  Now radio agnostic.  All IEEE 802.15.4 dependencies
14656        have been removed or isolated so that 6LoWPAN can be used with any
14657        kind of packet radio.  This involved things like:  (1) generalizing
14658        the representation of radio MAC meta-data,  (2) changes to handle
14659        variable-length radio addresses,  (3) removal of all explicit IEEE
14660        802.15.4 types, references, and interfaces, (4) a new radio driver
14661        interface to return 'capabilities' of the drvier.
14662      - ICMPv6:  Update so that ICMPv6 can be used with 6LoWPAN.
14663      - IPv6 Neighbor:  Update table format to support IEEE 802.15.4 MAC
14664        addresses.
14665      - PF_IEEE802154 Address Family:  Add support for the PF_IEEE802154
14666        address family socket type. This socket is similar to the PF_PACKET,
14667        "raw" packet address family except that:  (1) it supports only
14668        SOCK_DRAM, not SOCK_RAW, and (2) works only with IEEE 802.15.4
14669        MAC-based radios.  This address family permits simple access to IEEE
14670        802.15.4 IOCTLs and frame-level network transfers.
14671
14672    * Other Common Device Drivers:
14673
14674      - Dynamically configurable USB composite devices:  We developed a huge
14675        Changeset over a year ago to make USB Composite configuration
14676        dynamical and be able to instantiate the CDC/ACM multiple times inside
14677        this device.  We use this feature to switch between one in typical USB MSC + CDC/ACM configuration and up to three CDCACMs dynamically.
14678        I've changed the interface for some USB-Functions to receive also the
14679        dynamic configuration.  From Frank Benkert.
14680      - Franks' change remained on a branch until all issues were resolved.
14681        the current version in Master is complete and ready for use.
14682      - power:  battery_charger:  Add ioctl for charging input current.  From
14683        Juha Niskanen.
14684      - SMPS driver:  Add generic upper-half driver for SMPS.  From Mateusz
14685        Szafoni.
14686      - LED Driver:  Add support for inverted LEDS.  From Jeff.
14687      - LED Driver:  Add lightness correction for RGB LED driver.  From Jeff.
14688      - LTC4151 Driver:  Add driver for LTC4151 current and voltage monitor.
14689        From Giorgio Gro�.
14690      - Serial TERMIOS:  tcdrain() implementation based on a new term ioctl.
14691        From Sebastien Lorquet.
14692      - Serial TERMIOS:  Add support for TCFLUSH.  From Sebastien Lorquet.
14693      - syslog:  Add option to use the CLOCK_MONOTONIC for time stamping. From
14694        Jussi Kivilinna.
14695      - HC-SR04 Driver:  Add support to HC-SR04 distance sensor.  From Alan
14696        Carvalho de Assis.
14697      - COMP Driver:  Add poll support.  From Pekka Ervasti.
14698      - BQ2429X Driver:  Add driver for TI BQ2429X battery charger.  From Juha
14699        Niskanen.
14700      - ADC Driver:  Add poll support.  From Juha Niskanen.
14701      - BCH Driver:  Add poll support.  From Jussi Kivilinna.
14702      - RTC Driver:  Extend the RTC framework with an alarm read ioctl
14703        (RTC_RD_ALARM).  Through it consumer could get configuration settings
14704        about previously scheduled hardware alarms (active status, hours,
14705        minutes, seconds).  From Boris Astardzhiev.
14706
14707    * Simulation
14708
14709      - sim/ipforward:  Add an IP forwarding configuration using TUN devices
14710        and apps/examples/tun.
14711      - Console:  Add non blocking read to devconsole driver.  From Simon
14712        Piriou.
14713      - Networking:  Poll for TX frames to speed up driver.  From Simon Piriou.
14714      - pf_ieee802154:  Add configuration for testing PF_IEEE802154 address
14715        family sockets.
14716      - ARM Simulator:  Adds necessary functionality to build Simulator under
14717        ARM Linux. Tested only on Raspberry3. Currently setjmp/longjmp do not
14718        save/restore floating point registers.  From Nickolay Semyonov.
14719
14720    * MicroChip/Atmel SAML21 Drivers:
14721
14722      - SAML21 I2C driver.  Developed for and contributed with permissin from
14723        Filament company.  From Alan Carvalho de Assis.
14724      - SAMD/L21 USB Driver:  Add a USB driver.  Developed for Filament Inc.
14725        by Offcode, LTD.  From Janne Rosberg.
14726
14727    * MicroChip/Atmel SAMv7 Boards:
14728
14729      - SAMV71-XULT:  Add support for the MRF24J40 radio and create a
14730        mrf24j40-starhub configuration.
14731      - SAME70-Xplained:  Add MRF24J40 support.
14732
14733    * NXP Freescale Kinetis Drivers:
14734
14735      - Kinetis USB Improvements:  usbdev clean up ensuring proper use of HW.
14736        Rework suspend and resume logic so they perform properly.  Made attach
14737        and detach functions optional. As they do not make sense for a bus
14738        powered device.  From David Sidrane.
14739      - Kinetis SPI driver:  From David Sidrane.
14740      - Kinetis:  I2C driver added I2C3, reference counting and reset.
14741        Refactored the driver to support reference counting and reset added
14742        I2C3. From David Sidrane.
14743      - Kinetis RTC:  Implementation of the alarm read function.
14744
14745    * NXP Freescale Kinetis Boards:
14746
14747      - configs/teensy-3.x USB:  Define USBOTG-FS Read from FLASH access in
14748        board config.  Allow the board config to define the USBOTG-FS to have
14749        Read access to FLASH.  From David Sidrane.
14750      - configs/teensy-3.x:  Removed call to khci_usbattach.  The call is not
14751        need by the driver if CONFIG_USBDEV_BUSPOWERED=y.  On a USB powered device if we are running we are attached.  From David Sidrane.
14752      - freedom-k66f:  Use SPI driver.  Initalize SPI1 on connector J6. No
14753        real use, as of yet.  From David Sidrane.
14754
14755    * NXP Freescale LPC43xx:
14756
14757      - LPC43xx:  Modify up_allocate_(k)heap() to support PROTECTED mode. From
14758        Alan Carvalho de Assis.
14759
14760    * NXP Freescale LPC4xx Boards:
14761
14762      - configs/Bambino:  Add protected mode configuration to Bambino board.
14763        From Alan Carvalho de Assis.
14764
14765    * On Semiconductor LC823450
14766
14767      - LC823450: Initial support for ON Semiconductor LC823450. From Masayuki
14768        Ishikawa.
14769      - LC823450: eMMC/SD and USB support for LC823450.  From Masayuki Ishikawa.
14770
14771    * On Semiconductor LC823450 Boards
14772
14773      - LC823450-XGEVK:  LC823450-XGEVK board support.  From Masayuki
14774        Ishikawa.
14775      - LC823450-XGEVK:  Add eMMC/SD and USB support.  From Masayuki Ishikawa.
14776
14777      * STMicro STM32:
14778
14779      - STM32 L4:  Add support for the STM32L475 family.
14780      - STM32 L4 RCC:  Enable ADC clock source.  From Juha Niskanen.
14781      - STM32:  Allow clock frequencies > 168 Mhz on stm32f427/429.  We need
14782        to enable the power overdrive for this case.  This change allows the
14783        required bits to be set in proper sequence.  It also modifies the
14784        local register access operations to allow more than 16-bit registers.
14785        From Sebastien Lorquet .
14786      - STM32 F4:  Add support for STM32F433RC.  From Alan Carvalho de Assis.
14787      - STM32 F7:  Add new configuration option for enabling flash ART
14788        Accelerator and flash prefetcher.  From Jussi Kivilinna.
14789
14790    * STMicro STM32 Drivers:
14791
14792      - STM32 TIM:  Add the set counter function for stm32 timers.  From
14793        Sergey Ustinov.
14794      - STM32 HRTIM:  Update HRTIM definitions. Add HRTIM driver.  From
14795        Mateusz Szafoni.
14796      - STM32 HRTIM:  Add HRTIM character driver.  From Mateusz Szafoni.
14797      - STM32 HRTIM:  Fix DAC triggers configuration, Add missing master timer
14798        logic, enable DAC triggering.  From Mateusz Szafoni.
14799      - STM32 HRTIM:  Add DMA configuration. From Mateusz Szafoni.
14800      - STM32 HRTIM:  Add burst mode configuration.  From Mateusz Szafoni.
14801      - STM32 RTC:  Port Boris Astardzhiev's RTC change for STM32L4 to STM32.
14802      - STM32 DAC:  Add support for HRTIM triggering.  Separate dma buffer
14803        configuration for channels.  From Mateusz Szafoni.
14804      - STM32 DAC:  Conditional logic for timer triggering, fix TSEL
14805        configuration when HRTIM, DMA request remapping, Add DMA buffers
14806        initialization logic.  From Mateusz Szafoni.
14807      - STM32 DAC:  Support external triggering for DMA transfer.  From Mateusz
14808        Szafoni.
14809      - STM32 L1 TIM:  Add base address for TIM11.  From Juha Niskanen.
14810      - STM32 F4 FLASH:  Enable/disable the flash write protection on any
14811        sector.  I have verified it to work on the STM32 F427.  From Sebastien
14812        Lorquet.
14813      - STM32 F4 Clocking:  To use an external oscillator module (not just a
14814        crystal) with the STM32F4, one needs to enable the HSEBYP bit in the
14815        RCC_CR register. This change allows an integrator to define
14816        STM32_RCC_CR_HSEBYP in their board.h file if they want this
14817        configuration.  From Jeff.
14818      - STM32 F4 USB:  I'm working on bringing up USB full-speed support on
14819        STM32F405.� My board does not include a USB power switch, VBus
14820        sensing, over current detection, or ID pin.  This commit add a
14821        config�STM32_OTGFS_VBUS_ CONTROL which lets us selectively disable
14822        VBus sensing and control.� I also sneaked in a change to disable the
14823        configgpio call for the ID pin, which is only used in OTG mode which
14824        isn't supported yet.� The only pins that need to be initialized should
14825        be OTGFS_DP and OTGFS_DM.  From Jeff.
14826      - STM32 FLASH:  Add CONFIG_STM32_STM32F469 support. From David Sidrane.
14827      - STM32 COMP:  Add default INM configuration and some missing COMP
14828        1,3,5,7 code.  From Mateusz Szafoni.
14829      - STM32 F33:  Add missing SYSCFG CFGR3 definitions.  From Mateusz Szafoni.
14830      - STM32 L4 Serial: Allow configuring Rx DMA buffer size.  From Juha
14831        Niskanen.
14832      - STM32 L4 COMP:  Input minus pin extended selection.  From Juha Niskanen.
14833      - STM32 L4 COMP:  Bind to upper half comp driver.  From Pekka Ervasti.
14834      - STM32 L4 DAC:  Port from STM32.  Add ADC register definitions.  From
14835        Juha Niskanen.
14836      - STM32 L4 DAC:  Add option for routing DAC output to ADC.  Actually
14837        write something to the DAC DMA buffer.  From Juha Niskanen.
14838      - STM32 L4 DAC:  Separate DMA buffer configuration for channels. From
14839        Juha Niskanen.
14840      - STM32 L4 ADC:  Implement peripheral.  From Juha Niskanen.
14841      - STM32 F7:  Definitions for I2C4, SDMMC2.  Adapted RAM start / size to
14842        internal SRAM.  From Titus von Boxberg.
14843      - STM32 F7 I2C4:  I2C4_SDA can also be on GPIO PB7.  From Titus von
14844        Boxberg.
14845      - STM32 F7 LTDC:  Option for DSI output, inconsistency: the stm32f746
14846        does not feature a DSI interface.  compilable with LTDC_INTERFACE and
14847        LTDC_USE_DSI.  From Titus von Boxberg.
14848      - STM32 F7 Clocking:  Added functions for DSI clock source selection.
14849        From Titus von Boxberg.
14850      - STM32 F7 Clocking:  Enable APB2 DSI clock.  From Titus von Boxberg.
14851      - STM32 F7 LTDC:  No board specific dithering values used; corrected
14852        dithering init.  Corrected LIPOS/LIPCR calculation.  Change only
14853        polarity bits in LTDC_GCR.  From Titus von Boxberg.
14854      - STM32 F7 Reset:  Added function for reset.  From Titus von Boxberg.
14855      - STM32 F7 DMA:  DMA add dcache alignment check in stm32_dmacapable.  In
14856        the case dcache write-buffed mode is used (not write-through) buffer
14857        alignment is required for DMA transfers because  a)
14858        arch_invalidate_dcache could lose buffered writes data and b)
14859        arch_flush_dcache could corrupt adjacent memory if the maddr and the
14860        mend+1, the next next address are not on ARMV7M_DCACHE_LINESIZE
14861        boundaries.  From David Sidrane.
14862      - STM32 F7 SDMMC: SDMMC remove widebus limitation on DMA.  There is no
14863        documantation for the STM32F7 that limits DMA on 1 bit vrs 4 bit
14864        mode.  From David Sidrane.
14865      - STM32 F7 SDMMC: SDMMC add dcache alignment check in
14866        dma{recv|send}setup. In the case where CONFIG_SDIO_PREFLIGHT is not
14867        used.
14868      - STM32 F7 RTC: Port Boris Astardzhiev's RTC change for STM32L4 to
14869        STM32F7.
14870
14871    * STMicro STM32 Boards:
14872
14873      - STM32F103-Minimum:  Add GPIO device driver example.  From Alan
14874        Carvalho de Assis.
14875      - STM32F103-Minimum: Add small hello example for  STM32F103-Minimum
14876        board.  From Alan Carvalho de Assis.
14877      - STM32F103-Minimum: Add support for SmartFS on Winbond W25 SPI NOR
14878        Flash.  From Alan Carvalho de Assis.
14879      - STM32F103-Minimum: (1) Enable CONFIG_MTD_PARTITION in Kconfig if flash
14880        partition is enabled and (2) Update the README.txt file with info
14881        needed to get SmartFS working.  From Alan Carvalho de Assis.
14882      - Nucleo-F334R8:  Add HRTIM initialization.  From Mateusz Szafoni.
14883      - Nucleo-F334R8:  UART2 is default serial port (STLINK Virtual Port).
14884        From Mateusz Szafoni.
14885      - Clicker2-STM32:  Add a configuration that was used with the MRF24J60
14886        for 6loWPAN testing.
14887      - Clicker2-STM32:  Allow both IEEE 802.15.4 MAC character and network
14888        devices to be registered.
14889      - Clicker2-STM32:  Add configurations to support the endpoint and hub
14890        roles in a star topology.
14891      - Clicker2-STM32:  Add support for per-function-call stack checking.
14892        From Anthony Merlino.
14893      - Clicker2-STM32:  Configure EDBG SPI CS just to make that it is
14894        disabled.
14895      - STM32F4 Discovery: Add logic to register the button driver and the
14896        user led driver if so configured.  From Jan Pobrislo.
14897      - STM32F4-Discovery:  Add a configuration for testing libc++.  From Alan
14898        Carvalho de Assis.
14899      - B-L475E-IOT01A:  Add support for the STMicro B-L475E-IOT01A board.
14900        From Simon Piriou.
14901      - B-L475E-IOT01A: Add support for the SPSRGF/Spirit1 radio module.  Add
14902        a configuration for testing sprit radio.
14903      - B-L475E-IOT01A:  Add configurations to support a star topology.
14904      - B-L475E-IOT01A:  Add basic support for external Macronix QuadSPI flash
14905        memory.  From Simon Piriou.
14906      - B-L475E-IOT01A:  Enable UDP broadcast test in the spirit-starhub
14907        configuration.
14908      - STM32F334-DISCO:  Add STM32F334-DISCO basic support.  From Mateusz
14909        Szafoni.
14910      - STM32F746-Disco:  Add ADC3 support.  From Ivan Ucherdzhiev.
14911      - STM32L476-Disco:  Add a knsh configuration that may be used to test
14912        the PROTECTED build mode.
14913      - STM32F769I-DISCO:  Initial port to STM32F769I-DISCO.  From Titus von
14914        Boxberg.
14915
14916    * C Library/Header Files:
14917
14918      - Move TUN ioctl command to include/nuttx/net/ioctl.h so that it will
14919        always be unique.
14920      - Math Library:  Port gamma() and lgamma() from FreeBSD to NuttX.  From
14921        Alan Carvalho de Assis.
14922      - C++: Compilation with recent C++ compiler needs an overloaded delete
14923        operator that includes a size_t size argument.  New sized delete
14924        operators are only for C++14 and above.
14925
14926    * Build/Configuration System:
14927
14928      - Initial clang compile.  From Goran Mekic.
14929      - Add CLANG definitions in Kconfig and Toolchain.defs.
14930      - drivers/wireless/ieee802154:  Moved radios to individual
14931        sub-directories.  From Anthony Merlino.
14932      - Makefile.unix: Add savedefconfig target.  From Gwenhael Goavec-Merou.
14933      - Add Gwenhael's change to Makefile.win and update README.txt to
14934        described the new make target.
14935      - All defconfig files are now in the compressed format created with
14936        'make savedefconfig.'  The original .config file can be reconstituted
14937        using 'make olddefconfig.'
14938      - Build System:  It is no longer necessary to have a unique Make.defs
14939        file for each configuration.  A board may share a common Make.defs
14940        file in the scripts directory.  Duplicate Make.defs files removed;
14941        common Make.defs file moved to the scripts/ sub-directory for each
14942        board.
14943      - Networking: Move INET socket interface out of net/sockets to its own
14944        directory net/inet.
14945
14946    * Tools:
14947
14948      - testbuild.sh:  Added -x to fail build on errors for continous
14949        integration (CI).  On CI we want to know ASAP of a failure.  From
14950        David Sidrane.
14951      - Improve configure.sh behavior:  (1) enable to call from top directory.
14952        (2) enable to designate direct path for config.  (3) install .gdbinit
14953        if the target has.  From Hidetaka Takano.
14954      - Update tools/configure.c to same functionality as configure.sh.  Add
14955        an array of optional file names.  Currently, .gdbinit is the only
14956        optional file but other things like IDE-specific project files might
14957        need to be copied as well.
14958      - tools/configure.sh will now copy Eclipse project files if they are
14959        present in the board directory file.
14960      - Update configure.sh, configure.bat, configure.c:  With compressed
14961        format, part of the installation requires that we run 'make
14962        olddefconfig' to restore the uncompressed defconfig format.  Also,
14963        while I was at it, I also added options to select host platform on
14964        configure command line.
14965      - tools/refresh.sh:  Now runs make savedefconfig before copying the new
14966        defconfig file in place;  Also, added a new option --defaults.  Since
14967        the number of defaults that you now have to answer is so large, the
14968        option lets you just accept the default values.  So it works just like
14969        --silent but still prompts you for the decision to save or discard the
14970        new defconfig file.
14971      - tools/refresh.sh:  Update so that it can find the Make.defs file in
14972        the new location.
14973
14974    * NSH: apps/nshlib:
14975
14976      - NSH Library:  Add a Telnetd command.  This is needed when network
14977        initialization is deferred.  In that case, telnet daemon cannot be
14978        started until the network is finally initialized.  The telnetd command
14979        was added just for that case:  So that the telnet daemon can be
14980        started from the NSH command line after the network is configured.
14981      - NSH Library:  Misc changes needed for PktRadio support.
14982      - NSH Library:  Extend ifconfig command so that it can set variable
14983        length packet radio addresss.
14984      - NSH Library:  Update addroute and delroute command.  The would support either
14985        IPv4 or IPv6, but not both.  Allow expression of the netmask in IPv4 CIDR or
14986        IPv6 slash notation.  This really reduces the pain of using the commands,
14987        especially for IPv6.
14988      - NSH Library: Add a route command that will dump the content of routing table.
14989
14990    * Examples/Tests: apps/examples:
14991
14992      - examples/udp: Add configurable network device name; Add option to
14993        suppress network initialization which is not needed if started by NSH
14994        or for 6LoWPAN.
14995      - examples/udp:  Fix registration as a built-in program; Change some
14996        naming to make room for a second target.  Current one endpoint is the
14997        target and one is the host.  This will (eventually) allow two targets
14998        to be both endpoints of the test.  Change build so that both server
14999        and client can be on a target, rather than one on the target one on
15000        the host PC.  Server IP address may not be provided on the command line.
15001      - examples/udp:  Port numbers need to be configurable to work with
15002        6LoWPAN.  Need to bind the client socket to a port number.  This was
15003        not required before so is a apparently a change in the UDP packet
15004        dispatch logic.
15005      - examples/udp:  Enable testing with the broadcast address.
15006      - examples/nettest:  Support target boards on both ends of the test.
15007        Separate out network initialization so that it may be used by both a
15008        target server and a target client.  Fix client/server naming
15009        confusion; Add command line option to select the server address on the
15010        target.  Add support for both enpoints on target boards vs. one on a
15011        target and one on the host PC.
15012      - examples/nettest:  The send buffer size is now a configuration option.
15013      - examples/nettest:  Loopback option should be available in Kconfig for
15014        PktRadio.
15015      - examples/keypadtest: REMOVED and warehoused in the Obsoleted
15016        repository.  This was just a bad clone of apps/examples/hidkbd for a
15017        keypad driver that was removed years ago.  It also uses illegal
15018        function calls into the OS.  So it has no purpse:  It is redundant, it
15019        uses illegal interfaces, and is a test for non-existent code.
15020      - examples/ipforward: Add an IP forwarding example using only TUN
15021        devices.  Test extended to test forwarding of ICMPv6 multicast messages.
15022      - Implement powermonitor example for ltc4151 current and voltage
15023        monitor.  From Giorgio Gro�.
15024      - examples/pf_ieee802154:  Add for testing PF_IEEE802154 sockets.  Add
15025        PANID to command line options; Cannot bind to address zero... There is
15026        no counterpart to INADDR_ANY for these radios (not now at least).
15027      - examples/dac:  Add DAC example.  From Juha Niskanen.
15028
15029    * Network Utilities: apps/netutils:
15030
15031      - netutils/telnetc:  This a port of libtelnet to NuttX.
15032      - netutils/telnetd and users of telnetd:  Add support for IPv6.
15033      - netutils/thttpd:  Remove the netstats demo.  This depends on an
15034        illegal function call and cannot be supported.  That example could be
15035        replaced with logic that uses the procfs network entries as was done
15036        for NSH which had the same issue.  But I am too lazy to implement that.
15037      - netutils/netlib:  Add support for PktRadio IOCTL commands.
15038      - netutils/netlib:  Add a helper to decode short addresses.
15039
15040    * Wireless Utilities: apps/wireless:
15041
15042      - wireless/ieee802154/i8sak:  Rewrote i8sak to be test CLI for IEEE
15043        802.15.4 MAC layer.  From Anthony Merlino.
15044      - wireless/ieee802154/i8sak:  Updates to i8sak for
15045        association/beacon-enabled changes to IEEE 802.15.4.  From Anthony
15046        Merlino.
15047      - wireless/ieee802154/i8sak:  Add option to make it easy to send large
15048        frame for testing purposes.  From Anthony Merlino.
15049      - wireless/ieee802154/i8sak:  Add scan command.  From Anthony Merlino.
15050      - wireless/ieee802154/i8sak:  Add coordinfo command allowing you to
15051        poll various attributes related to the coordinator.  From Anthony
15052        Merlino.
15053      - wireless/ieee802154/i8sak:  Add a option to retry on failures to the
15054        assoc command (usually meaning tht the coordinator is not yet up).
15055      - iwireless/ieee802154/8sak:  Add reset command to reset the MAC layer.
15056        Adds option to assoc command -t to specify how long to wait for a
15057        response from the Coordinator.  From Anthony Merlino.
15058      - ieee802154/i8sak:  Adds command to trigger regdump of radio.  From
15059        Anthony Merlino.
15060
15061    * System Utilities (apps/system)
15062
15063      - apps/system/composite: Update to apps/system/composite assocated with
15064        big changes to the composite device logic.  From Frank Benkert.
15065      - apps/system/composite:  Remove CDC/ACM and MSC configuration logic.
15066        This belongs in the OS composite initialization.  Add and argument so
15067        that you can select the USB composite configuration to be attached.
15068        Restore USB tracing; remove unused field in a structure.  Remove
15069        configuration settings that are no longer used.  Fix configuration
15070        selecting.. was setting the port number, not the configure ID.  Also
15071        add a configuration option to select the default configuration.
15072      - apps/system/composite: Add a configuration option to the boardctl()
15073        calls to support multiple composite device configurations dynamically.
15074      - apps/system/composite:  Remove references to USBMSC.  There still
15075        dependencies on CDC/ACM in the serial USB trace output.
15076      - apps/system/telnet:  Add Telnet Chat deamon and client from
15077        libtelent.
15078
15079    * Platform-Specific Support (apps/platform)
15080
15081Bugfixes.  Only the most critical bugfixes are listed here (see the
15082ChangeLog for the complete list of bugfixes and for additional, more
15083detailed bugfix information):
15084
15085    * Core OS:
15086
15087      - Fix ELF loader up_checkarch on ARM arch.  From Cristian Condurache.
15088      - pthread_mutex_unlock():  Missing check for the case where
15089        pthread_mutex_lock() is called when the mutex is not locked.  In that
15090        case, it would increment the underlying semaphore above 1.  This is
15091        the fix for a problem noted by initialkjc@yahoo.com.
15092      - sig_timedwait():  Pending signal structure used after it has been
15093        releasd.  From anonymous Bitbucket Issue 59.
15094      - mm_mallinfo:  do heap end debug assert check with heap semaphore held.
15095        From Jussi Kivilinna.
15096      - sched/:  Fix return value in sched_setaffinity().  From Masayuki
15097        Ishikawa.
15098      - Work Queues:  work_queue() must cancel existing work prior to queuing
15099        new work, otherwise the work queue list structure can become
15100        corrupted. Problem noted by Pascal Speck.
15101      - waitpid():  Corrects two problems when CONFIG_SCHED_HAVE_PARENT +
15102        CONFIG_SCHED_CHILD_STATUS are enabled:  (1) Was erroring out if the
15103        waited for task had already exited, and (2) was not freeing resources
15104        when a wait was completed.  From Boris Astardzhiev.
15105
15106    * File System/Block and MTD Drivers:
15107
15108      - VFS poll():  Fix timeout calculation.  From Jim Paris.
15109      - VFS poll():  Fix poll for regular files and block devices.  Open Group
15110        documentation says that poll (and select) support regular files and
15111        that 'Regular files shall always poll TRUE for reading and writing'.
15112        From Jussi Kivilinna.
15113      - VFS epoll():  Fix epoll_wait function.  From Simon Piriou.
15114      - Smart FS:  Fix wrong freeing of device structure and use-after-free
15115        issues on error paths.  From Jussi Kivilinna.
15116      - MTD FLASH drivers:  The byte write method of several drivers had a
15117        cloned error:  It was not locking the bus while performing byte write
15118        operations.
15119      - MTD M2PX: If we READ while a write/erase is pending, the command is
15120        ignored and the write/erase continues. If we dont catch this situation
15121        we will return garbage to the user because the flash will not execute
15122        the command.  So READ MUST wait for write completion, and before that,
15123        the bus must be locked since it's a precondition to calling
15124        waitwritecomplete().  From Sebastien Lorquet.
15125      - MTD FLASH drivers: Clone Sebastien Lorquet's m25px change to at25,
15126        is25xp, ramtron, and sst25xx.
15127      - MTD W25:  Add missing locking and fix SPI_SELECT usage for
15128        w25_unprotect.  From Jussi Kivilinna.
15129      - MTD W25:  Wait for BUSY flag to clear in w25_readid and
15130        w25_unprotect.  W25Q128 datasheet says that all instructions expect
15131        'Read Status Register' and 'Erase/Program Suspend' are ignored when
15132        BUSY flag in status register is '1'. Therefore wait for busy flag to
15133        clear in w25_readid() and w25_unprotect().  From Jussi Kivilinna.
15134      - Automounter: FS_AUTOMOUNTER should depend on SCHED_LPWORK.  From
15135        Nickolay Semyonov.
15136
15137    * Networking/Network Drivers:
15138
15139      - TCP Listen: Throw error when error happens in the tcp_listen
15140        function.  From Roland Takacs.
15141      - Nework Device Management:  Do not search net device when all-zeros
15142        address is used.  From Roland Takacs.
15143      - Network Device Management:  Fix a error in netdev_register(); it was
15144        not handling device names properly when TUN is the only network device.
15145      - Network Device Management:  Fix netdev_dev_lladdrsize().  In some
15146        configurations, it could return the wrong size for the address of a
15147        packet radio.
15148      - Network Device Management:  Fix typo for 802.11 devices in
15149        netdev_register().  Was being masked before because depended on
15150        CONFIG_NET_MULTLINK.
15151      - TUN Driver:  Use critical section instead of semaphore in
15152        tun_ifdown().  From Masayuki Ishikawa.
15153      - TUN Driver:  Do all polling on worker thread.  Otherwise, the stack
15154        gets very deep.
15155      - TUN Driver:  Currently cannot support TAP mode unless Ethenet is
15156        enabled.
15157      - netdb:  Fixed buffer size used for sending DNS queries should depend
15158        on the configured DNS name size.  From Ritjaina.
15159      - UDP networking:  The TTL (time to live) was not being set in the IPv4
15160        or IPv6 header unless the UDP socket was bound.
15161      - UDP Networking:  Fix a copy-paste error that could effect networking
15162        when both IPv4 and IPv6 are enabled.
15163      - UDP Networking:  When upd_input() cannot process a packet, it returns
15164        ERROR so that network drivers may try calling ipv4_input() later.  In
15165        this case, it must also set d_len to zero.  Otherwise, all network
15166        drivers will assume tht there is also an outgoing packet.  This
15167        results in a gratuitous ARP.
15168      - TCP Networking:  Correct some issues that prevent TCP from working
15169        correctly when both IPv4 and IPv6 are enabled.
15170      - TCP Networking:  TCP disconnection callbacks are not retained in a
15171        list.  This will support multiple callbacks per lower-level TCP
15172        connection structure.  That is necessary for the cae where a socket is
15173        dup'ed and shares the same lower-level connection structure.  NOTE:
15174        There still needs to be a call to tcp_start_monitor() when the socket
15175        is dup'ed.
15176      - TCP Networking:  Start the network monitor for a socket when a TCP
15177        socket is dup'ed.
15178      - TCP Networking:  If one of the dup'ed socket's is closed, then network
15179        monitor resources associated with that one socket must be recovered.
15180        Also, in the event that socket is being used on one thread, but then
15181        closed on another, any threads waiting for events from the socket
15182        should be informed of the closure.  That latter requirement is not
15183        implemented because current data structures do not support it.
15184      - TCP Networking:   Fix a race condition.  The accept() operation is
15185        performed with the network locked.  However, the network is unlocked
15186        BEFORE the connected state is set.  Therefore, a context switch may
15187        occur and the socket may no longer be connected when it is marked so.
15188        Noted by Pascal Speck.
15189      - Network routing tables:  Fix a compilation error when IPv6 and
15190        routing are enabled.
15191      - Network procfs:  Fix some spacing when both IPv6 and IPv4 are enabled.
15192      - Network Local Sockets:  Fix accept for local stream sockets.  From
15193        Jussi Kivilinna.
15194      - Network Local Sockets:  Fix server lc_waitsem overflow.  From Jussi
15195        Kivilinna.
15196      - IPv6 Networking:  Remove comparisons to the address with all ones
15197        set.  IPv6 does not support broadcast addresses and certainly not in
15198        that form.  Replace with multicast addresses beginning with 0xff02.
15199      - ICMPv6 Networking:  Fix a compilation issue with
15200        CONFIG_NET_ICMPv6_AUTOCONF=y.  From  Masayuki Ishikawa.
15201      - Networking:  Fix net_lock returning ERROR when instead of real error
15202        code on failure.  From Jussi Kivilinna.
15203      - IGMPv2 Networking:  Remove special support for interrupt level
15204        processing (there is none) and fix some timer cancellation logic.  In
15205        many files, correct comments.  There is no interrupt level processing
15206        in the networking layer.
15207
15208    * Wireless/Wireless Drivers:
15209
15210      - IEEE 802.15.4 MAC:  Need counting protection on the logic that
15211        releases the notification resources.  Otherwise, notification handlers
15212        may be operating with a stale pointer.
15213      - IEEE 802.15.4 MAC: Improves internal timer logic to handle work
15214        serially.  Before, the MAC timer used a watchdog to schedule work with
15215        the high priority worker queue.  However, since everything in the MAC
15216        is supposed to be serialized through the use of the high priority work
15217        queue, but the timer uses a watchdog, there are some unintended
15218        consequences. To simplify, we now use the delayed work feature of the
15219        work queue.  From Anthony Merlino.
15220      - IEEE 802.15.4 Network Driver: Update RX statistics in network driver.
15221      - IEEE 802.15.4 MRF24J40 Driver:  Minor timing fix. Matches recommended
15222        value in datasheet.  Splits up driver into multiple files to make it
15223        easier to navigate.  Fixes issue with non-beacon enabled mode.  From
15224        Anthony Merlino.
15225      - IEEE 802.15.4 MRF24J40 Driver:  Fix a bug causing radio to cease
15226        transmitting.  From Anthony Merlino.
15227      - IEEE 802.15.4 MRF24J40 Driver:  Fixes issues with sleeping for beacon
15228        enabled networking.  From Anthony Merlino.
15229      - EEE 802.15.4 MRF24J40 Driver:  Fix math error for calculating sleep
15230        count values.  From Anthony Merlino.
15231      - IEEE 802.15.4: Fix timing issues for beacon enabled coordinators and
15232        endpoints. From Anthony Merlino.
15233      - iIEEE 802.15.4: Fix issue with association on beacon-enabled
15234        networking.  From Anthony Merlino.
15235      - 6LoWPAN:  Correct a few addressing issues.  Also reserve two bytes at
15236        the end of the frame for the FCS.
15237      - 6LoWPAN:  Fixes needed when extended addressing is enabled; broke short
15238        addressing.  Loopback driver needs to initialize the MAC meta data;
15239        Address decompression logic must have the MAC address to handle the
15240        most common compression cases.  Fix a src/dest address confusion and
15241        other addressing problems.
15242      - 6LoWPAN:  Add missing IPv6 address creation to HC1 decode logic. Fix a
15243        typo in an index that prevented use with HC1 and extended addresses.
15244      - 6LoWPAN:  TCP logic was not obeying MTU packet size limitations.
15245      - 6LoWPAN:  Major re-architecting of TCP logic to properly handle TCP
15246        stuff like ACKs and TDP windowing which were not properly covered in
15247        the initial design.
15248      - 6LoWPAN:  HC06, copy TCP header as though it were data.  TCP packet
15249        reassembly now seems to work OK.
15250      - 6LoWPAN:  Fix duplicate and bad memcpy in loopback driver.
15251      - 6LoWPAN:  Fix a misconception about HC06 16-bit IPv6 address
15252        compression.
15253      - 6LoWPAN:  TCP send logic was returning a failure in one case when, in
15254        fact, the send was successful.
15255
15256    * Common Drivers:
15257
15258      - USB MSC:  Use struct instead of pointer to the struct as sizeof
15259        argument in memset in usbmsc.c.  Otherwise it leads to error: argument
15260        to sizeof in memset call is the same pointer type struct usbmsc_lun_s
15261        * as the destination.  From Oleg Evseev.
15262      - USB MSC:  Add missing logic to define endpoints.  The composite
15263        changes broke the the non-composite, USB MSC only case because it omitted the critical setup when USB MSC was not part of the composite.
15264      - USB CDC/ACM.  Fix several known problems resulting from merge of USB
15265        composite device.  That merge now breaks some of the non-composite USB
15266        devices.
15267      - Button Driver:  Interrupts weren't enabled since nothing updates them
15268        after btn_poll() marks the file descriptor structure as being polling.
15269        From Jan Pobrislo.
15270      - ADC Driver:  Fix some data alignment issues in the ADC driver.
15271      - I2C Drivers:  Handle I2C_TRANSFER return value consistently.  Some I2C
15272        peripherals transfers return zero on success, others number of
15273        completed transfers.  Make drivers robust against this.  From Juha
15274        Niskanen.
15275      - COMP Driver:  Fix compilation errors when poll disabled.  From Mateusz
15276        Szafoni.
15277
15278    * Simulation:
15279
15280      - Simulation:  Fix mkdir issue in GNU target.  From Simon Piriou.
15281      - Simulation:  x86 stack needs to be aligned to 16-byte boundaries.
15282      - Simulation:  Fix building 32-bit simulation on 32-bit X86.  From Jussi
15283        Kivilinna.
15284
15285    * ARM:
15286
15287      - ARM: The older ARM7 and ARM9 configurations were determining CFLAGS
15288        based on the GCC version 4.x.x or not.  That needx to be extended for
15289        5.x.x and 6.x.x which also behave like 4.x.x.
15290
15291    * ARMv7-M:
15292
15293      - Fixed ARMv7-M Toolchain setting.  Cortex-M4 only have Single
15294        Precision FPU.  From Hidetaka Takano.
15295      - ARMv7-M syscall logic:  Clear bit 0 in PC settings.  Bit 0 is the
15296        thumb mode indication and should not be set in the PC.  This extra bit
15297        has not caused problems in the past, but seeing it set in the PC is
15298        unnerving.
15299
15300    * Expressif ESP32:
15301
15302      - Fix ESP32 gpio enable reg and default UART pin. Modify default UART
15303        pin for ESP-WROOM-32. Fix gpio enable reg.  From Sungki Kim.
15304
15305    * Microchip/Atmel SAMD21 Drivers:
15306
15307      - SAMD21:  Fix some SPI-related issues.  From Matt Thompson.
15308      - SAMD21 SPI: I was having issues with the bus freezing up .. slaves
15309        holding SDL low.. so I rewrote a good portion of the interrupt logic
15310        based on the application notes from Atmel.  One major improvement is
15311        using the RXNACK flag in the STATUS register, which indicates that no
15312        device responded to an address packet. Assuming that the chip will
15313        always give an interrupt status, I believe it's possible to eliminate
15314        the timer as well.  From Matt Thompson.
15315      - SAMD/L21:  Need to preserve errno value across syslog() call.
15316      - SAMD21:  Changes needed to get USB working.  From Matt Thompson.
15317
15318    * Microchip/Atmel SAMv7 Drivers:
15319
15320      - SAMv7 TWIHS:  TWIHS driver add reference counting. From David Sidrane.
15321      - SAMv7 CAN:  We discovered a problem with the samv7 mcan driver which
15322        results, under some circumstances, in a very high CPU load.  The
15323        problem occurs, and is easily reproducible, if the device is connected
15324        to a CAN network with a wrongly configured CAN speed (baud rate). In
15325        our tests we set the CAN speed of the device to 1000000 and the speed
15326        of the other CAN nodes to 500000. The device is restarted and sends a
15327        CANopen "bootup message" to the CAN network. This results in huge
15328        amount of errors messages on the CAN bus, probably because of the CAN
15329        feature for acknowledging error messages. The error messages can�t be
15330        read by the device because of the misconfigured CAN speed, instead the
15331        CAN chip reports lots of errors, which are reported to the application
15332        which uses the CAN driver (CONFIG_CAN_ERRORS is enabled).  The CAN
15333        errors are reported from the CAN chip via interrupts and thus the
15334        interrupt load is very high in this scenario. To fix the problem the
15335        driver now disables each RX error interrupt after it is occurred.  The
15336        RX error interrupts are turned back on if at least one CAN message is
15337        received successfully.  From Stefan Kolb.
15338      - SAMv7 CAN:  I discovered while working on the SAMV7 mcan driver that
15339        the implementation of the CAN error handling is suboptimal. In the
15340        current implementation the many errors are implemented as pending
15341        errors.  But those errors are not pending, the errors occurred and are
15342        gone directly afterwards. This commit changes the described behavior
15343        and simplifies the handling of CAN errors.  From Stefan Kolb.
15344
15345    * Microchip/Atmel SAMv7 Boards:
15346
15347      - SAMv71-XULT:  Fix MRF24J40 interrupt GPIO number.
15348
15349    * NXP/Freescale Kinetis:
15350
15351      - Kinetis MPU:  Disable MPU when not in protected mode.  The hardware
15352        reset state of the the MPU precludes any bus masters other then DMA
15353        access to memory. Unfortunately USB and SDHC have there own DMA and
15354        will not have access to memory in the default reset state.  This change
15355        disabled the MPU if present on system startup.  From David Sidrane.
15356      - Kinetis MPU:  Fixed warning for kinetis_mpudisable. Missing header
15357        file added.  From David Sidrane.
15358      - Kinetis SIM:  Ensure isolation of clock dividers for 0 value case.
15359        This fixes a bug were a SoC does not have a clockdivN register and
15360        passes a 0 for the init value.  This prevents overflow of the 0
15361        decremented to -1 (0xffffffff) spilling over to other clockdivN
15362        fields.  From David Sidrane.
15363
15364    * NXP/Freescale i.MX6 Drivers:
15365
15366      - i.MX6: Fix a wrong parameter passed when calling irq_attach() in
15367        imx_serial.c.  From Masayuki Ishikawa.
15368      - Based on Masayuki's change, I review all serial driver vector
15369        attachment.  I Found one additional error and updated all relevant
15370        drivers to current interrupt parameter passing.
15371
15372    * STMicro STM32:
15373
15374      - STM32 F410 Kconfig:  Fix peripherals available on the STM32 F410.
15375        This also adds a select for STM32_HAVE_DAC1 present on this STM32
15376        flavor.  From Gwenhael Goavec-Merou.
15377      - STM32 L4 DMA: Correct USART3_RX bad channel definition.  From Juha
15378        Niskanen.
15379      - STM32 L4 PWR:  Correct PWR_SR2 REGLPS and REGLPF bits, add port I
15380        registers.  Also remove duplicate section from Kconfig.  From Juha
15381        Niskanen.
15382      - STM32 F7: do not enable read-modify-write on DTCM.  "AN 4667 - STM32F7
15383        Series system architecture and performance" recommends to disable
15384        read-modify-write on DTCM: "If the DTCM-RAM is used as data location
15385        and the variables used are byte or/and halfword types, since there is
15386        no ECC management in this RAM on the STM32F7 Series, it is recommended
15387        to disable the read-modify-write of the DTCM-RAM in the DTCM interface
15388        (inthe DTCMCR register) to increase the performance." From Jussi
15389        Kivilinna.
15390
15391    * STMicro STM32 Drivers:
15392
15393      - STM32 TIM3/4 are always 16-bits; never 32-bits.  Noted by Eetu
15394        Nevalainen..
15395      - STM32 ADC:  Invalidate dma buffer before use.  Missing invalidation
15396        caused old samples being fetched from cache.  From Jussi Kivilinna.
15397      - STM32, STM32L4, STM32F7 ADC:  Fix channel 18 sample time.  From Juha
15398        Niskanen.
15399      - STM32 DAC:  Fix some configuration logic. When STM32_NDAC is greather
15400        than 1, then second channel is always DAC1OUT2.  From Mateusz Szafoni.
15401      - STM32 DAC:  Fix compilation when DMA disabled for channel.  From
15402        Mateusz Szafoni.
15403      - STM32 F0:  Fix some funny shifts in DAC header files.  From Juha
15404        Niskanen.
15405      - STM32 F1 RTC fixes:  (1) Compile issues because of missing RTC_MAGIC
15406        #defines, (2) missing functionality based on RTC_MAGIC in RTC based on
15407        stm32_rtcounter.c, (3) IRQ setup from up_rtc_initialize was later
15408        reset in up_irqinitialize, (4) write access to backup registers
15409        without enabling access to backup domain, (5) possible races in
15410        set/cancel alarm.  tested with STM32F103C8 only.  device now wakes up
15411        from forced STANDBY mode by alarm.  From Leif Jakob.
15412      - STM32/STM32 L4 PWM:  While attempting to output a 70 MHz square wave
15413        from the timer output of a STM32 clocked at 140 MHz, found that the
15414        reload calculation was off by one.  This correction does allow the
15415        output up to 70 MHz.  I am not sure this affects most users
15416        generating slow PWM but for frequencies close to the PCLK, the
15417        difference becomes significant.  From JM.
15418      - STM32 L4 I2C: Set I2C SDA and SCL pins to open drain mode.  From Pekka
15419        Ervasti.
15420      - STM32 L4 I2C: I2C4 was writing to wrong RCC registers.  From Juha
15421        Niskanen.
15422      - STM32 L4 DAC:  Report transfer as completed in DMA callback.  Without
15423        this even O_NONBLOCK writes block the calling task if DAC was using
15424        DMA.  From Juha Niskanen.
15425      - STM32 L4 COMP: comparators share RCC enable bit with SYSCFG.  From
15426        Juha Niskanen.
15427      - STM32 L4 ADC:  Correct EXTSEL macros.  From Juha Niskanen.
15428      - STM32 L4 TIM: TIM15,16,17 are always in APB2.  From Juha Niskanen.
15429      - STM32 F7 I2C: Set I2C4 SDA and SCL pins to open drain mode.  From Juha
15430        Niskanen.
15431      - STM32 F4 RTCC: ISR register and write protection fix.  From Eetu
15432        Nevalainen.
15433      - STM32 F7 Ethernet:  Fix typo in header; Add memory sync barrier
15434        between writing to DMA TX descriptor and restarting DMA TX. Avoid
15435        calling work_queue on pollwork if it's already queued, just skip a
15436        poll cycle instead.  Nucleo-144: Fix RMII TXD1 signal, connected to
15437        PB13 not to PG14.  From savinz.
15438      - STM32 F7:  Added missing config option for register value debugging.
15439        From Titus von Boxberg.
15440      - STM32 F7:  No FSMC, only FMC for STM32F7.  From Titus von Boxberg.
15441      - STM32 F7:  HEAP2 depends on CONFIG_ARCH_HAVE_HEAP2, not on particular
15442        FMC RAM type.  From Titus von Boxberg.
15443      - STM32 F7:  STM32_RCC_DCKCFGR2 has nothing to do with PLLI2S; PLLI2S is
15444        not dependent on LTDC, instead on SAICLK1/2 generated from PLLI2S.
15445        From Titus von Boxberg.
15446      - STM32F7: Some STM32F7 builds failed in build testing due to undefined
15447        STM32_SRAM1_BASE.  I think that is because stm32_allocateheap.c was
15448        not including chip/stm32_memorymap.h.
15449      - STM32 F7: dcache write-buffed mode is used (not write-through) buffer
15450        alignment is required for DMA transfers because a)
15451        arch_invalidate_dcache could lose buffered writes data and b)
15452        arch_flush_dcache could corrupt adjacent memory if the buffer and the
15453        bufflen, are not on ARMV7M_DCACHE_LINESIZE boundaries.  From David
15454        Sidrane.
15455
15456    * STMicro STM32 Boards:
15457
15458      - STM32F103-Minumum SPI: SPIDEV_WIRELESS used when this has
15459        changed to SPIDEV_CONTACTLESS. From Nicolas Estibals.
15460      - configs/:  a few more places where SPIDEV_WIRELELSS should be
15461        SPIDEV_CONTACTLESS.
15462      - STM32F103-Minumum:  Fix a BUG when reading from output pin.  We need
15463        a different read_ops to read from output pin. This patch fixes the
15464        issue.  From Alan Carvalho de Assis.
15465      - STM32F103-Minumum: Use separated read_ops for GPIO interrupt pins.
15466        From Alan Carvalho de Assis.
15467      - STM32F103-Minumum: Fix compiler error in MCP2415 logic.
15468      - STM32F746G-DISCO:  Fix for compilation of STM32F746G-DISCO.  From Ivan
15469        Ucherdzhiev.
15470      - STM32F746G-DISCO:  Fix for stm32f746g-disco board for button support
15471        with interrupt.  This change is tested with buttons app example and it
15472        is working with interrupts (signals). I tried the test with polling
15473        but at this point it doesn't work.  From Ivan Ucherdzhiev.
15474
15475    * Build System
15476
15477      - Fix -Werror=implicit-fallthrough on gcc7.  From Julien Lecoeur.
15478      - configs/Board.mk:  Remove comment form end of line. In windows native
15479        build, it appears to be trying to make that an extra parameter to the
15480        AR command.  From Jeff.
15481      - configs/Board.mk:  Remove quotes from CONFIG_ARCH_FAMILY.  Causes
15482        problems with Windows native build.  From Jeff.
15483      - Makefile.win would only create uboot images for ARM.  MIPS support
15484        also needed.  From Lwazi Dube.
15485
15486    * C Library/Header Files:
15487
15488      - C++:  Fix C++ __guard implementation for ARM.  The standard C++ ABI
15489        that most platforms follow defines __guard to be 64 bits.  The existing
15490        implementation of libxx_cxa_guard.cxx follows this.  However, the
15491        32-bit ARM C++ ABI defines it as 32 bits instead, and changes the
15492        meaning slightly so only the lowest bit is used. This matters because
15493        GCC creates guard symbols without regards to what libxx_cxa_guard.cxx
15494        says.  So on ARM, gcc allocates 4 bytes, but __cxa_guard_release
15495        writes 8 bytes, zeroing out another unlucky variable nearby. Fix it
15496        by special-casing 32-bit ARM in libxx_cxa_guard.  From Jim Paris.
15497      - C++:  In cwchar it uses CONFIG_LIBC_WCHAR to only export the wc/mb
15498        functions.  When a build does not want to use wide or multibyte char
15499        CONFIG_LIBC_WCHAR is not set. Therefore we should to only export the
15500        wc/mb functions when defined.  Regardless of the stat of
15501        CONFIG_LIBC_WCHAR the non mb/wc  definitions such as mbstate_t,
15502        wint_t, wctype_t need to be exported.  From David Sidrane.
15503      - C Library:  Fix an error in mkstemp() the could result in an infinite
15504        loop.  From Alan Carvalho de Assis.
15505      - C Library:  (1) Fix an error in mkstemp() the could result in an
15506        infinite loop.  (2)  Fix for wrong output in some cases.  For Example:
15507        (a) input: "FILEXX", output: "FILE00" and repeats same output for
15508        further invocations of mkstemp(). But, the output has to be FILE01,
15509        FILE02, ...., FILEZZ. (b) input: "FILEXXXXXX", output: "FILE100000",
15510        for next invocation "FILE200000" and so on.  But it's good, if the
15511        output goes like FILE000001, FILE000002, ..., FILE000101, ...  From
15512        Lokesh B V.
15513      - C Library:  gethostbyname_r: Fix check for space in buffer.
15514      - C Library:  inet_ntop() was printing negative values for fields >127.
15515      - Math Library:  Fix wrong output in modf() API.  The sign of integral
15516        part given by the modf() should be same as sign of input.  But for
15517        inputs between 0 and 1, the sign of integral part was not same as
15518        sign of input.  From Lokesh B V.
15519      - Math Library:  Fix wrong output in ceil() API.  Ex:for input x = 1.0,
15520        the output should be 1.0, but the output was 2.0.  From Lokesh B V.
15521
15522    * Tools
15523
15524      - tools/testbuild.sh: Fix missing $ before variable name.
15525      - tools/mkdeps.c:  Eliminate a warning. MAX_PATH may already be defined
15526        in included system files.  From Jeff.
15527
15528    * Applications: apps/
15529
15530      - All apps/ Makefiles:  Add .PRECIOUS: apps/libapps.a to every
15531        Makefile.  Hopefully this will end awkward problems when you Control-C
15532        out of a build and libapps.a is deleted.
15533      - platform/Makefile: More attempts to fix for Windows native build.
15534        Backslash as a delimiter causes problems in pattern subsitutions.
15535
15536    * NSH: apps/nshlib:
15537
15538      - NSH network initialization: Fix some ieee 802.15.4 initialization
15539        logic.  It should not set the saddr or panid; those cannot be
15540        hard-coded but must come from the coordinator.  Re-factor a function
15541        that has gotten too big and too complex.  Do not set the IP address
15542        for 6loWPAN.  The 6loWPAN stack uses IP address that derive from the
15543        ieee 802.15.4 addressing and cannot be (safely) configured by the user.
15544      - NSH Library: Fix copy-paste typo in nsh_usbconsole.c.  From Oleg
15545        Evseev.
15546      - NSH Library: fix size of 6LoWPAN extended address.
15547      - NSH Library: Fix build break in nsh_command.c with IPv4/IPv6 dual
15548        stack.  From Masayuki Ishikawa.
15549      - NSH Library: Correct parsing of ifconfig so that you can specify the
15550        HW address without specifying the IP address.
15551
15552    * Examples/Tests: apps/examples:
15553
15554      - examples/smart: Fix some compilation errors.  Obviously this test has
15555        not been used in a LONG time.
15556      - examples/udp:  Renaming some files to prevent name collision in
15557        libapps.a.  Fix naming of a configuration setting.
15558      - examples/nettest:  Renaming some files to prevent name collision in
15559        libapps.a
15560      - examples/nximage:  Remove unused global variable.
15561      - examples/nsh:  Remove APPNAME, PRIORITY, and STACKSIZE settings from
15562        Makefile to avoid showing nsh in Builtin Apps.  From Masayuki Ishikawa.
15563
15564    * Network Utilities: apps/netutils:
15565
15566      - netutils/tftpc:  Missing header file causes errors in some
15567        configurations.
15568      - netutils/tftpc:  TFTPC depends on CONFIG_NET_IPv4.
15569      - netutils/netlib:  Fixes to work when only USRSOCK is enabled.
15570      - netutils/netlib: Fix netlib_nodaddrconv() so that its return type is
15571        the same as other address conversion functions.
15572      - netutils/netlib: If only PF_IEEE802154 socket family is enabled, then
15573        must use SOCK_DGRAM.
15574      - netutils/ftpc:  Fix some memory leaks.  From Boris Astardzhiev.
15575      - netutils/thttpd: Fix a malformed if condition detected by GCC 6.x.x.
15576      - netutils/dhcpd: Prevent buffer overflow in dhcpd_addoption.  offset
15577        represents distance from start of option buffer.  So this should be
15578        changed current option pointer minus start of buffer.  From EunBong
15579        Song.
15580
15581    * Wireless Utilities: apps/wireless:
15582
15583      - wireless/ieee802154/i8sak:  Need to increment the next_saddr after
15584        each successful association.
15585
15586    * System Utilities (apps/system)
15587
15588      - correct copy-paste typo in comments in composite_main.c  From Oleg
15589        Evseev.
15590      - system/dhcpc:  The DHCPC renew command did not build correctly due to
15591        naming problems.  Noted by Masayuki Ishikawa.
15592      - system/dhcpc: Fix warning about renew_main.o appear twice in rule.
15593
15594    * Tools (apps/tools):
15595
15596      - tools/mkkconfig.bat: Use %cd% instead of %~dp0 for usage of APPSDIR
15597        in this batch file.
15598      - tools/mkkconfig.bat:  Remove quotes in echo.  These were begin
15599        Echo'ed and generating double quots in the output.  From Jeff.
15600      - Windows build fixes:  tools/mkkconfig.bat - switch APPSDIR path to
15601        use forward slashes for kconfig-frontends. interpreters/ficl -
15602        Reorder some targets that causes GNUwin32 make to behave badly.  From
15603        Jeff.
15604
15605NuttX-7.23 Release Notes
15606------------------------
15607
15608The 123rd release of NuttX, Version 7.23, was made on December 4, 2017,
15609and is available for download from the Bitbucket.org website.  Note
15610that release consists of two tarballs:  nuttx-7.23.tar.gz and
15611apps-7.23.tar.gz.  These are available from:
15612
15613    https://bitbucket.org/nuttx/nuttx/downloads
15614    https://bitbucket.org/nuttx/apps/downloads
15615
15616Both may be needed (see the top-level nuttx/README.txt file for build
15617information).
15618
15619Additional new features and extended functionality:
15620
15621    * Core OS:
15622
15623      - sem_open() should return SEM_FAILED on any failures.  This is change
15624        in the POSIX specification since the original sem_open() was written
15625        so many years ago.
15626      - exec():  The non-standard interface exec() is now enshrined as a
15627        official NuttX API.  I really dislike doing this but I think that
15628        this is probably the only want to load programs in the protected
15629        mode.  It is currently used by some example code under apps/ that
15630        generate their own symbol tables for linking.  Other file execution
15631        APIs relay on a symbol table provided by the OS.  In the protected
15632        mode, the OS cannot provide any meaning symbol table for execution
15633        of code in the user-space blob so that is they exec() is really
15634        needed in that build case.  And, finally, the interface is
15635        completely useless and will not be supported in the KERNEL build
15636        mode where the contrary is true:  An application process cannot
15637        provide any meaning symbolic information for use in linking a
15638        different process.
15639      - OS Internal Functions:  Rename many OS internal functions so it is
15640        clear that they are not part of the application interface.  All
15641        internal functions with the sem_* prefix became nxsem_*, sig* become
15642        nxsig_*, mq_* become nxmq_*, etc.
15643      - Cancellation Points:  Add new cancellation point interface,
15644        check_cancellation_point().
15645      - Signals:  Add logic to wake up a thread that is waiting on a signal
15646        if it is canceled.
15647      - sigtimedwait():  Add logic to suppress the wait if there is a
15648        pending cancellation.
15649      - clock_nanosleep():  Implement clock_nanosleep().  nanosleep() is now
15650        reduced to a libc wrapper around clock_nanosleep().
15651      - task_delete():  Do not permit user applications to delete kernel
15652        threads.
15653      - kthread_create():  Rename kernel_thread() to kthread_create() for
15654        better naming consistency with task_create() and kthread_delete().
15655      - boardctl():  Remove the BOARDIOC_GRAPHICS_SETUP command.
15656      - TCB:  Move POSIX thread specific data from pthread TCB to common TCB
15657        structure.  This change allows using pthread_getspecific and
15658        pthread_setspecific from main thread. Patch also enables using
15659        pthread data with config option CONFIG_DISABLE_PTHREAD=y. From Jussi
15660        Kivilinna.
15661      - mm:  Remove the CONFIG_GRAN_SINGLE configuration option.  It adds no
15662        technical benefit (other than some minor reduction in the number of
15663        interface arguments) but adds a lot of code complexity.  Better
15664        without it.
15665      - mm:  Add a function to get information about the state of the
15666        granule allocator.  This is the moral equivalent of mallinfo().
15667
15668    * File Systems/Block and MTD Drivers
15669
15670      - MT25Q Serial FLASH:  Add support for Micron MT25Q series MT25Q128.
15671        From Sebastien Lorquet.
15672      - MX35LFxGE4AB:  Add an MTD driver for Macronix MX35LFxGE4AB serial
15673        NAND flash.  From Ekaterina Kovylova.
15674      - FileMTD:  Add block device MTD interface.  Block MTD interface
15675        allows using block device directly as MTD instead of having to use
15676        file-system in between.  NOTE that this provides the opposite
15677        capability of FTL which will let you use an MTD interface directly
15678        as a block device.  From Jussi Kivilinna.
15679      - BCH:  The character driver to block device access now supports an
15680        IOCTL to get the geomtry of the underlying block device.
15681      - mkfatfs:  Remove mkfatfs from the OS.  This is a user-space
15682        application and belongs in apps, not in the OS.
15683      - procfs:  Implements procfs /proc/fs/blocks and /proc/fs/usage files,
15684        replacing the NSH df command.  Also implements procfs /proc/fs/mount
15685        file, replacing the NSH mount command when there are no arguments.
15686      - procfs:  Add /proc/meminfo.  This is an alternative way to get the
15687        information that was previoulsy available in apps/system/free.
15688        apps/system/free was removed beause it made illegal calls into the
15689        OS violating the portable interface.  This new procfs entry provides
15690        the same information with no such violation.  it also provides
15691        information about the kernel heap (formerly /proc/kmm), about the
15692        use of program memory(formerly /proc/progmem).  And also information
15693        for the page table usage in the KERNEL build.
15694      - UserFS:  Adds the UserFS client and of the UserFS feature in
15695        general.  Initially used Unix domain local sockets instead of
15696        message queues.  Easier to transfer big data in local sockets than
15697        message queues.  However, that lead to certain inescapable deadlock
15698        conditions So the IPC was converted to UDP LocalHost loopback
15699        sockets.  The problem with the local sockets is that they do require
15700        operations on the top level pseudo-file system inode tree.  That
15701        tree must be locked during certain traversals such as enumerate
15702        mountpoints or enumerating directory entries.  This conversion is
15703        unfortunate in the sense that Unix local domain sockets are
15704        relatively lightweight.  LocalHost UDP sockets are much heavier
15705        weight since they rely on the full UDP stack.
15706
15707    * Graphics/Display Drivers:
15708
15709      - Framebufer character driver:  Add framebuffer character device driver.
15710      - LCD Framebuffer:  Add support for a generic front-end that will
15711        convert any LCD driver into a framebuffer driver.
15712      - Framebufer character driver:  Include support for LCD drivers that
15713        use a simulated framebuffer and must receive explicit notification
15714        when there is an update to a region in the framebuffer.
15715      - LCD:  Make LCD driver configuration indepently selected from NX
15716        graphics configuration.  This makes things awkward and loses some
15717        error checking but is a necessary step in order to make LCD drivers
15718        usable when the NX graphics system is disabled.
15719
15720    * Networking/Network Drivers:
15721
15722      - Networking:   Add implementation of logic for SIOCGIFCONF and
15723        SIOCGLIFCOF IOCTL commnds.
15724      - Network IOCTLs:  Add support for the SIOCGIFBRDADDR ioctl() command.
15725      - Routing Tables:  Permit IPv4 and IPv6 routing tables to be of
15726        different sizes.
15727      - Routing Tables:  Adds support for read-only routing tables.  Prior
15728        to this change, routing tables were only support in RAM and had to
15729        be initialized with explicit logic to add the necessary routes to
15730        the routing table.  With this change, routes may be defined in the
15731        pre-initialized, read-only routing table provided by the
15732        board-specific logic.
15733        This would be particularly useful, for example, in the case where
15734        there is only a single network adaptor and you want all output
15735        packets to go to the single adaptor in all cases.  So for that
15736        behavior you could add a read-only routing table to the
15737        board-specific long that contains a single entry, the default route:
15738        0.0.0.0/0.
15739      - Routing Tables.  Added support for routing tables in files in a file
15740        system.  This might be useful for customized, per-unit routing
15741        tables. There are two issues with it however:
15742         1. Reading from file system on a per packet basis could be slow.  I
15743            think it probably should have a small, in-memory cache of most
15744            frequently used routes for good problem.
15745         2. Currently the delroute logic is disabled due to a problem with
15746            the design.  NuttX does not currently support truncate().
15747            Therefore, it is not possible to delete entries from the routing
15748            table file. In this current implementation, that leaves the last
15749            entry intact at the end of the file.  An alternative design
15750            might include a tag on each record to indicate if the record is
15751            valid or not.  That would work but would add complexity to the
15752            other routing table functions.
15753      - Routing Tables:  Add support for an in-memory routing table cache in
15754        order to improve performance when the routing table is retained in a
15755        file. The cache holds the most recently used routing table entries
15756        and so can eliminate some file access.  Flush the in-memory cache
15757        when any entry is deleted from the routing table.  When a router
15758        matching an IP address is found, add the routing table entry to the
15759        cache.
15760      - Routing Tables:  Add logic to mark a route as most-recently-used in
15761        the route cache.
15762      - ICMP:  This change adds support for semi-standard IPPROTO_ICMP
15763        AF_INET datagram sockets.  This replaces the old ad hoc, nonstandard
15764        way of implementing ping with a more standard, socket interface.
15765      - ICMPV6: This commit adds support for semi-standard IPPROTO_ICMP6
15766        sockets.  This is a replacement for the non-standard ICMPv6 ping
15767        support that violated the portable POSIX OS interface.
15768      - ICMPv6:  Add option to manually specify router prefix in router
15769        advertisement message.  From Sakari Kapanen.
15770      - Local Sockets:  This commit modifies the Unix domain local socket
15771        design. Local sockets are built on top of pipes.  The Local socket
15772        implementation maintained file descriptors to interrupt with the
15773        pipes. File descriptors have the bad property that they are valid
15774        only while running on the thread within the task that created the
15775        local socket.
15776        As a policy, all internal OS implementations must use "detached"
15777        files which are valid in any context and do not depend on the
15778        validity of a file descriptor at any point in time.  This commit
15779        converts the usage of file descriptors to detached files throughout
15780        the local socket implementation.
15781
15782    * Wireless Networking/Wireless Drivers:
15783
15784      - IEEE-802154:  Adds support for receiving MAC events via IOCTL through
15785        socket interface.  From Anthony Merlino.
15786      - IEEE-802154:  Simplifies notify() and rxframe() calls to a single
15787        notify() call. dataind's and all other "notifs" are now "primitives"
15788        which aligns with standard terminology  From Anthony Merlino.
15789      - MAC802154:  Add support for getting promiscuous mode state From
15790        Anthony Merlino.
15791      - MAC802154 Character Driver: When in promiscuous mode, the char
15792        driver sends the entire frame, including the MAC header.  This
15793        change adds an offset field indicating the header-payload boundary.
15794        It is set to 0 when not in promiscuous mode as the header is not
15795        passed to the application
15796      - 6LoWPAN: Remove CONFIG_NET_6LOWPAN_FRAMELEN.  In this case where
15797        multiple radios are supported, this may not be a constant.  6LoWPAN
15798        now always queries the driver to get the maximum frame length.
15799      - 6LoWPAN:  Support sending to a router that is on-link and may be
15800        able to forward the packet for us if the destination is not
15801        reachable directly.  From Anthony Merlino.
15802      - XBee:  Adds XBee S2C (802.15.4 firmware) support. XBee driver
15803        emulates mac802154 interface.  From Anthony Merlino.
15804
15805    * Other Common Device Drivers:
15806
15807      - PowerLED:  Add upper-half driver for high power LED driver (powerled)
15808        From Mateusz Szafoni.
15809      - RTC Driver:  Add periodic alarms to upper and lower halves.  From
15810        Juha Niskanen.
15811      - Pipes:  Fix writing large buffers not triggering POLLIN for reader
15812        poll.  From Jussi Kivilinna.
15813      - USB CDC/ACM Device:  Add support for RX flow control to the CDC/ACM
15814        driver.
15815      - USB CDC/ACM Device:  Add support for flow control TERMIOs in CDC/ACM
15816        driver.
15817      - USB RNDIS Device:  Add RNDIS-over-USB driver.  From Sakari Kapanen
15818        with added Hi-Speed support from Masayuki Ishikawa.
15819      - Loop Driver:  Don't use file descriptors... Use the internal file
15820        system interfaces so that the loop device can be shared across
15821        threads.
15822      - APA102 LED controller:  Add driver for APA102 LED controller.  These
15823        LEDs are used on LED Strips and are controlled over SPI.
15824      - INA219.  Add INA219 Driver.  The INA219 is a combined voltage and
15825        current sensor that can measure up to 26 volts and a current that
15826        depends on an external shunt resistor.  Connection happens via
15827        i2c/smbus and the chip features a power supply rail that is
15828        independent from the measured voltage, so it can measure low
15829        voltages.  Right now it measures bus voltage and current, and does
15830        not use the internal calibrated current reading, nor the available
15831        power measurement.  From Sebastien Lorquet.
15832      - PCA9555:  The IRQ subsystem now supports passing a void * parameter
15833        to IRQ handlers.  Use that method to support multiple PCA9555
15834        devices, by passing a pointer to the device to the board defined IRQ
15835        handler.  Now the CONFIG_ for multiple PCA devices just allocates
15836        device structures dynamically instead of statically when not enabled.
15837        The same interrupt handler is entered with the device structure
15838        parameter in all situations, multiple or single PCA. One should
15839        still be careful if multiple PCA devices share the same IRQ.  From
15840        Sebastien Lorquet.
15841      - APDS-9960: Add driver for the APDS-9960 gesture sensor.  From Alan
15842        Carvalho de Assis.
15843      - MAX7219:  Add support to MAX7219 LED Matrix as LCD interface.  From
15844        Alan Carvalho de Assis.
15845      - WM8774:  Add WM8774 audio DAC support.  From Masayuki Ishikawa.
15846      - Nunchuck: Add Nintendo Wii Nunchuck driver.  From Alan Carvalho de
15847        Assis.
15848
15849    * Simulation
15850
15851      - Simulation:  Add a configuration for non-graphical testing of the
15852        frambuffer character driver using apps/example/fb.
15853      - Simulation:  Add a configuration for testing the UserFS using
15854        apps/examples/userfs.
15855
15856    * Broadcom BCM2708:
15857
15858      - BCM2708:  Add enough infrastructrue (more stubs) to get a clean
15859        compilation of the Pi Zero configuration (with many undefined things
15860        at link time).   This includes several register definition header
15861        files (some from Alan Carvalho de Assis), basic interrupt handling
15862        logic, boot-up files, GPIO support, tickless timer, build and
15863        configuration logic
15864
15865    * Broadcom BCM2708 Boards:
15866
15867      - Raspberry Pi Zero.  Basic board support at configs/pizero.  Untested
15868        in this release and still some remaining issues.
15869
15870    * Infineon XMC4xxx Boards:
15871
15872      - XMC4500-Relax:  Add config for UART3 on RXD P0.0 and TXD P0.1 pins.
15873        From Alan Carvalho de Assis.
15874
15875    * NXP Freescale LPC17xx Boards:
15876
15877      - Open1788:  Add initialization of Framebuffer driver.  Add
15878        configuration for testing the framebuffer driver.
15879
15880    * NXP Freescale LPC43xx Drivers:
15881
15882      - LPC43xx:  Add LPC43xx CAN driver.  From Alexander Vasiljev.
15883
15884    * NXP Freescale LPC43xx Boards:
15885
15886      - MCB1700:  Add support for Keil MCB1700 board.  From Alan Carvalho de
15887        Assis.
15888      - Open1788:  Add support for the discrete joystick driver.
15889      - Open1788:  Add a configuration for testing pdcurses with discrete
15890        joystick.
15891
15892    * On Semiconductor LC823450
15893
15894      - LC823450:  Add ADC driver and watchdog drivers.  From Masayuki
15895        Ishikawa.
15896      - LC823450:  Add IPL2 support.  From Masayuki Ishikawa.
15897      - LC823450:  Add I2S support. From Masayuki Ishikawa.
15898      - LC823450:  Add auto LED for CPU activity.  From Masayuki Ishikawa.
15899
15900    * On Semiconductor LC823450 Boards
15901
15902      - LC823450-XGEVK:  Enable ADC and watchdog driver.  From Masayuki
15903        Ishikawa.
15904      - LC823450-XGEVK:  Add IPL2 support.  From Masayuki Ishikawa.
15905      - LC823450-XGEVK:  Add WM8774 support. From Masayuki Ishikawa.
15906      - LC823450-XGEVK:  Add auto LED support.  From Masayuki Ishikawa.
15907      - LC823450-XGEVK:  Enable CONFIG_SMP for audio. From Masayuki Ishikawa.
15908      - LC823450-XGEVK:  Add rndis configuration.  From Masayuki Ishikawa.
15909
15910    * STMicro STM32:
15911
15912      - ARM Kconfig:  Add support for classic ARM11 architecture selections.
15913      - STM32 Tickless:  Removes the restriction to 16-bit counts when a
15914        32-bit timer is used for tickless operation on the stm32.  As it
15915        was, the restriction is very limiting, especially if one wants high
15916        granularity and large achievable intervals and has the hardware
15917        (namely the 32bit timers) available.  From Rajan Gill.
15918      - STM32 L4 Kconfig:  Add some L486 and L496 chips.  From Juha Niskanen
15919      - STM32 F7:  Adds architecture support for the STM32 F72x and F73x
15920        families.  From Bob Feretich.
15921      - STM32 F7:  Allow changing voltage output scaling setting and
15922        prevents enabling over-drive mode for low frequencies (STM32 F74xx,
15923        75xx, 76xx, 77xx). From Jussi Kivilinna.  Changes replicated for
15924        the 72xx and 73xx families.
15925
15926    * STMicro STM32 Drivers:
15927
15928      - STM32 ADC:  Added support for ADC's IO_ENABLE_TEMPER_VOLT_CH ioctl
15929        on STM32F10XX and STM32F20XX.  From Dmitriy Linikov.
15930      - STM32 Wakeup: Add logic for enabling wakeup pins.  From Oleg Evseev.
15931      - STM32 PWR:  Adds stm32_pwr_getsbf and stm32_pwr_getwuf functions
15932        that return the standby flag and the wakeup flag PWR power
15933        control/status register.  From Oleg Evseev.
15934      - STM32 HRTIM:  Sdd support for capture, chopper, deadtime and dump
15935        registers.  From Mateusz Szafoni.
15936      - STM32 RTC:  Canceling an alarm marks it as inactive.  From Juha
15937        Niskanen
15938      - STM32 Serial:  Add interface to get uart_dev_t by USART number,
15939        stm32_serial_get_uart().  From Juha Niskanen.
15940      - STM32 F33xx ADC:  Initial ADC support for the STM32F33XX.  From
15941        Mateusz Szafoni.
15942      - STM32 F33xx ADC:  Add ADC DMA support to STM32F33 configuration.  From
15943        Mateusz Szafoni.
15944      - STM32 L4 ADC:  Port analog watchdog ioctl commands from the Motorola
15945        MDK.  From Juha Niskanen
15946      - STM32 L4 ADC:  Add option for routing ADC data to DFSDM, fix DFSDM
15947        DMA. From Juha Niskanen
15948      - STM32 L4 ADC:  Add PM hooks from Motorola MDK
15949      - STM32 L4 FLASH:  Add function for modifying device option bytes,
15950        From Juha Niskanen.
15951      - STM32 L4 DFSDM:  Add peripheral support for digital filters for
15952        sigma-delta ADCs.  Initial version.  Timer trigger support is not
15953        completed and there is some issue with DMA.  From Juha Niskanen.
15954      - STM32 L4 I2C:  Port then STM32 F7 I2C driver to STM32 L4.  STM32L4 I2C
15955        driver is in work-in-progress state (plentiful of TODOs and
15956        #warnings) and lags many features found in more up-to-date STM32 I2C
15957        drivers.  The peripheral on STM32F7 and STM32L4 are identical except
15958        for L4's 'wakeup from stop mode' flag and STM32F7's I2C driver is in
15959        more 'ready to use' state.  The I2C clock configuration is kept the
15960        same as before (I2CCLK = PCLK1 80 Mhz) instead of switching to
15961        STM32F7 arch default that is I2CCLK=HSI. Further work would be to
15962        add configuration option for choosing I2C clock source instead of
15963        current hard-coded default.  From Jussi Kivilinna.
15964      - STM32 L4 RTC:  Add up_rtc_getdatetime_with_subseconds
15965      - STM32 L4 RTC:  Change maximum alarm time from 24h to one month.  From
15966        Juha Niskanen.
15967      - STM32 L4 RTC:  Add support for periodic interrupts with
15968        (experimental) CONFIG_RTC_PERIODIC.   From Juha Niskanen.
15969      - STM32 L4 SDMMC:  Add support for an SDMMC driver.  From Miha Vrhovnik.
15970      - STM32 L4 Serial:  Suspend serial for Stop mode.  From Juha Niskanen.
15971      - STM32 L4 Serial/PM:  STM32L4 serial PM interface improvements:
15972        Check rx/tx buffers for pending data in pmprepare.  Remove adhoc PM
15973        interfaces and move serial suspend functionality behind CONFIG_PM.
15974        From Jussi Kivilinna.
15975
15976    * STMicro STM32 Boards:
15977
15978      - STM32F103-Minimum:  Add board support for APA102 driver.  From Alan
15979        Carvalho de Assis.
15980      - STM32F103-Minimum:  Add ADC support on stm32f103-minimum board.
15981        From Alan Carvalho de Assis.
15982      - STM32F103-Minimum:  Add support for LM75 in the stm32f103-minimum
15983        board.  From Alan Carvalho de Assis.
15984      - STM32F103-Minimum:  Add an ADPS-9960 example configuration.  From
15985        Alan Carvalho de Assis.
15986      - STM32F103-Minimum:  Add board support for MAX7219 LED Matrix
15987        controller.  From Alan Carvalho de Assis.
15988      - STM32F103-Minimum:  Add USB MSC device initialzation to
15989        stm32f103-minimum.  From Alan Carvalho de Assis.
15990      - STM32F103-Minimum:  Add framebuffer driver initialization for
15991        stm32f103-minimum board.  From Alan Carvalho de Assis.
15992      - STM32F103-Minimum:  Add Nunchuck board support for
15993        stm32f103-minimum board.  From Alan Carvalho de Assis.
15994      - STM32F4 Discovery:  Add support for JLX12864G display on STM32F4
15995        Discovery board.  From Alan Carvalho de Assis.
15996      - Viewtool-STM32F107:  Add support to auto-mount the procfs file system.
15997      - Photon:  Support SPI1 and SPI3.  From Anthony Merlino.
15998      - STM32F334-DISCO:  Add lower half driver for high power LED
15999        (powerled).  From Mateusz Szafoni.
16000      - STM32F334-DISCO:  Add flash mode support for powerled driver. From
16001        Mateusz Szafoni.
16002      - STM32F334-DISCO:  Add powerled example configuration.  From Mateusz
16003        Szafoni.
16004      - STM32F334-DISCO:  Add lower-half driver for SMPS (buck-boost onboard
16005        converter).  From Mateusz Szafoni
16006      - Nucleo-F334R8:  Add logic for zero latency high priority interrupts
16007        example.  From Mateusz Szafoni.
16008      - Nucleo-F334R8:  Add highpri example configuration.  From Mateusz
16009        Szafoni.
16010      - STM32 F4 Discovery:  Added support for the LIS3DSH accelerometer on
16011        the STM32F4 Discovery rev. C boards.  From Florian Olbrich.
16012      - STM32 F4 Discovery: ROMFS for STM32F4 Discovery board.  From Tomasz
16013        Wozniak.
16014      - STM32 F4 Discovery:  Add a USB MSC configuration.  From Alan Carvalho
16015        de Assis.
16016      - STM32 F4 Discovery:  RNDIS support on STM32F4Discovery + DM-STF4BB.
16017        NOTE: MAC address for the host side starts 0xaa.  This assignment
16018        scheme should be fixed later.  From Masayuki Ishikawa.
16019      - STM32 F4 Discovery:  Add STM32F4 Discovery board support for
16020        Nunchuck joystick.  From Alan Carvalho de Assis.
16021      - STM3240G-EVAL:  Add a configuration for testing the Framebuffer
16022        character driver using the LCD framebuffer front.
16023      - STM3240G-EVAL:  Mount procfs if enabled.
16024      - STM3240G-EVAL:  Add support for pdcurses and the pdcurses demo
16025        programs in the 'fb' configuration.
16026      - Clicker2-STM32:  Adds SD card, automount, and syslog file
16027        support and fixes a few minor issues.  From Anthony Merlino.
16028      - Clicker2-STM32:  Adds support for USB RNDIS device.  From Anthony
16029        Merlino.
16030      - Olimex STM32-H407:  Add serial support on the on-board UEXT
16031        connector.  Add USART6 for UEXT connector.   Add nsh_uext
16032        configuration and README update.  From Jan Pobr�slo.
16033      - Nucleo-F410RB:  Add support for the nucleo-F410RB board.  From
16034        Gwenhael Goavec-Merou.
16035      - STM32F429i-DISCO:  Add framebuffer driver initialization.  Add a
16036        framebuffer (fb) configuration.
16037      - STM32F429i-DISCO:  Add logic to auto-mount procfs.  Enable procfs in
16038        all configurations that use NSH.
16039      - STM32F429i-DISCO:  Enable support for the STMPE811 touchscreen
16040        controller.  Enable touchscreen and also the touchscreen testa at
16041        apps/examples/touchscreen in the fb configuration.
16042      - STM32F429i-DISCO:  Convert NxWM configuration to use LTDC
16043        framebuffer driver instead of SPI serial.  Also reduce number of
16044        layers from 4 to 1 in fb configuration.  Only one layer is used.
16045      - STM32L476-MDK:  Add support for the on-board LEDs.
16046      - Nucleo-L496ZG:  Add DFSDM initialization.  From Juha Niskanen
16047      - Nucleo-L496ZG:  Add support for SDMMC driver.  From Miha Vrhovnik.
16048      - Nucleo-L496ZG:  Enable I2C4 bus with i2ctool in NSH configuration.
16049        From Jussi Kivilinna.
16050      - Nucleo-L496ZG:  Make HSE on Nucleo-L496ZG default to enable USB.
16051        From Miha Vrhovnik.
16052      - Nucleo-F746ZG:  Use the serial console over /dev/ttyACM0 by default.
16053        The Nucleo-F746ZG doesn't come with Arduio RS-232 shield, then it is
16054        better to use the serial over the /dev/ttyACM0 that is created
16055        automatically when the board is plugged in the computer.  From Alan
16056        Carvalho de Assis.
16057      - Nucleo-144:  Adds support for the Nucleo-144 boards with
16058        STM32F722ZE.  From Bob Feretich.
16059
16060    * ZiLOG Z80
16061
16062      - z80/include: compiler.h, limits.h, types.h:  Update SDCC/z80 files
16063        to include support for long long, inline, __FILE__, and __func__.
16064
16065    * C Library/Header Files:
16066
16067      - include/:  Add stdnoreturn.h.  Holds definitions for the C11
16068        noreturn keyword.  Applies to C too.
16069      - include/netinet/tcp.h:  Add trivial standard tcp.h header file.
16070      - libc:  Add support for readv() and writev().
16071      - libc:  Adds tcflow().
16072      - libc:  Add support for sigwait().
16073      - libnx:  Changes to allow the font subsystem to be built without
16074        enabling the entire graphics system (CONFIG_NX).  Adds
16075        CONFIG_NXFONTS and CONFIG_NXGLIB.  Needed to duplicate some Kconfig
16076        setting for NXFONTs if it can be configured and built independently
16077        of NX.
16078
16079    * Tools:
16080
16081      - tools/configure.sh:  Add special support so that you can start with a
16082        windows native configuration and install on a different host (and
16083        vice versa).
16084      - tools/configure.c:  Duplicate new functionaity added to configure.sh.
16085      - tools/configure.sh:  This commit adds a -m option for macOS. For
16086        anyone not aware, Apple renamed OSX to macOS recently; thus the 'm'
16087        instead of 'o'. This does not change the other uses of *_OSX to
16088        macOS. From jeditekunum.
16089      - tools/configure.c:  Update functionality to match last change to
16090        tools/configure.sh.
16091
16092    * NSH: apps/nshlib:
16093
16094      - apps/nshlib:  mount command no long uses the non-standard OS
16095        interface foreach_mountpoint().  Now simply cats /proc/fs/mount
16096        when there are no arguments to the mount command.
16097      - apps/nshlib:  df command no long uses the non-standard OS interface
16098        foreach_mountpoint().  Now simply cats /proc/fs/blocks or
16099        /proc/fs/usage.
16100      - apps/nshlib:  The free commands no longer used mallinfo() to get
16101        the state of the use heap.  Two reasons:  That is not useful
16102        information in the kernel build.  And (2) there are other memory
16103        resources of interest in other configurations such as the Kernel
16104        heap in PROTECTED and KERNEL builds, and the prog mem uses when
16105        FLASH is used to hold modifiable data.  The free command has been
16106        extended to just dump the content of procfs entries and to include
16107        all of these other memory resources of the procfs entries are
16108        available.
16109
16110    * Examples/Tests: apps/examples:
16111
16112      - apps/examples/fb:  Add a simple test for the framebuffer character
16113        driver..
16114      - apps/examples/ostest: sem_open() now returns SEM_FAILED in the
16115        event of a failure.
16116      - examples/ostest:  Extend cancellation test to make sure that
16117        cancelable threads waiting on a message queue or on a signal can be
16118        canceled.
16119      - Added a simple reader example for the LIS3DSH acceleration sensor
16120        on STM32F4Discovery.  From Florian Olbrich.
16121      - apps/examples/apa102:  Add a Rainbow example for APA102 LED Strip.
16122        From Alan Carvalho de Assis.
16123      - apps/examples/flowc:  Add a simple test of serial hardware flow
16124        control.
16125      - Add powerled driver example.  From Mateusz Szafoni.
16126      - apps/examples/ina219: A simple infinite loop that polls the INA219
16127        sensor and displays the measurements.  From Sebastien Lorquet.
16128      - apps/examples/alarm:  Add options for reading alarm value and
16129        canceling it.  From Juha Niskanen.
16130      - Add -n samples to lm75 app and replace Centigrade with Celsius.
16131        From Alan Carvalho de Assis.
16132      - apps/examples/adps9960:  Add ADPS-9960 example.  From Alan Carvalho
16133        de Assis.
16134      - apps/examples/obd2:  Add OBD2 example application.  From Alan
16135        Carvalho de Assis.
16136      - apps/examples/userfs:  Add a test case for verifying UserFS.
16137      - apps/examples/smps:  Add SMPS driver example.  From Mateusz Szafoni.
16138      - apps/examples/pdcurses:  Bring in pdcurses demos and make them
16139        conform to the NuttX coding style.
16140      - apps/examples/pdcurses:  Add a very simple example that just shows
16141        the entire character set (7-bit only).  It adapts to the size of
16142        the framebuffer and, hence, can be used with very tiny displays.
16143        In fact it looks really dumb on big displays.
16144      - apps/examples/nunchuck:  Add Nunchuck example application.  From
16145        Alan Carvalho de Assis.
16146
16147    * File System Utilities: apps/fsutils:
16148
16149      - apps/fsutils/mkfatfs:  Move mkfatfs from the OS to here.
16150
16151    * Network Utilities: apps/netutils:
16152
16153      - apps/netutils/netlib:  Add netlib_ipv6adaptor() and
16154        netlib_ipv4adaptor().
16155      - apps/netutils/netlib:  Add helpers for reading the routing table:
16156        netlib_read_ipv4route() and netlib_read_ipv6route().
16157      - apps/netutils/netlib:  Add new utilities netlib_ipv[4|6]router()
16158        that can be used to determine the IP address of a router that would
16159        be used some some destination IP address that is not locally
16160        accessible.
16161      - apps/netutils/ftpc:  Adds support for IPv6 and fixes various
16162        transfer issues.   From Anthony Merlino.
16163
16164    * CANUtilities: apps/canutils:
16165
16166      - apps/canutils/libobd2:  Add libobd2 for NuttX.  From Alan Carvalho
16167        de Assis.
16168
16169    * Graphics: apps/graphics:
16170
16171      - graphics/traveler:  Convert to use the framebuffer driver.
16172      - apps/graphics/pdcurs34:  This commit brings the public domain
16173        pdcurses library into NuttX.  NuttX graphics support based on the
16174        framebuffer character drivers has been integrated.  Input is
16175        currently limited to a discrete joystick driver.
16176
16177    * Wireless Utilities: apps/wireless:
16178
16179      - apps/wireless/ieee802154/i8sak:  Adds socket interface support. You
16180        can now use both socket or char driver to control the MAC layer.
16181        From Anthony Merlino.
16182      - apps/wireless/ieee802154/i8sak:  Adds sniffer port option and a few
16183        other get/set parameters.  From Anthony Merlino.
16184      - apps/wireless/ieee802154/i8sak: Changes 'notif' to 'primitive'
16185        corresponding to the changes in the Kernel.  From Anthony Merlino.
16186      - apps/wireless/ieee802154/i8sak: Channel setting is now saved
16187        locally, so when performing a startpan or assoc, the channel
16188        previously set is still used, even though the MAC layer gets reset.
16189        From Anthony Merlino.
16190      - apps/wireless/ieee802154/i8sak:  Adds ability to get/set rxonidle
16191        setting for MAC layer. From Anthony Merlino.
16192      - apps/wireless/ieee802154/i8shark:  Adds i8shark, a sniffer "adapter"
16193        that captures all 802.15.4 traffic, packages it into a Wireshark ZEP
16194        packet, and sends it to a host running Wireshark  From Anthony
16195        Merlino.
16196
16197    * System Utilities (apps/system)
16198
16199      - apps/system/ping and ping6:  This commit removes the ping and ping6
16200        commands from NSH and replaces then with the apps/system/ping and
16201        apps/system/ping6 built-in commands.  The NSH ping[6] commands had
16202        to be removed because they violated the portable POSIX OS interface.
16203        The apps/system/png and ping6 command uses the sem-standard
16204        IPPROTO_ICMP and IPPROTO_ICMP6 socket interfaces.
16205
16206    * Platform-Specific Support (apps/platform)
16207
16208Bugfixes.  Only the most critical bugfixes are listed here (see the
16209ChangeLog for the complete list of bugfixes and for additional, more
16210detailed bugfix information):
16211
16212    * Core OS:
16213
16214      - Task Environment Creation:  Fix an error in the duplication of the
16215        child tasks environment in the special case where the parent's
16216        environment was created, but then all of the variables were unset.
16217        In that case, there is still an allocation in place but the size of
16218        the allocation is zero. This case was not being handled correctly
16219        when a child task attempts to create its environment and inherit the
16220        zero-size partent environment. Noted by Anthony Merlino.
16221      - timer_create():  Fix watchdog resource leak if cannot allocate a new
16222        timer. From Bruno Herrera.
16223      - OS Internal Functions: Internal OS functions should not return error
16224        information via the user errno variable:  This includes functions
16225        like file_seek(), file_read(), file_write(), etc.  The complete list
16226        is too long to duplicate here (please refer to the ChangeLog for
16227        details).
16228      - OS Internal Functions:  Not only should internal OS functions not
16229        modify the errno variable, they should never introduce cancellation
16230        points:  psock_connect(), psock_listen(), psock_getsockopt(), etc.
16231        The list is too long to duplicate here (please refer to the
16232        ChangeLog for details).
16233      - OS Internal Functions:  Create OS internal versions of many
16234        applications functions that were used by the OS.  The new versions
16235        differ from the application interfaces in that (1) they do not
16236        return error information via the errno variable, and (2) they never
16237        create cancellation points.  This includes new internal interfaces
16238        like nxsem_init() that is like sem_init(), etc.  There are too many
16239        to list here (see the ChangeLog for details).
16240      - Task Exit:  task_exithook.c fails to link if signals are disabled
16241        because was unconditionally trying to send the SIGCHLD signal to the
16242        parent in certain configurations.  Noted by Jeongchan Kim.
16243      - memalign():  Fix heap corruption caused by using unaligned chunk
16244        size.  Unaligned nodes generated by memalign later cause heap
16245        corruptions when nodes are shrink further (for example, 24 bytes ->
16246        8 bytes, when alignment is 16 bytes).  From Jussi Kivilinna.
16247      - SMP:  In sched/sched/sched_cpuselect.c, in order to find the cpu
16248        with the lowest priority thread, we have to remember the already
16249        found lowest priority.  Noted by Anonymous in Issue #75.
16250      - spinlocks:  Disable local interrupts in spin_setbit() and
16251        spin_clrbit() in order to avoid a deadlock condition.  From Masayuki
16252        Ishikawa.
16253      - atexit()/on_exit():  Clear atexit()/on_exit() function pointer
16254        before calling it.  On most archs, up_assert() calls exit() so
16255        without this change, if atexit() function triggers an assertion we
16256        are in endless loop.  From Juha Niskanen.
16257
16258    * File System/Block and MTD Drivers:
16259
16260      - tmpfs:  Fixed directory unlocking in tmpfs_opendir.   From Dmitriy
16261        Linikov.
16262      - fcntl():  fcntl() did not return success fail for F_SETFL.  Reported
16263        by Jussi Kivilinna.
16264      - tcdrain():  tcdrain() was recently added to the NuttX C library.
16265        But there is a problem.  The specification of tcdrain() requires
16266        that it be a cancellation point.  In order to do this, tcdrain was
16267        moved from the C library into the OS and the addition cancellation
16268        point hooks were added.  In non-FLAT builds, access via system calls
16269        is also now supported.
16270      - FS FAT:  Fix hard-fault when listing contents of FAT root.  From
16271        Jussi Kivilinna.
16272      - procfs: Correct a problem that was causing an apparent directory to
16273        be reported as a file instead of a directory by opendir.  This
16274        happened after adding these three new procfs entries: fs/block,
16275        fs/mount, and fs/usage.  Of course, there is no directory fs in this
16276        case, only three files that have fs/ in their relative pathnames.
16277        The logic was detecting that fs was the name of the enty to report,
16278        but it was then declaring that fs was a file (because fs/block is of
16279        type file).  This was fixed by adding a check for matching lenghts.
16280        i.e., if strlen(fs) != strlen(fs/block), then report fs as a
16281        directory instead of a file.
16282      - procfs:  Fix uptime being clse to maximum 32-bit value in certain
16283        config.  From Juha Niskanen.
16284
16285    * Binary Loader:
16286
16287      - binfmt/:  Don't schedule starthook if there are no constructors.
16288
16289    * Graphics/Display Drivers:
16290
16291      - LCD: ILI9341 initialize method not permitted to set errno.
16292
16293    * Networking/Network Drivers:
16294
16295      - Networking:  net/netdev/netdev_ifconfig.c: Was not returning all of
16296        the address info.
16297      - Networking: In some cases, packets are still not sent behind the
16298        router. I found that NuttX sends the ARP requests not to the router
16299        but to the target. Mistake in file net/route/netdev_router.c.  From
16300        Aleksandr Kazantsev.
16301      - SIOCGIFCONF and SIOCGLIFCONF IOCTL commands should only report on
16302        network adatpors in the UP state.
16303      - recvfrom():  Fix double leave_cancellation_point on error path.
16304        From Jussi Kivilinna.
16305      - send():  Verify that sock descriptor is valid.  Fixes assertion when
16306        using send on closed socket.  From Jussi Kivilinna.
16307      - sendto():  Remove assert check for null psock and buf input
16308        pointers.  Removes check as 'psock == NULL' altogether because that
16309        checked for later in psock_send and psock_sendto. Change null check
16310        for 'buf' so that it is handled same as in recvfrom.c (return
16311        -EINVAL instead of assert).  From Jussi Kivilinna.
16312      - sockgetname() files need to include udp/udp.h and tcp/tcp.h or
16313        otherwise NET_UDP_HAVE_STACK and NET_TCP_HAVE_STACK are undefined
16314        and the logic is never compiled.  Noted by Anthony Merlino.
16315      - dup()/dup2():  There was a reference counting problem in the TPC
16316        logic of net_clone().  net_clone() which is the common logic
16317        underlying dup() and dup2() for sockets.  When net_clone() calls
16318        net_start_monitor() and net_start_monitor() returns a failure
16319        (because the underlying TCP connection) then net_clone() must back
16320        out the reference count on the structure.  Problem noted by Pascal
16321        Speck and this implementation of the solution is based on his
16322        suggestion.
16323      - close():  There was a possible recursion that could eventually
16324        overflow the stack.  The error occurred when closing the socket with
16325        inet_close() while a socket callback was still queued.  When the
16326        socket callback was executed by devif_conn_event(), this resulted in
16327        a call to psock_send_eventhandler() with TCP_CLOSE flag set which
16328        then called tcp_lost_connection().  tcp_shutdown_monitor() then
16329        called tcp_callback() again, which again called
16330        psock_send_eventhandler(), and so on....  Noted by Pascal Speck.
16331        Solution is also similar to a solution proposed by Pascal Speck.
16332      - inet:  Add check for protocol before handing out TCP and UDP sockets.
16333      - IP Forwarding:  Fixes typo that caused build error when IP
16334        forwarding was enabled with CONFIG_NET_ICMPv6_NEIGHBOR enabled as
16335        well.  From Anthony Merlino.
16336      - IP Forwarding:  Do not add link layer header size to d_len inside
16337        devif_forward().  From Anthony Merlino.
16338      - TCP Networking:  When CONFIG_NET_TCP_WRITE_BUFF=y there is a
16339        situation where a NULL pointer may be dereferenced.  In this
16340        configuration, the TCP connection's 'semi-permanent' callback,
16341        s_sndcb was nullified in tcp_close_disconnect.  However, other logic
16342        in tcp_lost_connection() attempt to use that callback reference
16343        after it was nullifed.  Fixed in tcp_lost_connectino() by adding a
16344        NULL pointer change before the access.  This was reported by Dmitriy
16345        Linikov in Bitbucket Issue 72.
16346      - UDP Broadcat:  Fix some issues with regard to UDP broadcast
16347        handling.  This is Bitbucket Issue #77.
16348      - ICMP:  Fix an error in the poll logic.  It was assumed that the
16349        input parmeter pvconn was valid.  It was not.  Instead, the poll
16350        logic must work like the sendto() and recvfrom() logic:  It must
16351        keep a copy of the conn structure in the private data.
16352      - ICMPv6: Fixes several errors preventing icmpv6_radvertise.c from
16353        being compiled. Fixes conversions to network byte order (namely
16354        vlifetime, plifetime, mtu).  IPv6 source address is set to
16355        link-local IP address instead of the address in the netdev
16356        structure. This is in compliance to RFC 4861. RA didn't work on
16357        Linux before this change.  Finally, router prefix and prefix length
16358        are derived from the IPv6 address and netmask in the netdev
16359        structure. This seems to make more sense than using a predefined,
16360        separate prefix from the config.  From Sakari Kapanen.
16361      - ICMPV6:  icmpv6_input() needs to set d_len to 0 after consuming echo
16362        reply, otherwise, garbage will get sent out.  From Anthony Merlino.
16363      - ICMPV6:  Fix an error in the poll logic.  It was assumed that the
16364        input parmeter pvconn was valid.  It was not.  Instead, the poll
16365        logic must work like the sendto() and recvfrom() logic:  It must
16366        keep a copy of the conn structure in the private data.
16367      - IGMPv2 Send:  Fix incoming IGMP checksum calculation.  From Louis
16368        Mayencourt.
16369      - ARP:  Fix IGMP Ethernet address computation.  From Louis Mayencourt.
16370
16371    * Wireless/Wireless Drivers:
16372
16373      - CC1101:  CC1101 driver not permitted to set errno.
16374      - 6LoWPAN:  Correct an error in uncompressing multicast address.
16375      - 6LoWPAN:  Correct a bug in handling uncompressed frames (IPv6
16376        dispatch).  Adds a separate local variable, protosize, to keep track
16377        of the size of thep protocol header.
16378      - 6LoWPAN:  Fix an endian-ness problem in 6LoWPAN address
16379        decompression.  From Anthony Merlino.
16380      - 6LoWPAN:  The logic that extracts interface identifier from the IP
16381        address needs to be generalized to handle cases where the address is
16382        not a link local address.  From Anthony Merlino.
16383
16384    * Common Drivers:
16385
16386      - Serial: 16550 UART driver IOCTL method must not set errno; it must
16387        return a negated errno value.
16388      - LIS3DSH:  Added the argument parameter (FAR void *arg) to the
16389        interrupt handler provided by the LIS3DSH driver to fit the
16390        definition for ISRs in xcpt_t.  Changed the check for working queue
16391        availability in lis3dsh interrupt handler to use work_available()
16392        and not crash in case of an overrun.  From Florian Olbrich.
16393      - LIS2DH:  Fixes for self-test.  From Jussi Kivilinna.
16394      - LIS2DH:  Fix use of obsolete dbg macro.  From Jussi Kivilinna.
16395      - LIS331DL:  LIS331DL driver not permitted to set errno.
16396      - HTS221:  Power-on sensor for loading calibration data. From Jussi
16397        Kivilinna.
16398      - MCP2515:  Fix the MCP2515 Bit Rate Prescale calculation.   Fix BRP
16399        for SET_BITTIMING ioctl as well.  From Alan Carvalho de Assis.
16400      - STMPE811: Fix GPIO operation of STMPE811 driver.
16401        1. STMPE811_GPIO_DIR was defined for register name and later was
16402          redefined to be the pin direction mask for `stmpe811_gpioconfig`.
16403          I decided to change register name to be STMPE811_GPIO_DIR_REG, and
16404          keep pin direction mask STMPE811_GPIO_DIR, so that any external
16405          code that already use this driver will be unchanged.
16406        2. The STMPE811 register GPIO_DIR uses bit value 1 for output and 0
16407          for input, but `stmpe811_gpioconfig` set the opposite.
16408        3. The call to `stmpe811_gpiowrite` from inside of
16409          `stmpe811_gpioconfig` leaded to deadlock.
16410        From Dmitriy Linikov.
16411      - BQ2429X:  Add BATIO_OPRTN_SYSON for enabling BATFET after SYSOFF.
16412        From Jussi Kivilinna.
16413
16414    * Simulation:
16415
16416      - Simulation:  Serial and console drivers are not permitted to set
16417        the errno.
16418
16419    * ARMv7-M:
16420
16421      - ARM Stack Check:  Fix assert panic when both TLS and interrupt stack
16422        are enable.  From Jussi Kivilinna.
16423
16424    * Infineon XMC4xxx Drivers:
16425
16426      - XMC4 USIC: Kconfig was not selecting XMC4_USIC for USIC1. From Alan
16427        Carvalho de Assis.
16428      - XMC4 UART: Fix XMC4xxx USIC UART sginal to be high level when in idle.
16429        From Alan Carvalho de Assis.
16430      - XMC4 UART:xmc4_uart_configure() expects the channel# not uartbase as
16431        an input parameter.  From Alan Carvalho de Assis.
16432      - XMC4 UART:  Enable RX/TX status.  From Alan Carvalho de Assis.
16433      - XMC4 UART:  The Alternative Receive Interrupt was not being
16434        configured.
16435
16436    * Infineon XMC4xxx Boards:
16437
16438      - XMC4500-Relax:  Setup max. freq. 120MHz and setup pull-up to UART
16439        RXD pin.  From Alan Carvalho de Assis.
16440
16441    * Microchip/Atmel SAMv7 Drivers:
16442
16443      - SAMv7:  DAC and ADC drivers are not permitted to set the errno.
16444      - SAMv7:  Correct an error in RX DMA setup.  From Manish Kumar Sharma.
16445      - SAMv7 USB:  It is necessary to disable pre-emption and interrupts
16446        around a loop that copies TX data into the hardware in order to
16447        avoid a TX data underrun condition.  From Anthony Merlino.
16448
16449    * NXP/Freescale LPC31xx Drivers:
16450
16451      - LPC31xx:  Serial and console drivers are not permitted to set
16452        the errno.
16453
16454    * NXP/Freescale LPC43xx:
16455
16456      - lpc43xx:  lpc43_adc.c was being selected by the build system wehn
16457        DAC was selected.
16458
16459    * NXP/Freescale LPC43xx Drivers:
16460
16461      - LPC43xx Ethernet:  Fix some backward logic setting full-duplex and
16462        100mbps when autoconfiguration is disabled.  Noted by Anonymous in
16463        Issue #76.
16464      - lpc43xx: UART_RX pins should be configured with input buffers
16465        enabled. Otherwise it cannot be read.  From Alexander Vasiljev.
16466
16467    * STMicro STM32:
16468
16469      - STM32 F2:  Fixed build for STM32F20XX platforms when
16470        CONFIG_STM32_DMACAPABLE is enabled.  From Dmitriy Linikov.
16471      - STM32 F4:  Remove ltdc.h and dma2d.h. Those header files in that
16472        location permitted inclusion into application space logic and,
16473        hence, facilitated and encouraged calling into the OS and violating
16474        the portable POSIX OS interface.  The definitions in those header
16475        files were move the appropriate location in the counterpart,
16476        architecture specific files at arch/arm/src/stm32/dma2d.h and ltdc.h.
16477      - STM32 L4:  Build stm32l4_idle.c only if  CONFIG_ARCH_IDLE_CUSTOM is
16478        not enabled.  From Jussi Kivilinna.
16479      - STM32 F7:  Remove ltdc.h and dma2d.h. Those header files in that
16480        location permitted inclusion into application space logic and,
16481        hence, facilitated and encouraged calling into the OS and violating
16482        the portable POSIX OS interface.  The definitions in those header
16483        files were move the appropriate location in the counterpart,
16484        architecture specific files at arch/arm/src/stm32f7/dma2d.h and
16485        ltdc.h.
16486
16487    * STMicro STM32 Drivers:
16488
16489      - STM32:  DAC and ADC drivers are not permitted to set the errno.
16490      - STM32 ADC:  Clear pending interrupts.  From Mateusz Szafoni.
16491      - STM32 CAN:  Lower part of STM32 CAN driver
16492        arch/arm/src/stm32/stm32_can.c uses all three hw tx mailboxes and
16493        clears TXFP bit in the CAN_MCR register (it means transmission order
16494        is defined by identifier and mailbox number).
16495        This creates situation when order frames are put in upper part of
16496        CAN driver (via can_write) and order frames are sent on bus can be
16497        different (and I experience this in wild).  Since CAN driver API
16498        pretends to be "file like" I expect data to be read from fd the same
16499        order it is written. So I consider described behaviour to be a bug.
16500        Fixed by settin the TXFP bit in the CAN_MCR register (FIFO
16501        transmit order).  From comments by Alexey T, in Bitbucket Issue 73.
16502      - STM32 HRTIM:  Fix pclk calculation.  From Mateusz Szafoni.
16503      - STM32 HRTIM:  Fix burst mode prescaler update. From Mateusz Szafoni.
16504      - STM32 (alt) I2C:  Ensure proper error handling. Injecting data
16505        errors would cause the driver to continually reenter the isr with
16506        BERR an RxNE.  This fix allows the error to be cleared and
16507        propagated to the waiting task.  From David Sidrane.
16508      - STM32:  LTDC and DMA2D drivers are not permitted to set the errno.
16509      - STM32 RTC:  Workaround for potential subseconds race condition.  In
16510        all recent STM32 chips reading either RTC_SSR or RTC_TR is supposed
16511        to lock the values in the higher-order calendar shadow registers
16512        until RTC_DR is read. However many old chips have in their errata
16513        this silicon bug (at least F401xB/C, F42xx, F43xx, L15xxE, L15xVD
16514        and likely others):  "When reading the calendar registers with
16515        BYPSHAD=0, the RTC_TR and RTC_DR registers may not be locked after
16516        reading the RTC_SSR register. This happens if the read operation is
16517        initiated one APB clock period before the shadow registers are
16518        updated. This can result in a non-consistency of the three
16519        registers. Similarly, RTC_DR register can be updated after reading
16520        the RTC_TR register instead of being locked."
16521      - STM32 Serial:  Do not stop processing input in SW flow-control
16522        mode.  From Juha Niskanen.
16523      - STM32F33xxx ADC:  Add some publicly visable interfaces and some
16524        code to support injected channels.  From Mateusz Szafoni.
16525      - STM32F33xxx DMA:  Add public interface to handle with DMA
16526        interrupts.  From Mateusz Szafoni.
16527      - STM32F33xxx RCC:  Fix CAN clock enable.  From Mateusz Szafoni.
16528      - stm32 F4 I2C:  Ensure proper interrupt handling.  Injecting data
16529        errors that causes a STOP to be perceived by the driver, will
16530        continually re-enter the isr with SB not set and BTF and RxNE set.
16531        This changes allows the interrupts to be cleared and propagates a
16532        I2C_SR1_TIMEOUT to the waiting task.  From David Sidrane.
16533      - STM32 L4 Serial:  Do not stop processing input in SW flow-control
16534        mode.  From Juha Niskanen.
16535      - STM32 F7:  LTDC and DMA2D drivers are not permitted to set the errno.
16536      - STM32 L4:  DAC and ADC drivers are not permitted to set the errno.
16537      - STM32 L4 DAC:  Do not configure output pin if it is not used.  From
16538        Juha Niskanen.
16539      - STM32 L4 RTC, PM:  Small fixes to subseconds handling, ADC
16540        power-management hooks
16541      - STM32 F4 RTC:  Fix reading alarm value that is more than 24h in
16542        future.  From Juha Niskanen
16543      - STM32 L4 RTC:  Fix reading alarm value that is more than 24h in
16544        future.  From Juha Niskanen
16545      - STM32 L4 TIM:  Fix compilation of timers with complementary outputs
16546        when not PWM_MULTICHAN.  From Juha Niskanen.
16547      - STM32 L4 RCC:  Restore backup-registers after backup-domain reset.
16548        From Jussi Kivilinna.
16549      - STM32 L4 RTC:  Correct RTC_SSR and RTC_TR read ordering.  In all
16550        recent STM32 chips reading either RTC_SSR or RTC_TR is supposed to
16551        lock the values in the higher-order calendar shadow registers until
16552        RTC_DR is read. Change the register read ordering to match this and
16553        don't keep a workaround for a hypothetical race condition (not in
16554        any L4 errata, lets for once assume ST's silicon works as it is
16555        documented...)
16556      - STM32 L4 RTC:  Init mode was never exited because nested locking in
16557        rtc_synchwait() disabled backup domain access.  From Juha Niskanen.
16558      - STM32 L4 RTC:  Use backup register magic value instead of INITS
16559        bit.  The INITS (bit 4) of RTC_ISR register cannot be used to
16560        reliably detect backup domain reset. This is because we can operate
16561        our device without ever initializing the year field in the RTC
16562        calendar if our application does not care about correct date being
16563        set.  Hardware also clears the bit when RTC date is set back to year
16564        2000.  From Juha Niskanen.
16565      - STM32 L4 RTC:  Put back the SSR race condition workaround.  ST has
16566        confirmed that the issue has not been fixed, and that it applies to
16567        STM32 L4 too (was not in errata sheets due to documentation bug) See
16568        discussion: https://community.st.com/thread/43710-issue-with-rtc-maximum-time-resolution .
16569        From Juha Niskanen.
16570      - STM32 F7 BBSRAM:  Avoid assert in stm32_bbsram_savepanic. If panic
16571        happens before stm32_bbsram is initialized, stm32_bbsram_savepanic
16572        caused additional assert panic. Function has null pointer check, so
16573        drop DEBUGASSERT.  From Jussi Kivilinna.
16574      - STM32 F7 I2C: fix I2C_M_NORESTART handling.  From Jussi Kivilinna.
16575      - STM32 F7 I2C:  Restore bus frequency after I2C reset.  Copy
16576        frequency restoration fix from STM32L4 I2C driver to STM32F7 I2C
16577        driver.  From Jussi Kivilinna.
16578      - STM32 F7 RTC:  Fix reading alarm value that is more than 24h in
16579        future.  From Juha Niskanen
16580
16581    * STMicro STM32 Boards:
16582
16583      - STM32F334-DISCO:  Add missing ram_vectors configuration in linker
16584        script.  From Mateusz Szafoni.
16585      - Nucleo-F334R8:  Add missing ram_vectors configuration in linker
16586        script.  From Mateusz Szafoni.
16587      - Nucleo-F334R8:  Add Missing ADC trigger configuration tot he highpri
16588        configuration.  From Mateusz Szafoni.
16589      - STM3240G-EVAL:  The timer frequencies (BOARD_TIMx_FREQUENCY) are
16590        incorrectly defined in�board.h.  Since the APB prescalers are set to
16591        divide by 4 and 2 respectively, the frequencies should be "2xAPBx"
16592        as said in the comment.� The correct frequencies are already defined
16593        but as STM32_APBx_TIMx_CLKIN.  From Mattias Edlund.
16594      - STM32F429i-DISCO:  The ltdc configuration has been deleted because
16595        it violated the portable POSIX OS interface.  It used
16596        apps/examples/ltdc and include ltdc.h and dma2d.h which were also
16597        removed for the same reason.
16598
16599    * ZiLOG Z80
16600
16601      - configs/z80sim and xtrs:  Serial driver lower halfs ioctl methods
16602        should return a negated errno value, not set the errno variable.
16603      - z80 Make.defs:  Fixes dependency generation with newest SDCC
16604        compiler.
16605      - configs/z80sim:  Fix a naming problem.  Also, don't try to build the
16606        serial driver if CONFIG_NFILE_DESCRIPTOR=0.
16607      - Z80:  Makefile fix for use with current SDCC.
16608
16609    * Build System
16610
16611      - configs/:  All defconfig filess that include
16612        CONFIG_NET_ICMPv6_SOCKET=y need to select CONFIG_SYSTEM_PING6=y and
16613        deselect CONFIG_DISABLE_POLL.
16614      - configs/:  All NX configuration... Because of recent changes to
16615        libnx/nxfonts, Supported bit per pixel must be separated specified
16616        for NXFONTs too and need to match the select BPP for NX.
16617      - Build system:  Fix CONFIG_BUILD_KERNEL logic directories that have
16618        ubin and kbin subdirectories.  Conditional logic was fine for
16619        CONFIG_BUILD_FLAT and CONFIG_BUILD_PROTECTED but generated useless
16620        dependencies if CONFIG_BUILD_KERNEL.
16621
16622    * C Library/Header Files:
16623
16624      - libc/stdio:  Build the lib_noflush() and lib_snoflush() stubs even
16625        if CONFIG_FILE_DESCRIPTORS=0.  They may still be needed.
16626      - libc and libnx:  When the libraries are built into two libraries, a
16627        user space library and a OS space library (as in the PROTECTED and
16628        KERNEL build).  Then the user space library must not use the OS
16629        internal interfaces; similarly, the OS must avoid using the
16630        userspace interfaces so that it does not muck the errno value or
16631        create spurious cancellation points.
16632      - libc/match:  Use of exp() vs expf() in logf() caused function to be
16633        slow.  From Alan Carvalho de Assis.
16634      - libnx:  Fixes a memory leak that is caused because the client message
16635        queue is not unlinked after the client disconnects from the NX
16636        server.  From Masayuki Ishikawa.
16637      - sscanf():  Fix sscanf() character conversion (%c): do not add '\0' at
16638        the end as for strings, cause, for example, parsing one character
16639        will fill two bytes: character itself and zero one '\0' after it, so
16640        will overflow one byte variable argument and corrupt memory for
16641        variables allocated after it.  From Oleg Evseev.
16642
16643    * Tools
16644
16645      - tools/:  configure.sh and configure.c should redirect stdout to
16646        /dev/null but should not suppress stderr output.
16647
16648    * NSH: apps/nshlib:
16649
16650      - apps/nshlib/:  Avoid truncating the strcmp result in the parser
16651        into a unsigned char variable.  nshlib/nsh_netcmds.c:  Check for
16652        valid hostip before using it.   From Bruno Herrera.
16653      - apps/nshlib/:  Fix resouce leak in 'dd' commenad when 'if=' or
16654        'of=' params are repeated in the command line.  For example:
16655          dd if=/dev/null if=/dev/zero of=/dev/null or
16656          dd if=/dev/zero of=/dev/zero of=/dev/null.   From Bruno Herrera.
16657      - apps/nshlib:  This commit eliminates the ping and ping6 commands
16658        from NSH and replaces them with 'built-in' commands at
16659        apps/system/ping and ping6.  The original NSH version of ping[6]
16660        commands violated the portable POSIX interface and, hence, had to
16661        be removed. The new system/ping and ping6 built-in commands uses
16662        the new IPPROTO_ICMP AF_INET and IPPROTO_ICMP6 AF_INET6 datagram
16663        sockets to implement ping.
16664      - apps/nshlib: Fix parsing of empty strings when CONFIG_NSH_CMDPARMS
16665        is not defined. Problem noted by Juha Niskanen.
16666
16667    * Examples/Tests: apps/examples:
16668
16669      - All configurations that use NXIMAGE or NXHELLO must select
16670        NX_MULTIUSER.  All configurations that use examples/nxterm must
16671        enable CONFIG_LIB_BOARDCTL.
16672      - All configurations that use NXLINES must select NX_MULTIUSER.  All
16673        configurations that use the NX server need to have larger POSIX
16674        messages.
16675      - apps/examples/adc:  Fix g_adcstate.count initialization.  From
16676        Masayuki Ishikawa.
16677      - apps/examples/elf:  Remove low-level interfaces and replace with
16678        call to exec().
16679      - apps/examples/nxflat:  Remove low-level interfaces and replace with
16680        call to exec().
16681      - examples/ostest:  Works around a bug in printf() when cancellation
16682        points are enabled.  printf() is a cancellation point because it
16683        calls write().  This is correct according to OpenGroup.org.
16684        However, printf holds the stdio library semaphore when it is
16685        canceled and this leaves the semaphore in a bad state.  No fix for
16686        the printf bug yet.
16687      - apps/examples/nx:  The NX example no longer supports single user
16688        mode.
16689      - apps/examples/nxtext:  The nxtext example no longer supports single
16690        user mode.
16691      - apps/examples/nxhello now supports only multiuser mode.
16692      - apps/examples/nximage now supports only multiuser mode.
16693      - examples/nxlines:  Now supports only multiuser mode.
16694
16695    * Network Utilities: apps/netutils:
16696
16697      - apps/netutils/ftpc:  Fix some crazy comparisons to determine is a
16698        file is an absolute path.  Noted by Anthony Merlino.
16699
16700    * System Utilities (apps/system)
16701
16702      - apps/system/i2ctool: Fixed i2ctool write operation in `no restart`
16703        mode (flag `-n`).  It seems that I2C driver has changed a bit since
16704        i2ctool was written, so now i2ctool sends repeated start even if
16705        `no restart` flag (-n) was passed to it.  From Dmitriy Linikov.
16706
16707NuttX-7.24 Release Notes
16708------------------------
16709
16710The 124th release of NuttX, Version 7.24, was made on March 2, 2018,
16711and is available for download from the Bitbucket.org website.  Note
16712that release consists of two tarballs:  nuttx-7.24.tar.gz and
16713apps-7.24.tar.gz.  These are available from:
16714
16715    https://bitbucket.org/nuttx/nuttx/downloads
16716    https://bitbucket.org/nuttx/apps/downloads
16717
16718Both may be needed (see the top-level nuttx/README.txt file for build
16719information).
16720
16721Additional new features and extended functionality:
16722
16723    * Core OS:
16724
16725      - SMP: Introduce spin_lock_irqsave() and spin_unlock_irqrestore().
16726        These APIs are simplified version of enter_critical_section()
16727        and leave_critical_section() to protect data (e.g. registers) in
16728        SMP mode.  By using these APIs inside drivers, performance will
16729        be improved.  From Masayuki Ishikawa.
16730      - System Timer:  Replace critical section APIs with spinlock APIs.
16731        (64bit only).  If SMP=n or SMP=y && SPINLOCK_IRQ=n, this works
16732        in the same way as before.  If SMP=y && SPINLOCK_IRQ=y, performance
16733        will be improved.  From Masayuki Ishikawa.
16734      - POSIX Timers: Replace critical section APIs with spin lock APIs in
16735        clock_gettime.c.  This change will improve performance for SMP
16736        systems but nothing changes for non-SMP systems.  In SMP mode,
16737        the running TCB is not always at the g_readytorun.head.  From
16738        Masayuki Ishikawa.
16739      - SMP: Introduce spin_lock_wo_note() and spin_unlock_wo_note().  These
16740        APIs are used in sched_note.c to protect instrumentation data.  The
16741        difference between these APIs to exsiting spin_lock() and
16742        spin_unlock() is that they do not perform instrumentation to avoid
16743        recursive call when SCHED_INSTRUMENTATION_SPINLOCKS=y.  From
16744        Masayuki Ishikawa.
16745      - Interrupts:  Add a configuration option to show interrupt
16746        information via a procfs file.
16747
16748    * File Systems/Block and MTD Drivers
16749
16750      - VFS:  Add support for truncate() and ftruncate().
16751      - FAT, SmartFS, UserFS, UnionFS, TmpFS, NFS: Add truncate() support.
16752      - FAT.  Effectively handles the situation when a new file position is
16753        within the current sector.  Accelerates the work of the FS with a
16754        multitude of operations to write small pieces of data within the
16755        current sector.  From Aleksandr Vyhovanec.
16756
16757    * Graphics/Display Drivers:
16758
16759      - HiletGo OLED:  Add configuration support for HiletGo SSD1306 OLED.
16760      - lcd/ft80x:  This commit adds an FTDI/BridgeTek FT80x GUI driver.  It
16761        is untested (I don't even have hardware yet) and, hence, it is
16762        marked as EXPERIMENTAL).
16763
16764    * Networking/Network Drivers:
16765
16766      - 6LoWPAN:  Adds configuration options for specifying preloaded
16767        address contexts for compression  From Anthony Merlino.
16768      - TCP:  Introduce tcp receive window control based on I/O buffer.
16769        NOTE:  The algorithm is still experimental but useful for http
16770        streaming.  From Masayuki Ishikawa.
16771      - UDP:  Add an implementation of UDP write buffering.
16772      - Routing Tables:  Adding ftruncate() support eliminates an issue
16773        in file-based routing table management system.
16774      - Telnet:  Add support for Telnet character mode  From Masayuki
16775        Ishikawa.
16776
16777    * Other Common Device Drivers:
16778
16779      - drivers/input/ft5x06.c:  Add a driver for the FT5x06 capacitive,
16780        multi-touch, touchscreen controller.
16781      - drivers/input/ft5x06:  Add a polled mode of operation for the FT5x06
16782        in attempt to work around the fact that the LPCXpresso-LPC54628
16783        chose a non-interrupt pin for the FT5x06 interrupt.  Driver is still
16784        not yet functional.
16785      - drivers/power/bq2429x.c:  Add trickle charging mode  From Juha
16786        Niskanen.
16787      - drivers/sensors:  Add support to MAX44009 ambient light sensor.
16788        From Juha Niskanen.
16789      - drivers/sensors:  Added support for LIS3DH accelerometer sensor.
16790        From Matt Thompson.
16791      - drivers/eeprom:  EEPROM driver for AT24xx compatible EEPROMs.
16792        From Sebastien Lorquet.
16793
16794    * Simulation
16795
16796      - sim:  Add support for a RAM MTD driver and initialization for use
16797        with SmartFS.
16798      - sim:  Add support for testing NXFFS.
16799
16800    * ARM:
16801
16802      - ARMv7-A, ARMv7-R, ARMv7-M:  Add atomic read-add-write and
16803        read-subtract-write functions.
16804
16805    * Infineon XMC4xxx:
16806
16807      - XMC4xxx:  Refactor PLL setup, refactored PLL/CLK config, easier,
16808        checks for correctness, call go_os_start if STACK_COLORIZED, smarter
16809        config of EXTCLK output freq.  From David Alessio.
16810
16811    * Infineon XMC4xxx Boards:
16812
16813      - Add FPU to xmc4 ostest.  Remove +x from makefiles, preserve
16814        .gdbinit across make clean, add FPU support to ostest on xmc4,
16815        add FPU test to ostest on xmc4  From David Alessio.
16816
16817    * Microchip/Atmel SAMD/L Drivers:
16818
16819      - SAMD: SAMD External Interrupt Controller (EIC) support  From Matt
16820        Thompson.
16821      - SAMD/L:  Added Analog Comparator basic initialization  From Matt
16822        Thompson.
16823      - SAMD/L:  Added FDPLL clock support.  Fixed sequence of OSC32K
16824        calibration setup.  From Matt Thompson.
16825      - SAMD/L: Added loading factory USB calibration data from NVRAM.
16826        From Matt Thompson.
16827      - SAMD/L: Added experimental DMA support to SPI driver.  spi_exchange()
16828        uses a pair of DMA channels for TX and RX.  From Matt Thompson.
16829
16830    * Microchip/Atmel SAM3/4 Boards:
16831
16832      - Flip&Click SAM3X:  Add board support for the Mikroe Flip&Click
16833        SAM3X.
16834      - Flip&Click SAM3X:  Adds basic board support for the HiletGo OLED.
16835
16836    * Microchip PIC32MZ
16837
16838      - PIC32MZEF:  Add architectural support for the PIC32MZEF family.
16839
16840    * Microchip PIC32MZ Boards
16841
16842      - Flip&Click PIC32MZ:  Adds board support for the Mikroe Flip&Click
16843        PIC32MZ board.
16844      - Flip&Click PIC32MZ:  Add board support for HiletGo OLED.
16845      - Flip&Click PIC32MZ:  Add an nxlines configuration for use in
16846        testing the custom HiletGo Click board.
16847
16848    * NXP Freescale LPC43xx Drivers:
16849
16850      - LPC43xx:  Adapt LPC176x RTC driver for the LPC43xx.  From Gintaras
16851        Drukteinis.
16852      - LPC43xx:  Add Windowed Watchdog Timer (WWDT) driver.  Tested on
16853        LPC4357 but should be compatible for all LPC43xx MCUs.
16854        From Gintaras Drukteinis.
16855      - Leverage the LPC54xx SD/MMC back to the LPC43xx (where it came from
16856        originally).
16857
16858    * NXP Freescale LPC43xx Boards:
16859
16860      - Bambino-200e:  Add LPC43 SDMMC board support to Bambino-200E.  From
16861        Alan Carvalho de Assis.
16862
16863    * NXP Freescale LPC54xx:
16864
16865      - LPC546xx:  Added basic architectural support for the LPC546xx
16866        family.
16867
16868    * NXP Freescale LPC54xx Drivers:
16869
16870      - LPC546xx:  Basic NSH configuration includes support for UARTs,
16871        SysTick timer, GPIOs, LEDs, and buttons
16872      - LPC546xx:  Additional drivers include EMC, I2C, Ethernet
16873      - LPC546xx:  Implement GPIO interrupt support.
16874      - LPC546xx:  And unverified SPI driver is included.
16875      - LPC546xx:  Ported LPC1788 LCD driver to use the LPC54xx pin.
16876      - LPC546xx:  Bring in LPC43xx SD/MMC driver from
16877        https://github.com/Smoothieware/smoothie-nuttx/tree/master/nuttx/arch/arm/src/lpc43xx
16878        and adapt for use with the LPC43xx
16879      - LPC546xx:  Add DMA driver ported from the LPC43xx GPDMA driver.
16880      - LPC546xx:  Bring in WWDT driver from LPC43.
16881      - LPC546xx:  Add an RTC driver and a RTC character driver lower half.
16882      - LPC546xx:  Add support for a random number generator.
16883      - LPC546xx:  Add an Ethernet driver.
16884
16885    * NXP Freescale LP54xx Boards:
16886
16887      - LCXpresso-LPC54628:  Added support for the LPCXpresso-LPC54628
16888        board.  The initial bring-up used a basic NSH port.
16889      - LCXpresso-LPC54628:  On-board SDRAM is also supported
16890      - LCXpresso-LPC54628:  Add support for I2C2 and for the I2C tool to
16891        the NSH configuration.
16892      - LCXpresso-LPC54628:  Add support for the USER button.  Enable the
16893        apps/examples/button test in the NSH configuration.
16894      - LCXpresso-LPC54628:  Add the fb configuration for testing the LCD.
16895      - LCXpresso-LPC54628:  Add support for the the FT5x06 touchscreen
16896        controller.  Enable the driver as well as the apps/examples
16897        touchscreen test.
16898      - LCXpresso-LPC54628:  Add an NxWM configuration.
16899      - LCXpresso-LPC54628:  Add logic to bring up SDMMC.
16900      - LCXpresso-LPC54628:  Add logic to register the RTC character driver
16901        if it is enabled.  Enable the RTC and RTC character driver in the
16902        NSH configuration.
16903      - LCXpresso-LPC54628:  Add a netnsh configuration that was be used to
16904        test the Ethernet driver.
16905      - LCXpresso-LPC54628:  Add LittlevGL graphics demo configuration.
16906
16907    * On Semiconductor LC823450
16908
16909      - LC823450 SMP improvements:  (1) Apply irq_spin APIs to
16910        modifyregXX, (2) Do not use modifyreg32() to enable Mutex, (3)
16911        Modify IRQ control for i2s.  Apply irq_spin APIs to
16912        dma/syscontrol/usbdev.  From Masayuki Ishikawa.
16913      - LC823450:  LC823450 http streaming improvements: (1) Use spinlock
16914        APIs in lc823450_gpio.c.  (3) Fix a potential race condition in
16915        up_enable_irq(), (3) Use spinlock APIs instead of critical section
16916        APIs, (4) Enable HRT_TIMER in lc823450_timerisr.c. (5) Use spinlock
16917        APIs instead of critical section APIs. (6) Fix race conditions in
16918        dma/usbdev.  From Masayuki Ishikawa.
16919      - LC823450: Introduce DVFS.   This version only supports manual mode
16920        and Vdd1 is fixed to 1.2V.  From Masayuki Ishikawa.
16921
16922    * On Semiconductor LC823450 Drivers
16923
16924      - LC823450:  Refactor timer driver.  Add MTM timer APIs for DVFS.
16925        Introduce up_rtc_gettime() for CONFIG_RTC_HIRES.  Introduce idle
16926        time calculation in DVFS.  Also, DVFS autonomous mode based on CPU
16927        idle time is supported.  NOTE: voltage control is still disabled.
16928        From Masayuki Ishikawa.
16929
16930    * On Semiconductor LC823450 Boards
16931
16932      - LC823450-XGEVK:  I2S interrupt will be handled on CPU0 with this
16933        change.  Assign CPU1 to lpwork.  This change will improve load
16934        balancing for networking with RNDIS.  From Masayuki Ishikawa.
16935      - LC823450-XGEVK: Enable SPINLOCK_IRQ and NXPLAYER in rndis.  From
16936        Masayuki Ishikawa.
16937      - LC823450-XGEVK: LC823450 http streaming improvements: (1) In SMP
16938        mode, H/W interrupts should be handled on CPU0 to avoid deadlocks.
16939        (2) Call up_enable_irq() to assign CPU0 for IRQ handling.  (3)
16940        Enable HRT_TIMER, LC823450_MTM0_TICK, SPINLOCK_IRQ, (4) Enable
16941        NET_TCP_RWND_CONTROL, NXPLAYER_HTTP_STREAMING_SUPPORT (rndis only)
16942        From Masayuki Ishikawa.
16943      - LC823450-XGEVK:  Enable DVFS in lc823450_bringup.c.  Enable DVFS
16944        in audio and rndis. Add Telnet character mode to rndis.  From
16945        Masayuki Ishikawa.
16946      - LC823450-XGEVK:  Explicitly assign I2S IRQ handling to CPU0.  From
16947        Masayuki Ishikawa.
16948      - LC823450-XGEVK:  Enable RTC_HIRES instead of RTC_DATETIME (audio/
16949        rndis).  Disable TCP_WRITE_BUFFERS and change SCHED_LPWORKPRIORITY
16950        (rndis). Update SMP and DVFS related part.  From Masayuki Ishikawa.
16951
16952    * STMicro STM32:
16953
16954      - STM32 F7:  Add support for the STM32F72x/73x family. From Bob
16955        Feretich.
16956
16957    * STMicro STM32 Drivers:
16958
16959      - STM32 HRTIM:  Add interface to change outputs SET/RST configuration.
16960        From Mateusz Szafoni.
16961      - STM32 HRTIM:  Add interface to get timer clock frequency,
16962        calculation, add compare/capture registers significant bits
16963        checking.  From Mateusz Szafoni.
16964      - STM32 HRTIM:  Add interface to set timer frequency, fix slave timers
16965        reset configuration, change POWER_INFO to TIMER_INFO  From Mateusz
16966        Szafoni.
16967      - STM32 HRTIM:  Add repetition support and fix enum overflow  From
16968        Mateusz Szafoni.
16969      - STM32 HRTIM:  Add HRTIM push-pull mode configuration.  From
16970        raiden00pl.
16971      - STM32 FLASH:  Add progmem support for STM32L15XX From Juha Niskanen.
16972
16973    * STMicro STM32 Boards:
16974
16975      - configs/photon: Adds BOARD_TIMn_FREQUENCY macros  From Anthony
16976        Merlino.
16977      - configs/indium-f7:  Adds support for the RAF Research Indium-F7
16978        board.  From Bob Feretich.
16979      - Rename the configs/stm32f0discovery board directory to
16980        configs/stm32f051-discovery.  There are others stm32f0discovery
16981        boards with different MCUs and different peripherals on the board.
16982        From Alan Carvalho de Assis.
16983      - configs/stm32f072b-discovery:  Adds support for stm32f072b-disco
16984        board. This is the board. I added the LEDs of this board and tested
16985        the compilation.  From Alan Carvalho de Assis.
16986      - configs/stm32f103-minimum:  Add AT24 EEPROM support on STM32F103-
16987        Minimum board  From Alan Carvalho de Assis.
16988      - configs/stm32f103-minimum:  Add support to BMP180 on BluePill
16989        (stm32f103-minimum) board.  From Alan Carvalho de Assis.
16990      - configs/stm32f334-disco:  Add buck converter and boost converter
16991        logic.  From Mateusz Szafoni.
16992      - configs/stm32f103-minimum:  Add zerocross support to STM32F103-
16993        Minimum board  From Alan Carvalho de Assis.
16994      - configs/stm32f103-minimum:  Add OLED SSD1306 support to
16995        STM332F103-Minimum  From Alan Carvalho de Assis.
16996      - configs/stm32f103-minimum: Add board support to MAX6675 Thermocouple
16997        sensor  From Alan Carvalho de Assis.
16998      - configs/stm32f746g-disco: Add stm32f746g-disco Ethernet configuration.
16999        Add USART1 support (connected to the USB virtual serial port)  From
17000        Louis Mayencourt.
17001      - configs/viewtool-stm32f107:  Add support for FT80X initialization.
17002        Add ft80x configuration that will eventually be used for testing the
17003        ft80x if I ever receive hardware.
17004
17005    * Tools:
17006
17007      - tools/logparser:  Add a tool which will help me to convert git logs
17008        to ChangeLog format.
17009
17010    * NSH: apps/nshlib:
17011
17012      - apps/nshlib:  Add support for a truncate command.  This will be used
17013        to test the new ftruncate file system support.
17014      - apps/nshlib:  Add support for Telnet character mode.  From Masayuki
17015        Ishikawa.
17016      - apps/nshlib: Add support for '-n' option to the echo command.  From
17017        Masayuki Ishikawa.
17018      - apps/nshlib:  Add irqinfo command.
17019
17020    * Examples/Tests: apps/examples:
17021
17022      - apps/examples/userfs:  Add truncate() support for userfs.
17023      - apps/examples/lvgldemo:  Add lvgldemo example for LittlevGL.
17024      - apps/examples/veml6070:  Add VEML6070 Application Example.  From
17025        Alan Carvalho de Assis.
17026      - apps/examples/bmp180: Add BMP180 application example.  From Alan
17027        Carvalho de Assis.
17028      - apps/examples/ft80x:  Add a test of the FT80x based on FTDI
17029        SampleApp.  Includes tests of GPU primitives and graphics co-
17030        processor commands.
17031
17032    * Network Utilities: apps/netutils:
17033
17034      - apps/netutils/netlib: Add default route in netlib_set_dripv4addr().
17035        From Masayuki Ishikawa.
17036
17037    * Graphics: apps/graphics:
17038
17039      - apps/graphics/littlevgl:  Add littlevgl library.  From Alan Carvalho
17040        de Assis.
17041      - apps/graphics/ft80x:  Add the FTDU FT80x GUI support library.
17042        Consists of some display list helpers, audio helpers, touch helpers,
17043        RAM access, register access etc.
17044
17045    * System Utilities (apps/system)
17046
17047      - apps/system/nxplayer:  Add support for HTTP streaming in nxplayer.
17048        From Masayuki Ishikawa.
17049      - apps/system/setlogmask:  Adds 'setlogmask' application that allows
17050        you to set the syslog priority via a simple command.  From Anthony
17051        Merlino.
17052      - apps/system/usbmsc: Added Kconfig options to configure write
17053        protection for each LUN.  From Fabio D'Urso.
17054      - system/stackmonitor:  Re-design the stack monitor so that it does not
17055        make forbidden calls directly into the OS, breaking the portable POSIX
17056        OS interface.  It now properly uses the PROCFS file system to glean
17057        information about stack usage.
17058
17059Bugfixes.  Only the most critical bugfixes are listed here (see the
17060ChangeLog for the complete list of bugfixes and for additional, more
17061detailed bugfix information):
17062
17063    * Core OS:
17064
17065      - System Timer:  Change the way that the 64-bit time is sampled.
17066        Previously, we disabled interrupts before sampling the 64-bit
17067        timer since the uint64_t access is not atomic on most CPUs.  However,
17068        disabling (local) interrupts does not work in the SMP case.  In that
17069        case, the timer interrupt may be running on only one of the CPUs;
17070        disabling interrupts on a different CPU will provide no protection
17071        from timer rollover.  To work around this, logic was added that
17072        samples 64-bit timer is sampled twice and if 32-bit rollover was
17073        detected between samples, then loops until there is no rollover.
17074      - POSIX Timers:  In SMP mode, running TCB is not always at the head of
17075        the g_readytorun list.  This change removes DEBUGASSERT() to avoid
17076        this condition.  From Masayuki Ishikawa.
17077      - Spinlocks:  Add memory barrier operations in spin_unlock().  In ARM
17078        document regarding memory barriers, SP_DMB() must be issued before
17079        changing a spinlock state to SP_UNLOCKED.  However, we found that
17080        SP_DSB() is also needed to ensure that spin_unlock() works
17081        correctly for network streaming aging test.  From Masayuki Ishikawa.
17082      - Sporadic Scheduler:  Fix compiler error in Sporadic Scheduler when
17083        priority inheritance is enabled.  Noted by eunb.song@samsung.com
17084      - Priority Inheritance:  Fix some priority inheritance related issues
17085        noted during review of logic.  Also add some REVISIT comments for some issues noted in the design.
17086      - boardctl:  Remove the BOARDIOC_TSCTEST_TEARDOWN and
17087        BOARDIOC_TSCTEST_SETUP boardctl() commands.  Remove all
17088        implementations of board_tsc_teardown().  Each board now initializes
17089        the touchscreen controller as a normal part of its board  bring-up.
17090        board_tsc_setup() is gone; the touchscreen controller is now treated
17091        like any other on-board device.
17092      - configs:  CONFIG_MAX_TASKS must be a power of 2.
17093      - SMP: Introduce a new global IRQ clearing logic and tasklist
17094        protection.  The previous implementation of clearing global IRQ in
17095        sched_addreadytorun() and sched_removereadytorun() was done too
17096        early. As a result, nxsem_post() would have a chance to enter the
17097        critical section even nxsem_wait() is still not in blocked state.
17098        This patch moves clearing global IRQ controls from
17099        sched_addreadytorun() and sched_removereadytorun() to
17100        sched_resumescheduler() to ensure that nxsem_post() can enter the
17101        critical section correctly.  For this change,
17102        sched_resumescheduler.c is always necessary for SMP configuration.
17103        In addition, by this change, task_exit() had to be modified so that
17104        it calls sched_resumescheduler() because it calls
17105        sched_removescheduler() inside the function, otherwise it will cause
17106        a deadlock. However, I encountered another DEBUGASSERT() in
17107        sched_cpu_select() during HTTP streaming aging test on LC823450-XGEVK.
17108        Actually sched_cpu_select() accesses the g_assignedtasks which might
17109        be changed by another CPU. Similarly, other tasklists might be
17110        modified simultaneously if both CPUs are executing scheduling logic.
17111        To avoid this, I introduced tasklist protection APIs. With these
17112        changes, SMP kernel stability has been much improved.  From Masayuki
17113        Ishikawa.
17114      - SMP:  Fix this_task() to be an atomic operation.  In the previous
17115        implementation, this_task() was defined in sched.h by using just a
17116        macro current_task(this_cpu()).  However, I found that this is not
17117        atomic and actually sometimes switching CPU happened in executing
17118        the macro when we tested audio steaming plus executing commands via
17119        Telnet.  This change resolves this issue by implementing atomic
17120        this_task()in sched_thistask.c which is newly introduced.  From
17121        Masayuki Ishikawa.
17122      - SMP:  Implements a global scheduler lock capability as part of SMP
17123        support.  This allows the scheduler to be locked with no knowledge
17124        or access to the TCB of the currently running task.  This is
17125        necessary because accessing the TCB of the currently running task
17126        is, itself, a non-atomic operation.  This global scheduler lock
17127        capability was add just to support that atomic access to the TCB.
17128      - SMP:  Extend the last global lock change to work with the
17129        LC823450-XGEVK which does not support the atomic fetch add but
17130        does support disabling interprocessor interrupts.  Disabling
17131        interprocessor interrupts will also guarantee that the TCB address
17132        calculation is atomic.
17133      - SMP:  Fix a infinite recursion problems that a recent changes
17134        introduced into the i.MX6 SMP implementation.  This is not seen
17135        with the LC823450 because you can disable inter-processor interrupts
17136        in that architecture; but you cannot in the ARMv7-A/GIC architecture.
17137      - SMP:  Remove SMP related logic in sig_dispatch.c.   This change
17138        prevents from a deadlock in up_schedulesigaction.c where inter-CPU
17139        signal handling is actually implemented.  arch/arm/src/armv7-m: Fix
17140        signal handling for SMP. In previous implementation, signal handling
17141        for SMP was incorrect.  Thus, for example, if an inter-CPU signal
17142        happened an incorrect tcb was signaled and caused ASSERT().  This
17143        change fixes the issues and works for both inter-CPU signal handling
17144        and signal handling on the same CPU.  From Masayuki Ishikawa.
17145      - Tasking:  Add nxtask_create().  Kthread_create() and nxtask_create()
17146        are internal OS functions and should not modify the errno variable.
17147        Convert legitimate uses of task_create() to nxtask_create().
17148        Review handling of returned values from all uses of kthread_create()
17149        (as well as nxtask_create()).
17150      - Tasking:  Threads started by board bring-up logic should be kernel
17151        threads, not user tasks.
17152      - Tasking:  Threads started by drivers should be kernel threads, not
17153        user tasks.
17154      - Semaphore Usage:  Added ECANCELED condition to DEBUGASSERT's
17155        checking sem_wait result  From Dmitriy Linikov.
17156
17157      - errno:  Add new internal OS function nxsched_setaffinity() that is
17158        identical to sched_isetaffinity() except that it does not modify the
17159        errno value.  All usage of sched_setaffinity() within the OS is
17160        replaced with nxsched_setaffinity().
17161      - errno:  Internal functions sched_reprioritize() and
17162        sched_setpriority() no longer modify the errno value.  Also renamed
17163        to nxsched_reprioritize() and sched_setpriority().
17164      - errno:  Add new internal OS function nxsched_getscheduler() that is
17165        identical to sched_getscheduler() except that it does not modify the
17166        errno value.  All usage of sched_getscheduler() within the OS is
17167        replaced with nxsched_getscheduler().
17168      - errno:  Add new internal OS function nxsched_setparam() that is
17169        identical to sched_setparam() except that it does not modify the
17170        errno value.  All usage of sched_setparam() within the OS is
17171        replaced with nxsched_setparam().
17172      - errno:  Add new internal OS function nxsched_getparam() that is
17173        identical to sched_getparam() except that it does not modify the
17174        errno value (actually, the previous value erroneously neglected to
17175        set the errno value to begin with, but this fixes both issues).  All
17176        usage of sched_getparam() within the OS is replaced with
17177        nxsched_getparam().
17178      - errno:  wd_start() is an internal OS function and should not set the
17179        errno value.  Reviewed and updated every call to wd_start() to
17180        verify if return value is used and if so if the errno value is
17181        accessed.
17182      - errno:  Fix several inappropriate accesses to get_errno() that were
17183        missed in previous changes (some going back to nuttx-7.23).  Add new
17184        nxsched_setscheduler() and nxsched_getaffinity() which are
17185        equivalent to their counterparts without the nx on front.  These
17186        versions do not modify the errno value.  Changed all calls within
17187        the OS to use these newer versions of the functions.
17188      - errno:  binfmt/, configs/, grahics/, libc/, mm/, net/, sched/:  OS
17189        references to the errno variable should always use the set_errno(),
17190        get_errno() macros.
17191      - drivers/, fs/ and libc/:  OS references to the errno variable should
17192        always use the set_errno(), get_errno() macros.
17193
17194    * File System/Block and MTD Drivers:
17195
17196      - FAT:  CONFIG_FAT_MAXFNAME may not exceed NAME_MAX (CONFIG_NAME_MAX)
17197      - NFS:  Correctly infer file type.  The file type is in struct
17198        nfs_statinfo_s's ns_type field, not in the ns_mode field.  From
17199        Michael Jung.
17200      - NFS: Fix buffer corruption.  In case multiple read requests to the
17201        NFS server are required to fill up the user provided buffer,
17202        nfs_read() might write behind the end of said buffer.  This is fixed
17203        with this change.  From Michael Jung.
17204      - VFS:  reopen() should return NULL when oflags is less than 0, not
17205        equal to 0. Because negative value is returned on failure of
17206        lib_mode2offlags() which converts the mode string into file open
17207        mode flag.
17208      - ProcFS:  Fix an error in a common function that manages read data.
17209      - drivers/mmcsd:  Respect SDIO_CAPS_DMABEFOREWRITE on CMD25.  From
17210        Evgeniy Bobkov.
17211      - AT24xx:   Correct page size for AT24C02 part.  From Alexander
17212        Oryshchenko.
17213      - mtd_config.c:  Add still more error handling (to detect bad
17214        underlying flash implementations).  Remove MTD_ERASE that was
17215        erasing data block instead of erase block.  This is a partial
17216        revert of 4f18b4. Reported-by: Pascal Speck <iktek01@yahoo.com>
17217
17218    * Graphics/Display Drivers:
17219
17220      - drivers/lcd:  Fix the default I2C address of SSD1306 OLED display
17221        (7- vs 8-bit addressing)  From Alan Carvalho de Assis.
17222      - drivers/lcd:  lcd_framebuffer.c does not need to include board-
17223        specific board.h.
17224      - include/lcd:  Eliminate a warning from an SSD1306 header file by
17225        adding a forward reference to struct i2c_master_s.  From Sebastien
17226        Lorquet.
17227
17228    * Networking/Network Drivers:
17229
17230      - ARP:  Fix an error introduced when ICMP and ICMP6 socket support was
17231        added in NuttX-7.3.  A gratuitous ARP (or solicitation) was being
17232        sent after receive of the ECHO replay (advertisement).
17233      - ARP:  Fix IGMP multicast address computation on Nuttx network stack.
17234        This change fixes the IGMP address computation to allow multicast
17235        UDP messages. The destination address was created with the incorrect
17236        bytes of the given IPv4 address.  From Louis Mayencourt.
17237      - ioctl:  The existence of the network driver ioctl() method should
17238        depend on CONFIG_NETDEV_IOCTL rather than CONFIG_NETDEV_PHY_IOCTL.
17239        The former enables the method, the later enables a subset of
17240        possible driver IOCTLs.
17241      - TCP:  Write buffering logic should not wait for a free buffer if
17242        the socket was opened non-blocking.
17243      - TCP:  Fixed bad return value handling in psock_tcp_send().  send()
17244        expects psock_tcp_send() to return a negated errno value, not -1
17245        with the errno set (GN: I added same change for tcp_send_buffered.c
17246        which has the same issue as tcp_send_unbuffered.c)  From Pelle
17247        Windestam.
17248      - TCP:  Fixes hardfault when network goes done and network monitoring
17249        is in place.  From Gianpaolo Ferroni Ariani.
17250      - TCP: tcp_send_[un]buffered.c:  Check routing table in
17251        psock_send_addrchck().  Previously only ARP table was considered
17252        when determining if the data will actually be sent.  From Juho
17253        Grundstrom.
17254      - TCP:  Generalize Juho Grundstrom's IPv4 change for IPv6 as well.
17255      - UDP:  Remove some conditional logic that was true if there is only a
17256        single network device, but not true in the multi-device context.
17257      - UDP:  In sendto(), return EHOSTUNREACH if the network is down.
17258
17259    * Common Drivers:
17260
17261      - drivers/pipes:  In poll logic, fix off-by-one error in calculation
17262        of bytes in the buffer.  Buffer calculation in pipe poll setup is
17263        off-by-one when read index is larger than write index. This causes
17264        poll() not getting POLLIN when buffer has one byte as calculation
17265        gives zero bytes in buffer.  From Jussi Kivilinna.
17266      - drivers/audio:  Improve stability of the WM8776 driver in SMP mode.
17267        Apply irq_spin APIs to improve performance.  Repeat to process a
17268        message to avoid deadlock.  From Masayuki Ishikawa.
17269      - drivers/ioexpander:  Fixed build of PCF8574 driver when its
17270        interrupts aren't enabled by config.  From Dmitriy Linikov.
17271      - drivers/syslog:  Fixes LOG_UPTO macro to include specified log level.
17272        From Anthony Merlino.
17273      - drivers/sensors:  Fix HTS221 sensor reset with BOOT bit  From Jussi
17274        Kivilinna.
17275      - drivers/loop:  If we want to open read-only in losetup.c, flags
17276        should be O_RDONLY not O_RDWR.  From Fabio D'Urso.
17277      - drivers/timers/ds3231.c:  Correct some debug statements.  From
17278        Alexander Oryshchenko.
17279      - drivers/sensors/lis2dh:  Use realtime clock if monotonic is not
17280        available  From Juha Niskanen.
17281      - drivers/i2c and drivers/spi:  Fix compile error if
17282        CONFIG_DISABLE_PSEUDOFS_OPERATIONS, fix bad NULL checks  From Juha
17283        Niskanen.
17284
17285    * ARMv7-A:
17286
17287      - Data Cache:  Fix cp15_invalidate_dcache.  In cases where more than
17288        one dcache line was to be invalidated, a missing branch label
17289        would result in a false branch target into cp15_flush_idcache.  Also
17290        the .size macro was fixed for both cp15_invalidate_dcache.  From
17291        Michael Jung.
17292      - SMP:  Port the signal-related SMP change by Masayuki Ishikawa to the
17293        ARMv7-A family.
17294
17295    * Extensa:
17296
17297      - SMP:  Port the signal-related SMP change by Masayuki Ishikawa to the
17298        Xtensa family.
17299
17300    * Infineon XMC4xxx Drivers:
17301
17302      - XMC4xxx:   Only setup USB clock when USB PLL is enabled  From Alan
17303        Carvalho de Assis.
17304      - XMC4xxx: Fix USIC_BRG_SCLKCFG definition  From Alan Carvalho
17305        de Assis.
17306
17307    * Microchip PIC32MZ
17308
17309      - MIPS32:  In up_idle, the kludge that was conditionally enabled if
17310        the work queue was enable appears to be needed even when he work
17311        queue is not enabled on the PIC32MZ.
17312      - PIC32MZ:  Fix some typos in debug instrumentation in pic32mz-gpio.c;
17313        fix some typos related to UART5 configuration in pic32mz-serial.c.
17314
17315    * Microchip/Atmel SAMD/L:
17316
17317      - SPI:  In sam_spibus_initialize(), the pinmux configuration was
17318        smashing the previous CTRLA register configuration. There are
17319        also some typos in samd_spi.h  From Matt Thompson.
17320      - SPI:  Fixes g_spi2ops and g_spi2dev using incorrect values  From Matt
17321        Thompson.
17322      - SPI:  SPI must be disabled before changing the mode bits in CTRLA
17323        register  From Matt Thompson.
17324      - DMA:  Fix DMA controller support.  From Matt Thompson.
17325
17326    * NXP/Freescale LPC17xx Drivers:
17327
17328      - LPC17xx:  Disable LPC17 FDR when not used.  If a boot loader set the
17329        fractional divider (FDR) the baud rate in nuttx will be wrong
17330        (multiplied by this fraction).  So if it is not used, it should be
17331        disabled. From Harald Gutsche.
17332
17333    * NXP/Freescale Kinetis Drivers:
17334
17335      - Kinetis:  Correct some Ethernet PHY register bit tests for the
17336        KSZ8081 PHY.  From Stewart.
17337
17338    * On Semiconductor LC823450
17339
17340      - arch/arm/src/LC823450: Add SP_DMB() into lc823450_testset.c.
17341        In LC823450, ldrex and strex are not supported. So we implemented
17342        up_testset() with H/W Mutex. However, there was a bug in memory
17343        access order. This change ensures correct memory access order in
17344        up_testset() for LC823450. From Masatoshi Tateishi.
17345
17346    * STMicro STM32 Drivers:
17347
17348      - STM32 F3 RCC:  A flash wait state configuration.  Flash latency must
17349        be fixed according to sysclk frequency.  If this operation is not
17350        done or done after PLL configuration, the STM32 fail to continue
17351        boot operation if the frequency if greater than 24MHz according to
17352        the board variable STM32_SYSCLK_FREQUENCY.  Tested on stm32f334-disco
17353        board.  From Gwenhael Goavec-Merou.
17354      - STM32 RTC:  Make STM32 usable with an external RTC.
17355      - STM32 SPI:  Removed unnecessary (and incorrect) speed limitation.
17356        From Alexander Oryshchenko.
17357      - STM32 SPI:  I have a SPI bus with both Mode 0 and Mode 3 devices
17358        on it.  After performing SPI I/O to a Mode 0 device, switching to a
17359        Mode 3 device locked up the SPI interface.  Only zeroes would be
17360        read.  I traced the reason for the lock-up to arm/arm/src/stm32f7/stm32_spi.c function spi_setmode().  Changing
17361        the mode causes a spurious SPI clock transmission that confuses the
17362        stm32f7 SPI input hardware.  This problem is solved by (1) changing
17363        the SPI mode with SPI (and perhaps DMA) disabled, and (2) flushing
17364        the receive FIFO if the mode change results in garbage in the FIFO.
17365        From Bob Feretich.
17366      - STM32 and STM32 F7:  Remove confusing, redundant, and misleading
17367        definitions of STM32_BKP_BASE from the F2, F3, and F4 memory
17368        maps.  Unlike the F1, these parts do not have a separate BKP address
17369        region.  The BKP registers are with the RTCC address regions.
17370        stm32_bkp.h should only be used for STM32 F1. stm32_rtcc.h should be
17371        used to access BKP registers on F2, F3, and F4.
17372      - STM32 and STM32 F7:  Architecture-specific code is not permitted to
17373        modify the errno variable.
17374      - STM32 F4 I2C:  Correct some recent changes to STM32F4 I2C that broke
17375        poll mode of operation.  From Alexander Oryshchenko.
17376      - STM32 F4 I2C:  Corrections to STM32 F4 I2C to restore functionality.
17377        From Alexander Oryshchenko.
17378      - STM32 F4 I2C:  Corrections to STM32 F4 I2C to fix the NORESTART
17379        flag.  From Alexander Oryshchenko.
17380      - STM32 F7:  Fixes a bug in multi-block SD-card operations on the
17381        STM32F7 platform.  DBLOCKSIZE must be the size of SD-card block, not
17382        the total amount of transferred bytes.  From Evgeniy Bobkov.
17383      - STM32 F7:  Fix undefined variable when using USART1 for other
17384        purposes than UART (e.g. SPI).  From Frank Benkert.
17385      - STM32 F7:  Backport RTC alarm setting changes from STM32L4.  Most
17386        notably this fixes RTC getting stuck issue when both alarms were
17387        used.  Root cause was writing RTC ISR register contents to RTC CR
17388        register.  From Juha Niskanen.
17389      - STM32 L4 Flash:  Change flash programming to use page buffer for
17390        unaligned writes.  From Juha Niskanen.
17391
17392    * STMicro STM32 Boards:
17393
17394      - Nucleo-L432KC:  Fix some bogus logic noted by Fanda.
17395      - configs/nucleo-* and configs/stm32l476vg-disco:  Fix more
17396        stm32_userleds.c bogus logic  From Juha Niskanen.
17397      - Nucleo-L432KC:  Fixed nucleo-l432kc broken build when
17398        CONFIG_USERLED_LOWER defined  From Fanda.
17399      - Nucleo-L432KC:  Issue #85: /dev/userleds is not working for
17400        Nucleo-L432KC fixed  From Fanda Vacek.
17401      - STM32F429I-Disco:  Separate SPI4 from MTD init.  I was trying to
17402        attach a non-MTD peripheral to an STM32F429I Discovery Board's SPI4
17403        port and was hitting compilation problems, since CONFIG_MTD and
17404        thus 'struct mtd_geometry_s' was not defined.  This patch separates
17405        SPI4 initialization logic from MTD initialization logic.  From
17406        Michael Jung.
17407      - STM32F103-Minimum:  Remove CONFIG_NX_LCDDRIVER dependence from
17408        stm32_ssd1306.c  From Alan Carvalho de Assis.
17409
17410    * C Library/Header Files:
17411
17412      - libc/stdio:  In dtoa(), up_interrupt_context() is used in a debug
17413        assertion.  up_interrupt_context() is not available in the user-mode
17414        phase of the PROTECTED or KERNEL build configurations.  In those
17415        configurations, enabling libc floating point support and debug
17416        assertions will result in an undefined reference to
17417        up_interrupt_context().
17418      - libc/netdb:  Fixed parsing of DNS response packets having compressed
17419        names ending with pointer.  There were troubles parsing response
17420        packets which have compression of QNAME/NAME field when only
17421        trailing part of the name (not the whole name) is replaced with
17422        pointer to another part of the packet.  This commit fixes parsing of
17423        such packets.  Also I added checks to keep parsing only in bounds of
17424        the read part of DNS response packet.  From Dmitriy Linikov.
17425
17426    * Tools
17427
17428      - tools/*.c:  Add #define _GNU_SOURCE to all C files that call
17429        asprintf() to eliminate a warning.
17430      - tools/cvsparser.c:  Add a check to avoid access past the end
17431        of a fixed size array
17432
17433    * NSH: apps/nshlib:
17434
17435      - apps/nshlib:  Fix compile error when CONFIG_NSH_DISABLESCRIPT is not
17436        defined.  The field np_flags does not exist if scripting is disabled.
17437
17438    * Examples/Tests: apps/examples:
17439
17440      - apps/examples/touchscreen:  Eliminate BOARDIOC_TSCTEST_SETUP.
17441
17442    * Network Utilities: apps/netutils:
17443
17444      - apps/netutils/ftpc:  Fix some corner-cases that could cause FTP to
17445        access past the end of valid data.
17446
17447    * Wireless Utilities: apps/wireless:
17448
17449      - apps/wireless/ieee802154/i8shark: Fixes special XBee compensation
17450        by purposely chopping off the FCS.  From Anthony Merlino.
17451
17452NuttX-7.25 Release Notes
17453------------------------
17454
17455The 125th release of NuttX, Version 7.25, was made on June 3, 2018,
17456and is available for download from the Bitbucket.org website.  Note
17457that release consists of two tarballs:  nuttx-7.25.tar.gz and
17458apps-7.25.tar.gz.  These are available from:
17459
17460    https://bitbucket.org/nuttx/nuttx/downloads
17461    https://bitbucket.org/nuttx/apps/downloads
17462
17463Both may be needed (see the top-level nuttx/README.txt file for build
17464information).
17465
17466Additional new features and extended functionality:
17467
17468    * File Systems/Block and MTD Drivers
17469
17470      - fs/cromfs:  Added CROMFS file system.  CROMFS is a commpressed, in-
17471        memory, read-only file system based on LZF.
17472      - fs/vfs:  Added support for checking if a descriptor is a socket in
17473        fstat().  From Pelle Windestam.
17474
17475    * Graphics/Display Drivers:
17476
17477      - drivers/lcd:  Remove support for the Nokia6100 LCD.  That LCD uses a
17478        9-bit SPI interface (the 9th bit being the command/data bit that is
17479        normally a discrete).  That communication was never successfully
17480        integrated.  I now believe that it would would require some special
17481        support from the low-level, MCU SPI driver to manage that 9th bit.
17482        The deleted code is still available in the Obsoleted repository.
17483
17484    * Networking/Network Drivers:
17485
17486      - net/tcp:  Added support for TCP Keepalive, add SO_KEEPALIVE socket
17487        option.  Added socket options needed to manage TCP-keepalive and TCP
17488        state machine logic to detect if that the remote peer is alive.
17489      - net/tcp:  In tcp_input(), add the logic to detect, decode, and
17490        respond to TCP Keep-Alive packets.
17491      - net/tcp:  Extended support for sending to non-blocking tcp sockets.
17492        From Pelle Windestam.
17493      - net/bluetooth:  Added support for AF_BLUETOOTH sockets.
17494      - drivers/net:  Added TAP (network bridge) mode to tun.c.  In the
17495        previous implementation, TAP mode did not handle a packet correctly.
17496        Also, the driver did not set the link layer type and could not
17497        assign the interface name. This change fixes such issues and supports
17498        TAP mode correctly.  From Masayuki Ishikawa.
17499
17500    * Wireless/Wireless Drivers:
17501
17502      - wireless/ieee802154:  Added basic MAC support for RX-ENABLE.request
17503        primitive  From Anthony Merlino.
17504      - wireless/ieee802154:  Added MAC ackreq flag to TX descriptor for use by
17505        radio driver.  The radio layer is responsible for a full "transaction".
17506        Because of differences in radio capabilities, the radio must be
17507        responsible for the handling of acks and retransmissions. This commit
17508        simply passes the ackreq meta-data flag along to the radio.  Also
17509        Fixes bug where primitive was freed when it shouldn't have been,
17510        causing double free call.  From Anthony Merlino.
17511      - wireless/bluetooth:  Bring in the Bluetooth stack from the Intel/
17512        Zephyr arduino101_firmware_source-v1.tar package.
17513      - drivers/bluetooth:  Added re-architected version of the Bluetooth
17514        UART driver from the Intel/Zephyr arduino101_firmware_source-v1.tar
17515        package.
17516      - include/nuttx/wireless:  Added a setbaud() method to the HCI UART
17517        lower half interface that can be used to change the default BAUD
17518        selection.
17519      - wireless/bluetooth and include/nutt/net:  Added support for Bluetooth
17520        IOCTL commands.
17521      - drivers/wireless/bluetooth:  Added a NULL device to support some very
17522        low level testing on the Simulator.
17523      - drivers/wireless/cc3000:  Eliminate support for the CC3000 wireless
17524        part because it doesn't use the USRSOCKET.  From Alan Carvalho de
17525        Assis.
17526      - drivers/wireless/ieee80211:  Added BCM43428 support.  From hhuysqt.
17527
17528    * Other Common Device Drivers:
17529
17530      - drivers/1wire:  Added 1-wire subsystem and ds28e17 driver  From Juha
17531        Niskanen.
17532      - drivers/1wire:  Added PM hooks and unlink support to sht21 sensor
17533        (allowing hot-swappable I2C bus from 1-wire converter).  Unlike most
17534        other unlink implementations in NuttX drivers, this one does not
17535        allow any I2C operations after unlink, making it possible to
17536        deallocate the I2C bus.  From Juha Niskanen.
17537      - drivers/i2c:  Added support for the pca9540bdp i2cmultiplexer.  From
17538        Giorgio Gro�.
17539      - drivers/power:  Added pm_unregister  From Juha Niskanen.
17540      - drivers/power:  Added generic upper-half motor driver  From Mateusz
17541        Szafoni.
17542      - drivers/rgbled:  Added support for multichannel PWM (multiple PWM
17543        channels on a single timer)  From Anthony Merlino.
17544      - drivers/sensors:  Added support for Sensirion SHT2x humidity sensor.
17545        From Juha Niskanen.
17546      - drivers/sensors:  Added LSM330 SPI and ADXL372 drivers along with the
17547      - drivers/sensors:  Added support for INA3221 power sensor. This has a
17548        3 channel bus/shunt voltage pairs.  From Anthony Merlino.
17549        cluster driver infrastructure.  From Bob Feratich.
17550      - drivers/sensors:  Added multiple MAX31855 sensors feature support.
17551        From Tiago Almeida.
17552      - drivers/wireless/cc1101.c:  Driver improvements from from lihaichen.
17553      - progmem interface:  Discern r/w and erase page sizes.  Introduce new
17554        up_progmem_erasesize architecture API to be able to communicate the
17555        read/write page size independently from erase page size.  Implement
17556        up_progmem_erasesize for all architectures that already support
17557        progmem, assuming that for those architectures the sizes of both
17558        read/write and erase pages are identical.  From Michael Jung.
17559
17560    * Simulation
17561
17562      - configs/sim:  Added a configuration that will support some limited
17563        testing of the Bluetooth stack.
17564
17565    * ARM:
17566
17567      - ARM:  All ARM architectures now support CONFIG_ARCH_IDLE_CUSTOM.
17568
17569    * MIPS:
17570
17571      - MIPS:  All MIPS architectures now support CONFIG_ARCH_IDLE_CUSTOM.
17572
17573    * Infineon XMC4xxx Drivers:
17574
17575      - XMC4:  Added SPI support for Infineon XMC45xx microcontroller. From
17576        Alan Carvalho de Assis.
17577
17578    * Infineon XMC4xxx Boards:
17579
17580      - XMC4500-Relax: Added board support for SPI.  From Alan Carvalho de
17581        Assis.
17582
17583    * Nordic NRF52:
17584
17585      - NRF52:  Initial support for the NRF52 including UART, Timer, and
17586        GPIO support.  From Janne Rosberg.
17587
17588    * Nordic NRF52 Drivers:
17589
17590      - NRF52:  Added watchdog timer drivers.  Includes significant
17591        updates from Levin Li.
17592      - NRF52:  Added nRF52 Flash PROGMEM support  From Alan Carvalho de
17593        Assis.
17594
17595    * Nordic NRF52 Boards:
17596
17597      - configs/nrf52-pca10040:  Added support for the NRF52-PCA10040 board
17598        including LEDs and buttons  From Janne Rosberg.
17599      - configs/nrf52-pca10040:  Added support for starting the watchdog
17600        timer on the nRF52.  From Alan Carvalho de Assis.
17601      - configs/nrf52-pca10040:  Added a configuration for testing the
17602        watchdog timer.  From Alan Carvalho de Assis.
17603
17604    * NXP Freescale i.MX RT:
17605
17606      - i.MX RT:  Brings in basic support for the i.MX RT 1050 'crossover'
17607        SoC.   Includes timer and UART support.  This port was the joint
17608        effort of Janne Rosberg, Ivan Ucherdzhiev, and myself.  I give
17609        credit to Ivan for the kill because he is the one to held on to
17610        the end.  From Ivan Ucherdzhiev.
17611
17612    * NXP Freescale i.MX RT Drivers:
17613
17614      - i.MX RT:  Added power management hooks.
17615      - i.MX RT:  Added eDMA support (unverified).
17616      - i.MX RT:  Added Ethernet driver.  From Jake Choy.
17617      - i.MX RT:  Added cache operations to permit the Ethernet driver to
17618        work with the D-Cache enabled, at least in write-through mode.
17619        Added support for PHY interrupts and PHY IOCTLs.
17620
17621    * NX FreescaleP i.MX RT Boards:
17622
17623      - IMXRT1050-EVK:  Added support for booting from the on board HYPER
17624        Flash.  From Ivan Ucherdzhiev.
17625      - IMXRT1050-EVK:  Added logic to support the board's user LED.  From
17626        Jake Choy.
17627      - IMXRT1050-EVK:  Added procfs auto-mount support in imxrt_bringup.c.
17628        From Ivan Ucherdzhiev.
17629      - IMXRT1050-EVK:  Added LIBCXX test configuration.
17630      - IMXRT1050-EVK:  Added support for the imxrt1050-evk button.  From
17631        Jake Choy.
17632      - MXRT1050-EVK:  Added support for on-board NOR FLASH boot.  From
17633        Ivan Ucherdzhiev.
17634      - IMXRT1050-EVK:  Disable LED support because pins conflict with PHY.
17635        Enable device statistics.  Enable NSH ifup and ifdown commands.
17636        Added an NSH configuration for testing Ethernet.
17637
17638    * NXP Freescale Kinetis:
17639
17640      - K28F:  Added architecture support for the Kinetis K28F.
17641
17642    * NXP Freescale Kinetis Drivers:
17643
17644      - SDHC:  Make Kinetis SDHC pullups work the same as the STM32 SDIO
17645        pullups.
17646
17647    * NXP Freescale Kinetis Boards:
17648
17649      - Freedom-K28F.  Added support for the Kinetis Freedom-K28F board.
17650
17651    * NXP LPC17xx:
17652
17653      - LPC17xx:  Added support for ARMv7-M run time stack checking on NXP
17654        LPC17xx MCUs based on CONFIG_ARMV7M_STACKCHECK. Basically copied
17655        from STM32.  From Michael Jung.
17656
17657    * NXP LPC17xx Drivers:
17658
17659      - LPC17xx:  Added a configurable option to allow using a part of
17660        LPC17xx's internal flash memory as a Memory Technology Device via
17661        NuttX' mtd_progmem infrastructure. Tested with LPC1769.  From
17662        Michael Jung.
17663
17664    * NXP LPC17xx Boards:
17665
17666      - Olimex-LPC1766STK:  Remove support for the Nokia6100 LCD.  That
17667        LCD uses a 9-bit SPI interface (the 9th bit being the command/data
17668        bit that is normally a discrete).  That communication was never
17669        successfully integrated.
17670
17671    * NXP LPC43xx Boards:
17672
17673      - configs/bambino-200e:  Added support for multiple MAX31855 sensors
17674        to the bambino-200e.  From Tiago Almeida.
17675
17676    * OpenRISC
17677
17678      - arch/or1k/src.  Added basic architectural support for the OpenRISK
17679        mor1kx architecture.  The initial commit was verified on a Qemu
17680        simulation but is otherwise untested.  From Matt Thompson.
17681
17682    * OpenRISC Board
17683
17684      - configs/or1k.  OpenRISK mor1kx Qemu simulation.  From Matt Thompson.
17685
17686    * STMicro STM32:
17687
17688      - STM32:  Added support for the STM32F401xB and STM32F401xC families.
17689
17690    * STMicro STM32 Drivers:
17691
17692      - STM32 HRTIM:  Added HRTIM software capture trigger, added software
17693        reset trigger, added outputs polarization configuration  From
17694        raiden00pl.
17695      - STM32 ADC:  Added ADC injected channels configuration.  From Mateusz
17696        Szafoni.
17697      - STM32 HCIUART:  Added a Bluetooth HCI UART lower half driver for the
17698        STM32.
17699      - STM32 HCIUART:  Implement the setbaud() method for the STM32 HCI
17700        UART interface.
17701      - STM32 SDIO:  Added support for SDIO card to SDIO driver.  From
17702        hhuysqt.
17703      - STM32 SDIO:  Added internal pull-up option for SDIO pins.  From Alan
17704        Carvalho de Assis.
17705      - STM32 F2/F4 ADC:  Added Vbat measurement to ADC driver for
17706        STM32F20xx and STM32F4xxx.  As with the MCU temperature and VREFINT
17707        measurement, this change requires user to enable the corresponding
17708        channel first.  For Vbat channel the ioctl cmd is
17709        IO_ENABLE_DISABLE_VBAT_CH, and its arg should be a pointer to bool
17710        which must be true to enable and false to disable the Vbat channel.
17711        Moreover, since Vbat input contains a built-in voltage divider, it
17712        is highly suggested to disable Vbat input channel after measurement
17713        is done in order to prevent battery drain through the divider.  From
17714        Dmitriy Linikov.
17715      - STM32, STM32L4 1WIRE:  Added one bit read and write to 1-wire
17716        interface.  This is needed for devices that require single bit
17717        timeslot generation and for 1-Wire search algorithm triplets.  From
17718        Juha  Niskanen.
17719      - STM32 F3 SPI:  Enable DMA for SPI on stm32f30xxx MCUs.  From Michal
17720        Lyszczek.
17721      - STM32 L4 1WIRE:  Ported 1wire driver from STM32.  From Juha
17722        Niskanen.
17723      - STM32 L4 I2C/SPI/1WIRE:  Added PM hooks to I2C, SPI and 1-wire  From
17724        Juha Niskanen.
17725      - STM32 F7 RTC:  Added CONFIG_RTC_PERIODIC support.  Also makes the RTC
17726        lowerhalf more like in STM32L4.  From Juha Niskanen.
17727      - STM32 F7 ADC/I2C/SPI:  Added PM hooks to ADC, I2C and SPI.  From
17728        Juha Niskanen.
17729
17730    * STMicro STM32 Boards:
17731
17732      - Indium-F7:  Removed support for the Indium-F7 board.  This was done
17733        for two reasons:  (1) The board support was just clone of the
17734        Nucleo-144 board support with naming changes.  There has been no
17735        support and no further development for the board support.  (2) There
17736        does not seem to be any available Indium-F7 board available to the
17737        public anywhere on the Internet.  There is not even a reference to
17738        the board on the rafresearch.com web stie.
17739      - Nucleo-L452RE:  Added buttons example  From Juha Niskanen.
17740      - Nucleo-L476RG:  Added support to Nokia LCD PCD8544 on nucleo-l476rg.
17741        From Alan Carvalho de Assis.
17742      - Nucleo-L476RG:  Added nxdemo configuration to nucleo-l476rg using
17743        PCD8544.  From Alan Carvalho de Assis.
17744      - Olimex-STM32-P407:  Added a zmodem test configuration.
17745      - Olimex-STM32-P407:  Added the module configuration.
17746      - Photon:  Added RGB led support  From Anthony Merlino.
17747      - STM32F103-Minimum:  Added support for DFU bootloader  From Simon
17748        Piriou.
17749      - Spark:  Removes Spark board configuration.  Still available in the
17750        Obsoleted repository.  If there is no CC3000 support, then there is
17751        no purpose in supporting the Spark either.
17752      - STM32F334-Disco:  Added buck/boost converter example configuration.
17753        From Mateusz Szafoni.
17754      - STM32F4 Discovery:  Added support for multiple MAX31855 sensors to the
17755        STM32F4 Discovery  From Tiago Almeida.
17756      - STM32F4 Discovery:  Added support in bring-up logic to initialize the
17757        HCI UART and register the HCI UART network device.
17758      - STM32F4 Discovery:  Added MAX7219 support to STM32F4Discovery board.
17759        From Alan Carvalho de Assis.
17760      - STM32F4 Discovery:  Added board configuration for CS43L22 audio
17761        example.  From Alan Carvalho de Assis.
17762      - STM32F4 Discovery:  Added a module configuration for testing the
17763        kernel module example with the STM32F4Discovery board.  From Alan
17764        Carvalho de Assis.
17765      - STM32F429I-DISCO:  Added a LittlevGL configuration for stm32f429i-
17766        disco.  From seyyah.
17767      - STM32F746G-DISCO.  Added clang support to stm32f746g-disco board.
17768        From Goran Mekic.
17769      - STM32L1 Discovery:  Added support for the STM32L152RCT6 version of
17770        the board.
17771
17772    * TI TMS570:
17773
17774      - TMS570:  Added support for the TMS570LS3137ZWT.  From Ivan Ucherdzhiev.
17775
17776    * TI TMS570 Boards:
17777
17778      - configs/tms570ls31x-usb-kit:  Added support for the TI Hercules
17779        TMS570LS31x USB Kit  From Ivan Ucherdzhiev.
17780
17781    * TI Tiva:
17782
17783      - CC3200: Remove all support for the CC3200.  This was a port that was
17784        started but never completed.  What good is partial CC3200 support
17785        with no wireless support?.
17786
17787    * TI Tiva Drivers:
17788
17789      - EEPROM:  Implements an EEPROM driver in compliance with MTD driver
17790        as provided by NUTTX for TM4C1294.  The EEPROM driver currently
17791        supports only two functionalities - read bytes(multiple of 4) and
17792        write bytes (multiple of 4).  From Shirshak Sengupta.
17793      - FLASH:  Implemented Flash CONFIG_MTD_BYTE_WRITE for TM4c1294.
17794        Implemented the tiva_write function which will write an arbitrary
17795        number of bytes to flash (in multiple of 4).  From Shirshak Sengupta.
17796      - Serial:  Added TERMIOS IOCTL support to the Tiva serial driver.
17797        From Dmitry Sharihin.
17798
17799    * TI Tiva Boards:
17800
17801      - CC3200-Launchpad:  Remove all support for the CC3200-Launchpad.
17802        This was a port that was started but never completed.  What good is
17803        partial CC3200-Launchpad board support with no wireless support?.
17804
17805    * Libraries/Header Files:
17806
17807      - libs/:  Moved all of the libraries under a common directory called
17808        libs/ (libc, libnx, and libxx).  This almost certainly break libcxx
17809        for now.
17810      - libs/libc/time:  Added an implementation of clock().
17811      - libs/libc/lzf:  Added a modified version of Marc Alexander Lehmann's
17812        LIBLZF3.6 library  From Boris Astardzhiev.
17813      - libs/libc/unistd:  Initial, minimal implementation of sysconf().
17814        Only sufficient to support the functionality of less standard
17815        getdtabilesize().  From Michael Jung.
17816      - libs/libdsp:  Added DSP support library.  From Mateusz Szafoni.
17817      - include/sys:  Added resource.h.
17818      - include/nuttx/video:  Add overlay support to framebuffer interface
17819        definition. From Marco Krahl.
17820
17821    * Tools:
17822
17823      - tools/gencromfs.c:  Added tools/gencromfs.c, a tool that can be used
17824        to generate CROMFS file system images.
17825      - tools/mkromfsimg.sh:  Include an option in mkromfsimg.sh to ignore
17826        FAT/RAMDISK. This permits you to build tiny systems with ROMFS but
17827        with the rather large FAT FS support.  From Alan Carvalho de Assis.
17828      - tools/nxstyle.c:  Added check for blank lines before and after single
17829        line comments.  From Bob Feretich.
17830      - tools/sethost.sh:  Added support for macOS.
17831      - tools/uncrustify.cfg:  An initial cut at an uncrustify C formatting
17832        script from Gregory Nutt. Updated, corrected, and verified.  From
17833        Bob Feretich.
17834
17835    * Build System:
17836
17837      - Makefile:  Added support for nconfig frontend for 'make nconfig'.
17838        From Michal Lyszczek.
17839      - configs/:  Added definition of strip to many Make.defs files.
17840      - staging/:  Remove fixed lib/ subdirectory and its content.  Replace
17841        with new directory called staging/ that is created dynamically when
17842        building and removed when 'make clean' is done.  This both improves
17843        the naming and eliminates a garbage directory from the repository.
17844      - tools/:  Move all build-related files (except the top-level Makefile)
17845        into the tools/ sub-directory.  This really cleans up the top-level
17846        directory.
17847
17848    * NSH: apps/nshlib:
17849
17850      - apps/nshlib:  Added the mkfatfs -r option which can be used to
17851        specify the number of entries in the FAT12/FAT16 root directory.
17852        From Boris Astardzhiev.
17853
17854    * Examples/Tests: apps/examples:
17855
17856      - apps/examples/adxl372_test and lxm330spi_test:  Added ADXL372 and
17857        LSM330 tests.  From Bob Feretich.
17858      - apps/examples/cc3000:  Removed the CC3000 example.  From Alan
17859        Carvalho de Assis.
17860      - apps/examples/cromfs:  Added an example of how to build a CROMFS
17861        file system image.
17862      - apps/examples/elf:  Extend the ELF program module demo so that you
17863        can use compressed ELF programs with CROMFS.
17864      - apps/examples/elf:  Use strip command to make ELF binaries MUCH
17865        smaller. Added an option to strip debug symbols even if the debug
17866        symbols are enabled in the base code.
17867      - apps/examples/max31855: Added an example to read multiple max31855
17868        sensors.  From Tiago Almeida.
17869      - apps/examples/netloop:  Update network loopback example so that it
17870        can be used to test TCP KeepAlive.
17871      - apps/examples/nxdemo:  Added nxdemo application  From Alan Carvalho
17872        de Assis.
17873      - apps/examples/powerled:  Added arch initialization.
17874      - apps/examples/uavcan:  Removed because apps/canutils/libuavcan is no
17875        longer available.
17876
17877    * System Utilities: apps/system
17878
17879      - apps/system/lzf:  Added the test case from Marc Alexander Lehmann's
17880        LIBLZF3.6 librrary  From Boris Astardzhiev.
17881      - apps/system/embedlog:  Support for embedlog data loggin package from
17882        https://embedlog.kurwinet.pl/  From Michal Lyszczek.
17883      - apps/system/zmodem:  Added an option to enable hardware flow control
17884        via termios.  Allow stack size and priority to be configured.
17885      - apps/system/zmodem:  Call tcflush() before closing the serial port.
17886        This is necessary because that close operation may hang if hardware
17887        flow control is enabled.  Consider this scenario:  After the host
17888        sz runs on the host, it exits and leaves CTS high.  The target rz
17889        completes, and tries to close the serial port.  But if there is
17890        buffered Tx data, then the close will hang when it tries to drain
17891        the buffered Tx data since there is no where it can go.  tcflush()
17892        discards the buffered data and permits the close to continue.
17893        There is additional logic in nuttx/drivers/serial needed to work
17894        with this.
17895
17896    * CAN Utilities:  apps/canutils:
17897
17898      - apps/canutils/libuavcan.  Removed! libuavcan has not built for a
17899        year or so.  The basic problem is that as NuttX advances, the old
17900        frozen version of libuavcan has become absolute because it violates
17901        the portable POSIX OS interface.  No one is maintaining the port so
17902        there is no alternative but to remove it.
17903
17904    * Network Utilities: apps/netutils:
17905
17906      - apps/netutils/tftpc:  Modified the TFTP client functions to use a
17907        data read/write callback instead of a file.  This allows TFTP to
17908        write to arbitrary destination (in my case, a MTD device - for
17909        firmware update).  Two new functions are introduced for this, named
17910        tftpget_cb and tftpput_cb. They are just made of most of the
17911        existing code.  The previously existing tftpget/tftpput functions
17912        are now wrappers on the new ones, with callbacks that read/write
17913        from files, so my modifications are backwards compatible with
17914        existing applications, eg the associated nsh commands dont need to
17915        be changed.  From Sebastien Lorquet.
17916
17917    * Wireless Utilities: apps/wireless:
17918
17919      - apps/wireless/bluetooth/btsak:  Added a Bluetooth debug tool.
17920
17921Bugfixes.  Only the most critical bugfixes are listed here (see the
17922ChangeLog for the complete list of bugfixes and for additional, more
17923detailed bugfix information):
17924
17925    * Core OS:
17926
17927      - sched/sched: Fix a deadlock in SMP mode.  Two months ago, I
17928        introduced sched_tasklist_lock() and sched_tasklist_unlock() to
17929        protect tasklists in SMP mode.  This change works well for HTTP
17930        audio streaming aging test with lc823450-xgevk.  However, I found a
17931        deadlock in the scheduler when I tried similar aging tests with DVFS
17932        autonomous mode where CPU clock speed changed based on cpu load. In
17933        this case, call sequences were as follows.  To avoid this deadlock,
17934        I added sched_tasklist_unlock() when calling up_cpu_pause() and
17935        sched_addreadytorun(). Also, added sched_tasklist_lock() after the
17936        call.  Also added critical sections to lib_filesem.c, mm_sem.c, and
17937        net_lock.c for SMP for SMP.  From Masayuki Ishikawa.
17938      - sched/sched:  Change ordering of round-robin time slice check
17939        (sched_process_scheduler()) and processing of wdog timers
17940        (wd_timer()).  wd_timer()'s callback function can change current
17941        running task and, hence, must be done after the time slice check.
17942        The time slice check will decrement the currently running task's
17943        time slice allotment.  If such a context switch occurs, then the
17944        newly started task will lost one could of that allotment before it
17945        even has a chance to run.  From EunBong Song.
17946
17947    * File System/Block and MTD Drivers:
17948
17949      - fs/fat: In fs_stat(), when stat'ing the root directory, avoid
17950        calculating the address of the root directory entry.  The
17951        calculation is bogus (but not harmful) because the root directory
17952        does not have a directory entry.  Noted by Boris Astardzhiev.
17953      - fs/fat:  Avoid calculating the bogus directory entry address for
17954        the FAT root directory (since it has no directory entry).  This
17955        change should have no effect, other than making the logic clearer.
17956        From Boris Astardzhiev.
17957      - fs/mount:  Fix wrong size reported by df -h.  Reason is that size
17958        in bytes is calculated always on uint32_t types and cards bigger
17959        than 4GB will overflow uint32_t type. Solution is to use uint64_t
17960        where possible.  From Michal Lyszczek.
17961      - fs/smartfs:  Fix a hardfault in SmartFS.  Problem occurred when
17962        opening a file with O_CREAT (only) when the file arelready exists
17963        but has a size of zero.  From Michal Lyszczek.
17964      - fs/vfs:  Fix negative errno set in fs_open.c  From Michal Lyszczek.
17965      - drivers/mtd:  Fixed a W25 driver w25_cacheflush sector bug.  From
17966        lihaichen.
17967      - drivers/mtd:  mtdconfig_register() returned OK instead of -ENOMEM on
17968        failed allocation.  From Michal Lyszczek.
17969
17970    * Graphics/Display Drivers:
17971
17972      - drivers/lcd/ft80x:  ACTIVE host command appears to be formatted
17973        differently than other host commands; Fix ROM CHIPID.  Appears to
17974        be big-ending, BCD.  Fix some compile issues when debug features
17975        are enabled.
17976      - drivers/lcd/ft80x:  Fix a typo that caused the driver to fail to
17977        recognize the ft801 chip version. From Gregory Nutt.
17978      - Review all board implementations of board_lcd_initialize().  The
17979        NuttX convention is that all internal functions that return errors
17980        as an 'int' must return a negated errno value on failure and a non-
17981        negative value on success.  Most were right but eight of them had
17982        cloned logic that returns 1 on success and zero on failure. both
17983        of which are interpreted as success by the caller since they are
17984        non-negative.
17985
17986    * Networking/Network Drivers:
17987
17988      - net/tcp:  Fixed problem with send() retrun value when using
17989        nonblocking I/O over buffered tcp socket  From Dmitriy Linikov.
17990      - net/sixlowpan:  Fix a nasty, byte-ordering/endian-ness problem.
17991        The root cause has been found and corrected.  And a half dozen
17992        or so bandaid fixes were reverted.
17993      - net/sixlowpan:  Preserve big-endian (network order) when
17994        uncompressing address.  From Anthony Merlino.
17995      - net/sixlowpan: TCP send should have PSH and ACK flags set when
17996        sending.  This matches the standard network (Ethernet) TCP send
17997        logic.  From Anthony Merlino.
17998      - net/udp:  Fix several issues using connected UDP sockets:  sendto()
17999        should not accept an address.  Normally send() should be used with
18000        connect UDP sockets instead.  recvfrom() is no longer necessary.
18001        recvfrom() and poll() should not reset to accept any addresses but
18002        should, instead, only accept inputs and events from the connected
18003        remote peer.  On of these issues was noted by ???
18004        <liguiding@pinecone.net>.  Changes were made as summarized here:
18005        http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch08lev1sec11.html
18006        From Gregory Nutt.
18007      - net/udp: Resolve race condition in connection-less UDP sockets with
18008        read-ahead buffering.  In connection-mode UDP sockets, a remote
18009        address is retained in the UDP connection structure.  This
18010        determines both there send() will send the packets and which packets
18011        recv() will be accepted.  This same mechanism is used for
18012        connection-less UDP sendto:  A temporary remote address is written
18013        into the connection structure to support the sendto() operation.
18014        That address persists until the next recvfrom() when it is reset to
18015        accept any address.  When UDP read-ahead buffering is enabled,
18016        however, that means that the old, invalid remote address can be left
18017        in the connection structure for some time.  This can cause read-
18018        ahead buffer to fail, dropping UDP packets.  Shortening the time
18019        between when he remote address is reset (i.e., immediately after the
18020        sendto() completes) is not a solution, that does not eliminate the
18021        race condition; in only makes it smaller.  With this change, a flag
18022        was added to the connection structure to indicate if the UDP socket
18023        is in connection mode or if it is connection-less.  This change
18024        effects only UDP receive operations:  The remote address in the UDP
18025        connection is always ignored if the UDP socket is not in connection-
18026        mode.  No for connection-mode sockets, that remote address behaves as
18027        before.  But for connection-less sockets, it is only used by sendto().
18028
18029    * Wireless/Wireless Drivers:
18030
18031      - drivers/wiresless/ieee80211:  Correct some initialization problems
18032        with BCM43362 chip.  From hhuysqt.
18033      - drivers/ieee802154/xbee:  Added a timeout to send logic to handle
18034        case where XBee module fails to respond to a Transmit request with
18035        a Transmit Status  From Anthony Merlino.
18036
18037    * Common Drivers:
18038
18039      - Per OpenGroup.org, syslog -- and, hence, nonstandard vsyslog, and
18040        debug wrappers -- does not return a value.  Rename _vsyslog to
18041        nx_vsyslog.  Use internal nx_vsyslog in the few cases where a
18042        return value is required.
18043      - drivers/leds:  Fixes RGB LED issues caused by uninitialized memory
18044        with CONFIG_RGBLED_MULTICHAN.  The uninitialized pwm_info_s struct
18045        caused a rogue channel to be started causing errors in the pwm
18046        driver  From Anthony Merlino.
18047      - drivers/sensors/lis2dh:  Clear INT1 at SNIOC_WRITE_INT1THRESHOLD
18048        ioctl.  From Jussi Kivilinna.
18049      - drivers/sensors/sht21:  Changed I2C_TRANSFER return value so that
18050        it return on zero on success, not the count of bytes transferred.
18051        From Juha Niskanen.
18052      - drivers/serial:  Per Matias Edlund:  I recently used the tcflush
18053        function and found that it failed with ENOTTY. The reason is that
18054        the TCFLSH case in the function uart_ioctl in the file
18055        drivers/serial/serial.c does not update the ret value."  On
18056        success, the TCFLSH IOCTL logic needs to explicitly set the return
18057        value (ret) to zero.
18058      - drivers/serial:  Added a timeout to uart_tcdrain().  Even if
18059        tcflush() is used to discard buffered data, the close() can still
18060        hang if (a) hardware flow control is enabled, (b) CTS == 1, and
18061        (c) there is data stuck in the hardware Tx FIFO.  tcflush() does
18062        not currently clear the MCU serial drivers' hardware Tx FIFOs.
18063        This is a workaround for that.
18064      - drivers/sensors:  Fix APDS9960 work queue BUG found by Kyle Lei.
18065        From Alan Carvalho de Assis.
18066
18067    * Simulator:
18068
18069      - arch/sim:  Various fixes necessary to build the simulator under
18070        MSYS2.
18071
18072    * ARMv7-R:
18073
18074      - ARMv7-R:  Corrected several ARMv7-R issues.  From Ivan Ucherdzhiev.
18075
18076    * Infineon XMC4xxx Boards:
18077
18078      - XMC4500-Relax:  Call xmc4_spidev_initialize() in xmc4_boot.c.  From
18079        Alan Carvalho de Assis.
18080
18081    * NXP/Freescale LPC17xx Drivers:
18082
18083      - LPC17xx USB: Fix USB device endpoint allocation bookkeeping.  From
18084        Michael Jung.
18085      - LPC17xx USB:  Freeing endpoints should be set the same allocations
18086        as when endpoint was allocated.
18087      - LPC17xx USB:  Fix loss of RX initiatives.  USB bulk endpoints are
18088        double buffered on LPC17xx MCUs.  This means that up to two packets
18089        might be received on an OUT endpoint that can not be handled
18090        immediately if the receive request queue is empty.  Thus,
18091        rxpending must be a counter not a boolean flag.  From Michael Jung.
18092
18093    * NXP/Freescale Kinetis Drivers:
18094
18095      - Kinetis USG:  USB device fixes:  Use correct CONFIG OTG control,
18096        Fix interrupt storm when cable is disconnected.  The DM, DP state
18097        were incorrect because the pulldowns were not enabled.  Also the
18098        pending asynchronous resume interrupt needed to be re-armed after
18099        the suspend is in effect. This is now done in the isr.  From David
18100        Sidrane.
18101      - Kinetis Serial:  In kinetis_lowputc.c, fix esBRFA calculation
18102        effecting baudrate.  Previous BRFA was not cleared and or-ed into
18103        new BRFA, hence, buadrate was wrong.  Where Baud Rate Fractional
18104        Divisor (BRFD) UART baud rate = clock / (16 * (SBR + BRFD)).  From
18105        David Sidrane.
18106      - Kinetis Serial:  In kinetis_lowputc.c, fixed parity settings.
18107        Kinetis UART must be placed in 9 bit mode (M=1) with when 8 bit data
18108        with parity is required. If left in 8 bit mode (M=0) with parity
18109        then D7 of the TX/RX register becomes parity bit.  Hence what is
18110        called 9-bit or 8-bit Mode Select is a misnomer.  8 bit mode when
18111        parity is enabled is realy 7 bit with parity.  From David Sidrane.
18112
18113    * NXP/Freescale Kinetis Boards:
18114
18115      - configs/teensy-3.x:  Remove CONFIG_USBDEV_DUALSPEED from the usbnsh
18116        configuration.  Hardware supports only FS.
18117
18118    * NXP i.MX6 Drivers:
18119
18120      - i.MX6:  Bring in a few i.MX6 fixes that were committed to similar
18121        files for the i.MX RT.
18122
18123    * STMicro STM32:
18124
18125      - STM32 F3:  Problem: stm32f30xx hangs waiting for LSE to initialize.
18126        Reason for hang is that operation of setting LSE_ON does not take
18127        effect because there is no clock on PWR peripheral.  This is
18128        initialized later in the code  From Michal Lyszczek.
18129
18130    * STMicro STM32 Drivers:
18131
18132      - STM32 and STM32 L4 1WIRE:  In 1wire driver, do not write useless
18133        WRITEBIT zero return value to const buffer  From Juha Niskanen.
18134      - STM32 HRTIM:  Fixed capture_get function,.  From raiden00pl.
18135      - STM32 F3 ADC:  Fixed bug in RCC reset logic that resets ADC1
18136        configuration when both ADC1 and ADC2 are in use  From Mateusz
18137        Szafoni.
18138      - STM32 Ethernet:  In case of PHY failure, usually because of the
18139        lack of 25/50 MHz REFCLK input, the Ethernet block would lock up
18140        in a while loop waiting for readiness, which will never happened.
18141        This prevented the board from starting at all in the case of a PHY
18142        failure.  This commit adds a retry loop to avoid bricking the board
18143        if the Ethernet block is unable to start.  From Sebastien Lorquet.
18144      - STM32 F7 SDMMC:  Added support for the second SDMMC device.  The
18145        second SDMMC device was already supported but the clock was never
18146        enabled.  This fixes that.  From William Douglas.
18147      - STM32 Serial:  Fix UART glitch when lowputc is enabled.  From
18148        Simon Piriou.
18149      - STM32 USB:  Skip recipient check for descriptor related
18150        requests  From Simon Piriou.
18151
18152    * TI Tiva Drivers:
18153
18154      - Tiva ADC: Fix compilation errors on Tiva ADC code when ADC is
18155        enable.  From Vinicius Maciel.
18156      - Tiva Serial:  Allow building of Tiva platform with no serial
18157        console.  From Dmitry Sharihin.
18158
18159    * C Library/Header Files:
18160
18161      - lib/libc/netdb:  Fixed boundary conditions in dns_recv_response().
18162        Fixed typos in include/nuttx/net/dns.h.  From Masayuki Ishikawa.
18163      - libs/libc/modlib:  Fixed backward test for an error in
18164        modlib_verify.c.
18165
18166    * Build System:
18167
18168      - Makefiles:  Eliminate the spurious errors reported by 'make
18169        savedefconfig'.
18170      - Makefile(s):  There is a sort command in the 'make savedefconfig'
18171        file.  I found that sort behaves differently on different platforms
18172        based on the environment variable LC_ALL.  Now, Makefile.unix will
18173        force LC_ALL=C just for the sort command so that we can all generate
18174        equivalent defconfig files.
18175      - Makefile(s):  The clean_context target needs to invoke a
18176        corresponding clean_context target in the apps/Makefile in order to
18177        remove linkages.  From Gregory Nutt.
18178      - LibTargets.mk, tools/Config.mk:  Drop executable bit on installed
18179        libraries. The rules to install libraries under lib/ were modified
18180        to use mode 0644 instead of the default 0755.  From Andrey Zabolotnyi.
18181
18182    * Examples/Tests: apps/examples:
18183
18184      - apps/examples/ft80x:  Fix some size calculations.  Added option to
18185        disable primitive tests. just too boring to have to watch over and
18186        over again. Fix a typo in backlight fade logic; Fix error in
18187        formatted display light debug dump output.
18188      - apps/examples/ft80x:  Text is handled by the coprocessor and, hence,
18189        must use RAM_CMD, not RAM_DL.
18190      - apps/examples/ft80x:  Fix some errors in co-processor demos.  Correct
18191        an error in the spinner demo.
18192      - apps/examples/nsh and posix_spawn:  Must not call exec_setsymtab()
18193        directly.  That is a non-POSIX internal OS interface.
18194      - apps/examples/ostest:  Do not call AIO test without
18195        CONFIG_EXAMPLES_OSTEST_AIO  From Juha Niskanen.
18196      - apps/examples/smps:  Fix typos in Kconfig.  All power, voltage,
18197        current values were strings with no default.  I assume they should
18198        be 'int' with what default?.
18199      - apps/examples/smps:  Fixes in some printf and in Kconfig  From
18200        Mateusz Szafoni.
18201      - apps/system/zmodem:  Fix Makefile.host.  It was broken when zmodem.h
18202        was moved to apps/include/system.  Fix an incompatibility with the way
18203        that CRCs are calculated.
18204
18205    * System Utilities: apps/system:
18206
18207      - apps/system:  Applications should use the standard clock() interface,
18208        not the internal NuttX clock_systimer() interface.
18209      - apps/system/stackmonitor:  Fix comparison between pointer and zero
18210        character constant.  From Juha Niskanen.
18211
18212    * Network Utilities: apps/netutils:
18213
18214      - apps/netutils/netlib:  Various fixes needed to get a clean netlib
18215        build with Bluetooth only.
18216
18217    * Wireless Utilities: apps/wireless:
18218
18219      - apps/wireless:  Applications should use the standard clock()
18220        interface, not the internal NuttX clock_systimer() interface.
18221
18222NuttX-7.26 Release Notes
18223------------------------
18224
18225The 126th release of NuttX, Version 7.26, was made on September 8, 2018,
18226and is available for download from the Bitbucket.org website.  Note
18227that release consists of two tarballs:  nuttx-7.26.tar.gz and
18228apps-7.26.tar.gz.  These are available from:
18229
18230    https://bitbucket.org/nuttx/nuttx/downloads
18231    https://bitbucket.org/nuttx/apps/downloads
18232
18233Both may be needed (see the top-level nuttx/README.txt file for build
18234information).
18235
18236Additional new features and extended functionality:
18237
18238    * Core OS:
18239
18240      - General: Eliminate use of the non-standard type systime_t and
18241        replace it the equivalent, standard type clock_t  From Gregory Nutt.
18242      - General:  Replace non critical PANIC with DEBUGPANIC to save the
18243        code space From Xiang Xiao.
18244      - General: Replace all ASSERT with DEBUGASSERT to save the code
18245        space  From Xiang Xiao.
18246      - Initialization:  Add option to mount block device for
18247        INIT_FILEPATH case.  From anchao.
18248      - clock():  clock_systimer() is no longer a system interface.  It has
18249        been replaced with the equivalent, standard interface clock().
18250        Moved the implementation of clock() from the C library into the OS
18251        core.  This is necessary because it calls the (now) internal OS
18252        function clock_systimer().  clock() is now accessed only via a
18253        system call in certain configurations.  From Gregory Nutt.
18254      - clock Utilities:  Move clock_timespec_[add|subtract] to
18255        include/nuttx/clock.h  From Xiang Xiao.
18256      - Binary Loader:  Add binfmt_initialize().  All binary formats are
18257        now registered centrally vs. in board-specific logic.  This
18258        simplifies the usage of the binfmt subsystem.  From Xiang Xiao.
18259      - Binary Loader:  Reference default symtab name to binfmt  From anchao.
18260      - mm:  Add mm_heapmember function and reimplement kmm_heapmember base
18261        on mm_heapmember since this function is very useful if multiple
18262        heaps exist.  From Xiang Xiao.
18263      - mm:  Add {kumm/kmm}_calloc API.  Add calloc API for manage user
18264        memory and kernel memory in Flat Build/Kernel Build without kernel
18265        heap.  From zhuyanlin.
18266      - pthreads:  Add support static pthread stack.  Add standard
18267        pthread_attr_setstack() and pthread_attr_getstack().  In all cases
18268        where the stack is released, add check to see which allocator must
18269        be used to free the stack:  The user or the kernel allocator.  From
18270        xuanlin.
18271      - Semaphores:  Apply the semaphore wait function
18272        nxsem_wait_uninterruptible().  This function is a wrapped version
18273        of nxsem_wait() that is uninterruptible and convenient for use.
18274        From liuhaiyang.
18275      - Signals:  Add default signal action to SIGKILL.  From ligd.
18276      - Signals:  Update the signal default action logic to support
18277        sigaction().  signaction() must be able to handle and input action
18278        of SIG_DFL to setup the default signal action; it mast also return
18279        SIG_DFL it is replacing the default action.  From Gregory Nutt.
18280      - Signals: Default Signal Actions.  Change some types to
18281        superficially simplify.  Add configuration options to enabled
18282        default signal behaviors on a per-signal basis.  I don't think
18283        users are prepared for SIGALRM to terminate the task (which is the
18284        correct default behavior if you don't change it).  Extend the
18285        implementation of default signals so that it is totally table
18286        driven and extensible by simply mondifying the content of const
18287        tables.  From Gregory Nutt.
18288      - Signals:  Add support for SIGINT in addition to SIGKILL.
18289      - Signals:  Add logic and an interface to determine if a signal can
18290        be caught or ignored.  sigaction now correctly returns EINVAL on
18291        any attempt to catch or ignore such signals (only SIGKILL for now
18292        and only if CONFIG_SIG_DEFAULT=y).  From Gregory Nutt.
18293      - Signals:  Add support for default signal actions for SIGSTOP,
18294        SIGSTP, and SIGCONT.  Add procfs support to show stopped tasks.
18295        From Gregory Nutt.
18296      - Signals:  Add nxsig_action() to solve a chicken and egg problem:
18297        We needed to use sigaction to set default actions, but sigaction()
18298        would refuse to set actions if the default actions could not be
18299        caught or ignored.  From Gregory Nutt.
18300      - Signals:  Add configuration option to selectively enabled/disable
18301        default signal actions for SIGSTOP/SIGSTP/SIGCONT and SIGKILL/SIGINT.
18302      - Signals:  If a task/thread was already blocked when
18303        SIGSTOP/SIGSTP was received, it will restart in the running state.
18304        It will appear that to the task/thread that the blocked condition
18305        was interrupt by a signal and returns the EINTR error.  From
18306        Gregory Nutt.
18307      - Signals:  Update signal default STOP action.  If waitpid was
18308        called with the WUNTRACED then wake up waitpid().  From Gregory
18309        Nutt.
18310      - IRQs:  Monitor the IRQ execution time.  This is very useful for
18311        measuring the interrupt latency.  From Xiang Xiao.
18312      - IRQ Dispatch:  Add support interrupt chains in NuttX.  IRQ chain is
18313        very useful in these cases:  (1) Multiple hardware connect to the
18314        same request line(e.g. PCI), (2) Need multiple driver to support
18315        one hardware block (like Linux MFD)  From zhuguangqing.
18316      - Work Queue:  Modify high priority work queue to support multiple
18317        threads.   From ligd.
18318      - System Calls:  Add support for getpeername() and get_sockname()
18319        system calls.  From Gregory Nutt.
18320      - System Calls:  svcall/sycall logic needs to get the ucontext
18321        argument from R4 instead of stack since all syscall parameters pass
18322        from registers in syscall.h  From Xiang Xiao.
18323      - CPU Load Measurement:  Support the CPU load measurement using
18324        timer_lowerhalf_s interface  From Xiang Xiao.
18325      - Assertions: Change CONFIG_BOARD_RESET_ON_CRASH to
18326        CONFIG_BOARD_RESET_ON_ASSERT, arch/: Implement call to
18327        board_reset() if in all implementations of up_assert() when
18328        CONFIG_BOARD_RESET_ON_ASSERT=y.  From Xiang Xiao.
18329      - boardctl():  Add support for board_app_finalinitialize() From ligd.
18330      - Architecture Interface:  Add prototype for an architecture-specific
18331        up_trigger_irq function.  From dongjianli.
18332      - Architecture Interface:  Add the garbage collection hook so each
18333        architecture can do custom memory cleanup if necessary.  From Xiang
18334        Xiao.
18335      - Architecture Interface:  Add architecture-specific prototypes for
18336        conversions between physical and virtual address.  From ligd.
18337
18338    * File Systems/Block and MTD Drivers
18339
18340      - ProcFS:  Add support for a procfs entry that will permit examining
18341        the environment of any task.  From Gregory Nutt.
18342      - ProcFS:  Add support for proc/self/, a convenient way for getting
18343        information about the currently running task.  From Gregory Nutt.
18344      - HostFS:  Add support for open() append mode  From anchao.
18345      - HostFS:  Add ftruncate support.  From Xiang Xiao.
18346      - HostFS:  Remove ARCH_SIM dependence since other architectures
18347        (e.g., arm semihosting) could support hostfs too  From Xiang Xiao.
18348      - HostFS:  Support remote directory names without a trailing '/'
18349        From ligd.
18350      - HostFS:  Add re-try when hostfs mount() fails  From ligd.
18351      - NFS:  Update NFS client mount to VER3  From zhangyuan7.
18352      - Partitions:  Add PTABLE parser fs/partion:  Add a partition parser
18353        framework fs/driver/fs_blockpartition.c:  Add
18354        register_blockpartition for block partition  From Xiang Xiao.
18355      - MTD:  Add gd25 driver  From wangyanjiong.
18356      - MTD:  In MTD partitions, copy the partition name to internal
18357        buffer so that the caller can free the name argument  From Xiang
18358        Xiao.
18359      - MTD:  Support initialization of an FTL block device with a custom
18360        name  From Xiang Xiao.
18361      - MTD:  FTL:  Reduce size of stack buffer from 64 to a maximum size
18362        as determined from NAME_MAX.  From Gregory Nutt.
18363      - VFS poll():  Send poll() notification when the Tx buffer is flushed
18364        From ligd.
18365      - VFS fstat():  Add file_fstat() function for internal OS use. From
18366        ligd.
18367      - VFS fcntl():  Add file_fcntl, psock_fcntl, and psock_dupsd for use
18368        within the kernel.  From Xiang Xiao.
18369      - VFS dup2():  Addpsock_dupsd for use within the kernel.  From Xiang
18370        Xiao.
18371      - VFS poll():  Add poll use in kernel space.  From dongjianli.
18372      - VFS select():  Make select be more consistent with Linux man page:
18373        'The timeout ... Some code calls select() with all three sets
18374        empty, nfds zero, and a non-NULL timeout as a fairly portable way
18375        to sleep with subsecond precision.'  From anchao.
18376
18377    * Networking/Network Drivers:
18378
18379      - Sockets:  Add getpeername() support  From ligd.
18380      - sockopt():  Move psock check from [get|set]sockopt to
18381        psock_[get|set]sockopt From Xiang Xiao.
18382      - getsockname():  Add psock_getsockname function  From Xiang Xiao.
18383      - Netlink Sockets:  This brings in a fragmentary, experimental
18384        implementation of NETLINK sockets.  There is not too much to that
18385        socket support on this initial commit, just the netlink socket
18386        framework.  However, I decided to bring it into master because
18387        there is a enough that I would not want to lose what is in place.
18388        And since it is dependent on CONFIG_EXPERIMENTAL, its presence on
18389        master should be innocuous.  From Gregory Nutt.
18390      - Interface Indexes:  Add driver interface index support.  Add
18391        implementation of if_nametoindex() and if indextoname().  Raw
18392        AF_PACKET sockets now depend on CONFIG_NETDEV_IFINDEX.  Add syscall
18393        support for if_nametoindex() and if_indextoname(). Includes an
18394        algorithm to prevent an interface index from being reused until all
18395        network interfaces have by assigned once.  The prevents removable
18396        devices from being removed, unregistered and re-installed,
18397        re-registered and keeping the same interface index.  From Gregory
18398        Nutt.
18399      - Driver Interface:  Add devif_loopback() to check the loopback
18400        case where a packet is being sent to itself.  Modify the net driver
18401        to call this function in this case.  This function will simply
18402        re-inject the packet back into the network and the network driver
18403        will not put anything on the wire.  From Xiang Xiao.
18404      - Network Devices:  Remove all references to CONFIG_NET_USER_DEVFMT.
18405        That feature is now unconditionally enabled.  This was done because
18406        (1) the feature does not require very much additional memory, and
18407        (2) it causes confusion in the configuration due to the additional
18408        complexity.  Any network drivers that fail to zero the device
18409        structure interface name field (d_ifname) because calling
18410        netdev_register() will, however, get a nasty surprise.  From
18411        Gregory Nutt.
18412      - Network Devices:  Add support for Microchip LAN91C111 driver  From
18413        Xiang Xiao.
18414      - Network Devices:  netdev_findby_ipv[4|6]addr return
18415        netdev_default() as last resort but don't return loopback device
18416        if another network device is in the UP state.  From Xiang Xiao.
18417      - Network Device IOCTLs:  Add si_ioctl callback and net_ioctl_arglen
18418        so usrsock could forward the ioctl to the remote end/  From
18419        dongjianli.
18420      - IPv6:  Rename g_ipv6_allzeroaddress with the more meaning
18421        g_ipv6_unspecaddr since the all-zero address is the IPv6
18422        unspecified address (sometime IN6_ADDR_ANY).  Replace more inline
18423        tests for IPv6 multicast with common net_is_addr_mcast() macro.
18424        From Gregory Nutt.
18425      - ARP:  arp_find() now checks if the target IP belongs to one of the
18426        local network devices.  From Xiang Xiao.
18427      - ARP:  Make the function arp_find() thread-safe.  It now returns a
18428        copy of the MAC address from the ARP table entry, rather than a
18429        potentially unstable reference to the ARP table entry.  From
18430        Gregory Nutt.
18431      - TCP:  Re-work of TCP receive window size algorithm.  The new logic
18432        is based only on the ability to buffer TCP read-ahead data. From
18433        Gregory Nutt.
18434      - UDP:  Add support for the UDP_BINDTODEVICE protocol socket option
18435        From Sebastien Lorquet.
18436      - Slip:  Uncomment the prompt of NET_SLIP_PKTSIZE in Kconfig file.
18437        From Xiang  Xiao.
18438      - USRSOCK:  Combine some the duplicated logic.  From Xiang Xiao.
18439      - USRSOCK:  Optimize option dependence  From Xiang Xiao.
18440      - USRSOCK:  Add the listen/accept/getpeername/ioctl support  From
18441        dongjianli.
18442
18443    * Other Common Device Drivers:
18444
18445      - Analog DAC:  Add driver for digital to analog converter DAC7571.
18446        Nucleo-L422KC:  Add support for a connect DAC7571 converter. From
18447        Daniel Pereira Carvalho.
18448      - Audio Interface:  Change member samp of apb to pointer so driver
18449        can customize sample buffer allocation  From ZhongAn.
18450      - Audio Interface:  Add ioctl cmd 'AUDIOIOC_SETBUFFERINFO' so user
18451        space could config the buffer  From ZhongAn.
18452      - Audio Interface:  Add hardware format support  From anchao.
18453      - I2S Interface:  Add i2s_rxchannels and i2s_txchannels methods to
18454        the I2S lower half interface.  From ZhongAn.
18455      - Audio:  Move the I2S character driver to a dedicated folder. From
18456        Xiang Xiao.
18457      - Audio:   Add audio_i2s device driver.  From ZhongAn.
18458      - Audio:  Add the composite audio driver  From Xiang Xiao.
18459      - Crypto:  Move dev_urandom.c into new crypto folder.  From Xiang
18460        Xiao.
18461      - GPIO driver:  Add gpio_pin_unregister function to GPIO driver
18462        driver/ioexpander:  Add pinset struct to GPIO driver for interrupt
18463        pins larger than 64.  Initialize pintype/inttype when registering
18464        ioexpander device.  Add SETPINTYPE ioctl command to the GPIO
18465        driver. From zhuyanlin.
18466      - I2C Interface:  Add a definition to distinguish a new START of
18467        messages from a repeated start.  No lower-half I2C drivers actually
18468        implement this new flag bit, however. In I2C write/read logic use
18469        new repeated START definition where appropriate.  Rename
18470        I2C_M_NORESTART to I2C_M_NOSTART since it may be used in other
18471        contexts than a repeated start.  Add comments to clarify setup for
18472        repeated start.  From Gregory Nutt.
18473      - I2C:  Add the standard speed macros.  From dongjiuzhu.
18474      - Leds:  Add support to MAX7219 to control 7-segment displays.  From
18475        Alan Carvalho de Assis.
18476      - Power: PM: Add pm_stay and pm_relax function so special apps(e.g.
18477        mediaplayer) could disable suspend during playback much like linux
18478        kernel counterpart  From Xiang Xiao.
18479      - Power:  PM: Add pm_querystate function  From zhuguangqing.
18480      - Power: PM: Don't update the power state in work thread: (1)
18481        Simplify the code logic and remove the work queue dependence, (2)
18482        Power calculation is too simple to delay into the work queue From
18483        Xiang Xiao.
18484      - Power: PM: Decrease the power state in the reverse order.  Since
18485        the child driver need power off before parent driver.  From
18486        zhuguangqing.
18487      - Power: PM:  Make power manager service available as soon as
18488        possible:  (1) Initialize g_pmglobals at the definition, (2) skip
18489        hold the lock if OS isn't ready  From Xiang Xiao.
18490      - Power: PM:  Add PM_RESTORE to notify driver that device exit WFI
18491        so the driver could restore state.  For example, WDT may stop
18492        counting before enter low power state and restore the counting
18493        again in PM_RESTORE notification  From zhuguangqing.
18494      - Power: PM:  Add timer to decrease PM level automatically.  From
18495        ligd.
18496      - PTYs:  Add support so that a PTY can poll for both IN/OUT event
18497        simultaneously.  From ligd.
18498      - PWM:  Move pwm.c into pwm folder  From Xiang Xiao.
18499      - RTC Interface:  Extend struct rtc_time by adding.  From Xiang
18500        Xiao. tm_nsec if RTC supports hiresolution time.  From Xiang Xiao.
18501      - Sensors:  Add support for Telair T6713 carbon dioxide sensor.  From
18502        Juha Niskanen.
18503      - Sensors:  Add support for LSM303AGR and LSM6DSL sensors  From
18504        DisruptiveNL.
18505      - Sensors:  Add driver for DHTxx sensor.  From Ouss4.
18506      - syslog:  Enable a partial, crippled version of syslog_flush();
18507        Call syslog_flush() from assertion handling logic of all
18508        architectures.  From Gregory Nutt.
18509      - syslog:  Channel configuration.  Decouple SYSLOG_SERIAL_CONSOLE and
18510        ARCH_LOWPUTC.  Since some hardware can output log to the special
18511        debug channel not serial. From anchao.
18512      - syslog: Support pre-pending a prefix string to log output if
18513        enabled.  This very useful to identify which CPU send out the log
18514        in AMP SoC. From anchao.
18515      - Serial:  Add Ctrl-C/Ctrl-X support.  From ligd.
18516      - Serial: Support UART direct write for non console device  From
18517        xuanlin.
18518      - Serial:  It is no longer necessary to restrict Ctrl-C handling to
18519        the FLAT build sched/signal:  Add a new configuration option to
18520        select signal default actions, separate handling of signal default
18521        actions from both task startup logic and from the serial TTY
18522        Ctrl-C logic.  Add a signal set in the group structure to keep
18523        track of what signals have been set to the default action.  In
18524        dispatching signals in PROTECTED or KERNEL mode, use this signal
18525        set to determine if the default signal handler is attached and
18526        dispatch the signal in kernel mode for the default actions.  From
18527        Gregory Nutt.
18528      - Serial:  Integrate new Ctrl-C logic with the ISIG flag in the
18529        termios c_lflag. From Gregory Nutt.
18530      - Serial:  Use SIGINT instead of SIGKILL when control-C is pressed.
18531        From Gregory Nutt.
18532      - Serial:  Add support for Ctrl-Z.  This works just like the
18533        recently added Ctrl-C support except that SIGSTP is sent when the
18534        Ctrl-Z characters is encountered vs. SIGINT.  From Gregory Nutt.
18535      - 16550 UART:  Add a configuration, analogous to the STM32
18536        configuration option, to suppress the NuttX standard re-ordering
18537        for /dev/ttySN for special case of the 16550 UART.
18538      - 16550 UART:  Add CONFIG_SERIAL_UART_ARCH_MMIO option so the a
18539        memory mapped device doesn't need to provide uart_getreg() and
18540        uart_putreg() implementations.
18541      - 16550 UART: Add stub implementations of DMA-related methods in the
18542        16550 UART v-table.  From ligd.
18543      - 16550 UART:  Add serial termios handling  From anchao.
18544      - 16550 UART:  Support 16550 auto hardware flow control
18545        drivers/serial/uart_16550.c:  Add configuration option
18546        CONFIG_16550_SUPRESS_INITIAL_CONFIG.  This is identical to the
18547        standard configuration in arch/Kconfig
18548        CONFIG_SUPPRESS_UART_CONFIG, but with scope of only the 16550
18549        driver.  From Xiang Xiao.
18550      - syslog: Make timestamp output same as linux kernel.  It's very
18551        useful if NuttX syslog retarget to Linux syslog. From Xiang Xiao.
18552      - Timers:  Add maxtimeout method to the struct timer_ops_s interface
18553        From Xiang Xiao.
18554      - Timers:  Add a new method to the struct oneshot_operations_s
18555        interface to get the current time from a oneshot timer driver (if
18556        it is available from the lower half)  From Xiang Xiao.
18557      - Timers:  Implement timer arch API on top of timer driver.  From
18558        Xiang Xiao.
18559      - Timers:  Implement alarm arch API on top of oneshot driver
18560        interface.  From Xiang Xiao.
18561      - Timers:  Implement RTC arch API on top of RTC driver interface.
18562        From Xiang Xiao.
18563      - CDC/ECM:  Adds USB device support for CDC/ECM  From Michael Jung.
18564      - USB Host:  Add support for the Maxim M3421E USB host driver.  Not
18565        yet fully tested.  From Gregory Nutt.
18566
18567    * General Architecture-Specific:
18568
18569      - All architectures:  Make sure the up_irq_enable() is available on
18570        all architectures.  From Gregory Nutt.
18571
18572    * Simulation
18573
18574      - Simulator Configurations:  Add dsptest configuration.  From Mateusz
18575        Szafoni.
18576      - Simulator:  In network driver (1) Remove up_comparemac() check for
18577        matching MAC address. Let's trust that the tap device just return
18578        the packet which belong to us like other real network device
18579        hardware. (2) Add network device statistics support.  From Xiang Xiao.
18580
18581    * ARM:
18582
18583      - ARM (all):  Add CONFIG_DEBUG_MEMFAULT to Kconfig.  From Masayuki
18584        Ishikawa.
18585      - ARM:  (1) Add semihost support for syslog, (2) Add semihost support
18586        for HostFS  From Gregory Nutt.
18587
18588    * ARMv6-M:
18589
18590      - ARMv6-M: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
18591        From Masayuki Ishikawa.
18592
18593    * ARMv7-M:
18594
18595      - ARMv7-M:  Removes support for the dedicated vector handling from the
18596        many older architectures. Only common vectors are now supported.
18597        From Gregory Nutt.
18598      - ARMv7-M: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
18599        From Masayuki Ishikawa.
18600      - ARMv7-M:  Implement SYSTICK timer driver  From Xiang Xiao.
18601      - Simulator:  Add loadable demo for arch sim.  From anchao.
18602      - ARMv7-M:  Add logic to trigger ARMv7-M interrupts and exceptions.
18603        From Gregory Nutt (from sample logic by Xiang Xiao).
18604      - ARMv7-M:  Add NVIC definitions needed by up_trigger_irq().  From
18605        Gregory Nutt.
18606
18607    * ARMv7-R:
18608
18609      - ARMv7-R:  Add general interrupt controller.  This is based on
18610        ARMv7-A gic controller code.  From EunBong Song.
18611      - ARMv7-R:  Add invalidate dcache in arm_head.S.  From EunBong Song.
18612
18613    * Infineon XMC4xxx Drivers:
18614
18615      - XMC4 GPIO:  Add a specific bit encoding to GPIO driver for
18616        opendrain GPIO pin.  From Alan Carvalho de Assis.
18617
18618    * Infineon XMC4xxx Boards:
18619
18620      - XMC4500-Relax:  Add support to MAX6675 on XMC4500-Relax board.
18621        From Alan Carvalho de Assis.
18622
18623    * Microchip PIC32MX Boards;
18624
18625      - PIC32MX:  Update some PIC32MX configurations so that either the
18626        MPLAB or Penguino toolchains may be used.  From Gregory Nutt.
18627
18628    * Microchip/Atmel SAMD2x/L2x:
18629
18630      - SAMD2x/L2x:  Rename all usage of samdl/SAMDL to samd2l2/SAMD2L2 to
18631        make room in the name space for samd5e5/SAMD5E5  From Gregory Nutt.
18632
18633    * Microchip/Atmel SAMD5x/E5x:
18634
18635      - SAMD5x/E5:  Add a port to the SAMD5x/E5x MCU family.  From Gregory
18636        Nutt.
18637
18638    * Microchip/Atmel SAMD5x/E5x Drivers:
18639
18640      - SAMD5x/E5x SPI/I2C:  Bring in untested SPI and I2C drivers from
18641        SAMD2L2.  From Gregory Nutt.
18642      - SAMD5x/E5x DMA:  Leverage the SAMD2L2 DMA controller.  From Gregory
18643        Nutt.
18644      - SAMD5x/E5x USB:  Bring the SAMDL2 USB driver into the SAMD5E5
18645        port.  From Gregory Nutt.
18646
18647    * Microchip/Atmel SAMD5x/E5x Boards:
18648
18649      - Metro M4:  Add support for the Adafruit Metro M4 board.  From
18650        Gregory Nutt.
18651      - Metro M4:  Add an option to build the Metro M4 image to run out of
18652        SRAM.  This ought to be a safer and quicker way to do the initial
18653        bring-up (having bricked the first Metro M4 due to a bad FLASH
18654        image).  From Gregory Nutt.
18655      - Metro M4:  Add a configuration option to use OSCULP32K instead of
18656        XOSC32K.  From Gregory Nutt.
18657      - Metro M4:  After some final fixes related to the SERCOM console,
18658        the basic NSH configuration appears fully functional.  From
18659        Gregory Nutt.
18660      - Metro M4:  Verify the CMCC and enable it by default in the NSH
18661        configuration.  From Gregory Nutt.
18662
18663    * Microchip/Atmel SAMv7 Drivers:
18664
18665      - SAMv7 CAN:  Add ability for CAN BUS_OFF autorecovery according
18666        ISO11898-1:2015.  With this change we added an ioctl for triggering
18667        the autorecovery sequence for BUS_OFF to the CAN-driver and the
18668        SAMV7 low-level driver.  According the datasheet: If the device
18669        goes Bus_Off, it will set MCAN_CCCR.INIT of its own accord,
18670        stopping all bus activities. Once MCAN_CCCR.INIT has been cleared
18671        by the processor (application), the device will then wait for 129
18672        occurrences of Bus Idle (129 * 11 consecutive recessive bits)
18673        before resuming normal operation. At the end of the Bus_Off
18674        recovery sequence, the Error Management Counters will be reset.
18675        During the waiting time after the resetting of MCAN_CCCR.INIT, each
18676        time a sequence of 11 recessive bits has been monitored, a Bit0
18677        Error code is written to MCAN_PSR.LEC, enabling the processor to
18678        readily check up whether the CAN bus is stuck at dominant or
18679        continuously disturbed and to monitor the Bus_Off recovery
18680        sequence. MCAN_ECR.REC is used to count these sequences.  From
18681        Frank Benkert.
18682
18683    * NXP Freescale i.MX RT Drivers:
18684
18685      - i.MXRT RTC:  Add support for the i.MXRT RTC.  This is code complete
18686        (with limited features and options) but untested. The HPRTC is
18687        functional.  However, if the LPSRTC is enabled, then there is a
18688        hang during LPSRTC initialization.  It appears that there is some
18689        problem in providing clocking and initializing the LPSRTC domain.
18690        From Gregory Nutt.
18691      - i.MXRT SNVS:  Add trivial SNVS from Rev 1. of the Reference Manual.
18692        From Gregory Nutt.
18693      - i.MXRT LSPI:  IMXRT1050 LPSPI register and bit definitions added.
18694        From Ivan Ucherdzhiev.
18695      - i.MXRT Serial: IMXRT1050 LPUART TERMIOS support added.  From Ivan
18696        Ucherdzhiev.
18697
18698    * NXP Freescale i.MX RT Boards:
18699
18700      - IMXRT1050-EVK:  Add knsh configuration. PROTECTED mode NSH build.
18701        From Gregory Nutt.
18702
18703    * NXP Freescale Kinetis:
18704
18705      - Kinetis: Add DMA support.  From David Sidrane.
18706
18707    * NXP Freescale Kinetis Drivers:
18708
18709      - Kinetis:  Use circular DMA as an option to augment the RX FIFOs in
18710        the Serial driver.  From David Sidrane.
18711
18712    * NXP LPC54xx:
18713
18714      - LPC54xx:  The LPC54608 can only run at a maximum frequency of
18715        180Mhz.  This configuration requires uses the clk_in, external
18716        crystal clock, to drive the PLL.  When that input was selected, the
18717        board bootup failed waiting for the PLL to lock.  After referring
18718        the driver from NXP, we should turn on power sources for the ext
18719        clock if system pll input select clk_in.  NOTE that the LPC54628
18720        did not require this step... perhaps because the system oscillator
18721        power was already enabled.  From kxjiang.
18722      - LC823450:  Add support for mpu and userspace LC823450-XGEVK: Add
18723        kostest PROTECTED build LC823450-XGEVK: Add knsh PROTECTED build
18724        From Masayuki Ishikawa.
18725
18726    * NXP LPC54xx Boards:
18727
18728      - Lpcxpresso-LPC54628:  Update lvgl board config to use the new
18729        version  From Alan Carvalho de Assis.
18730
18731    * On Semi LPC23450 Drivers:
18732
18733      - LC823450 Bluetooth:  Add lc823450 Bluetooth support.  From Masayuki
18734        Ishikawa.
18735      - LC823450 I2S:  Add tx start threshold to lc823450_i2s.c In
18736        addition, lc823450_i2s_send() now accepts byte-aligned stream.
18737        From Masayuki Ishikawa.
18738      - LC823450 SPI:  Add SPI flash driver for lc823450.  NOTE: Only bus
18739        accelerator mode is supported.  From Masayuki Ishikawa.
18740      - LC823450:  Change C-Buffer under-level control.  The under-level
18741        setting was changed from 1KB to 55KB.  In previous implementation,
18742        the setting can be changed by the tx threshold but it is fixed at
18743        startup. Also, check write size and adjust alignment if needed.
18744        From Masayuki Ishikawa.
18745
18746    * On Semi LPC23450 Boards:
18747
18748      - LC823450-XGEVK:  Add loopback test for digital MIC on lc823450 via
18749        i2schar driver.  From Masayuki Ishikawa.
18750      - LC823450-XGEVK:  Add lc832450 elf test.  From Masayuki Ishikawa.
18751      - LC823450-XGEVK:  Add posix_spawn configuration  From Masayuki
18752        Ishikawa.
18753
18754    * STMicro STM32:
18755
18756      - STM32 L4:  Add initial support to STM32L4+ chips  From Juha Niskanen.
18757      - STM32 H7:  A partial port to the STMicro STM32H7 by Simon Laube was
18758        brought in from the PX4 repositories.  Numerous changes were
18759        make(by Mateusz Szafone).  The basic STM32 H7 NSH configuration is
18760        now functional, thanks to Mateusz Szafoni.
18761
18762    * STMicro STM32 Drivers:
18763
18764      - STM32 F0, F1-F4, F7, L4, H7:  Added Single Wire Kconfig variable.
18765        From David Sidrane.
18766      - STM32 DAC:  Set OUTEN bit for DAC1CH2 and DAC2CH1 power/motor.
18767        Direction parameter is now int8 + add overload fault.  From Mateusz
18768        Szafoni.
18769      - STM32 F1-F4 ADC:  Allow multiple channels without DMA on
18770        STM32L15XX.  From Juha Niskanen.
18771      - STM32 F1:  Add FLASH register definitions for F1 parts that have
18772        dual banked FLASH.  From Dmitriy Linikov.
18773      - STM32 F2:  Added progmem interface support for STM32 F2 From
18774        Dmitriy Linikov.
18775      - STM32 F4:  Ports STM32 LTDC and STM32 DMA2D to use the
18776        framebuffer interface  From Marco Krahl.
18777      - STM32 F7:  This change ports Marco Krahl's STM32F4 framebuffer
18778        overlays for the LTDC and DMA2D into the STM32F7.  That driver was
18779        same as the STM32 F4 driver.  From Gregory Nutt.
18780      - STM32 F7:  Port input capture from stm32.  From Juha Niskanen.
18781      - STM32 F7 FLASH:  Ported the STM32 F2/F4 driver to the STM32 F7
18782        platform.  From Evgeniy Bobkov.
18783      - STM32 F7 SDMMC:  Add SDIO card support to SDMMC driver.  From
18784        Ramtin Amin.
18785      - STM32 F7 Serial:  Previous logic would invalidate the data cache as
18786        each byte was read from the DMA buffer.  This change adds logic to
18787        invalidate the data cache less frequently by monitoring the state
18788        of the Rx DMA buffer cache coherency and invalidating only regions
18789        as necessary.  From Evgeniy Bobkov.
18790      - STM32 F7:  Add up_stackcheck.c  From Daniel Agar.
18791      - STM32 F7:  Port the low-level PM functions to STM32 F7. From Juha
18792        Niskanen.
18793      - STM32 L4:  STM32L4 has fetchadd and testset  From Juha Niskanen.
18794      - STM32 L4: Added custom pin mapping for STM32L4X2XX processors.
18795        From Daniel P. Carvalho.
18796      - STM32 L4 FLASH:  stm32l4xrxx: allow board to override flash wait
18797        states  From Juha Niskanen.
18798      - STM32 L4:  Some updates to analog peripherals ADC, COMP and DFSDM
18799        for STM32L4XR  From Juha Niskanen.
18800      - STM32 L4:  Add getstatus and getperiod() method to the timer
18801        driver (includes coding standard changes made prior to commit)
18802        From Goden Freemans.
18803      - STM32 H7:  Remove old references to RXDMA.  Add configuration
18804      - STM32 H7:  Remove old references to RXDMA.  Add configuration
18805        option to select the Rx FIFO threshold level.  From Gregory Nutt.
18806
18807    * STMicro STM32 Boards:
18808
18809      - STM32F103 Minimum:  Add blackpill LED support  From Russ Webber.
18810      - Viewtool-STM32F107:  Add a TCP performance test using
18811        apps/examples/tcpblaster.  From Gregory Nutt.
18812      - Viewtool-STM32F107:  Add support for the MAX3421E to the
18813        Viewtool-STM32F107 board support  From Gregory Nutt.
18814      - STM32F334-DISCO:  Use a PID controller from libdsp in the BuckBoost
18815        driver. From Mateusz Szafoni.
18816      - STM32F4-Discovery:  Remove STM32F4BB dependence from RNDIS; add
18817        RAMDISK support.  From Alan Carvalho de Assis.
18818      - STM32F4-Discovery  Add board support for MAX7219 as numeric display
18819        controller.  From Alan Carvalho de Assis.
18820      - Olimex-STM32-P407:  Add kernel ELF (kelf) configuration. From
18821        Gregory Nutt.
18822      - Olimex-STM32-P407:  Add a kmodule configuration that can be used
18823        for testing installation of kernel modules in the protected build.
18824        From Gregory Nutt.
18825      - Olimex-STM32-P407:  Add logic to support initialization of the
18826        kernel module symbol table installed in the pass1/ directory during
18827        the application phase of the build.  The kmodule configuration
18828        appears to be fully functional.  From Gregory Nutt.
18829      - Olimex-STM32-P407:  Add board support for the DHTxx sensor.  From
18830        Ouss4.
18831      - STM32F476G-DISCO:  Add support for STM32F746G-disco board LCD.
18832        From Marcin Wyrwas.
18833      - STM32F476G-DISCO:  Add a configuration to build working nxdemo
18834        application  From Fanda.
18835      - STM32F476G-DISCO:  Add support for STM32F746G-disco board SDRAM
18836        Changed fb config to use SDRAM.  From Marcin Wyrwas.
18837      - STM32F476G-DISCO:  Add touchscreen support and a LittlevGL demo for
18838        STM32F746G-DISCO  From Marcin Wyrwas.
18839      - Nucleo-L476RG:  Add support for an external SPI-driven SD card on
18840        the Nucleo-L476RG.  From Gregory Nutt.
18841      - Nucleo-L476RG:  Add support for LSM303AGR and LSM6DSL sensors  From
18842        DisruptiveNL.
18843      - Nucleo-H743ZI:  Use Nucleo Virtual console as default console in
18844        the NSH configuration  From Mateusz Szafoni.
18845      - STM32L4R9-DISCO:  Add stm32l4r9ai-disco support.  From Juha Niskanen.
18846      - B-L475E-IOT01A:  Add timer driver support.  From Goden Freemans.
18847
18848    * Libraries/Header Files:
18849
18850      - libc endian:  Add support for endian.h. From Gregory Nutt.
18851      - libc net:   Add inet_aton()  From Juha Niskanen.
18852      - libc netdb:  Add getaddrinfo() and friends.  From Juha Niskanen.
18853      - libc termios:  Add lib_cfmakeraw.c  From Masayuki Ishikawa.
18854      - libc stdlib:  Add implementation of random() and srandom().  From
18855        Gregory Nutt.
18856      - libc unistd:  Add a crippled version of daemon().  From Gregory Nutt.
18857      - libdsp:  All floats with f-sufix libdsp: (1) add precision option
18858        for library, (2) add debug option for library and assertions in
18859        functions, (3) add current samples correction for SVM3, (4) add
18860        some motor control specific functions, (5) add basic speed
18861        observer, (6) fix phase shift in SMO observe, (7) add more logic to
18862        FOC.  From Mateusz Szafoni.
18863      - include/nuttx/compiler.h, include/poll.h:  Add logic to determine
18864        if the compiler supports anonymous structures and unions.  From
18865        Gregory Nutt.
18866      - include/nuttx/mutex.h:  Add inline wrapper functions to more
18867        clearly support semaphores when used as mutexs.  From QianWenfa.
18868      - include/nuttx/nuttx.h:  Added nuttx.h header file which is
18869        analogous to the linux.h header file.  Currently, it contains on
18870        the definition of the container_of() macro.  From zhuyanlin.
18871      - include/queue.h:  Add dq_tail marco  From zhuguangqing.
18872      - include/stdio.h:  Add prototypes for popen() and pclose().  Actual
18873        implementation is in apps/system/popen()  From Gregory Nutt.
18874      - include/sys/param.h:  Add a dummy sys/param.h header file.  This is
18875        not a standard file but is used by other systems and having the
18876        dummy file may minimize some porting efforts.  From Gregory Nutt.
18877
18878    * Tools:
18879
18880      - nuttx/tools/kconfig2html.c:  Due to new usage, tool needs to be
18881        able to handle configuration files with names other than Kconfig.
18882        From Gregory Nutt.
18883      - nuttx/tools/kconfig2html.c:  Update tool to handle tristate types.
18884        From Gregory Nutt.
18885      - nuttx/tools/Config.mk:  Add function CATFILE definition.  Currently
18886        only used in apps/builtin/Makefile.  From Gregory Nutt.
18887      - nuttx/tools/Config.mk:  Add the recursive wildcard function,
18888        RWILDCARD, to Config.mk.  From Gregory Nutt.
18889      - nuttx/tools/testbuild.sh:  Add an option to specify the location of
18890        nuttx directory.  From Gregory Nutt.
18891      - nuttx/tools/refresh.sh:  Add a --prompt option that will let you
18892        use --silent but will prompt before overwriting the original
18893        defconfig. From Gregory Nutt.
18894      - nuttx/tools/link.sh.  Update link.sh per suggestions by Mark so
18895        that it can be used with MSYS vs copydir.sh.  From Gregory Nutt.
18896      - nuttx/tools/mkexport.sh:  Save the System.map file and User.map
18897        file (if it exists) in the export package so that it can be used to
18898        extract addresses.  From Gregory Nutt.
18899      - nuttx/tools/mkexport.sh:  Save the name of the STRIP tool too.  From
18900        Gregory Nutt.
18901      - nuttx/tools/nxstyle.c:  Add capability to detect multiple blank
18902        lines. Single spacing required by the coding standard.  Also coding
18903        standard fixes to server .c files for problems found during testing
18904        nxstyle.  From Gregory Nutt.
18905      - apps/tools:  Add +x to mksymtab.sh.  From Masayuki Ishikawa.
18906      - apps/tools/define.sh and define.bat:  Move a copy of define.bat
18907        and sh from nuttx/tools to apps/tools so that they will be
18908        available for the import build.  From Gregory Nutt.
18909
18910    * Build System:
18911
18912      - Apps/ Build System.  The apps/ build system has undergone a major
18913        renovation to better support building applications as ELF modules.
18914        Module selections have changed from 'bool' to 'tristate' types.
18915        This means that building an ELF now is as simple setting the value
18916        to 'm'.  This effort required many changes, too many to summarize
18917        here.  The solution was contributed by Masayuki Ishikawa, Anchao
18918        An, and Xiang Xiao (and myself to a lesser extent).
18919      - NuttX/ Build System:  This change extends support for the two-pass
18920        build.  Its primary purpose is to incorporate source logic
18921        generated by applications into the kernel phase of the build.
18922        In the two pass build, the application logic is built during the
18923        first phase, pass 1.  In that phase, the application may generate
18924        and install source files in the pass1/directory.  The operating
18925        system is built during phase 2 of the build.  At that time, those
18926        source files in the pass1/ directory will be built and incorporated
18927        into the kernel address space.
18928        The primary purpose of the pass1/ directory is to such
18929        application-generated kernel symbol tables.  For an example of the
18930        use of this feature, look at
18931        apps/examples/module/drivers/Makefile.  Kernel symbol tables are
18932        needed to support kernel modules.  Of course, addition
18933        board-specific logic in, say, configs/<board>/src would have to be
18934        included to make use of the application-installed symbol tables.
18935        From Gregory Nutt.
18936      - Remove CONFIG_ARCH_CALIBRATION.  It is awkward to use and no longer
18937        necessary now that we have apps/examples/calib_udelay.  From
18938        Gregory Nutt.
18939      - Build System:  With recent changes to apps/ all configurations that
18940        build applications as modules must now also select
18941        CONFIG_APPS_LOADABLE.  From anchao.
18942      - Build System:  Add dynamic application loadable support.  From
18943        anchao.
18944      - Build System:  Add configuration CONFIG_ARCH_GNU_NO_WEAKFUNCTIONS
18945        to suppress use of weak functions.  Some gnu derived toolchains do
18946        not support weak symbols.  From Xiang Xiao.
18947      - Kconfig:  Move 'option modules' from NSH_FILE_APPS to
18948        BUILD_LOADABLE From anchao.
18949      - apps/ Build System:  Introduce a build system for loadable apps
18950        for nsh.  Add 'option modules' to NSH_FILE_APPS so that a user can
18951        change an application configuration to tristate (y/n/m)
18952      - apps/import:  Add Makefile.symtab which can be used to compile the
18953        dynamically created symbol table C file.  Also adds
18954        tools/mksymtab.sh.  From Gregory Nutt.
18955
18956    * NSH: apps/nshlib:
18957
18958      - apps/nshlib:  Add parsing support for back-slash quoted
18959        characters. Currently only implemented properly if
18960        CONFIG_NSH_ARGCAT is also selected.  This commit is in response to
18961        Bitbucket Issue 11 opened by Maciej W�jcik  From Gregory Nutt.
18962      - apps/nshlib:  Add inverted logic support in the form of 'if !
18963        <cmd>'  From  Beat K�ng.
18964      - apps/nshlib:  Expand reboot and poweroff commands to include a
18965        second, optional mode argument  From ligd.
18966      - apps/nshlib:  Add a force flag (-f) to mksmartfs command.  SmartFS
18967        will be formatted only if (1) the FLASH does not already hold a
18968        SmartFS, or (2) the force flag is set.  From Xiang Xiao.
18969      - apps/nshlib: NSH prompt string is now configurable. nsh> is
18970        still the default.  From Xiang Xiao.
18971      - apps/nshlib:  Add control-C support for terminating built-in and
18972        exec'ed file tasks.  From ligd.
18973      - apps/nshlib: Call BOARDIOC_FINALINIT after start-up script (or
18974        immediately after BOARIOC_INIT is there is no start-up script).
18975        From ligd.
18976      - apps/nshlib:  When using waitpid() to wait for a built-in
18977        application or a file application to exit.  Add the WUNTRACED
18978        options to so the the waitpid() call will also be awakened if the
18979        waited-for task is stopped as well.  From Gregory Nutt.
18980
18981    * NSH Builtins: apps/builtin:
18982
18983      - apps/builtin/Makefile.  This commit changes apps/builtin to search
18984        the registry recursively. By supporting directories, external
18985        projects can install the hooks into the registry and easily clean
18986        them up and reinstall if something needs to be updated.  Based on
18987        an idea from Anthony Merlino.  From Gregory Nutt.
18988
18989    * Examples/Tests: apps/examples:
18990
18991      - apps/examples/calib_udelay:  Add tool for calibrating
18992        CONFIG_BOARD_LOOPSPERMSEC  From Juha Niskanen.
18993      - apps/examples/dhtxx: Example for the DHTxx sensor.  From Ouss4.
18994      - apps/examples/dsptest:  Add unit test for Nuttx DSP library  From
18995        Mateusz Szafoni.
18996      - apps/examples/elf:  CROMFS and ROMFS configuration currently only
18997        usable in FLAT build.  Add configuration to use ELF objects on
18998        external media like SD card or USB drive instead.  From Gregory
18999        Nutt.
19000      - apps/examples/elf:  If the test ELF files are on media in
19001        removable media such as SD or USB FLASH, the wait until the media
19002        has been installed and initialized before starting the test.  From
19003        Gregory Nutt.
19004      - apps/examples/fb:  Adds example to test framebuffer overlay  From
19005        Marco Krahl.
19006      - apps/examples/gps:  Add GPS example using MINMEA lib  From Alan
19007        Carvalho de Assis.
19008      - apps/examples/i2sloop:  Add i2sloop application.  This application
19009        can be used to test I2S loopback like: ' nsh> i2sloop &'. From
19010        Masayuki Ishikawa.
19011      - apps/examples/lvgldemo:  Update LVGL to version 5.1.1  From Alan
19012        Carvalho de Assis.
19013      - apps/examples/module:  Add support for CROMFS and for stripping
19014        symbols from ELF module binaries.  From Gregory Nutt.
19015      - apps/examples/module:  Add support for automounting removable media.
19016        This involves a wait for the block driver to become available
19017        before performing the mount.  From Gregory Nutt.
19018      - apps/examples/module:  When built in the PROTECTED or KERNEL
19019        modes, the symbol table is not built by the application.  That is
19020        because the build will fail since the kernel module depends on
19021        internal OS symbols thar are not available to the application
19022        build.  With this change the examples does not attempt to build
19023        the kernel symbol table in these modes.  Instead it just copies
19024        the kernel module symbol table into the nuttx/pass1 directory
19025        where it can be build directly into the OS during pass2 of the
19026        build.  From Gregory Nutt.
19027      - apps/examples/ostest:  Add a small test for SIGSTOP, SIGCONT, and
19028        SIGKILL actions.  From Gregory Nutt.
19029      - apps/examples/popen:  Add a test of popen/pclose.  From Gregory
19030        Nutt.
19031      - apps/examples/powerled:  Add arch initialization. From Mateusz
19032        Szafoni.
19033      - apps/examples/tcpblaster:  Add TCP performance measurement test.
19034        From Gregory Nutt.
19035
19036    * System Utilities: apps/system
19037
19038      - apps/system/cle:  Usage improvements including command line
19039        history (taken from readline) and support for addition control
19040        characters. From mst.
19041      - apps/system/i2c:  Adapt to rename I2C_M_RESTART->i2C_M_START.
19042        I2C_M_NOSTOP should be in flags of first message in every
19043        write-read and write-write mesage sequence.  From Gregory Nutt.
19044      - apps/system/i2c: Allow registers besides 0x00 in the dev command.
19045        From Jakob Haufe.
19046      - apps/system/nsh:  Add logic to automatically register an
19047        application symbol table as part of NSH initialization.  From
19048        Masayuki Ishikawa.
19049      - apps/system/nsh:  The symbol table name and size variable names
19050        can now be configured.  From Gregory Nutt.
19051      - apps/system/nsh:  Move apps/examples/nsh to apps/system/nsh.  It
19052        has become so entrenched that it is hardly an example these days.
19053        May as well formalized it as a system task.  From Gregory Nutt.
19054      - apps/system/nxplayer:  Refactor nxplayer.c.  Apply
19055        netlib_parsehttpurl() and
19056        remove unnecessary usleep().  From Masayuki Ishikawa.
19057      - apps/system/nxplayer:  Release buffer before session and release
19058        semaphore in nxplayer_setvolume system/nxplayer/nxplayer.c:
19059        Remove & for apb->samp reference. It is already a pointer.  From Xiang Xiao.
19060      - system/nxplayer/nxplayer.c:  Add playraw command  From ZhongAn.
19061      - apps/system/nxrecorder:  Add nxrecorder application  From ZhongAn.
19062      - apps/system/popen:  Add an implementation of the standard popen()
19063        and pclose() OS interfaces.  These are implemented as applications
19064        vs. part of the OS because they depend on NSH.  Untested on
19065        initial commit.  From Gregory Nutt.
19066      - apps/system/system and popen:  Adapt so that these can be used in
19067        the KERNEL build mode.  In this case, simply replace task_spawn()
19068        with posix_spawn().  This depends on the existence of some
19069        environment where /bin/sh exists and can be used to execute one
19070        NSH command.  For the case of system(), this change was more
19071        complete because it previously used task_create().  Now it uses
19072        either task_spawn() or posix_spawn(), depending upon the
19073        configuration.  From Gregory Nutt.
19074      - apps/system/taskset:  Add taskset command for SMP systems.  This
19075        command can be used to retrieve or set a process's CPU affinity.
19076        For example,
19077
19078        nsh> taskset -p 4
19079        pid 4's current affinity mask: 2
19080
19081        nsh> taskset -p 3 4
19082        pid 4's current affinity mask: 3
19083
19084        nsh> taskset -p 1 busyloop &
19085
19086        From Masayuki Ishikawa.
19087      - apps/system/zmodem:  Support -p <path> for rz to change the folder
19088        for the received file.  Switch debug output from printf to
19089        syslog.  Send the next packet for ZME_ACK in ZMS_SENDING to avoid
19090        rz on the host side stuck make send work reliable even without
19091        hardware flow control.  From Xiang Xiao.
19092
19093    * Network Utilities: apps/netutils:
19094
19095      - apps/netutils/dhcpc:  Activates BINDTODEVICE if available.  From
19096        Sebastien Lorquet.
19097
19098    * Wireless Utilities: apps/wireless:
19099
19100      - apps/wireless/i8sak:  i8sak daemon now gets shutdown if not in use.
19101        Previously, once the i8sak daemon was started, by running any
19102        command, it would stay running. This means that if you want to use
19103        i8sak to setup your network, but then want exclusive access to the
19104        char device, or network device, you have to manually shutdown the
19105        i8sak daemon.  Now the daemon stays active as long as required to
19106        finish any commands, or stays open if a new command keeps it on,
19107        but when all work is finished, it shuts down.  From Anthony Merlino.
19108
19109    * Filesystem Utilities: apps/fsutils:
19110
19111      - mkfatfs:  Clean up some name BS_ and MBR_ refer to the same record
19112        and should use the same naming (MBR_).  From Gregory Nutt.
19113      - mkfatfs:  Add definitions for the FAT boot record (FBR).  From
19114        Gregory Nutt.
19115      - mksmartfs:  Add a check to see if the SmartFS is already
19116        formatted.  From Xiang Xiao.
19117
19118    * Graphic Utilities:  apps/graphics:
19119
19120      - graphics/littlevg/:  Update LVGL to version 5.1.1  From Alan
19121        Carvalho de Assis.
19122
19123    * Test Utilities:  apps/testing:
19124
19125    - testing/unity:  Add Unity - unit testing library from
19126        ThrowTheSwitch.org. From Mateusz Szafoni.
19127
19128Bugfixes.  Only the most critical bugfixes are listed here (see the
19129ChangeLog for the complete list of bugfixes and for additional, more
19130detailed bugfix information):
19131
19132    * Core OS:
19133
19134      - Signals:  Signal handlers maybe run with interrupts enabled or
19135        disabled, depending on how the task the received the signal was
19136        blocked. (i.e.: If sem_wait() is called, then we disable
19137        interrupts, then block the currently running task).  This could be
19138        dangerous, because user code would be running with interrupts
19139        disabled.
19140        This change forces interrupts to be enabled in up_sigdeliver()
19141        before executing the signal handler calling up_irq_enable()
19142        explicitly.  This is safe because, when we return to normal
19143        execution, interrupts will be restored to their previous state when
19144        the signal handler returns.  From Gregory Nutt (Based on a
19145        recommendation by Mark Shulte).
19146      - Signals:  Lock the scheduler while while killing the children so
19147        that we do not lose priority and let the task group continue to
19148        run in an indeterminate state.  From Gregory Nutt.
19149      - Groups:  Fix a deadlock when loading an ELF  From Masayuki Ishikawa.
19150      - Groups:  In some circumstances, group_killchildren() could have
19151        called pthread_cancel() to kill a task.  Also, the behavior would
19152        not be as expected if a pthread had cancellation disabled.  From Gregory Nutt.
19153      - Posix Message Queues: mq_notify() fix - only part of struct copied
19154        to internal structure.  As source address the address of the struct
19155        member sigev_value was used, and it is not located the start of the
19156        struct. This leads to invalid data being copied to internal
19157        structure.  Both source and destination should be of type struct
19158        sigevent* .  From Simon Liedl.
19159      - vfork():  vfork operation needs to allocate and copy the task
19160        argument too.  Also correction of the address correction cannot
19161        depend on the stack pointer since it is not available in all
19162        architectures.  Rather calculate the offset from the stack
19163        allocation pointer  From Xiang Xiao.
19164      - IRQ Dispatch:  Ensure vector never points to NULL since interrupt
19165        may happen before irq_initialize()  From Xiang Xiao.
19166      - Work Queue:  workqueues don't need set global data to zero since
19167        .bss is cleared automatically.  Removing this unnecessary
19168        initialization also avoids the loss the work items queued before
19169        initialization.  From ligd.
19170      - Work Queue:  Remove work queue polling delay to simplify the code
19171        logic and save the power.  From xuanlin.
19172      - syslog: Fix syslog crash on 64bit simulation. From anchao.
19173      - Pipes: Write to a pipe when there are no readers from the pipe
19174        should return -EPIPE.  From ligd.
19175      - System Calls:  Fix 6th parameter type of posix_spawnp in
19176        syscall.csv From Masayuki Ishikawa.
19177      - System Calls:  Remove unused SYS_nnetsocket from syscall.h.  Because
19178        SYS_nnetsocket is not implemented so far, it should be removed so
19179        that SYS_prctl can work correctly.  From Masayuki Ishikawa.
19180      - Binary Loader:  Refactor binfmt_exec.c.   This change also fixes an
19181        argv issue for CONFIG_SCHED_ONEXIT=n or CONFIG_SCHED_HAVE_PARENT=n
19182        From Masayuki Ishikawa.
19183      - Binary Loader:  Re-architect the way that loadable ELF or NXFLAT
19184        modules are unloaded.  Memory resources must be recovered when the
19185        task loaded into memory exits.  The original implementation used
19186        the death-of-child SIGCHLD signal to perform the unload.  There are
19187        several problems with this:  It is overly complex, it requires that
19188        the parent task stay resident while the loaded task runs, and it
19189        has fatal logic flaws in the protected and kernel model builds
19190        because the user signal handler attempts to run in the kernel
19191        address space. This corrects the issue using a mindlessly simply
19192        BINFMT callback when the task exits.  From Gregory Nutt.
19193      - ELF Binary Loader:  Set priority level to default if parent has no
19194        priority.  From anchao.
19195
19196    * File System/Block and MTD Drivers:
19197
19198      - Auto-mounter:  Ignore return values from work_cancel(). From
19199        Gregory Nutt.
19200      - SmartFS:  Fixed filesystem corruption when writing to small file
19201        after open(... O_APPEND).  From Dmitriy Linikov.
19202      - SmartFS stat():  A previous change added support for checking if a
19203        descriptor is a socket in fstat().' but it changed sys/stat.h in
19204        way that breaks smartfs file-type stat flags. CROMFS is similarly
19205        broken, as tools/gencromfs.c was not updated to match the
19206        sys/stat.h changes.  This commit fixes both issues.  It probably is
19207        not a good idea to use NuttX sys/stat.h bit-field values directly
19208        in stored structure of filesystem.  From Jussi Kivilinna.
19209      - HostFS:  Update duplicated definitions in HOSTFS that must match
19210        NuttX values.  From ligd.
19211      - HostFS: Ensure f_type is equal to HOSTFS_MAGIC.  From Xiang Xiao.
19212      - ROMFS:  Make romfs_devread32 more portable  From anchao.
19213      - TmpFS:  Correct logic in tmpfs_ioctl() that extracts the priv state
19214        structure from the file system structures.  It was not getting the
19215        right value and causing mmap() to fail.  Noted by Jesse. From
19216        Gregory Nutt.
19217      - ProcFS network statistics:  Was not handling the output correct for
19218        the case of an IEEE 802.11 device.  From Gregory Nutt.
19219      - ProcFS IRQs:  Fix occasional computation error when fracpart >=
19220        1000  From Xiang Xiao.
19221
19222    * Networking/Network Drivers:
19223
19224      - TAP/TUN: Fixed custom tun devname formatting.  From Dmitriy Linikov.
19225      - Network Drivers:  This change attempts remove some long standard
19226        confusion in naming and some actual problems that result from the
19227        naming confusion.  The basic problem is the standard MTU does not
19228        include the size of the Ethernet header.  For clarity, I changed
19229        the naming of most things called MTU to PKTSIZE.  For example,
19230        CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE.  This makes the
19231        user interface a little hostile.  People think of an MTU of 1500
19232        bytes, but the corresponding packet is really 1514 bytes (including
19233        the 14 byte Ethernet header).  A more friendly solution would
19234        configure the MTU (as before), but then derive the packet buffer
19235        size by adding the MAC header length.  Instead, we define the
19236        packet buffer size then derive the MTU.
19237        The MTU is not common currency in networking.  On the wire, the
19238        only real issue is the MSS which is derived from MTU by subtracting
19239        the IP header and TCP header sizes (for the case of TCP).  Now it
19240        is derived for the PKTSIZE by subtracting the IP header, the TCP
19241        header, and the MAC header sizes.  So we should be all good and
19242        without the recurring 14 byte error in MTU's and MSS's.  From
19243        Gregory Nutt.
19244      - netdev:  Fix.. Too many calls to net_unlock()  From Gregory Nutt.
19245      - IPv6:  There are many different checks for IPv6 multicast
19246        addresses. Most of the checks are different.  RFC 3513 clearly
19247        specifies how to detect an IPv6 multicast address:  they should
19248        begin with 0xffxx.  I did not change some of the checks in
19249        ipv6_input.c, however.  In that file, the comments indicate that
19250        the code should only pick of certain multicast address that begin
19251        with 0xff02.  From Gregory Nutt.
19252      - ARP:  Fix some backward logic in an if condition.  From Gregory
19253        Nutt.
19254      - TCP Re-assembly:  Rename CONFIG_TCP_REASSEMBLY to
19255        CONFIG_IPv4_REASSEMBLY.  Add some fixes to get a clean compile with
19256        CONFIG_IPv4_REASSEMBLY enabled.  There are several problems with
19257        the current implementation:  It is untested (and depends on
19258        CONFIG_EXPERMIMENTAL).  It uses some Ethernet specific definitions
19259        (and depends on CONFIG_NET_ETHERNET).  There is only a single
19260        reassembly buffer.  The last two issues prevent use of this feature
19261        in any context where IPv4 packets may be reassembled for multiple
19262        network devices concurrently).  From Gregory Nutt.
19263      - TCP:  Set the default TCP MSS to the value required by RFC 879 and
19264        never change it under any circumstance unless the remote host
19265        requests a larger MSS via an option the TCP header.  From Gregory
19266        Nutt.
19267      - TCP:  Fix a deadlock condition that can occur when (1) all network
19268        logic runs on a single work queue, (1) TCP write buffering is
19269        enabled, and (2) we run out of IOBs.  In this case, the TCP write
19270        buffering logic was blocking on iob_alloc() with the network
19271        locked.  Since the network was locked, the device driver polls that
19272        would provide take the write buffer data and release the IOBs could
19273        not execute.  This fixes the problem by unlocking the network lock
19274        while waiting for the IOBs.  From Gregory Nutt.
19275      - TCP: Remove g_netstats.tcp.syndrop++ from tcp_data_event()  From
19276        Masayuki Ishikawa.
19277      - TCP Monitor:  Fix net unlock issue when tcp close.  This bug could
19278        leave the net locked.  From zhangyuan7.
19279      - UDP:  When sending a broadcast (or multicast) packet do not attempt
19280        to look up the device by the destination IP address.  Rather, use
19281        the locally bound address for these cases to select the correct
19282        network device.  From Gregory Nutt.
19283      - UDP:  Restore some legacy behavior that was lost with the
19284        implementation of CONFIG_NET_UDP_BINDTODEVICE:  If no device has a
19285        local address when the broadcast packet is sent and the UDP socket
19286        is not bound to a device, there select some arbitrary device.  This
19287        is certainly lunacy in the case where there are multiple network
19288        devices registered because the wrong device will probably be
19289        returned.  It works find, however, for the legacy case where only a
19290        single network device is registered.  From Gregory Nutt.
19291      - UDP:  Fix for network byte-order issue when checking if an address
19292        is a multicast address.  From Jake Choy.
19293      - USRSOCK:  Correct of semaphore usage issues.  From Gregory Nutt.
19294      - USRSOCK:  Fix re-definitions of struct iovec.  From ligd.
19295      - ICMP/ICMPv6 Connection:  Change the type of id in
19296        icmpv[6]_findconn to uint16_t  From Xiang Xiao.
19297      - ICMP/ICMPv6:  Fix failure to poll ICMP socket issue.  From
19298        dongjianli.
19299
19300    * Wireless/Wireless Drivers:
19301
19302      - XBee:  Fixes issue with timeouts.  Timeouts were in ticks but
19303        should have been in ms.  This caused false triggers of timeout
19304        causing redundant packets, etc.  From Anthony Merlino.
19305      - BCM43xx:  Add missing logic to the BCM43xx IEEE 802.11 driver to
19306        poll for more Tx data after the last transfer completes.  From
19307        Gregory Nutt.
19308      - BCM43xx:  Bring in some fixes from the 'Haywire' branch.  From
19309        Ramtin Amin.
19310
19311    * Common Drivers:
19312
19313      - Audio:  Fix compile error in i2schar.c (CONFIG_DEBUG_ASSERTIONS=y)
19314        From Masayuki Ishikawa.
19315      - Audio I2S:  Fix bad NULL pointer check  From Juha Niskanen.
19316      - Input:  Fixed FT5x06 driver to correctly close (previously it
19317        unregistered interrupt handler during close).  From Marcin Wyrwas.
19318      - MMC/SD:  Fix an error that was causing SDIO multiple block
19319        transfers from achieving full performance.  From Bob Feretich.
19320      - Sensors:  Increases SPI frequency in MAX6675 from 400Khz to 4MHz.
19321        From Alan Carvalho de Assis.
19322      - Sensors:  Remove comment references to touchscreens from ADXL345
19323        driver. From Russ Webber.
19324      - Serial: Don't overwrite nwritten unconditionally on UART write
19325        failure.  From Xiang Xiao.
19326      - Serial DMA:  Move head/tail pointer reset to uart_recvchars_dma
19327        since dma may be still transferring in the background.  From Xiang
19328        Xiao.
19329      - Serial DMA:  In DMA mode, the use of uart_disablexinit() is
19330        insufficient to protect a critical section.
19331        enter/leave_critical_section() must be used in those cases if
19332        CONFIG_SERIAL_DMA=y  From Xiang Xiao.
19333      - Serial DMA: Fix typo error in uart_recvchars_dma() From Xiang Xiao.
19334      - 16550 UART: u16550_txempty() should check UART_LSR_TEMT to avoid
19335        some data left in the transmit FIFO  From Xiang Xiao.
19336
19337    * ARMv7-A:
19338
19339      - ARMv7-A (and i.MX6):  Add support for per-CPU IRQ and FIQ interrupt
19340        stacks (bugfix).  Add support so that up_assert will print the
19341        correct interrupt stack on an assertion (FIQ stack is still not
19342        printed).  From Gregory Nutt.
19343
19344    * ARMv7-R:
19345
19346      - ARMv7-R:  Fix some wrong configuration of program status
19347        register.  PSR_E_BIT bit should be set for big endian system.
19348        PSR_A_BIT bis is set automatically as arm cortex-r4 reference
19349        manual 3.7.4. So we don't need to set this bit.  From EunBong Song.
19350      - ARMv7-R: Fix some wrong MPU register definition. Change
19351        MPU_RBAR_ADDR_MASK and MPU_RACR_TEX_SHIFT mask as arm cortex-r4
19352        reference manual.  Region Base Address Register 0-4 bits are
19353        reserved.  MPU Region Access control register type 3-5 bits.  From
19354        EunBong Song.
19355
19356    * ARMv7-M:
19357
19358      - ARMv7-M, Cortex F7:  Add a configuration to enable workaround for
19359        r0p1 Errata 837070: Increasing priority using write to BASEPRI does
19360        not take effect immediately.  This update is required to be
19361        serialized to the instruction stream meaning that after this update
19362        completes, it takes effect immediately and no exceptions of lower
19363        priority than the new boosted priority can pre-empt execution.
19364        Because of this erratum, the priority boosting does not take place
19365        immediately, allowing the instruction after the MSR to be
19366        interrupted by an exception of lower priority than the new boosted
19367        priority. This effect is only limited to the next instruction.
19368        Subsequent instructions are guaranteed to see the new boosted
19369        priority. This was raised in Bitbucket issue 113 from Vadzim
19370        Dambrouski.  From Gregory Nutt.
19371      - ARMv7-M:  MPU: mpu_log2regionceil needs take into account the
19372        offset too  From Xiang Xiao.
19373      - ARMv7-M MPU:  The prototype of mpu_log2regionfloor() changed; an
19374        additional parameter was added.  However, none of the calls to
19375        mpu_log2regionfloor() were updated to pass the new, additional
19376        parameter.  From Gregory Nutt.
19377
19378    * Infineon XMC4xxx Drivers:
19379
19380      - XMC4 SPI:  XMC4 SPI was working only for the first transfer  From
19381        Alan Carvalho de Assis.
19382
19383    * Microchip/Atmel SAMv7 Drivers:
19384
19385      - SAMv7 MCAN: Correct an error in the BUS_OFF reporting.  In case of
19386        BUS_OFF the old implementation was leading to a package storm.  Now
19387        it reports the error condition BUS_OFF only once.  From Frank
19388        Benkert.
19389
19390    * NXP/Freescale LPC43xx Drivers:
19391
19392      - LPC43xx CAN:  Fix lpc43 CAN configuration.  Configuration settings
19393        were used and documented in README.txt files, but never in any
19394        Kconfig file.  From Gregory Nutt.
19395      - LPC43xx:  Make WWDT usable again.  LPC43xx WWDT driver was not
19396        updated when irq_dispatch grew an argument parameter.  Also fixes
19397        two typos and a naming inconsistency (WWDT vs. WWDG).  From Jakob
19398        Haufe.
19399
19400    * NXP/Freescale Kinetis Drivers:
19401
19402      - kinetis:  USB0 fix interrupt storm on error.  The ERROR bit of
19403        USBx_ISTAT needed to be cleared once an error occurs.  From David
19404        Sidrane.
19405      - Kinetis:  SDHC fix SDIO driver so that DMA works. There were 2
19406        problems. The first was that the interrupt did test DINT and raise
19407        a completion events. But since DINT is just an indication of DMA
19408        completion, TC is a valid way to determine that the transfer is
19409        complete.  The second problem is that Software Reset For DAT Line
19410        SDHC_SYSCTL[RSTD] clears the bits 24-0 in SDHC_PROTO this looses
19411        the wide bus setting DTW  From David Sidrane.
19412      - Kinetis:  (1) PIT add Liftime and Chaining, (2) flexcan fix
19413        duplicate line and ordering, (3) kinetis_lowput.c LPUART data
19414        format with parity fix.  The 9-bit data mode is typically used with
19415        parity to allow eight bits of data plus the parity, (4) lowputc
19416        LPUART_BAUD_INIT has to be defined.  Build fails with test case
19417        enable LPUART0 and make UART1 console.  If HAVE_LPUART_DEVICE is
19418        defined then LPUART_BAUD_INIT has to be defined even if the LPUART
19419        is not the console  From David Sidrane.
19420      - Kinetis:  I2C ensure timeout on bus error.  The code had a dead
19421        wait on I2C_S_BUSY. Noise on the bus would cause the driver to
19422        hang.  Add timeout on invalid states of I2C_S_BUSY to allow the
19423        upper layers do deal with restart or abort.  From David Sidrane.
19424
19425    * NXP i.MXRT Drivers:
19426
19427      - i.MXRT Ethernet:  I finally got the Ethernet CRC32 to work properly
19428        after the FAE pointed me in the right direction:  (1) Added CRC32
19429        functions for multicast address filtering, (2) Do not reset PHY
19430        settings when doing an ifup, (2) Use chip's unique id as the device
19431        MAC, and (4) Enable discard enet frames with errors at PHY layer.
19432        From Jake Choy.
19433
19434    * On Semi LC823450 Boards:
19435
19436      - LC823450-XGEVK:  Fix parallel build on lc823450-xgevk.  This change
19437        fixes an archive file (*.a) corruption by locking $(TOPDIR).
19438        Please note that locking the current directory is insufficient
19439        because some archive files such as libapps.a are specified with
19440        absolute path.  From Masayuki Ishikawa.
19441      - LC823450-XGEVK: Change IOB related params for rndis.  Since TCP
19442        flow control scheme was changed, HTTP audio streaming has not been
19443        working. These IOB params are not optimized but HTTP audio
19444        streaming now works.  From Masayuki Ishikawa.
19445
19446    * STMicro STM32:
19447
19448      - STM32 F7:  Fix compile error caused by intentional use of fall
19449        through From Daniel Agar.
19450
19451    * STMicro STM32 Drivers:
19452
19453      - STM32 F1-F4:  Port Bob Feritich's change to STM32 F2 and F4 which
19454        appear to have identical SD support and I/O compensation
19455        requirements.
19456      - STM32 F1-F4, STM32 F7, and STM32 L4:  The STM32 RTC driver was
19457        being selected by the global CONFIG_RTC option.  That is in
19458        correct.  For example, if you want to disabled the STM32 RTC and
19459        use an external RTC you cannot because the external RTC also
19460        depends on the global CONFIG_RTC.  The solution is to add a new
19461        CONFIG_STM32xx_RTC configuration option the permits to you select
19462        or deselect the STM32 RTC but still be able to selecte the external
19463        RTC.  From Gregory Nutt.
19464      - STM32 F3 I2C:  Fix compile error with I2C reset.  From Juha
19465        Niskanen.
19466      - STM32 F7 Serial:  Fix ioctl TIOCSSINGLEWIRE The TRM notes that UE
19467        must be disabled in order to write HDSEL in USART_CR3. This was not
19468        being done, so calls to TIOCSSINGLEWIRE were silently failing.
19469        This change checks the state of UE in USART_CR1, clears the UE bit
19470        before writing HDSEL, then re-enables it if neccesary.  From Kurt
19471        Kiefer.
19472      - STM32 F7 DMA:  DMA macros did not account for the increase from 8
19473        to 16 DMA channels.  From Gregory Nutt.
19474      - STM32 F7 I2C:  I2C reset Configure I2C pins as GPIO output.  Pins
19475        were reset to inputs in the deinit(). This resets them to outputs.
19476        From David Sidrane.
19477      - STM32 F7:  All of the SDMMC pins were set to 50 MHz, but not the
19478        clock. This sets the clock to 50 MHz also.  This combined with
19479        turning on I/O compensation makes intermittent failures go away.
19480        From Bob Feritich.
19481      - STM32 F7:  Port Bob Feritich's change to SDMMC2 and to all other
19482        STM32 F7 architectures.  Also add a configuration option to
19483        automatically enable I/O compensation.  From Gregory Nutt.
19484      - STM32 F7 SDMMC:  Fix data timeout errors with multi-block
19485        transfers.  From Bob Feretich.
19486      - STM32 L4:  Corrects some mistakes in pin definitions for the
19487        STM32 L4 family.  According to datasheet of STM32L496xx, STM32L475xx
19488        and STM32L443XX the AF2 of PE14 is  TIM1_BKIN2 not TIM2_BKIN.  From
19489        Daniel Pereira Carvalho.
19490      - STM32 L4:  Avoid using redundant CONFIG_STM32L4_STM32L4X2.  This is
19491        almost always same as CONFIG_STM32L4_STM32L4X3. Avoid duplication
19492        to reduce macro clutter.  This patch limits
19493        CONFIG_STM32L4_STM32L4X2 usage to dependency tracking and pinmap.
19494        Also enable ADC for CONFIG_STM32L4_STM32L4X5 (untested, but same
19495        RM).  From Juha Niskanen.
19496      - STM32 H7 Serial: don't include stm32_dma.h  From raiden00pl.
19497
19498    * STMicro STM32 Boards:
19499
19500      - STM32F4-Discovery:  Fix pca9635pw LED driver compilation on
19501        STM32F4-Discovery.  From Alan Carvalho de Assis.
19502      - STM32F4-Discovery:  Krassimir Cheshmedzhiev claims that sys/types.h
19503        needs to be included in the RGB LED file to avoid undeclared 'OK'
19504        From Gregory Nutt.
19505      - STM32F4-Discovery:  Missing EXTERN(_vectors) in linker script.
19506        From Gregory Nutt.
19507      - Nucleo-L422KC:  Fix RAM size; STM31L4x2xx has only 64Kb of RAM.
19508        Remove references to I2C and SDIO:  There is no I2C2 or SDIO on the
19509        STM32F4x2xx.  From Daniel P. Carvalho.
19510      - Nucleo-L422KC:  Fix stm32_userleds.  After change LD2 to LD3 in
19511        board.h stm32_userleds.c was broken.  From Daniel P. Carvalho.
19512      - Nucleo-L422KC:  Fix TIMx clock configuration.  Also removes
19513        definitions related to timers not available in the STM32L432KC.
19514        From Daniel Pereira Carvalho.
19515      - Nucleo-L452RE:  Fix TIMx clock configuration.  This is cloned from
19516        similar change to the Nucleo-L422KC.  Also fixes DAC build
19517        failure.  From Juha Niskanen.
19518      - B-L475E-IOT01A:  Fix copy paste errors in names:
19519        stm32_bringup->stm32l4_bringup.  Noted by Freemans Goden.  From
19520        Gregory Nutt.
19521      - STM32VL-Discovery:  Changed the status LED to be the green one as
19522        mentioned in the README file. Removed the global array for buttons
19523        and replace it with the only button. Improve defconfig for the nsh
19524        configuration.  From Ouss4.
19525
19526    * C Library/Header Files:
19527
19528      - libc audio:  Call nxsem_destroy in apb_free.  From Xiang Xiao.
19529      - libc netdb:  The 'port' argument to the static alloc_ai() function
19530        is always in network byte order.  However, that static function was
19531        still calling HTONS() on the port, incorrectly converting it back
19532        to host byte order.  From Gregory Nutt.
19533      - libc netdb: Fix a link error in lib_gethostbynamer.c with protected
19534        build.  NOTE: g_lo_ipv4addr also exists in
19535        net/loopback/lo_globals.c which can be linked with kernel build
19536        only. From Masayuki Ishikawa.
19537      - libc unistd :  Fix backward conditional logic in Kconfig.  From
19538        Gregory Nutt.
19539      - include/nuttx/compiler.h:  Fix warning: __cplusplus is not defined.
19540        Some gcc derived compiler do not define __cplusplus  From Xiang
19541        Xiao.
19542      - include/nuttx/fs/binfs.h:  Fix warning:  Type defaults to 'int' in
19543        declaration of 'mountpt_operations'  From Xiang Xiao.
19544      - include/nuttx/net/ethernet.h:  Remove CONFIG_NET_ETHERNET guard
19545        From Xiang Xiao.
19546      - include/nuttx/semaphore.h: don't include nuttx/fs/fs.h.  (1) Avoid
19547        nested loops if CONFIG_SIG_EVTHREAD enabled, (2) semaphore.h
19548        doesn't depends on fs.h.  From Gregory Nutt.
19549      - include/crc64.h:  Fix warning: integer constant is too large for
19550        its type  From Xiang Xiao.
19551      - include/limits.h and include/sys/types.h:  Fix warning about
19552        'SIZE_MAX' redefined.  include/nuttx/usb/audio.h: Fix warnings due
19553        to '-' used whete '_' intended.  From Xiang Xiao.
19554      - include/spawn.h:  Fix posix_spawnattr_destroy warning:  'the
19555        address of attr will always evaluate as true'  From Xiang Xiao.
19556      - include/sys/types:  Move wint_t and wctype_t from wchar.h to
19557        types.h.  This change is compatible as before since wchar.h
19558        include types.h indirectly.  This fixes a compilation error with
19559        newlib's math.h:  'unknown type name wint_t'  From Xiang Xiao.
19560      - apps/include/netutils/netlib.h:  Eliminate a warning about
19561        AF_UNSPEC and AF_INET not defined.  From Gregory Nutt.
19562
19563    * Build System:
19564
19565      - Build System:  Fix parallel build in making context.  This change
19566        avoids running $(MKSYSCALL) and .context in parallel and ensures
19567        that tools/mksyscall is built before it is actually used.  From
19568        Masayuki Ishikawa.
19569      - Kconfig files:  Fix several errors noted by Alex Denisov in
19570        Bitbucket issue 115.  From Gregory Nutt.
19571      - apps Build System:  Fix an error when building apps/ without
19572        nuttx/, using only the NuttX export package and assuming that the
19573        nuttx/ directory in not even present.  In this case, the problem
19574        fixed where the apps/Make.defs file was selecting tools from the
19575        /tools directory which does not exist because TOPDIR=apps/import.
19576        Instead, for this build case, I have not thought of any option but
19577        to duplicate scripts as necessary in the apps/tools directory.
19578        Also added a top-level target to compile the symbol table.  Misc
19579        fixes: quoting in scripts, some errors in script syntax.  From
19580        Gregory Nutt.
19581      - apps/Application.mk:  If a loadable module is generated the we
19582        need to add logic to remove the loadable module in the 'make
19583        clean' logic.  From Gregory Nutt.
19584
19585    * Tools:
19586
19587      - nuttx/tools/Makefile.unix:  Was not cleaning up export directory
19588        if it was left from a failed export.  From Gregory Nutt.
19589      - apps/tools: Fix an error in mksymtab.sh  From Masayuki Ishikawa.
19590
19591    * NSH Library: apps/nshlib:
19592
19593      - apps/nshlib:  Fix 'while' and 'until' loop condition The loop
19594        condition logic was inverted:  'while true; do echo "test"; done'
19595        would exit immediately, while using 'until' would stay in the
19596        loop.  This is the opposite of how it is supposed to work.  The
19597        reason is that 'state' was set wrong because 'whilematch' is a
19598        bool.  From Beat K�ng.
19599      - apps/nshlib:  I was able to cause an assertion with some typos in
19600        testing the 'fi' command.  Not an important thing, but this will
19601        protect against the assertion.  From Gregory Nutt.
19602      - apps/nshlib:  Increase the default configuration for the maximum
19603        number of command line arguments to 7 (CONFIG_NSH_MAXARGUMENTS).
19604        This is needed for 'mount' with the -o option.  From Xiang Xiao.
19605      - apps/nshlib:  Do not dereference NULL 'pstate' in nsh_console.c.
19606        From Juha Niskanen.
19607
19608    * Examples/Tests: apps/examples:
19609
19610      - apps/examples:  Remove illegal calls into OS to initialize BINFMT
19611        support.  This must be moved to the board initialization logic
19612        within the OS. From anchao.
19613      - apps/examples/nettest:  Fix typo: NET_LOOPBACK ->
19614        CONFIG_NET_LOOPBACK nettest: Fix compilation error. Should enable
19615        NET_SETSOCKOPT for preventing compilation error.  From EunBong Song.
19616      - apps/examples/ostest:  Signal handling tests should use the same
19617        configurable stack size as used in other tests, not
19618        PTHREAD_STACK_DEFAULT.  From Gregory Nutt.
19619      - apps/examples/ostest:  Attempt to make the nested signal test
19620        compatible with the suspend/resume test.  Some signals cannot be
19621        caught when the suspend/resume configuration is in place.  From
19622        Gregory Nutt.
19623      - apps/examples/smps:  Fixes in some printf and in Kconfig. From
19624        Mateusz Szafoni.
19625
19626    * System Utilities: apps/system:
19627
19628      - apps/system/cu: (1) Protect from possible re-definition of signal
19629        values, (2) Fix CU ctrl-C hand when remote core hang.  From ligd.
19630      - apps/system/i2c:  Fix a backward comparison in i2c_main.c.  Noted
19631        by Jakob Haufe.  From Gregory Nutt.
19632      - apps/system/nsh: Fix compile errors with
19633        CONFIG_EXAMPLES_NSH_SYMTAB=y.  From Masayuki Ishikawa.
19634      - apps/system/ping and ping6:  Send ID and seqno in network byte
19635        order.  From Xiang Xiao.
19636      - apps/system/ping and ping6:  Change dependency in ping and ping6
19637        Kconfig.  These may be implemented in users sockets and, hence,
19638        may need to be available even if ICMP and ICMPv6 sockets are not
19639        support.  From Xiang Xiao.
19640      - apps/system/system:  Add 'const' to make function prototype
19641        compatible with OpenGroup.org requirement  From Xiang Xiao.
19642      - apps/system/zmodem:  Fix error "sz_main.o: No such file or
19643        directory"  From Xiang Xiao.
19644
19645    * Network Utilities: apps/netutils:
19646
19647      - apps/netutils/ftpc:  Fix handling of url-encoded strings  From
19648        Dmitriy Linikov.
19649      - apps/netutils/ping:  Remove unsupported ping.  netutils/ping is not
19650        supported anymore.  It's better to remove this folder for
19651        preventing confusing.  ping is supported by system/ping.  From
19652        EunBong Song.
19653
19654    * Wireless Utilities: apps/wireless:
19655
19656      - apps/wireless/wapi:  Remove dependency on CONFIG_EXPERIMENTAL from
19657        Kconfig  From Gregory Nutt.
19658
19659    * GPS Utilities: apps/gpsutils:
19660
19661      - apps/gpsutils/minmea:  Include wchar.h in minmea.c file to fix
19662        wint_t error  From Alan Carvalho de Assis.
19663
19664    * Interpreters:  apps/interpreters:
19665
19666      - Remove apps/interpreters/micropthon.  There are several reasons
19667        for this.  (1) the current version 1.3.8 is very old and no one is
19668        supporting it.  (2) the port only includes the core micropython
19669        logic and none of the Python libraries.  As such it is useless in
19670        any real application.  (3) There have recently been compile
19671        failures reported.  It looks like this is due to changes in newlib
19672        based toolchains that now bring in incompatible newlib header
19673        files.  See issue 104 at
19674        https://bitbucket.org/nuttx/nuttx/issues/104/build-micropython-138-error.
19675        With no one dedicated to the support of micropython, it can no
19676        longer be carried in the NuttX apps/ repository.  From Gregory Nutt.
19677
19678NuttX-7.27 Release Notes
19679------------------------
19680
19681The 127th release of NuttX, Version 7.27, was made on November 14, 2018,
19682and is available for download from the Bitbucket.org website.  Note
19683that release consists of two tarballs:  nuttx-7.27.tar.gz and
19684apps-7.27.tar.gz.  These are available from:
19685
19686    https://bitbucket.org/nuttx/nuttx/downloads
19687    https://bitbucket.org/nuttx/apps/downloads
19688
19689Both may be needed (see the top-level nuttx/README.txt file for build
19690information).
19691
19692Additional new features and extended functionality:
19693
19694    * Core OS:
19695
19696      - Assertions:  Add 'BOARD_ASSERT_RESET_VALUE' in config/Kconfig and
19697        replace reboot status '0' to 'CONFIG_BOARD_ASSERT_RESET_VALUE'.  From
19698        Gregory Nutt.
19699      - Assertions:  up_registerdump capture the general register if not yet
19700        saved and up_saveusercontext is implemented, the register dump is very
19701        useful to find the cause of failure.  From Xiang Xiao.
19702      - Assertions:  up_stackdump() dump the full stack if stack overflow the
19703        stack info is very useful to find the backtrace  From Xiang Xiao.
19704      - binfmt/ and libs/libc:  Make exepath_*() more common:  Move
19705        exepath_*() related code to libc/misc, rename exepath_ to envpath_,
19706        and rename BINFMT_EXEPATH to LIB_ENVPATH.  From nchao.
19707      - CLOCK:  Support CLOCK_MONOTONIC in clock_getres.c.  From Xiang Xiao.
19708      - Clock Timekeeping:  Use clock_basetime() to initialize
19709        g_clock_wall_time to get the best initial RTC value and initialize
19710        g_clock_last_counter too since the hardware may not start counting
19711        from zero.  From Xiang Xiao.
19712      - exit():  Add SCHED_EXIT_KILL_CHILDREN option to kill all child threads
19713        when the main thread of a task exits.  From nchao.
19714      - IOBs:  Add an IOB notifier that will notify any registered threads
19715        that want to known when an IOB has been freed.  This is basically just
19716        a wrapper around the generic notifier.  Includes a divider that can be
19717        used to reduce the rate of IOB notifications.  From Gregory Nutt.
19718      - Memory Manager:  In mm_free(), add DEBUGASSERT()'s to catch memory
19719        corruption early.  From Petteri Aimonen.
19720      - Memory Manager:  Add debug option CONFG_MM_FILL_ALLOCATIONS to fill
19721        all mallocs() with recognizable value.  From Petteri Aimonen.
19722      - sched/signal and syscall/:  Add support for pselect() and ppoll()
19723        functions  From dongjianli.
19724      - Task Groups:  group_foreachchild() now iterates in reverse order since
19725        the callback (e.g. group_killchildren) may remove the tcb from list.
19726        From zhangyuan7.
19727      - WDOG Timer:  Improve accuracy of wd_gettime() in tickless mode  From
19728        ligd.
19729      - Work Queues:  Add a generic notification facility that runs on a work
19730        queue.  The notication facility can notify a group of subscribers to
19731        an event via callbacks.  This API is for use within the OS only.  From
19732        Gregory Nutt.
19733
19734    * File Systems/Block and MTD Drivers
19735
19736      - FAT:  Add CONFIG_FAT_LFN_ALIAS_HASH to speed up creating long
19737        filenames.  Long filenames on FAT file systems have associated 8.3
19738        character alias short filenames. The traditional form of these is
19739        FILENA~1.EXT with a running count of the number of similar names.
19740        However creating this unique count can take several seconds if there
19741        are many similarly named files in the directory. Enabling
19742        FAT_LFN_ALIAS_HASH uses an alternative format of FI0123~1.TXT where
19743        the four digits are a hash of the original filename. This method is
19744        similar to what is used by Windows 2000 and later.  From Petteri
19745        Aimonen.
19746      - FAT: Add CONFIG_FAT_LFN_ALIAS_TRAILCHARS alternative format for 8.3
19747        filenames.  Traditional format for long filename 8.3 aliases takes
19748        first 6  characters of long filename. If this option is set to N > 0,
19749        NuttX will instead take first 6-N and last N characters to form  the
19750        short name. This is useful for filenames like "datafile12.txt"  where
19751        the first characters would always remain the same.  From Petteri
19752        Aimonen.
19753      - FAT: if block driver wait seems to be a long one, give time for other
19754        threads to run.  From Petteri Aimonen.
19755      - file_open():  Add file_open() implementation with some fully-function,
19756        interim, placeholder logic.  Change occurrences of open() followed by
19757        file_detach() in the OS to file_open().  From Gregory Nutt.
19758      - MX25LF25635F:  Add support to Macronix MX25LF25635F serial NOR flash
19759        From David Sidrane.
19760      - nx_open():  Add nx_open() which is the same as open() except that it
19761        does not create a cancellation point nor does it modify the errno
19762        variable.  Change most other, non-controversial calls to open() to
19763        nx_open().  From Gregory Nutt.
19764      - file_ioctl():  Replace calls to ioctl() in the OS to file_ioctl().
19765        From Gregory Nutt.
19766      - mount:  Add mount() support for file systems that require  MTD drivers
19767        (vs. block drivers).  From Gregory Nutt.
19768      - mount:  Add support for mounting a file system with either a block or
19769        an MTD driver.  From Xiang Xiao.
19770      - MTD FTL:  Support BIOC_FLUSH ioctl  From Xiang Xiao.
19771      - MTD FTL:  Make READAHEAD and WRITEBUFFER work independently of each
19772        other.  There have cases we use writebuffer but not readbuffer, so the
19773        write buffer must be flushed before read.  Let rwb driver do it.  From
19774        zhuyanlin.
19775      - MTD FTL:  Allocate eblock only when it's really needed  From Xiang Xiao.
19776      - MTD FTL:  Add support support unlink operation to avoid the memory
19777        leak.  From Xiang Xiao.
19778      - MTD Partition: Add register_mtdpartition() for MTD partition  From
19779        Xiang Xiao.
19780      - MTD Partition:  Remove the hard code partition name length From Xiang
19781        Xiao.
19782      - MTD Proxy:  Make MTD device accessible via a character driver proxy
19783        like block devices  From Xiang Xiao.
19784      - ProcFS:  Change output of the ProcFS 'env' file so that it looks more
19785        like output from the 'env' command.  From Gregory Nutt.
19786      - ProcFS:  Add support to provide MLD statistics at /proc/net/mld.  From
19787        Gregory Nutt.
19788      - ProcFS:  Remove MTD ProcFS and mtd_procfsoperations() since we can now
19789        get the same information from inode  From Xiang Xiao.
19790      - ProcFS:  Add /proc/version support to get version info  From iuhaitao.
19791      - ProcFS:  Add support for named MTD drivers in the pseudo file system.
19792        This will, eventually, allow us to mount file systems that need MTD
19793        drivers without having to fake an intervening block driver.
19794      - R/W Buffer:  Don't queue work to flush write buffer if
19795        CONFIG_DRVR_WRDELAY == 0  From Xiang Xiao.
19796      - R/W Buffer: Improve the rwb_read/write overlap performance  From
19797        zhuyanlin.
19798      - SIM HOSTFS:  Support S_IFSOCK, DT_LNK, O_DIRECT and O_SYNC From Xiang
19799        Xiao.
19800      - SPIFFS:  Brings in a NuttX port of version 0.3.7 of Peter Anderson's
19801        SPIFFS flash file system into NuttX.  From Gregory Nutt.
19802
19803    * Networking/Network Drivers:
19804
19805      - Network Configuration  Add new configuration CONFIG_NET_MCASTGROUP.
19806        This option is selected automatically if either CONFIG_NET_IGMP or
19807        CONFIG_NET_MLD are selected.  Most conditional logic based on
19808        CONFIG_NET_IGMP replaced with conditioning on CONFIG_NET_MCASTGROUP.
19809        From Gregory Nutt.
19810      - Network Device:  Add notification logic for the case where the network
19811        goes down.  From Gregory Nutt.
19812      - Network Device:  Rename netdev_dev_lladdrsize() to netdev_lladdrsize()
19813        and move the prototype to include/nuttx/nex/netdev.h, giving is global
19814        scope within the OS.  From Xiang Xiao.
19815      - ARP:  Redesign ARP table aging to simplify the net initialization
19816        From Xiang Xiao.
19817      - ARP:  Check ifname match before sending packet.  From Xiang Xiao.
19818      - ARP and ICMPv6:  Double the delay time on each iteration for ARP/ICMP
19819        to fight work jitter better.  From Xiang Xiao.
19820      - ICMP/ICMPv6:  Add NET_ICMP[v6]_NO_STACK for usrsock case  From Xiang
19821        Xiao.
19822      - ICMPv6:  Encapsulate the link scope address generation into
19823        icmpv6_linkipaddr()  From Xiang Xiao.
19824      - ICMPv6:  Remove the coupling between ICMPv6 and Ethernet by moving all
19825        Ethernet stuff to neighbor_ethernet_out.c and make the mac address as
19826        first field.  From Xiang Xiao.
19827      - ICMPv6 MLD:  Implement Multicast Listener Discovery (MLD) protocol based
19828        on RFC 2710 and RFC 3810.  From Gregory Nutt.
19829      - ICMPv6 MLD:  Implement MLDv1 compatibility mode.  From Gregory Nutt.
19830      - ICMPv6 MLD:  Implement 'Other Querier Present Timer'.  This timer is
19831        used to revert to Querier mode if there is no other querier on the
19832        network.  From Gregory Nutt.
19833      - IGMP:  Backport some MLD design improvements/fixes.  From Gregory Nutt.
19834      - IPv4 setsockopt(): Add implementation for all IPv4 socket options that
19835        have implemented IOCTL command counterparts.  From Gregory Nutt.
19836      - IPv4/6 Socket Options:  Add framework to support IPv4 and IPv6
19837        protocol socket options (i.e., SOL_IP and SOL_IP6).  Handling of these
19838        socket options was a necessary step on the way to ICMPv6 MLD support.
19839        From Gregory Nutt.
19840      - ICMPv6 Autoconfiguration:  Don't take the network device down when
19841        reconfiguring only the IP address from within ICMPv6 logic.
19842        Recommended by Xiang Xiao in order to avoid the long delays of
19843        bringing some networks back up.   Normally it is required that the
19844        network be in the "down" state when re-configuring the network
19845        interface.  This is thought not to be a necessary here because:  (1)
19846        The ICMPv6 logic here runs with the network locked so there can be no
19847        outgoing packets with bad source IP addresses from any asynchronous
19848        network activity using the device being reconfigured. And (2) incoming
19849        packets depend only upon the MAC filtering.  Network drivers do not
19850        use the IP address; they filter incoming packets using only the MAC
19851        address which is not being changed here.  From Gregory Nutt.
19852      - IPv6 Input:  Add logic to skip over the variable number of IPv6
19853        extension headers that may be present between the IPv6 header and the
19854        transport layer header.  The extension headers are simply ignored.
19855        This is necessary because with MLD, certain incoming messages may
19856        have, at a minimum, a Router Alert Hop-by-hop extension header.
19857        Additional changes to ICMPv6, TCP, and UDP input to handle the offset
19858        protocol headers.  From Gregory Nutt.
19859      - IPv6 Neighbor: Simplify the neighbor table aging process  From Xiang
19860        Xiao.
19861      - IPv6 Neighbor:  Simplify neighbor_dumpentry() implementation  From
19862        Xiang Xiao.
19863      - IPv6 Neighbor:  neighbor_lookup() checks if the target IP belongs to
19864        one of the local network devices.  From Xiang Xiao.
19865      - IPv6 Neighbor: Support neighbor_out() for multiple link layer at the
19866        same time  From Xiang Xiao.
19867      - IPv6 setsockopt():  Implement the IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP
19868        socket options. From Gregory Nutt.
19869      - TCP:  Extend the TCP notification logic logic so that it will report
19870        loss of connection events.  From Gregory Nutt.
19871      - SLIP:  Add IPv6 support and fix minor issue  From Xiang Xiao.
19872      - TCP:  Add TCP poll() logic to receive notifications when IOBs are
19873        freed.  From Gregory Nutt.
19874      - TCP:  In TCP backlog, add SOMAXCONN definition and implementation per
19875        OpenGroup.org.  From zhangyuan7.
19876      - TCP/UDP:  Extend send()/sendto() logic it also requires that at least
19877        one IOB is also available to be able to send.  From Gregory Nutt.
19878      - TCP/UDP:  Add notification logic when TCP or UDP read-ahead data is
19879        buffered.  From Gregory Nutt.
19880      - TUN:  Call ipv[4|6]_input dynamically by checking packet header and
19881        remove the code duplication  From Xiang Xiao.
19882
19883    * Wireless/Wireless Drivers:
19884
19885      - Broadcom IEEE 802.11:  Add capability for Broadcom chips to get
19886        firmware and CLM data from a mounted file system vs. in-memory data
19887        structures.  From Ramtin Amin.
19888      - XBee IEEE 802.15.4: Add support for setting/getting tx power.  From
19889        Anthony Merlino.
19890
19891    * Other Common Device Drivers:
19892
19893      - GPIO:  Support multiple registrations of GPIO signal events.  From
19894        Xiang Xiao.
19895      - INA226:  Add INA226 device driver.  From Daniel P. Carvalho.
19896      - MAX7219:  Support all digits presented in the MAX7219 datasheet.  From
19897        Alan Carvalho de Assis.
19898      - MLX90614:  Add support for the Infrared Thermometer MLX90614  From
19899        Alan Carvalho de Assis.
19900      - RTC Driver:  up_rtc_set_lowerhalf call clock_synchronize() for
19901        external RTC.  From Xiang Xiao.
19902      - SYSLOG:  Uncomment the g_syslog_channel->sc_flush call in
19903        syslog_flush().  From Xiang Xiao.
19904      - SYSLOG:  syslog_initialize initialize dev/syslog too and call syslog
19905        to add the prefix and timestamp.  From Xiang Xiao.
19906      - USB Composite and DFU drivers: Add support for Microsoft OS
19907        descriptors.  These Microsoft-only descriptors help in loading the
19908        correct driver on Windows.  They are especially helpful to give libusb
19909        access to a custom device without having to manually configure/install
19910        WinUSB driver. With this change DFU interface works automatically on
19911        Windows 10 with dfu-util 0.9 and libusb 1.0.22. On Windows 7 it still
19912        appears to need driver installation.  From Petteri Aimonen.
19913      - USB DFU Device: Add DFU Runtime driver for activating boot-loader
19914        through USB command.  From Petteri Aimonen.
19915      - USB RNDIS Device:  Account for CONFIG_NET_GUARDSIZE in allocation of
19916        packet buffer allocation:  Make USB device parameters configurable.
19917        From Sakari Kapanen.
19918      - USB RNDIS Composite Device:  Fix strid comparison. Add support for
19919        composite configuration.  From Petteri Aimonen.
19920
19921    * Microchip PIC32MX Boards;
19922
19923    - PCBLOGIC-PIC32MX:  Remove support for the PCB Logic PIC32MX board.  I do
19924      not find any references to PCB Logic on the web and I do not believe
19925      that this breakout board is available any longer.  From Gregory Nutt.
19926
19927    * NXP Freescale i.MX RT:
19928
19929      - i.MXRT:  Added support for the i.MXRT 106x family.  From David Sidrane.
19930
19931    * NXP Freescale i.MX RT Drivers:
19932
19933      - i.MXRT:  Add LPI2C driver.  From Ivan Ucherdzhiev.
19934      - i.MXRT LPSPI:  Add full support for the LPSPI in poll mode; includes a
19935        minor fix for LPI2C.
19936      - i.MXRT USDHC:  Initial commit of the i.MXRT SDHC driver working in PIO
19937        mode.  From Dave Marples.
19938      - i.MXRT USDHC:  Complete the interrupt driven USDHC1 functionality for
19939        the IMXRT EVKB.  Improve SD card handling in the DMA case.  From Dave
19940        Marples.
19941
19942    * NXP Freescale i.MX RT Boards:
19943
19944      - IMXRT1060-EVK:  Add support for the IMXRT1060-EVK.  From David Sidrane.
19945
19946    * NXP LPC17xx Boards:
19947
19948      - Olimex-LPC1766STK:  Add support to initialize a USB HID keyboard.  Add
19949        a configuration for testing the HID keyboard.  From Gregory Nutt.
19950
19951    * On Semi LPC23450 Drivers:
19952
19953      - LC823450: MPU support for FLAT build  From Masayuki Ishikawa.
19954
19955    * STMicro STM32:
19956
19957      - STM32:  Add support for STM32F303xD/E.  From Mateusz Szafoni.
19958      - STM32 L4:  Add initial support for STM32L412 and STM32L422 chips  From
19959        Juha Niskanen.
19960
19961    * STMicro STM32 Drivers:
19962
19963      - STM32 ADC: Major refactor:  Use STM32 ADC IP core version and ADC
19964        available functions instead of chip family names in conditional
19965        compilation.  Replace family specific ADC headers with STM32 ADC IP
19966        core version headers.  Configurable sample time supported for all
19967        chips, not just L1.  Enable/disable interrupts supported for all
19968        chips, not just L1.  Add ADC resolution configuration.  From Mateusz
19969        Szafoni.
19970      - STM32 PWM: Improvements in STM32 PWM low level driver:  Support
19971        complementary outputs, dead-time configuration, output polarity and
19972        IDLE state configuration.  From Mateusz Szafoni.
19973      - STM32 PWM:  Break and lock configuration and some cosmetics  From
19974        Mateusz Szafoni.
19975      - STM32 SPI.  Enable separate DMA per SPI configuration  From Daniel Agar.
19976      - STM32 F7 FLASH:  Allow programming OTP blocks through progmem
19977        interface  From Jussi Kivilinna.
19978      - STM32 H7 I2C:  Add I2C support for STM32H7.  From raiden00pl.
19979      - STM32 H7 RCC:  Update RCC definitions, add SPI clock configuration and
19980        some fixes in RCC.  From raiden00pl.
19981      - STM32 H7 SPI:  Add basic SPI support for H7.  Enable SYSCFG clock in
19982        RCC.  From Mateusz Szafoni.
19983
19984    * STMicro STM32 Boards:
19985
19986      - Nucleo-F302R8:  Add support for Nucleo-F302R8 board  From raiden00pl.
19987      - Nucleo-F302R8:  Add PWM support.  From Mateusz Szafoni.
19988      - Nucleo-F303ZE:  Add basic support for nucleo-f303ze.  From Mateusz
19989        Szafoni.
19990      - Nucleo-F303ZE:  Support for ADC and ADC example.  From Mateusz Szafoni.
19991      - Nucleo-L432KC:  Added support for AT45DB Serial Flash  From Daniel P.
19992        Carvalho.
19993      - Nucleo-L432KC:  Add support for the INA226.  From Daniel P. Carvalho.
19994      - Nucleo-H743ZI:  Add NRF24L01 support.  From Mateusz Szafoni.
19995      - Olimex-STM32-P407:  Add a HID keyboard configuration.  From Gregory
19996        Nutt.
19997      - STM32F4-Discovery:  Add MLX90614 support for the STM32F4-Discovery
19998        board  From Alan Carvalho de Assis.
19999      - STM32F429I-DISCO:  Add PWM support.  From Mateusz Szafoni.
20000      - STM32F429I-DISCO:  Support for ADC and ADC example.  From Mateusz
20001        Szafoni.
20002
20003    * MIPS32:
20004
20005    - MIPS32 Toolchain.defs:  Add toolchain flags for the pinguino toolchain
20006      under Linux.  From Ouss4.
20007
20008    * RISC-V:
20009
20010      - RISC-V GAP:  This commit brings in support for the GAP8 architecture.
20011        The GAP8 is a 1+8-core DSP-like RISC-V MCU.  Also included is support
20012        for the Gapuino GAP8 evaluation board.  From hhuysqt.
20013
20014    * Other Tools:
20015
20016      - tools/tesbuild.sh:  No longer installs and builds the NxWidgets
20017        libraries.  They are now a port of apps/.  From Gregory Nutt.
20018
20019    * Libraries/Header Files:
20020
20021      - include/net and include/sys:  Align the constant values with values in
20022        the Linux kernel which makes targeting the usrsock server to Linux
20023        kernel easier.  From Xiang Xiao.
20024      - include/netdb.h  Add NO_ADDRESS definition  From zhangyuan7.
20025      - include/netinet/in.h:  Adds definitions for IPPROTO_IPV6 socket
20026        options to netinet/in.h.  Adds missing fields to sockaddr_in6.  Adds
20027        struct ipv6-mreq.  These changes all follow the opengroup standard for
20028        netinet/in.h  From Anthony Merlino.
20029      - include/netinet/in.h:  Add IPv4 SOL_IP socket options for symmetry
20030        with IPv6 definitions added in a previous commit.  Remove some
20031        duplicate types from sys/sockio.h.  From Gregory Nutt.
20032      - include/netinet/in.h:  Add other definitions required by
20033        OpenGroup.org.  From Gregory Nutt.
20034      - include/netinet/in.h:  Add Linux IP_PKTINFO and IPV6_PKTINFO
20035        definitions.
20036      - include/nuttx/net/ipv6ext.h:  Create header file with all of the
20037        definitions of IPv6 extension headers that I could find.  From Gregory
20038        Nutt.
20039      - include/nuttx/net/mld.h:  Add MLD header file based on RFC2710 and
20040        RFC3810.  From Gregory Nutt.
20041      - include/sys/socket.h:  With increased size of struct sockaddr_in6, the
20042        size of struct sockaddr_storage in include/sys/socket.h must also be
20043        increase so that it can contain the new, larger sockaddr_in6.  From
20044        Gregory Nutt.
20045
20046      - libs/libc/misc:  Add implementation of CRC8-CCITT.  From Alan Carvalho
20047        de Assis.
20048      - libs/libc/modlib:  Add per-module library symbol table support.  From
20049        nchao.
20050      - libs/libc/net:  Add basic implementation for recvmsg() and sendmsg()
20051        per OpenGroup.org specification.  From ligd.
20052      - libs/libc/netdb:  A few improvements to getaddrinfo:  (1)  Use the
20053        protocol and socktype hints in returned address, (2) Ignore AI_PASSIVE
20054        argument if hostname is not NULL  From Anthony Merlino.
20055      - libs/libc/netdb:  Make DNS receive timeout configurable.  From ligd.
20056      - libs/libc/stdio:  Eliminate recursive in conversion functions of
20057        lib_vsprintf().  From Xiang Xiao.
20058      - libs/libc/string:  Add some new functions defined in POSIX.1-2017:
20059        stpncpy(), strsignal(), psignal(), psiginfo().  From Gregory Nutt.
20060      - libs/libc/string:  Add memrchr() function  From Xiang Xiao.
20061      - libs/libc/string:  Make strerror() return the string "Success" for
20062        error = 0.  From Petteri Aimonen.
20063
20064    * Build System:
20065
20066      - Makefile.unix/win:  Remove deletion of Eclipse project files from make
20067        distclean target.  From Gregory Nutt.
20068      - apps/Application.mk:  Fix some build issues.  (1) Unable to found
20069        target 'context' when CONFIG_NSH_BUILTIN_APPS disabled. (2) Unable to
20070        generate multiple programs.  From Chao An.
20071      - apps/Directory.mk:  Fix distclean targets.  Makefiles were not
20072        removing generated Kconfig files.  There was then no way to remove
20073        this Kconfig files without manually deleting them one at a time.  From
20074        Gregory Nutt.
20075
20076    * NSH: apps/nshlib:
20077
20078      - apps/nshlib/, apps/examples/:  Update to show newer file system
20079        object types returned by stat().  From Gregory Nutt.
20080      - apps/nshlib:  Add support for the 'env' command.  From Gregory
20081        Nutt.
20082      - apps/nshlib:  Add support for NSH local variables if
20083        CONFIG_NSH_VARS are set.  These are like environment variables but
20084        are local to NSH.  The importance of this is that these variables
20085        are *not* inherited when NSH creates a new task.  The new command
20086        'export' was added.  In this case, the NSH variable will be promoted
20087        to an environment variable and will then be inherited by any tasks
20088        executed by NSH.  From Gregory Nutt.
20089      - apps/nshlib:  If CONFIG_NSH_VARS=y, the NSH 'set' command with no
20090        argument will list all of the local NSH variables.  From Gregory
20091        Nutt.
20092
20093    * Examples/Tests: apps/examples:
20094
20095      - apps/examples/gpio:  Align with GPIO driver update  From wangyanjiong.
20096      - apps/examples/ina226:  Added INA226 example  From Daniel P. Carvalho.
20097      - apps/examples/mld:  Add a test of MLD.  Provides a mechanism for some
20098        low-level bring-up of MLD.  From Gregory Nutt.
20099      - apps/examples/mlx90614:  Add mlx90614 test example  From Alan Carvalho
20100        de Assis.
20101      - apps/examples/mlx90614/:  Include support to change device address on
20102        mlx90614  From Alan Carvalho de Assis.
20103      - apps/examples/fstest: Adapt the existing fstest example for SPIFFS:
20104        For SPIFFS, add garbage collection and file system integrity IOCTL
20105        calls. Call statfs() and show state of file system on each loop.  Add
20106        logic to dump logic content of SPIFFS.  Ignore EINTR errors while
20107        reading or writing.  Add configuration option to customize stack
20108        size.  Detect when the media is full and stop writing files.  Report
20109        total file size.  From Gregory Nutt.
20110      - apps/examples/tcpblaster:  Add an option to use poll() to pace input
20111        or output.  From Gregory Nutt.
20112      - apps/examples/tcpblaster:  Select CONFIG_LIBC_FLOATINGPOINT
20113        automatically.  Units in output are wrong:  Not Kbps bus Kb/Sec.  From
20114        Gregory Nutt.
20115      - apps/examples/udpblaster:  Add option to use poll() on output (only).
20116        From Gregory Nutt.
20117
20118    * System Utilities: apps/system
20119
20120      - apps/system/ping and apps/system/ping6:  Set optind to zero in the
20121        error case/.  Move all ping preparation work into icmp_ping.  Support
20122        -W <timeout> and -s <size> option.  Decouple the output from ping
20123        logic.  From Xiang Xiao.
20124      - apps/system/ping and pings and apps/netutils/ping:  Extract icmp ping
20125        and icmpv6 ping6 logic from system/ to C-callable library in
20126        netutils/.  From ligd.
20127      - apps/system/progmem:  Remove this utility.  It makes illegal direct
20128        calls into the OS.  From Gregory Nutt.
20129
20130    * Network Utilities: apps/netutils:
20131
20132      - apps/netutils/netlib and apps/examples/igmp:  Adapt to use the
20133        corrected, semi-standard version of struct ip_msfilter.  From Gregory
20134        Nutt.
20135      - apps/netutils/chat and apps/examples/chat:  'constify' chat variables
20136        and parameters  From Xiang Xiao.
20137
20138    * Wireless Utilities: apps/wireless:
20139
20140      - apps/wireless/ieee802154/i8sak: Properly shuts down event thread.
20141        From Anthony Merlino.
20142      - apps/wireless/ieee802154/i8sak:  Fixes i8sak name. Accidentally renamed
20143        to i8ask in recent changes  From Anthony Merlino.
20144      - apps/wireless/ieee802154/i8sak:  Adds support for getting/setting
20145        transmit power.  From Anthony Merlino.
20146
20147    * Graphic Utilities:  apps/graphics:
20148
20149      - apps/graphics/NxWidgets:  Move the NxWidgets repository into the apps/
20150        repository.  Remove old apps/NxWidgets directory.  Move NxWidgets
20151        files into apps/graphics/NxWidgets. Integrate configuration/build
20152        system.  Fix file paths in file headers.  Remove some duplicate
20153        tools.  Add new NxWidgets Unit Test configuration and build logic.
20154        From Gregory Nutt.
20155      - apps/graphics/NxWidgets:  Add CNxString string + operator and
20156        ::format() function.  Add CNumericEdit option to include unit name
20157        after the value.  Make CNxWidget useWidgetStyle() public.  From
20158        Petteri Aimonen.
20159      - apps/graphics/NxWidgets:  Add CLabelGrid control for displaying text
20160        in grid format.  From Petteri Aimonen.
20161
20162Bugfixes.  Only the most critical bugfixes are listed here (see the
20163ChangeLog for the complete list of bugfixes and for additional, more
20164detailed bugfix information):
20165
20166    * Core OS:
20167
20168      - Clock:  Remove g_monotonic_basetime and g_clock_monotonic_time since
20169        we don't need ensure monotonic time start from zero as state here:
20170        http://pubs.opengroup.org/onlinepubs/009696899/functions/clock_getres.html
20171        From Xiang Xiao.
20172      - Clock:  Don't call up_timer_gettime in clock_gettime() and
20173        clock_systimer() to ensure the return value from them consistent with
20174        clock_systimespec  From Xiang Xiao.
20175      - Clock Initialization:  clock_inittime() needs to be done with
20176        CONFIG_SCHED_TICKLESS and clock_initialize should skip
20177        clock_inittime() for external RTC case since the RTC isn't ready yet.
20178        From Xiang Xiao.
20179      - IOBs:  Work around some issues with the IOB throttle semaphore.  It
20180        has some odd behaviors that can cause assertions in sem_post().  Also,
20181        it seems to get outside of its range occasionally.  Need to REVISIT
20182        this.  From Gregory Nutt.
20183      - IOBs:  iob_navail() was returning the number of free IOB chain queue
20184        entries, not the number of free IOBs.  Completely misnamed.  From
20185        Gregory Nutt.
20186      - PM:  Use the start time of state btime to calculate thrcnt; remove the
20187        loop whose count may be very big after the long idle  From ligd.
20188      - PM Uninitialization:  Fix pm_domain_s.stime un-initialize caused time
20189        error.  From ligd.
20190      - sched_kfree() and sched_ufree():  This patch prevent heap corruption
20191        in a corner case where memory is freed while switching contexts.  This
20192        change forces all de-allocations via sched_kfree() and sched_ufree()
20193        to be delayed.  Eliminating the immediate de-allocation prevents the
20194        problem with the the re-entrant semaphore because the deallocation
20195        always occurs on the worker thread, never on the suspended task.  From
20196        EunBong Song.
20197      - sigsuspend():  sigsuspend() shouldn't eat the pending signal but
20198        dispatch all instead  From Xiang Xiao.
20199      - task_restart():  Was restarting tasks with all signals set in the
20200        sigprocmask set.  Should have restarted with the sigprocmask cleared.
20201        Noted by Jeongchan Kim  From Gregory Nutt.
20202      - unsetenv():  Fix and error in unsetenv() when un-setting the last of
20203        the environment variables.  From Gregory Nutt.
20204      - waitpid():  Remove a bad error check.  From Gregory Nutt.
20205
20206    * File System/Block and MTD Drivers:
20207
20208      - FAT: Fix file data corruption in fat_truncate().  From Petteri Aimonen.
20209      - Partitions:  Try MTDIOC_GEOMETRY IOCTL before bops's geometry.
20210        From Xiang Xiao.
20211      - MTD Progmem:  Change up_progmem_npages() to up_progmem_neraseblocks().
20212        page is a unit for read/write operation.  eraseblock is a unit for
20213        erase operation.  up_progmem_npages() is a little bit confusing
20214        because it returns number of erase blocks in flash memory.  This patch
20215        changes up_progmem_npages to up_progmem_neraseblocks.
20216        up_progmem_eraseblock erase a block. so it's better to return the
20217        erase block size than page size.  From EunBong Song.
20218      - R/W Buffer:  Fix a lock issue  From Xiang Xiao.
20219      - SmartFS:  Current sector should have a space for next entry size.  If
20220        not, we should move to next sector.  From EunBong Song.
20221
20222    * Networking/Network Drivers:
20223
20224      - 6LoWPAN: Fixes bug in uncompress_addr handling of odd postfix.  This
20225        affected multicast compress/uncompress since it's the only logic that
20226        used an odd postfix. The odd byte needs to be handled first, not
20227        last.  From Anthony Merlino.
20228      - ARP and ICMPv6:  Don't call d_txavail directly since it may point to
20229        NULL  From Xiang Xiao.
20230      - ICMPv6:  icmpv6_neighbor() shouldn't use the out of scope
20231        variable(dripaddr)  From Xiang Xiao.
20232      - IPv6 input:  Fixes logic in ipv6_input to handle more than ff02::/16
20233        multicast addresses. Don't forward mcast packets if scope is not
20234        appropriate  From Anthony Merlino.
20235      - IPv6 Input:  Fix a logic error when the received IPv6 srcaddr is a
20236        multicast address.  Exiting logic only supported UDP multicast.  But
20237        MLD and certain other ICMPv6 packets also require acceptance of
20238        multicast packets.  From Gregory Nutt.
20239      - TCP:  In TPC recv window calculations, in order to receive data we
20240        must not only have IOBs available, but we must also have at least one
20241        IOB chain qentry available.  Otherwise, we will advertise that we an
20242        buffer a lot of data when, in fact, we cannot.  This is an
20243        experimental fix to a performance problem noted by Masayuki Ishikawa.
20244        From Gregory Nutt.
20245      - TCP:  Fix compiler error and warning when CONFIG_NET_SENDFILE=y  From
20246        Xiang Xiao.
20247      - TCP Input:  Fix recovery when ackseq > unackseq.  The comment near
20248        this line says "reset the number of outstanding, unacknowledged
20249        bytes".  However, the code actually resets the whole TCP connection.
20250        It was changed to the current form in commit f034d84ea1f with no
20251        explanation of the intent. Recover the line to what it was before that
20252        commit.  From Sakari Kapanen.
20253      - TCP Write Buffering:  Fix buffer release handling on failed buffer
20254        allocation.  Attempt to release write buffer on failed TCP write I/O
20255        buffer alloc and tryalloc failed to wrb->wb_iob assertion.  From Harri
20256        Luhtala
20257      - TCP/UDP:  In the POLLOUT poll logic, request an immediate Tx poll from
20258        the network device bound to the socket.  From Gregory Nutt.
20259      - UDP:  On a failure to find the destination device, fallback to
20260        netdev_default device if the device is not found, rather than
20261        arbitrary using the device at the head of the list of devices.  From
20262        Xiang Xiao.
20263      - USRSOCK:  Revert previous commit to re-allow combination of usrsock
20264        and NuttX TCP/IP stack.  For example, in case device has Ethernet and
20265        mobile connectivity and NuttX TCP/IP stack is used when configured to
20266        use Ethernet connection and usrsock when configured to use modem
20267        (modem TCP/IP stack through usrsock).  From Jussi Kivilinna.
20268      - USRSOCK accept():  Mark newconn ready before issue accept request to
20269        avoid the case that the request is discarded due to the socket being
20270        in the invalid state  From Xiang Xiao.
20271
20272    * Wireless/Wireless Drivers:
20273
20274      - Broadcom 802.11 Driver:  There were two functions that have a address
20275        issue.  In bcmf_read_sbreg() and bcmf_write_sbreg():
20276        SBSDIO_SB_OFT_ADDR_MASK should be used before map address space.
20277        Noted by Shao Li in Bitbucket issue #126.  From Gregory Nutt.
20278      - Broadcom 802.11 Driver:  Remove incorrect OR condition.  Always true.
20279        Noted by Shao Li in Issue 127.  From Gregory Nutt.
20280      - NRF24L01:  Fix compilation errors.  From Mateusz Szafoni.
20281
20282    * Other Common Drivers:
20283
20284      - ALARM Upper Half: Fix alarm ISR error when no CONFIG_SCHED_TICKLESS
20285        drivers/timers/arch_alarm.c: Use uint64_t to avoid alarm 32-bit
20286        overflow.  From ligd.
20287      - MAX11802: Fix compilation errors and allow setting PULL and SAMPLE
20288        registers.  From Petteri Aimonen.
20289      - S25FL1:  During a MTDIOC_GEOMETRY ioctl call, the driver was
20290        incorrectly reporting the blocksize to be the same as the erasesize.
20291        The blocksize should be 256 (the page size).  This patch fixes that,
20292        and now the SmartFS configration is working.  From Ken Pettit.
20293      - SYSLOG:  nx_syslog's return value should include the timestamp length
20294        From Xiang Xiao.
20295      - SYSLOG:  syslog_putc() calls sc_force in idle task even if interrupt
20296        buffer enabled.  The following cases may hang randomly in the bring up
20297        phase: (1) boot up process and (2) suspend/resume process.  Either
20298        case runs in the idle task context, so it's difficult to debug the
20299        hang issue if these output go through the interrupt buffer.  From
20300        Xiang Xiao.
20301      - SYSLOG:  Ensure interrupt log doesn't interlace in normal log.  Don't
20302        call syslog_putc in syslog_default_write because syslog_putc will try
20303        to empty the interrupt buffer every time.  From Xiang Xiao.
20304      - UART 16550:  Fix UART flow control issue.  UART_MCR_RTS need be high
20305        even UART_MCR_AFCE is enabled  From zhangyuan7.
20306      - USB RNDIS Device:  Fix buffer overrun check in rndis.c.  The rndis
20307        driver has been working since 13 Nov 2017.  However, I finally found
20308        that it depends on network and buffer configurations.  If a receiving
20309        TCP packet is divided into smaller ones based on USB max packet size,
20310        this condition check works correctly.  From Masayuki Ishikawa.
20311
20312    * ARMv7-A:
20313
20314      - ARMv7-A:  Replicate the same fix was previously committed for the
20315        ARMv7-R.  From Gregory Nutt.
20316
20317    * ARMv7-R:
20318
20319      - ARMv7-R:  Fix error in cp15_flash_dcache.  Change mcrne to mcr for
20320        unconditional dcache.  From EunBong Song.
20321
20322    * ARMv7-M:
20323
20324      - ARMv7-M Interrupts:  Correct all ARMv7-M architectures.  Interrupts
20325        were not be disabled correctly on power up.  Writing zero to the NVIC
20326        SET-ENABLE registers has no effect.  In order to disable interrupts,
20327        it is necessary to write all ones to the NVIC CLEAR-ENABLE register.
20328        Noted by David Sidrane.  From Gregory Nutt.
20329
20330    * Broadcom BCM2708 Drivers:
20331
20332      - BCM2708 Serial:  Juha Niskanen's fix related to STM32
20333        CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in BCM2708.
20334        From Gregory Nutt.
20335
20336    * Intel x86:
20337
20338      - Qemu i486:  Correct .bss, IDLE stack, heap organization.  From Gregory
20339        Nutt.
20340
20341    * NXP/Freescale LPC43xx Drivers:
20342
20343      - LPC43 Ethernet:  Fix Ethernet TX_EN pin definitions.  TX_EN on LPC43xx
20344        can be routed via P0.1 and PC.4 in both MII and RMII mode.  Before,
20345        P0.1 was hard-coded for MII and PC.4 was hard-coded for RMII.  Also,
20346        the definitions used inconsistent naming (TXEN vs. TX_EN).  From Jakob
20347        Haufe.
20348      - LPC43 Serial:  Fix copy-paste error: g_usart1port->g_uart1port.  From
20349        Dave Marples.
20350      - LPC43 SDMMC:  Fix the LPC43 family SDMMC card access: Clocks were
20351        wrongly configured, way too fast because there is no primary divider
20352        on LPC4330, the LPC43_SDMMC_DELAY register was not being set, the
20353        LPC43_SDMMC_BLKSIZ and LPC43_SDMMC_BYTECNT registers had the wrong
20354        values.  From Dave Marples.
20355      - LPC43 SDMMC:  Corrected a problem in lpc43_dmasendsetup().  There was
20356        no linked DMA descriptor code on the send side.  The end result was
20357        stalls while sending multiple sectors.  This commit adds that in and
20358        the send code is working much better.  From Dave Marples.
20359      - LPC43 SDMMC:   With these changes the SDMMC card for LPC43 is now
20360        working properly:  Timing was dependent on CPU speed rather than
20361        absolute time, end of transfer handling was a bit mixed up.  It is
20362        possible for data to still be in the FIFO (i.e. not have reached the
20363        card) when a next write is requested, so we need to wait for that to
20364        complete.  Interrupt Status could be carried over from one transfer
20365        episode to the next, corrupting progress.  Multi-descriptor DMA
20366        writing simply wasn't implemented.  From Dave Marples.
20367
20368    * NXP/Freescale LPC43xx Boards:
20369
20370      - Bambino-200E:  Correct calculation of SDMMC clock configuration.  The
20371        LPC43 has no SDMMC source clock divider.  Error noted by Dave
20372        Marples.  From Gregory Nutt.
20373
20374    * NXP/Freescale Kinetis:
20375
20376      - Kinetis:  Remove all attempts to reprioritize interrupts. From Gregory
20377        Nutt.
20378
20379    * NXP/Freescale Kinetis Drivers:
20380
20381      - Kinetis I2C:  I2C On failed reset re-initialization I2C and clocking.
20382        If a reset fails, we still must reinitializes the I2C block so that
20383        subsequent transfers will not cause a hard-fault due to the clock
20384        being off.  If that transfer fails it can try to reset again.  From
20385        David Sidrane.
20386      - Kinetis Serial:  Juha Niskanen's fix related to STM32
20387        CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in Kinetis.
20388        From Gregory Nutt.
20389
20390    * NXP i.MXRT Drivers:
20391
20392      - i.MXRT Ethernet: The board would not come up if I ran Nuttx from cold.
20393        I dumped the PHY registers to see what the differences were and the
20394        PHY was coming up in NANDTree mode. This is a mode for testing
20395        connectivity between the PHY and the MAC.  Switching this mode off in
20396        the PHY registers has fixed the problem.  From Dave Marples.
20397      - i.MXRT Ethernet:  Fix a race condition in setting up the Ethernet Tx
20398        transfer.  From Dave Marples.
20399      - i.MXRT Ethernet:  Corrections for the i.MXRT Ethernet: (1) Now the
20400        Ethernet is completely re-initialized when an error occurs by means of
20401        taking the interface down and back up but the PHY is _not_
20402        renegotiated for that case because that is very time consuming and an
20403        error in the Ethernet is no reflection on the state of the PHY
20404        anyway.  (2) Explicitly sets the expected PHY address to zero (this
20405        could be moved into the config rather than searching for it which
20406        takes ages, and it's zero anyway for this board (that's the broadcast
20407        address, and anything that cannot respond on that has multiple PHYs,
20408        so that would be a new board).  (3) Allows for the renegotiation of
20409        the PHY to be optional when a reset is needed. If a non-renegotiated
20410        reset doesn't result in good comms to the PHY then it'll automatically
20411        be escalated to a renegotiated one.  (4) Only performs a reset for
20412        errors that need it (the CRITICAL_ERROR define).  The list of errors
20413        that need reset are somewhat arbitrarily chosen based on my prejudices
20414        and might need to be revisited, but certainly the jabber errors don't
20415        need reset, the partial packet is thrown away by the layer above
20416        anyway.  (5) Re-loads the multicast table on reset.  (6) Adds a bit
20417        more logging into the imxrt Ethernet module.  From Dave Marples.
20418      - i.MXRT LPI2C:  Fixes 2 bugs in the for IMXRT1050: (1) I2C time out and
20419        did not send STOP condition when sending single byte, (2) I2C could
20420        not receive bytes after repeated start.  From Ivan Ucherdzhiev.
20421      - i.MXRT LPSRTC:  SVNC LPCR register bits 0 & 1 are NOT reserved and
20422        are, in fact, needed to enabled the SRTC.  Now the SRTC is working.
20423        From Ivan Ucherdzhiev.
20424      - LPC54 SDMMC:  Add support for and SDMMC errata.  It appears that now I
20425        can read the SD card successfully, but I get CRC errors when writing
20426        to the card.  From Gregory Nutt.
20427      - LPC54 SDMMC:  Ported Dave Marples fixes LPC43 SDMMC to the LPC54.
20428        From Gregory Nutt.
20429      - i.MXRT WDOG:  Typos in bit definitions, wdog registers are 16 bits,
20430        wdog update has to be within 255 clocks of unlock, define board
20431        clocking based on divisor and muxes.  From David Sidrane.
20432
20433    * NXP i.MXRT:
20434
20435      - i.MXRT:  clockconfig bug fix:  Fixed logic that was not clearing bits
20436        as ~ was  missing in &= mask operations.  Use values from the board.h
20437        file so set the Mux that selects the clock sources.   Use board
20438        defined PODF values to select clock.  Only configure USDHC2 clocks
20439        when board defines clocks.  From David Sidrane.
20440
20441    * NXP i.MXRT Boards:
20442
20443      - IMXRT1050-EVK:  Previous committed implemented SPI-based MMC/SD card
20444        support conditioned on CONFIG_MMCSD.  This interferes with the
20445        implementation of MMC/SD card support using the SDIO-based
20446        peripheral.  This commit renames that atypical support to *mmcsd_spi*
20447        and conditions using the SPI-based support on CONFIG_MMCSD_SPI which
20448        will then not interfere with the MMC/SD support that can be
20449        conditioned on CONFIG_MMCSD_SDIO.  From Gregory Nutt.
20450
20451    * On Semi LC823450 Boards:
20452
20453      - LC823450:  Fix up_allocate_heap() in lc823450_allocateheap2.c.  For
20454        lc823450, heap area in flat build mode must start just after
20455        _eronly.  Because bss/data area is allocated in lower address than
20456        text area in SRAM. See ld.scripts for details. Also, this change
20457        removes unused up_allocateheap.c  From Masayuki Ishikawa.
20458
20459    * Silicon Labs EFM32 Drivers:
20460
20461      - EFM32 Serial:  Juha Niskanen's fix related to STM32
20462        CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in EFM32.
20463        From Gregory Nutt.
20464      - EFM32 USB Device:  The epin_configure() function used the same eptype
20465        as the TxFIFO number for all endpoints.  This should probably be the
20466        physical EP number, not the EP type.  Suggested by Key Two.  From
20467        Gregory Nutt.
20468
20469    * STMicro STM32 Drivers:
20470
20471      - STM32* SPI:  Don't rely on SPI_CR1_SPE to determine if peripheral has
20472        been initialized.  This change is needed specifically for the case
20473        where a boot loader sets the SPE bit before starting NuttX.  In that
20474        case, the test in the SPI driver is wrong.  This change fixes that by
20475        assuring that NuttX has booted and initialized at least once (whether
20476        or not SPE is set) before the driver starts refusing to initialize.
20477        From Anthony Merlino.
20478      - STM32 F0, F7, H7, L4 Serial:  Fix use of CONFIG_SERIAL_IFLOWCONTROL
20479        where CONFIG_SERIAL_OFLOWCONTROL was intended.  From Juha Niskanen.
20480      - STM32 TIM:  Don't use hard-coded UIF interrupt in some functions.
20481        From raiden00pl.
20482      - STM32 (FS/HS), STM32F7, and STM32L4 OTGFS/HS Device:  The
20483        epin_configure() function used the same eptype as the TxFIFO number
20484        for all endpoints.  This should probably be the physical EP number,
20485        not the EP type.  Suggested by Key Two.  From Gregory Nutt.
20486      - STM32 F2:  Fixes Kconfig options to include all STM32F20XX processors,
20487        not just STM32F207.  Also removes redundant STM32_STM32F429 depends
20488        from Kconfig. STM32F4XXX already does this.  From Anthony Merlino.
20489      - STM32 F4 DAC:  STM32F407VG has only one DAC.  NDAC=2 causes
20490        compilation error when trying to use e.g. STM32_DAC1_CR macro.  From
20491        Petteri Aimonen.
20492      - STM32 F7 Serial:  Force invalidation of data cache after DMA re-enable
20493        when returning from low-power mode  From Juha Niskanen.
20494
20495    * STMicro STM32 Boards:
20496
20497      - B-L475E-IOT01A:  Correct timer source clock frequencies.  From Freemans
20498        Goden.
20499      - Nucleo-L432KC:  Fix SPI pin definitions in board.h.  From Daniel P.
20500        Carvalho.
20501
20502    * MIPS32:
20503
20504      - CP0 Definitions:  Fix some copy-paste errors that cause malformed
20505        comments and syntax errors when certain CP0 CONFIG1 bits are
20506        referenced.  Note in Issue 123 by Anonymous.  From Gregory Nutt.
20507      - microMIPS:  Reported by Anonymous in Bitbucket Issue #129:   When MIPS
20508        port is built for microMIPS and then loaded as an application, the
20509        __start entry point is entered in microMIPS mode, but the CPU core
20510        initialization code there misses to set the config3ISAOnExc bit to 1.
20511        Subsequently, exceptions are entered in MIPS32 mode, but the code base
20512        was built for microMIPS.
20513
20514     * Microchip PIC32MZ:
20515
20516      - PIC32MZ Startup:  In pic32mz-head.S, initialize the global pointer in
20517        all shadow sets.  From Ouss4.
20518
20519     * Microchip PIC32MZ Drivers:
20520
20521      - PIC32MZ Serial:  Fix a typo in assignment of TTYS0 to UART6  From Ouss4.
20522
20523    * Simulation:
20524
20525     - SIM Network Driver:  Fix error 'invalid operands to binary &' From
20526       Xiang Xiao.
20527
20528    * C Library/Header Files:
20529
20530      - Fix typographical error in endian.h and resource.h  From anchao.
20531      - include/net/if.h:  Adds extern "C" guard in include/net/if.h  From
20532        Anthony Merlino.
20533      - include/netinet/in.h:  Per OpenGroup.org, type of sin_port in struct
20534        sockaddr_in must be in_port_t vs uint16_t.  NOTE: in_port_t is
20535        typdef'ed as uint16_t anyway.  From Gregory Nutt.
20536      - include/nuttx:  Fix definitions used to access OS functions within the
20537        libraries.  In the FLAT build, we must always set the errno and/or
20538        create cancellation points because the same library functions are used
20539        within the OS as are used by applications.  This could cause issues
20540        for the OS but corrects some problems at the user interface.  Noted by
20541        Federico Braghiroli in Bitbucket issue 121.  From Gregory Nutt.
20542      - include/nuttx/clock.h:  Fix uptime wrong if DEBUG_FEATURES and
20543        SCHED_TICKLESS enabled.  From Xiang Xiao.
20544      - include/nuttx/fs/fs.h:  Fix some backward parameters in a new macro
20545        definition.  From Gregory Nutt.
20546      - include/nuttx/fs/fs.h:  Register_mtddriver should depend on CONFIG_MTD
20547        not CONFIG_MTD_PARTITION  From Xiang Xiao.
20548      - include/sys/socket.h:  Renumber the socket types.  They must begin at
20549        1, not zero. Socket type zero has a special meaning for some
20550        interfaces.  For example, getaddrinfo() uses a socket type of zero to
20551        many any type of socket.  The is no standard name for the
20552        any-type-socket, but macOS uses SOCK_UNSPEC.  NuttX will do the same.
20553        Issue noted by Anthony Merlino. From Gregory Nutt.
20554
20555      - libs/libc:  Correct some errors in psignal() and stpncpy().  From
20556        Lokesh B V.
20557      - libs/libc/math:  Add variable convergence in log() and logf() to avoid
20558        hangs caused by failure to converge for very specific input values.
20559        Also includes a small change to log() and logf() that improves
20560        accuracy and convergence time.  From Rajan Gill.
20561      - libs/libc/stdio: Fix conversion for format specifiers in sscanf() that
20562        appear right after a floating point format specifier.   When
20563        performing a floating point conversion the parsing code could consume
20564        more than required characters from the input buffer. This made
20565        impossible to convert input of form "1.1K" using format "%f%c".  Fix
20566        the issue by advancing the input buffer with the actual characters
20567        converted as a float point number.  From Mihai Serban.
20568      - libs/libc/stdio:  Remove CONFIG_NOPRINTF_FIELDWIDTH.  That option
20569        does, indeed, make the printf family of functions much smaller.  But
20570        it also adds a lot of complexity and makes the functions
20571        non-standard.  Removing this might break some of the tinier platforms
20572        but it is the best thing to do for long term maintenance for for
20573        OpenGroup.org compliance.
20574      - libs/libc/stdio:  Update to vsprintf().  This resolves the integer
20575        field width problem if Issue 35 for the cases of integer, long and
20576        long long integer types.  The output now matches the output form
20577        glibc.  From Gregory Nutt.
20578      - libs/libc/string:  Correct the return pointer value from stpncpy() for
20579        the case where the NUL terminator is transferred.  From Gregory Nutt.
20580      - libs/libc/string:  Fix strrchr() so that it considers null terminator
20581        as part of string.  From Petteri Aimonen.
20582      - libs/libc/wqueue:  Eliminate a race condition noted by Xiang Xiao.
20583        Use sigprocmask() so that we do not lose a signal.  From Gregory Nutt.
20584      - libs/libnx/nxfonts: Fix kerning of 'I' in Sans17x22 font.  From
20585        Petteri Aimonen.
20586      - libs/libnx/nxfonts:  In nxfonts_getfont(), avoid unnecessary warnings
20587        for other whitespace chars also.  From Petteri Aimonen.
20588      - libs/libnx/mxmu:  NXMU now re-validates window pointer for mouse
20589        events.  NXMU caches the previous window pointer so that further mouse
20590        events can be sent to the same window. However, if the window is
20591        destroyed while mouse button is held down, the pointer may become
20592        invalid and cause a crash. This patch revalidates the pointer before
20593        using it.  From Petteri Aimonen.
20594      - libs/libnx/nxtk: nxtk_bitmapwindow: Fix warning message when bitmap is
20595        fully off-screen.  From Petteri Aimonen.
20596
20597    * Build System:
20598
20599      - Fix issue with libcxx build.  This was changed multiple times, but
20600        should be fixed now.  From Anthony Merlino.
20601      - configs/Makefile and tools/Config.mk:  Move single file copy to the
20602        new function COPYFILE.  This fixes the Windows native build case when
20603        there is no cp or cp does not recognize Windows paths.  From Anatol
20604        Ivanov.
20605      - tools/Config.mk and tools/Makefile.win:  Force use 'cmd' for shell
20606        with windows native build  From Anatol Ivanov.
20607      - tools/Directories.mk:  Correct the path to the installed libcxx
20608        directory.  From Gregory Nutt.
20609      - tools/Makefile.win/unix:  Staging directory (and its libraries) should
20610        be removed on 'make clean' (issue noted by Dave Marples).  From
20611        Gregory Nutt.
20612
20613      - apps/Directory.mk:  If the current directory contains a Kconfig file
20614        and MENUDESC is not defined, then Directory.mk must not trash the
20615        Kconfig in the current directory.  From Gregory Nutt.
20616      - apps/Makefile:  Fix Windows native build patch extension.  From Anatol
20617        Ivanov.
20618
20619    * Other Tools:
20620
20621      - tools/Config.mk:  Fix an error in RWILDCARD implementation  From
20622        Anthony Merlino.
20623      - tools/configure.c: Add missing '\n' in printf statement
20624      - tools/configure.c:   Add missed -g option to getopt() string.  From
20625        Anatol Ivanov.
20626      - tools/configure.c and tools/configure.sh:  Fix Windows native
20627        pre-build kconfig-conf incompatibility.  From Anatol Ivanov.
20628      - tools/csvparser.h:  Extend MAX_PARMSIZE to 256.  Fixes this issue:
20629        70: Parameter too long: ...  From Xiang Xiao.
20630      - tools/link.bat: Fix .fakelink creation.  From Anatol Ivanov.
20631      - tools/mkdeps.c:  Fix '\0' missing with MinGW.  From Anatol Ivanov.
20632
20633    * NSH Library: apps/nshlib:
20634
20635      - apps/nshlib:  Correct maximum number of arguments that can be provided
20636        to the mksmartfs command.  From Eunbong Song.
20637      - apps/nshlib:  Add fflush to nsh_consolewrite().  This resolves this
20638        problem:  'cat /dev/ttyCP &' followed by 'echo ls >/dev/ttyCP'.  In
20639        that case we can't get the 'ls' result immediately, because 'cat' cmd
20640        uses nsh_consolewrite() and that uses fwrite with no fflush. We can
20641        get the 'ls' result after type '\n', because nsh will fflush output
20642        when get '\n'.  From ligd.
20643      - apps/nshlib:  nsh_catfile() should not append '\n' if the last char in
20644        file is already '\n'  From Xiang Xiao.
20645      - apps/nshlib:  Fix warning g_oldpwd defined but not used
20646      [-Wunused-const-variable] in nsh_envcmds.c.  From Xiang Xiao.
20647
20648    * Examples/Tests: apps/examples:
20649
20650      - apps/examples/adc/Kconfig:  CONFIG_BOARDCTL_ADCTEST does not exist
20651        anymore and should removed as a dependency.  From Eunbong Song.
20652      - apps/examples/webserver/Kconfig:  The webserver "app" allows for DHCP
20653        client to be enabled. However, the Kconfig infrastructure does not
20654        contain EXAMPLES_WEBSERVER_DHCPC config.  Based on patch from
20655        "Anonymous" attached to Bitbucket Issue #130.  From Gregory Nutt.
20656
20657    * System Utilities: apps/system:
20658
20659      - apps/system/hexed:  Fix memory leak  From zhuyanlin.
20660      - apps/system/i2c:  Fix i2c_msg freq initialization problem.  Typo
20661        prevented I2C frequency initialization in a struct i2c_msg.  From
20662        dongjiuzhu.
20663      - apps/system/system:  Fix warning when passing argument 6 of
20664        'task_spawn' from incompatible pointer type
20665        [-Wincompatible-pointer-types]  From Xiang Xiao.
20666
20667    * Network Utilities: apps/netutils:
20668
20669      - Correct some network-related configuration variable names.  All *_MTU
20670        defines were changes to *_PKTSIZE gut that was not reflected in
20671        apps/  From Gregory Nutt.
20672      - apps/netutils/netlib/netlib_parsehttpurl.c:  Correct handling of long
20673        URLs as noted in Bitbucket issue #119 (in the nuttx/ repository, not
20674        the apps/ repository).  From Gregory Nutt.
20675      - apps/netutils/codecs:  "dst" overflow protection when base64 string
20676        ends with "="  From Aleksandr Vyhovanec.
20677      - apps/include/netutils/ipmsfilter.h:  Eliminate error generated by bad
20678        pre-processor logic.  From Gregory Nutt.
20679
20680    * GPS Utilities: apps/graphics:
20681
20682      - apps/graphics/NxWidgets:  Fix garbage returned when
20683        CCycleButton::getValue() is called after removeAllOptions().
20684        CScrollingPanel should not draw outside the widget area.  From
20685        Petteri Aimonen.
20686
20687NuttX-7.28 Release Notes
20688------------------------
20689
20690The 128th release of NuttX, Version 7.28, was made on January 19, 2019,
20691and is available for download from the Bitbucket.org website.  Note
20692that release consists of two tarballs:  nuttx-7.28.tar.gz and
20693apps-7.28.tar.gz.  These are available from:
20694
20695    https://bitbucket.org/nuttx/nuttx/downloads
20696    https://bitbucket.org/nuttx/apps/downloads
20697
20698Both may be needed (see the top-level nuttx/README.txt file for build
20699information).
20700
20701Additional new features and extended functionality:
20702
20703    * Core OS:
20704
20705      - Critical Section Monitor:  Adds data collection logic in support of
20706        pre-task monitoring critical sections and pre-emption state.  From Gregory
20707        Nutt
20708      - Critical Section Monitor:  Add support for global pre-emption and
20709        global critical sections to monitor as suggested by Xiang Xaio.  From
20710        Gregory Nutt
20711      - Interrupt Time:   Measurement of interrupt handler duration used to
20712        be available only in Tickless mode since it used the high resolution
20713        Tickless timer to measure interrupt time.  This change adds
20714        CONFIG_SCHED_IRQMONITOR_GETTIME which, if enabled, will force the
20715        interrupt duration calculation to use the same high-resolution,
20716        platform-specific timer as is used with the Critical Section Monitor.
20717        This leads to two improvements:  (1) You can now measure interrupt
20718        duration in non-Tickless mode, and (2) in either mode, the interrupt
20719        duration and the critical section measures will use the same
20720        high-resolution timer and should, therefore, never be any discrepancy
20721        due to different clock sources.  From Gregory Nutt
20722      - Context Switching Protection:  Add debug assertions before each call
20723        to up_block_task() to assure that there is no attempt to block an
20724        IDLE task.  From Dave Marples
20725      - init Task:  Allow the init task priority to be configurable.  From
20726        David Sidrane
20727      - pthreads:  Implement pthread_key_delete().  This involves some minor
20728        changes to the group data structure.  From Gregory Nutt
20729
20730    * File Systems/Block and MTD Drivers
20731
20732      - ProcFS:  Extended the process ID ProcFS output to show per-thread
20733        maximum time for pre-emption disabled and maximum time within a
20734        critical section.  From Gregory Nutt
20735      - NXFFS:  Pass unrecognized IOCTL commands to the contained MTD
20736        driver.  From Daniel P. Carvalho
20737      - LittleFS:  Adds an initial port the ARM mbed littlefs to NuttX.  This does
20738        not include FLASH formatting utilities.  Depends on CONFIG_MTD_BYTE_WRITE.
20739        From lihaichen
20740      - AT25 MTD Driver:  Added support for AT25DF081A serial flash chip.
20741        From Marc Rosen
20742      - MTD Configdata Device:  Extends the MTD configdata device with the
20743        following features / additions:
20744          1. Configurable option to use named config items instead of enumerated
20745             ID/Instance numbers.
20746          2. Ability to iterate through the existing configdata items in the
20747             /dev/config device.
20748          3. Ability to "unset" a configdata item.
20749          4. Ability to perform "flash_eraseall" on the /dev/config device.
20750        From Ken Pettit
20751
20752    * Networking/Network Drivers:
20753
20754      - Telnet Driver:  Add NAWS and poll interface to telnet for screen size
20755        negotiation used with termcurses.  From Ken Pettit
20756
20757    * Wireless/Wireless Drivers:
20758
20759      - BLE HIC Core:  Add second RX work function  From Lwazi Dube
20760      - BLE IOCTL Commands:  Add SIOCBTCONNECT and SIOCBTDISCONNECT ioctl
20761        commands  From Lwazi Dube
20762      - CC2564:  Add cc2564 HCI UART driver.  From Lwazi Dube
20763
20764    * Graphics/Display Drivers:
20765
20766      - Sitronix ST7032i:  Add support to Alphanumeric Sitronix ST7032i
20767        display  From Alan Carvalho de Assis
20768      - NXP TDA19988:  This commit brings in a complete, but untested,
20769        implementation of a driver for the TI TDA19988 HDMI Encoder.  This encoder
20770        is used on the Beaglebone Black board.  Since this driver is untested, it
20771        requires CONFIG_EXPERIMENTAL in the configuration.  From Gregory Nutt
20772
20773    * Crypto:
20774
20775      - crypto/aes.c:  This change provides an improved AES cipher API in
20776        addition to the existing routines.  The reasons for this new API are:
20777        1) better performance, giving the possibility to avoid re-setting-up
20778        the key for each AES block when the same key is used multiple times.
20779        This is important for the current single user of AES, which is
20780        related to storage and FTL.  And 2) suitable for simultaneous use of
20781        multiple AES keys, which will be required by the upcoming crypto
20782        framework.  It retains compatibility with the previous API, so there
20783        is no need to change anything else right now.  From Sebastien Lorquet
20784
20785    * Other Common Device Drivers:
20786
20787      - MMCSD SDIO:  The mmcsd_sdio driver makes calls for dcache
20788        invalidation through the chip specific architecture function
20789        SDIO_DMARECVSETUP(). I changed the arch/arm/stm32f7 chips to use
20790        arch_invalidate_dcache_by_addr() instead of arch_invalidate_dcache().
20791
20792        This commit includes additional changes to mmcsd_sdio.c.  I
20793        created SDIO_DMADELYDINVLDT() (DMA delayed invalidate) to
20794        invalidate store-into mode dcaches after the DMA transfer.  I
20795        have been using SDIO_DMADELYDINVLDT() for several weeks now and
20796        it has fixed the problems that I previously reported regarding
20797        non-cache aligned buffer invalidation errors (for my store-through
20798        dcache). However, it does not permit use of unaligned DMA buffers
20799        for store-into mode dcaches.
20800
20801        SDIO_DMADELYDINVLDT() is a NoOp unless the chip specific Kconfig
20802        file selects CONFIG_ARCH_HAVE_SDIO_DELAYED_INVLDT. I have modified
20803        all the stm32f7 chips to select it.  From Bob Feretich
20804      - SPI Lower Half Interface:  Extend the HW features supported by SPI.
20805        It now supports a deferred DMA trigger hardware configuration.  From
20806        Dave Marples
20807      - DS28E17 1-Wire Driver:  Optimize I2C write followed by read to same
20808        address.  From Juha Niskanen
20809      - LMP92001:  Add support for the TI LMP92001 Multi-channle DAC/ADC
20810        device.  From Abdelatif Guettouche.
20811      - EEPROM Character Driver:  Add support to Microchip AT24CM02  From
20812        Alan Carvalho de Assis
20813      - Microchip MCP73871:  Add support to Microchip MPC73871 Battery Charger.
20814        From Alan Carvalho de Assis
20815      - MCP7941x:  Add support for the Microchip MCP741x external RTC.  From Ouss4
20816      - Sensirion SCD30:  Driver for Sensirion SCD30 CO2 sensor.  From Jussi
20817        Kivilinna
20818      - Sensirion SGP30:  Driver for Sensirion SCD30 gas sensor.  From Jussi
20819        Kivilinna
20820      - Sensirion SPS30:  Driver for Sensirion SCD30 particulate matter sensor.
20821        From Jussi Kivilinna
20822      - USB CDC/ACM Device:  When implemented usb cdc on nrf52840, I found
20823        some issues with  cdc driver:
20824          1. Lost data when receiving buffer is full;
20825          2. Low-water mask implement issue;
20826          3. Re-flush cdc buffer when enabling
20827          4. Serial dma is conflict with cdc , modify the serial.h
20828        From Levin Li
20829
20830    * MIPS32:
20831
20832      - Configuration System:  Allow Penguino for windows for the Windows
20833        Ubuntu platform as well.
20834
20835    * Maxim Integrated MAX326xx
20836
20837      - MAX32660:  Support for the MAX32660 was added (along with partial
20838        support for other members of the MAX326xx family).  The initial port
20839        includes  Clock configuration, timer, GPIO pin configuration, ICC,
20840        and UART.  Additional untested drivers are complete and ready for
20841        testing:  DMA, GPIO interrupts, SPI0 Master, TC, WDT.  The following
20842        drivers are not yet implemented: I2C and I2S.
20843
20844    * Maxim Integrated MAX326xx boards
20845
20846      - MAX32550-EVSYS:  Basic support for the Maxim Integrated MAC3X660
20847        EVSYS is included.  A basic NSH configuration is available and is
20848        fully functional.  Includes unverified support for an SPI0-based
20849        SD card.
20850
20851    * Microchip/Atmel SAMD21/L21 Drivers:
20852
20853      - SAMD21/L21:  Adds a complete ADC header file for SAMD21 and a partially
20854        complete ADC header file for the SAML21.  From Alexander Vasiliev
20855      - SAMD21/L21:  Export sam_i2c_master_initialize(int bus) to be used by
20856        board config.  From Alan Carvalho de Assis
20857
20858    * Microchip PIC32MZ Drivers:
20859
20860      - PIC32MZ I2C:  Add support for the I2C bus.  From Ouss4
20861
20862    * ARMv7-A
20863
20864      - ARMv7-A MMU:  Use TLBIMVA vs TLBIMVAAIS to invalidate the Cortex-A8
20865        cache.  From Petro Karashchenko
20866
20867    * ARMv7-M
20868
20869      - Cortex-M7 Cache:  This commit adds a new function
20870        arch_invalidate_dcache_by_addr(). It takes the same parameters as
20871        arch_invalidate_dcache(), but performs invalidation of only the lines
20872        in cache that need to be invalidated.  This new function could be
20873        used as a a direct replacement for arch_invalidate_dcache().  From
20874        Bob Feretich
20875      - ARMv7-M:  In the current implementation we only use very high
20876        priority interrupts (levels 0, 0x10 and 0x20 in CORTEX-M speak) but
20877        that means there are loads of lower priority ones that are
20878        effectively unused. I have *not* changed the semantics of these
20879        levels but have 'shifted' them to be based around the midpoint of the
20880        available interrupts (0x80) rather than at the top end....that allows
20881        for interrupts to be defined above (or, indeed, below) them as needed
20882        by the application.  This should have no functional effect on
20883        existing code but adds in a clean capability to define higher
20884        priority interrupts.  From Dave Marples
20885
20886    * Broadcom BCM2708:
20887
20888      - BCM2708:  Remove all support for the BCM2708/2835.  This was added
20889        only for support of the RaspberryPi Zero board which was previously
20890        removed.  The support was minimal and unverified.  The removed files
20891        can still be found in the Obsoleted directory.  From Gregory Nutt
20892
20893    * Broadcom BCM2708 Boards:
20894
20895      - Raspberry Pi Zero:  Remove the partial support for the Raspberry Pi
20896        Zero.  This port was started with the best of intentions but was
20897        never  completed.  The board support can still be found in the
20898        Obsoleted repository.  From Gregory Nutt
20899
20900    * Nordic NRF52 Boards:
20901
20902      - Improve LED handling #if~#endif in nrf52_autoleds.c and
20903        nrf52_userleds.c
20904          Add Adafruit Feather nRF52 board LED support
20905          Add Adafruit Feather nRF52 board
20906          Add nrf52-generic
20907          Replace 'pca10040' with 'generic'
20908          Copy from nrf52-pca10040 to nrf52-generic
20909        From Zou Hanya
20910
20911    * NXP i.MX RT Drivers:
20912
20913      - i.MXRT:  Add PIT, GPT, and QIMER(TMR) header files  From David Sidrane
20914      - i.MXRT:  Add FLEXPWM.  From David Sidrane
20915      - i.MXRT:  Add ADC chip header  From David Sidrane
20916      - i.MXRT Build:  Include up_systemreset and up_stackcheck.c  From David Sidrane
20917      - i.MXRT GPIO:  Add GPIO Support Input daisy selection.  From David Sidrane
20918      - i.MXRT Serial:  Support independent input and output flow control.  From
20919        David Sidrane
20920      - i.MXRT USB:  Use single define for USB pin definitions.  From David Sidrane
20921      - IMXRT106X:  Add FLEXCAN3 to pinmux header file. From David Sidrane
20922
20923    * NXP Freescale i.MX RT Boards:
20924
20925      - IMXRT1050-EVK:  GPIO device driver support added and tested by
20926        Pavlina Koleva and Ivan Ucherdzhiev.  From Pavlina Koleva
20927
20928    * On Semi LPC23450:
20929
20930      - LPC23450:  Add support for SPI flash boot.  Also, remove unnecessary
20931        code for the SPI flash boot.  From Masayuki Ishikawa
20932
20933    * On Semi LPC23450 Boards:
20934
20935      - LC823450-XGEVK:  Add linker script for SPI flash boot.  From
20936        Masayuki Ishikawa
20937      - LC823450-XGEVK:  Enable NFS client for RNDIS configuration.  Also, some
20938        stack size were adjusted to work with NFS  From Masayuki Ishikawa
20939
20940    * Simulation
20941
20942      - Critical Section Monitor:  Add low level timer support for simulation. From
20943        Gregory Nutt
20944
20945    * STMicro STM32:
20946
20947      - Configuration:  Simplify ARM core selection logic  From Mateusz Szafoni
20948      - Configuration:  USB Host is an option.  From David Sidrane
20949      - STM32 L0:  Brings in initial support for the STM23 L0.  From Mateusz
20950        Szafoni
20951
20952    * STMicro STM32 Drivers:
20953
20954      - STM32 ADC:  Configurable ADC DMA mode (one shot mode, circular
20955        mode).  From Mateusz Szafoni
20956      - STM32 ADC:  Start conversion on startup is now possible if TIM
20957        triggering selected.  This can be useful to start ADC TIM conversion
20958        for ADC IPv2 when opening ADC device.
20959      - STM32 DAC:  Unified naming for DAC interfaces  From Mateusz Szafoni
20960      - STM32 DMA:  Add interfaces to interact with high priority DMA
20961        interrupts. From Mateusz Szafoni
20962      - STM32 DMA:  Use STM32 DMA IP core version instead of chip family
20963        names.  From Mateusz Szafoni
20964      - STM32 DMA:  Add support for DMA v1 CSELR support.  From Mateusz Szafoni
20965      - STM32 HRTIM:  Do not enable timers on startup if option from Kconfig
20966        selected and add interface to enable/disable timers.  From Mateusz
20967        Szafoni
20968      - STM32 PWM:  Add timer enable/disable and frequency update to
20969        low-level ops.  From Mateusz Szafoni
20970      - STM32 SPI:  Implements the new deferred DMA trigger feature.  From
20971        Dave Marples
20972      - STM32 F0 Build:  Rename the stm32f0 directory to stm32f0l0 to make a
20973        space for STM32 L0.  Rename files, functions and defines, removing
20974        the f0_ from the names in order to make them MCU agnostic.  From
20975        Gregory Nutt
20976      - STM32 F0 GPIO:  Add support for GPIO EXTI.  From Mateusz Sfafoni
20977      - STM32 F2 FLASH:  stm32_flash_writeprotect() supported the same for
20978        STM32F20XX as STM32F4XXX  From Anthony Merlino
20979      - STM34 F7 DMA:  stm32f7 enable separate DMA per SPI configuration
20980        From Daniel Agar
20981      - STM32 F7 QEncoder:  Ported the QEncoder from F4 to F7.  From Eduard
20982        Niesner
20983      - STM32 F7 SPI:  Port Dave Marples STM32 deferred trigger enhancement
20984        to the STM32 F7 SPI drivers.  From Gregory Nutt
20985      - STM32 H7 SPI:  Port Dave Marples STM32 deferred trigger enhancement
20986        to the STM32 H7 SPI drivers.  From Gregory Nutt
20987      - STM32 L4 SPI:  Port Dave Marples STM32 deferred trigger enhancement
20988        to the STM32 L4 SPI drivers.  From Gregory Nutt
20989
20990      * STMicro STM32 Boards:
20991
20992      - B-L072Z-LRWAN1:  Add basic support for b-l072z-lrwan1.  Nucleo boards
20993        use as default ST LINK MCO as clock input from MCU and for this
20994        HSEBYP must be enabled.  From Mateusz Szafoni
20995      - Nucleo-F103RB:  Add board support. From Mateusz Szafoni
20996      - Nucleo-F103RB:  Add ADC and PWM examples.  From Mateusz Szafoni
20997      - Nucleo-F207ZG:  Add board support. From Mateusz Szafoni
20998      - Nucleo-F207ZG:  Add ADC and PWM examples.  From Mateusz Szafoni
20999      - Nucleo-F302R8:  Add high priority ADC interrupts example to the
21000        'highpri' configuration.  From Mateusz Szafoni
21001      - Nucleo-F334R8:  Add support for ADC injected sequence to the 'highpri'
21002        configuration, add triggering from TIM1.  From Mateusz Szafoni
21003      - Nucleo-F334R8:  Add example for the SPWM generation (custom STM32 PWM
21004        usage).  From Mateusz Szafoni
21005      - Nucleo-F767ZI:  Use on board USB UART as default console.  Board is powered
21006        by USB which can be used as UART link for upload and console.  Previously
21007        it was set to use Arduino shield which developer may not have.  From Phil
21008        Coval
21009      - Nucleo-F767ZI:   Add ethernet config based on nsh configuration plus
21010        stm32f769i-disco/nsh-ethernet.  From Phil Coval
21011      - Nucleo-L073RZ:  Add basic support for nucleo-l073rz.  Nucleo boards
21012        use as default ST LINK MCO as clock input from MCU and for this
21013        HSEBYP must be enabled.  From Mateusz Szafoni
21014      - Nucleo-L152RE:  Add board support. From Mateusz Szafoni
21015      - STM32F4 Discovery:  Add timing support for the critical section
21016        monitor using the DWT CYCNT register.  From Gregory Nutt
21017      - STM32F4 Discovery:  If the Critical Section Monitor, modify the
21018        ITM_LAR register to assure that the DWT cycle counter is enabled.
21019        Suggested by Dave Marples.  From Gregory Nutt
21020      - STM32F4 Discovery:  Add board support to display ST7032i  From Alan
21021        Carvalho de Assis
21022      - STM32F4 Discovery:  Add loadable application build support in
21023        Make.defs  From Masayuki Ishikawa
21024      - STM32F4 Discovery:  Update RNDIS configuration: (1) Add NFS and adjusted
21025        stack size for usermain and telnetd client.  (2) Add support for loadable
21026        application and ping. From Masayuki Ishikawa
21027      - STM32F4 Discovery:  Update nsh configuration: (1) Add
21028        CONFIG_BOARD_INITIALIZE=y, (2) Add CONFIG_EXAMPLES_HELLO=y.  From Masayuki
21029        Ishikawa
21030      - STM32F429I-DISCO:  Add high priority ADC interrupts example to the
21031        'highpri' configuration.  From Mateusz Szafoni
21032      - configs/nucleo-l073rz:  Support for nrf24l01.  From Mateusz Sfafoni
21033
21034    * TI CCxx:
21035
21036      - CC13x0 family and  CC13x2/CC26x2:  Basic, minimal support was added
21037        for these two chip families.  This is a Work-In-Progress:  There is
21038        just enough logic in place to support a simple NSH configuration.
21039        However, the port is still missing certain, necessary hooks into the
21040        TI ROM-based 'DriverLib'.  As a result, the support is not fully code
21041        complete and is totally untested.   Support for the CC26x2, which is
21042        nearly identical to the CC13x2 is fragmentary.  Stay tuned.
21043        Hopefully full support will be available in NuttX 7.29.
21044
21045    * TI CCxx Boards:
21046
21047      - LAUNCHL-CC1312R1:  Board support is available for the TI
21048        LAUNCHL-CC1312R1.  That board support consists only of an unverified
21049        NSH configuration.  The primary purpose of this port for the time
21050        being is simply support the core architecture bring-up.
21051
21052    * TI AM335x:
21053
21054      - AM335x:  Adds initial support for the TI AM355x family.
21055      - AM335x:  Add minimal wdog logic needed to disable the watchdog timer.
21056        Otherwise, the board is rebooted after certain time expires while NuttX is
21057        running.  From Petro Karashchenko
21058      - AM335x:  Switch to DMTimer2 for system tick generation. U-Boot does not
21059        enable DMTimer1ms clocks hence it is not possible to use it until
21060        implementation in am335x_clockconfig.c is ready.  From Petro Karashchenko
21061
21062    * TI AM335x Boards:
21063
21064      - Beaglebone Black:  Initial port for BeagleBone Black board support
21065        (TI AM335x family based on Cortex-A8).  Includes a basic functional NSH
21066        configuration .  From Petro Karashchenko
21067
21068    * TI Tiva:
21069
21070      - LM3S9B92:  Add support for LM3S9B92.  From Lwazi Dube
21071
21072    * TI Tiva Drivers:
21073
21074      - Tiva HCI UART:  Port bluetooth HCI uart interface from stm32 to tiva
21075        From Lwazi Dube
21076
21077    * TI Tiva Boards:
21078
21079      - TM4C1294-Launchpad:  Add IRQBUTTONS support to tm4c1294 launchpad.
21080        From Lwazi Dube
21081
21082    * Tools:
21083
21084      - tools/convert-comments.c:  Add a tool to convert C++-style comments
21085        to C89 C-style comments.  From Gregory Nutt
21086      - tools/detab.c:  Add detab.c which will convert all tabs in a file to
21087        spaces.  From Gregory Nutt
21088      - tools/lowhex.c:  Add lowhex.c that will convert hexadecimal constants
21089        in a file to use lower case representation.  From Gregory Nutt
21090      - tools/mkconfig.c:  Add definitions to distinguish between tristate
21091        'y' and 'm' options.  From Gregory Nutt
21092      - tools/nxstyle.c:  Add logic to detect long lines.  From Gregory Nutt
21093      - tools/nxstyle.c:  Add -h for help.  From Gregory Nutt
21094
21095    * Libraries/Header Files:
21096
21097      - include/nuttx/lcd/edid.h:  Add EDID definitions  From Gregory Nutt
21098      - libs/libc/netdb:  Make DNS retries configurable  From Juha Niskanen
21099      - libs/libc/netdb:  Harden query logic against DNS spoofing.  This
21100        commit implements most of the RFC 5452 guidelines for making DNS more
21101        resilient. We now verify response matches against what was queried
21102        and use unpredictable query IDs. It is also checked that response
21103        come from correct DNS server.  Also fixes a buffer overflow when
21104        querying hostnames longer than CONFIG_NETDB_DNSCLIENT_NAMESIZE.  From
21105        Juha Niskanen
21106      - libs/libc/netdb:  Support multiple IP addresses per hostname  From
21107        Juha Niskanen
21108
21109    * NSH: apps/nshlib:
21110
21111      - apps/nshlib:  Add support to use SLCD as NSH Console  From Alan Carvalho de
21112        Assis
21113      - apps/nshlib:  Add support for CROMFS start-up script. From David Sidrane
21114      - apps/nshlib:  Add var expansion in NSH parse.  From Daniel Agar
21115      - apps/nshlib:  Display built-in apps using multi-column mode like the NSH
21116        commands.  From Ken Pettit
21117      - apps/nshlib:  In all multi-column help output, calculate an optimal column
21118        width rather than using a hard-coded width that may or may not be
21119        appropriate.  Also make the number of rows presented dependent upon the
21120        maximum width of the widest column.  From Gregory Nutt
21121      - apps/nshlib:  Adds addroute command options for setting default gateway.
21122        Like 'addroute default <ipaddr> <interface>'.  From Anthony Merlino
21123
21124    * Examples/Tests: apps/examples:
21125
21126      - apps/examples/battery:  Add Battery Charger Monitor Example  From Alan
21127        Carvalho de Assis
21128
21129    * System Utilities: apps/system
21130
21131      - apps/system/configdata:  Adds an "cfgdata" command which allows
21132        manipulation of the /dev/config items via the command line.  One such use
21133        for this utility would be to set a "macaddr" configdata item, etc.  The
21134        utility is sort-of like a u-boot env variable edit function:
21135
21136        For instance, to set a "macaddr" when the new CONFIG_MTD_CONFIG_NAMED
21137        option is selected, you would do:
21138
21139          nsh> cfgdata set macaddr [0xfc 0x01 0x0b 0x45 0xa1 0x12]
21140          (The brackets denotes an array of bytes)
21141          nsh> cfgdata set hostname myboard
21142
21143        or using the old ID,INSTANCE numeric method:
21144
21145          nsh> cfgdata set 0,0 [0xfc 0x01 0x0b 0x45 0xa1 0x12]
21146          (The brackets denotes an array of bytes)
21147          nsh> cfgdata set 1,0 myboard
21148
21149        You can also display all config items:
21150
21151          nsh> cfgdata print all
21152          Name                    Len   Data
21153          macaddr                 6     0xFC 0x01 0x0B 0x45 0xA1 0x12
21154          hostname                8     myboard
21155
21156        From Ken Pettit
21157      - apps/system/critmon:  Add a daemon to monitor critical section usage. From
21158        Gregory Nutt
21159      - apps/system/nsh:  Set NSH priority if the NSH task was scheduled at a
21160        different priority than the configured priority.  From Gregory Nutt
21161      - apps/system/nxplayer:  Introduce CONFIG_NXPLAYER_MAINTHREAD_STACKSIZE. From
21162        Masayuki Ishikawa
21163      - apps/system/termcurses:  Addition of termcurses libraries in
21164        apps/system/termcurses  From Ken Pettit
21165      - apps/system/vi:  New feature additions
21166          1.  Vi startup feature to prepend the current working directory to the
21167              supplied filename if it does not start with '/' absolute path
21168              specifier.  This allows editing files in the current directory
21169              without needing to fully qualify the filename.
21170          2.  Standard '~' empty screen line characters for proper identification
21171              of empty '\n' only lines at the end of the file.
21172          3.  Moving into insert or append mode now prints '--INSERT--' in the
21173              status line and clears it upon exit.
21174          4.  Integration with termcurses to detect special keystrokes and to
21175              handle terminal type differences.  Haven't yet converted all vt100
21176              print codes to termcurses equivalents.
21177          5.  Support for up, down, left, right arrows, page-up, page-down keys in
21178              command mode.
21179          6.  Added 'b' command to move cursor 'b'ack to previous word.  Honors the
21180              command repeat value for multiple word moves.
21181          7.  Added 'w' command to move cursor to next 'w'ord.  Honors the command
21182              repeat value for multiple word moves.
21183          8.  Added 'f' and 't' commands to find characters on the current line.
21184              Honors the command repeat value.
21185          9.  Added the find 'n'ext command to repeat the previous find operation.
21186          10. Added the 'H', 'M', and 'L' commands to move the cursor to top,
21187              middle and bottom of the display.
21188          11. Extended yank/paste to manage a paste buffer with character mode in
21189              addition to line mode.  Character mode allows cut / paste of
21190              individual characters or groups of characters vs. full lines.
21191          12. Added support in the 'd'elete and 'y'ank commands for character mode
21192              deletions such as 'dw', 'dfa', '2yw', etc.
21193          13. Added support in paste routine for multiple paste using command value
21194              argument.
21195          14. Added support for the 'D' and 'C' delete and change to end of line
21196              commands.
21197          15. Added support for 's'ubstitute key ('x' followed by insert mode).
21198          16. Modified yank / paste allocation scheme to avoid repeated alloc and
21199              free of paste buffer.  Uses a minimum allocation size scheme and only
21200              does free / realloc when paste does not fit.  If the paste is smaller
21201              than the current allocation and the current allocation is larger than
21202              the threshold, then the buffer is freed and a smaller buffer
21203              allocated.  Otherwise the existing buffer is used.
21204          17. Support for 'P'aste before current cursor position.
21205          18. Support for '?' reverse search mode.
21206          19. Support for 'J'oin next line with current line command.
21207          20. Printing of current row,col in status line of display.
21208          21. Command repeat '.' support for commands that modifiy text.
21209          22. Support in replace  / insert mode for arrow keys, PGUP / PGDN, HOME,
21210              and END.  Using these will cause the command repeat buffer to reset
21211              such that only the last text addition after a cursor movement is saved.
21212          23. Added 'X' delete previous command.
21213          24. Added "gg" go to top of document command sequence.
21214          25. Added "ZZ" save and quit command (equivalent to :wq).
21215          26. Implemented '^' goto first non-whitespace on current line, along with
21216             '+' and '-' goto first non-whitespace on next / previous line.
21217          27. Added CR / LF goto first non-whitespace on next line in command
21218              mode.  From Ken Pettit ?
21219
21220    * Network Utilities: apps/netutils:
21221
21222      - apps/netutils/webserver:  The webserver/httpd app is was broken when script
21223        support was enabled (CONFIG_NETUTILS_HTTPD_SCRIPT_DISABLE). The root cause
21224        has been tracked down to the "Content-length" not being available ahead of
21225        time in this case (length of -1 passed to send_headers() ).  On the other
21226        hand, the server closing the socket does not result in FIN being sent to
21227        the browser either (FIN not supported by NuttX yet).
21228
21229        Simple solution: Add support for HTTP Chunked Encoding to webserver/httpd.
21230        The change is simple. It adds a configuration option to enable chunked
21231        encoding. When enabled, the implementation will auto-detect the cases where
21232        content length is not available ahead of time, and will automatically
21233        engage chunked encoding transfers.
21234
21235        Without this patch, the browser/client hangs forever, as it is expecting
21236        more data. With this patch, the browser displays the content.  From Vlado
21237        Vidovic
21238
21239    * Wireless Utilities: apps/wireless:
21240
21241      - apps/wireless/bluetooth/btsak: Add connect and disconnect commands to
21242        btsak.  From Lwazi Dube
21243
21244    * Graphic Utilities:  apps/graphics:
21245
21246      - apps/graphics/pdcurs34:  Integration of termcurses into pdcurses, plus
21247        pdcurses updates for multi-thread support  From Ken Pettit
21248      - apps/graphics/pdcurs34:  Adds a configuration option to pdcurses to enable
21249        line-drawing character (ALTCHARSET) when using the short 16-bit chtype.
21250        This is done by limiting the characters to 7-bit ASCII values and using the
21251        8-th bit as the A_ALTCHARSET bit.  This allows a significant RAM savings 4K
21252        - 20K depending on terminal size) while still allowing the nicer
21253        line-graphic characters for border drawing.  From Ken Pettit
21254
21255    * Testing:  apps/testing:
21256
21257      - apps/testing/ostest:  Add test for pthread-specific data.  From Gregory
21258        Nutt
21259
21260Bugfixes.  Only the most critical bugfixes are listed here (see the
21261ChangeLog for the complete list of bugfixes and for additional, more
21262detailed bugfix information):
21263
21264    * Core OS:
21265
21266      - Assertions:  Identify the running task correctly when dumping task
21267        state information.  It takes time to switch to the target task after
21268        g_readytorun has been modified.  If panic/assert happen during this
21269        period, the dump will contain the incorrect and confusing information
21270        due to the difference between the real running task and the return
21271        value of this_task(). This change resolve this problem by adding
21272        g_running_task to track the real running task through the context
21273        switch.  From Xiang Xiao
21274      - Assertions:  Correct duplicated logic from commit
21275        dbf01d12b7321d1b48b68d3b69842a853b049376.  Checking for PID == zero
21276        is not a valid way to test for the IDLE task in all configurations!
21277        This is only true in the single CPU configuration.  In multiple CPU
21278        configurations, there will be a separate IDLE task for each CPU with
21279        a different PID and an alternative check must be used.  NOTE:  The
21280        logic fixed in some places still lacks sufficient intelligence in SMP
21281        mode to find the right stack for the CPU IDLE thread and could still
21282        show the wrong stack.  From Gregory Nutt
21283      - Interrupt Prioritization:  Remove all driver-specific logic that may
21284        set the interrupt priority to anything but the default.  There is no
21285        good reason to change the interrupt priority unless you just want to
21286        debug a difficult problem.  OR if you want to use high priority
21287        interrupts.  In that case the specific interrupt priorities will need
21288        to be set by board-specific logic.  From Gregory Nutt
21289      - Memory Management:  Revert "This patch prevent heap corruption as in
21290        below case."  This solution to the problem noted by EunBong Song
21291        results in major memory fragmentation and out-of-memory
21292        conditions on the PX4 platform.  On that platform the lower priority
21293        work queue is very low priority and essentially never runs when the
21294        system is busy.  As a result, the systems gets slowly starved of
21295        memory until failures and bad behaviors begin to occur.  From Gregory Nutt
21296      - Memory Management:  This is a replacement for EunBong Song's reverted
21297        change.  This change adds (1) logic in getpid() to return an error instead
21298        of the PID if the (apparent) currently executing task is not marked as
21299        RUNNING.   Then (2) mm_trysemaphore() (the root implementation of both
21300        kmm_trysemaphore() and umm_trysemaphore()) will know that the (apparent)
21301        running task cannot be the holder of the semaphore.  How could the
21302        non-running task be trying to get the MM semaphore?  I think only in the
21303        exact scenario that Eunbong Song has described.  So this new solution
21304        should provide the same protection as the original change but without the
21305        bad  consequences to memory usage.  From Gregory Nutt (with corrections
21306        from David Sidrane)
21307      - Memory Management:  In implementation of calloc(), verify that the number of
21308        elements times the size of an element will not overflow type size_t.  This
21309        is required by the SEI CERT C coding style and resolves anonymous Bitbucket
21310        Issue #139  From Gregory Nutt
21311      - sigtimedwait():  Remove unnecessary disable of pre-emption.  From
21312        Gregory Nutt
21313      - _exit():  Update all architecture-specific _exit() implementations
21314        so that they correctly call the scheduler instrumentation layer for
21315        the new task that runs when the old one exits.  This missing
21316        instrumentation was confusing the Critical Section Monitor logic with
21317        uses this instrumentation to track the state of critical sections.
21318        From Gregory Nutt
21319      - sched_foreach():  sched_foreach() should not have to hold the
21320        critical section over the entire traversal.  It should be acceptable
21321        to simply only the critical section while one entry is being
21322        processed (the caller can always call sched_foreach within a critical
21323        section is greater stability is needed).  From Gregory Nutt
21324      - task_spawn():  Correct description of input parameters to
21325        task_spawn_exec().  Noted by: JeongchanKim  From Gregory Nutt
21326
21327    * Crypto:
21328
21329      - crtypo/:  This change:
21330
21331          Avoids the use of up_aesinitialize() entirely, which resolves
21332          dependency problems, because this function does not make sure that
21333          an actual hardware aes implementation was made available: each SoC
21334          is now responsible to ensure the AES hardware is initialized before
21335          first use.  This applies to lpc43xx, stm32 and sam34.
21336
21337          Remove definitions of the NEVER used aes_init and aes_update
21338          operations.  The new AES API will be more suitable.
21339
21340        From Sebastien Lorquet
21341
21342    * File System/Block and MTD Drivers:
21343
21344      - opendir():  Corrects a problem with opendir() noted by Petteri
21345        Aimonen in Bitbucket Issue 132: "opendir() fails for FAT filesystem
21346        with trailing slash in path".  I see the following behaviour on NuttX
21347        7.26, where I have SD card mounted on /flash and a directory called
21348        "frm" on it:
21349
21350          opendir("/flash")  returns  (DIR *) 0x1000c580
21351          opendir("/flash/") returns (DIR *) 0x1000c5d0
21352          opendir("/flash/frm")  returns (DIR *) 0x1000c620
21353          opendir("/flash/frm/")  returns (DIR *) 0x0
21354
21355        From POSIX specs for opendir(): "A pathname ... that ends with one or
21356        more trailing slashes shall be resolved as if a single dot character
21357        ( '.' ) were appended to the pathname."  So for mount points,
21358        opendir() works correctly, but for FAT32 filesystem it fails to open
21359        directory if the path has a trailing slash...
21360
21361        NOTE: You would not see this problem if you call opendir() indirectly
21362        in NSH (like 'ls -R /') because NSH contains logic to remove trailing
21363        '/' characters from paths.  From Gregory Nutt
21364      - dup()/dup2():  dup() and dup2() were broken some time back.
21365        fs_dupfd() was return returning OK on success, not the file
21366        descriptor of the duplicated fd.  From David Sidrane
21367      - ProcFS:  Remove the unnecessary critical section  From Xiang Xiao
21368      - CROMFS:  Fix hardfault.  From David Sidrane
21369      - SmartFS MTD Driver:  Fix smart_write_alloc_sector sector size mapping.
21370        Was not correctly calculating the encoded sector size for small (256)
21371        byte or large (>= 4096 byte) sectors.  Noted by Daniel P. Carvalho.
21372        Fix from Ken Pettit
21373      - AT25 MTD Driver:  Fixed missing opening parenthesis.  From Marc Rosen
21374      - MTD Configdata MTD Driver:  Check return value mtdconfig_readbytes().
21375        From Jussi Kivilinna
21376      - S25FL1 MTD Driver:  Minor change for the s25fl1 QSPI FLASH driver which
21377        fixes additional sectorshift vs. pageshift confusion.  From Ken Pettit
21378
21379    * Networking/Network Drivers:
21380
21381      - All network drivers!  Change pre-processor logic that selects the
21382        high priority work queue or gives preferential treatment to the high
21383        priority work.  All network logic must run on the low priority work
21384        queue!  Or suffer the consequences.  From Gregory Nutt
21385      - Socket Clone/Dup:  On a failure to start the TCP monitor, the cloned
21386        socket is closed but is not properly freed, leaving it attached to a
21387        TCP connection structure with the wrong reference count.  From
21388        Gregory Nutt
21389      - ARP:  Fix whitespace after ARPHRD_IEEE80211 in ARP header file.  From
21390        Daniel Agar
21391      - 6LoWPAN:  Fixes decompression of ipaddr from MAC address.  The logic
21392        used to populate the IP from the radio address should match
21393        sixlowpan_ipfromsaddr/sixlowpan_ipfromeaddr  From Anthony Merlino
21394      - 6LoWPAN: Fixes logic surrounding the Universal/Local bit.  This bit
21395        represents whether the IID is locally/globally administered. The U/L
21396        bit is bit 1 of the MSB of the EUI-64. It should only be inverted in
21397        cases where there is a full EUI-64. In cases where the IID is derived
21398        from say, a short address, this bit should be forced to 0, indicating
21399        that it is locally administered.   See:
21400          https://tools.ietf.org/html/rfc4291#section-2.5.1
21401          https://tools.ietf.org/html/rfc4944#section-6
21402          https://tools.ietf.org/html/rfc2464#section-4
21403        From Anthony Merlino
21404      - 6LoWPAN: IEEE802.15.4 stores and uses addresses in little endian
21405        order.  From Anthony Merlino
21406      - 6LoWPAN:  Address comment regarding avoiding double lookup of address
21407        context.  From Anthony Merlino
21408      - 6LoWPAN:  Record and restore d_buf on entry/exit of sixlowpan_input.
21409        This avoids an issue where d_buf gets set to NULL by 6LoWPAN, and
21410        then is used by forwarding logic from another network interface
21411        before getting set back to the drivers internal buffer.  From Anthony
21412        Merlino
21413      - 6LoWPAN:  sixlowpan_input should always return 0 if the incoming frame was
21414        consumed.  From Anthony Merlino
21415      - TUN Driver:  Fixes a problem reported by Masayuki Ishikwawa:  Recently I
21416        noticed that ARP response packet is corrupted when I tried to run
21417        bluekitchen with the latest tun.c in TAP mode.  If I revert commit
21418        8193c28e9126c9cb89042e80d6ebab7485a831e4, then it works again.  From Xiang
21419        Xiao
21420      - Telnet Driver:  Add missing logic to set read event flags in poll()
21421        method.  From Ken Pettit
21422
21423    * Wireless/Wireless Drivers:
21424
21425      - BLE:  Fix uninitialized variables.  From Lwazi Dube
21426      - BLE GATT header file:  Fix struct name.  From Lwazi Dube
21427      - BLE GATT:  Remove unnecessary GATT ioctls  From Lwazi Dube
21428
21429    * Graphics/Display Drivers:
21430
21431      - ST7032:  Fix seek method.  Was not taking into account the offset for the
21432        SEEK_END case.  Did not account for negative offsets.  On errors, it was
21433        clobbering the filep->f_pos setting.  From Gregory Nutt
21434      - PCF8574 Backpack:  Fix seek method.  Had the same problems as noted for
21435        ST7032 driver.  From Gregory Nutt
21436
21437    * Common Drivers:
21438
21439      - Button Upper Half:  Fix two bad NULL checks  From Juha Niskanen
21440      - PWM Interface:  Remove dependency on CONFIG_PWM for the upper-half
21441        PWM header.  This allows compilation for the lower-level PWM drivers
21442        even if the upper-half PWM logic is not used.  From Mateusz Szafoni
21443      - Various I2C Drivers:  In most I2C drivers, correct upper index value
21444        in I2C trace dump. Eliminates the extra NONE event from the trace
21445        dump output. From Ouss4
21446      - Battery Gauge:  Add missing initialization of semaphore.  From Alan
21447        Carvalho de Assis
21448      - Batter Charger:  Add missing initialization of semaphore.  From Alan
21449        Carvalho de Assis
21450      - MCP73871:  Fix Microchip MCP73871 Battery Charger driver to register
21451        correctly as a battery charger.  The first element of a 'struct
21452        battery_charger_dev_s' should be a pointer to operations structure. From
21453        Alan Carvalho de Assis
21454      - MCP794xx:  Fix MCP794xx driver to wait for OSCRUN and fix tm_year.  From
21455        Abdelatif Guettouche
21456      - Numerous files:  Fixes usage of CONFIG_BIG_ENDIAN; should be
21457        CONFIG_ENDIAN_BIG  From Anthony Merlino
21458
21459    * ARMv7-A:
21460
21461      - ARMv7-A MMU:  Fix end address calculation for mmu_invalidate_region() API
21462        From Petro Karashchenko
21463
21464    * ARMv7-M:
21465
21466      - ITM:  Fix missing space causing macro issues  From Alan Carvalho de
21467        Assis
21468      - Common Exception Handlers:  This commit changes the lazy and non-lazy
21469        exception handler to remove a couple of cpsid instructions from them
21470        on ARMv7-m.  If my understanding is correct then these interrupt
21471        manipulations aren't doing anything anyway because prioritization
21472        stops secondary interrupts arriving and, even if they did work, they
21473        would have introduced race conditions for the period of time between
21474        the interrupt arriving and further interrupts being disabled.  From
21475        Dave Marples
21476      - MPU/Protected Mode Build:  Revert "arch/arm/armv7-m:  MPU:
21477        mpu_log2regionceil needs take into account the offset too".  Masayuki
21478        Ishikawa reports that this commit breaks ALL PROTECTED mode builds.  It
21479        violates the basic requirements of the use of the MPU in protected mode.
21480        Those basic requirements are:
21481          1. The MPU region must be aligned to the base address of the memory
21482             region being mapped (it may NEVER extend before the memory region).
21483             That is, the following MUST always be zero: (base & ((1 << l2size) - 1))
21484          2. The MPU region must never extend beyond the end of the memory region.
21485             That is, the following must be true:  size >= (1 << l2size)
21486        From Gregory Nutt
21487
21488    * Microchip PIC32MX Drivers:
21489
21490      - PIC32MX Ethernet:  Fix a comparison in a debug assertion.  Should be
21491        <= vs <.  Noted by Anonymous in Bitbucket Issue 134.  From Gregory Nutt
21492
21493    * Microchip PIC32MZ:
21494
21495      - PIC32MZ chip.h Header:  Add a missing " in an error message. From Ouss4
21496
21497    * Microchip PIC32MZ Drivers:
21498
21499      - PIC32MZ Ethernet:  Fix a comparison in a debug assertion.  Should be
21500        <= vs <.  Noted by Anonymous in Bitbucket Issue 134.  From Gregory Nutt
21501
21502    * Microchip/Atmel SAMD21/L21
21503
21504      - SAMD21/L21:  Corrects behavior of the I2C_M_NOSTART flag.  Also adds
21505        a release a bus on RXNACK and corrects typo priv->flags to msg->flags
21506        as priv->flags is never set.  From Alexander Vasiliev
21507      - SAMD21/L21:  Fix SAMD2L2 arch to use calibrated oscillator value.  Now
21508        SAMD20 and SAMD21 should work fine without external crystal.  Note that
21509        SAML21 Xplained board has an external crystal and doesn't need this change,
21510        unless you don't want to use the crystal.  From Alexander Vasiliev
21511      - SAMD21/L21 I2C Master:  Adds calculation of a timeout and disables
21512        interrupts in case of error.  From Alexander Vasiliev
21513
21514    * Microchip/Atmel SAMD21/L21 Boards
21515
21516      - SAML21-Xplained:  Fix removed MAXCOARSESTEP from saml21-xplained board.
21517        From Alan Carvalho de Assis
21518
21519    * Microchip/Atmel SAMD51/Ex
21520
21521      - SAMD51/Ex:  Alexander Vasiliev's fix to the SAMD21 I2C Master (commit
21522        b1110ba91c549572e94c24ebed202643233deee3) should probably also be
21523        applied to the SAMD51 I2C Master which is identical.  From Gregory Nutt
21524
21525    * Microchip/Atmel SAMV7
21526
21527      - SAMV7 Serial:  Fix case where TTYS0 is not defined.  From Ken Pettit
21528
21529    * Maxim Integrated MAX326xx
21530
21531      - MAX326xx:  WFI instruction in IDLE loop seems to interfere with
21532        stability.  Commented out for now.  Needs to be investigated further.
21533        From Gregory Nutt
21534
21535    * NXP i.MXRT Drivers:
21536
21537      - i.MXRT FLEXPWM:  Correct duplicated definitions  From David Sidrane
21538      - i.MXRT SERIAL:  Fix TTYS0 defined definitions of higher numbered ports
21539        From David Sidrane
21540      - i.MXRT LPSPI:  Removed unused clock, that borked the build.  From David
21541        Sidrane
21542      - i.MXRT LPI2C:  I2C Reset rework  From David Sidrane
21543
21544    * On Semi LC823450:
21545
21546      - LC823450:  Fix up_allocate_heap() in lc823450_allocateheap2.c.  This
21547        change fixes heap size and also implements up_addregion().  From
21548        Masayuki Ishikawa
21549      - LC823450:  Fix go_os_start() in lc823450_start.c. I found a bug in
21550        go_os_start() that it returns immediately because it does not compare
21551        r1 to zero. This commit fixes this bug. Also, this commit fixes its
21552        description.  From Masayuki Ishikawa
21553      - Other Architectures:  Masayuki Ishikawa's change to go_os_start() was
21554        also to all MCU-specific start-up functions that support
21555        go_os_start(). From Gregory Nutt
21556
21557    * On Semi LC823450 Boards:
21558
21559      - LC823450-XEVK:  Fix IOB params in rndis/defconfig.  These parameters
21560        work for HTTP audio streaming. From Masayuki Ishikawa
21561      - LC823450-XGEVK:  Change RNDIS MAC address assignment in rndis
21562        configuration.  In previous implementation, mac[0] was assigned to
21563        0xaa for RNDIS host to avoid MAC address conflicts with RNDIS
21564        device..  However, I noticed that this assignment causes a random MAC
21565        address generation on ubuntu16.04 or later which is inconvenient to
21566        set up network interface.  This new assignment scheme fixes this
21567        issue.  From Masayuki Ishikawa
21568      - LC823450-XGEVK:  Fix overlapped memory settings in memory.ld.  From
21569        Masayuki Ishikawa
21570
21571    * STMicro STM32 Drivers:
21572
21573      - STM32:  Remove redundant STM32 family definitions from chip.h header
21574        file. It is already done in arch/arm/src/stm32/Kconfig  From Mateusz
21575        Szafoni
21576      - STM32 ADC:  There is no DMA CFG bit for the basic IPv1 ADC.  From
21577        Mateusz Szafoni
21578      - STM32 ADC:  Refactor adc_reset. It should be easier to maintain this
21579        code if it's divided into smaller functions  From Mateusz Szafoni
21580      - STM32 F0 Clocking:  Fixes the problem in GPIO port clocks. Only port
21581        A clock was enabled although the comment states otherwise.  From Juha
21582        Paalij�rvi
21583      - STM32 F7 I2C:  I2C out of bounds access on priv->msgv.  Error in if
21584        statement. It was checking for msgc > 0.  If message count is 1, only
21585        index 0 is valid on priv->msgv.  Therefore random values in memory
21586        were used to set next_norestart.  From David Sidrane
21587      - STM32 H7 I2C:  Applied David Sidrane's I2C fix to the identical logic
21588        for STM32 H7. From Gregory Nutt
21589      - STM32 L4 I2C:  Applied David Sidrane's I2C fix to the identical logic
21590        for STM32 L4. From Gregory Nutt
21591
21592    * STMicro STM32 Drivers:
21593
21594      - STM32 ADC:  Fix RCC reset logic.  From Mateusz Szafoni
21595      - STM32 ADC:  Fix compilation errors for chips with one ADV TIM.  From
21596        Mateusz Szafoni
21597      - STM32 DMA:  Add missing DMA channel configuration.
21598      - STM32 PWM:  STM32 MOE is not being appropriately handled for PWM for
21599        advanced timers.  It is only ever reset and so no PWM train is
21600        generated.  This change addresses this.  Noted by Dave Marples. From
21601        Mateusz Szafoni
21602      - STM32 PWM:  Fix compilation errors if the upper-half PWM logic is not
21603        enabled. From Mateusz Szafoni
21604      - STM32 SPI:  STM32F446 & STM32F469 correct PC1 SPI assignments From
21605        David Sidrane
21606      - STM32 TIM:  Fix compilation error if there is no TIM8.  From Mateusz
21607        Szafoni
21608      - STM32 F0:  Fix GPIO EXTI lines assignment for STM32 M0.  From Mateuz Szafoni
21609      - STM32 F3 I2C:  Remove the extra NONE event from the trace dump
21610        output.  From Ouss4
21611      - STM32 F4 I2C:  Remove the extra NONE event from the trace dump
21612        output.  From Ouss4
21613      - STM32 F7 I2C:  Use clock_t for ticks instead of uint32_t to hold system
21614        time.  From Jussi Kivilinna
21615      - STM32 L4 I2C:  Use clock_t for ticks instead of uint32_t to hold system
21616        time.  From Jussi Kivilinna
21617
21618    * STMicro STM32 Boards:
21619
21620      - STM32F429I-DISCO:  Fix lvgl demo removing STM32_FB_CMAP.  From Alan
21621        Carvalho de Assis
21622      - STM32VL Discovery:  Fix SRAM and FLASH size in the linker script.
21623        There is STM32F100RB with 8KB RAM and 128KB FLASH on the STM32VL
21624        Discovery kit. Invalid memory size could cause a hard fault.  From
21625        Matous Pokorny
21626      - STM32VL Discovery:  Fix memory size configuration and documentation.
21627        There is STM32F100RB instead of STM32F100RC on the STM32 VL Discovery
21628        kit.  From Matous Pokorny
21629      - Viewtool-STM32F107:  Change RNDIS MAC address assignment in rndis
21630        configuration. In previous implementation, mac[0] was assigned to
21631        0xaa for RNDIS host to avoid MAC address conflicts with RNDIS
21632        device..  However, I noticed that this assignment causes a random MAC
21633        address generation on ubuntu16.04 or later which is inconvenient to
21634        set up network interface.  This new assignment scheme fixes this
21635        issue.  From Masayuki Ishikawa
21636
21637    * TI Tiva:
21638
21639      - Tiva LM/TM4C Start-Up:  Remove option CONFIG_TIVA_BOARD_CLOCKCONFIG.  It is
21640        not used and unnecessary.  Fix some naming.  up_clockconfig() is
21641        inappropriate.  Change tiva_clockconfig() to tiva_clock_reconfigure()
21642        then we can change up_clockconfig() to tive_clock_configure().  From
21643        Gregory Nutt
21644      - Tiva LM/TM4C GPIO Interrupts:  Fix tiva gpio interrupts  From Lwazi Dube
21645      - Tiva LM/TM4C:  Improve GPIO interrupt support by removing unnecessary,
21646        hard-coded per-MCU defines and using the existing Kconfig configuration
21647        options instead.  From Lwazi Dube
21648
21649    * TI Tiva Drivers:
21650
21651      - Tiva TM4C Serial:  After commit
21652        51b78034ac8d1fdf598107bf4093f0beccd5b80b, my tiva console does not
21653        work - enter key produces garbage characters.  This commit fixes the
21654        problem for me.  From Lwazi Dube
21655
21656    * C Library/Header Files:
21657
21658      - include/dsp.h:  Fix missing semicolon error in dsp.h  From MYAPICI
21659      - include/nuttx/compiler.h:  Correct support of C-version-specific features.
21660        Cannot depend on GCC version because -std=c89 may be used on comomand
21661        line.  Need instead to use __STDC_VERSION__ to determine if a feature is
21662        supported.  Also add conditional support inline, depending on C99.  From
21663        Gregory Nutt
21664      - libs/libc/stdio:  fread() should always set EOF if fewer than the
21665        requested number of bytes was not read.  Per Anthony Merlino. From
21666        Gregory Nutt
21667
21668    * Build System:
21669
21670      - sched/irq/Make.defs:  Fix warning about irq_csection.o appearing
21671        multiple times in the same rule.  From Gregory Nutt
21672
21673    * Tools:
21674
21675      - tools/gencromfs.c:  "gencromfs.c:1171:3: warning: ignoring return
21676        value of 'asprintf'", declared with attribute warn_unused_result
21677        [-Wunused-result].  From David Sidrane
21678      - tools/gencromfs.c:  Fix build on macOS.  From David Sidrane
21679
21680    * NSH Library: apps/nshlib:
21681
21682      - apps/nshlib:  Fixes an error in the NSH parser.  There was a bug when
21683        executing an nsh shell script which contains a redirection. When the
21684        command in the script is executed, it sets the vtbl->np.np_redirect flag
21685        (as it should), but then doesn't restore it, leaving it set at the end of
21686        the script execution.  Then the vtbl->np.np_redirect flag is set when the
21687        'sh' command completes, causing a restore from un-initialized variables,
21688        thus leading to a crash.  See the code snippet below for an example test
21689        case.
21690
21691        Test case:
21692
21693          NuttShell (NSH)
21694          nsh> mkrd -s 1024 40
21695          nsh> mkfatfs /dev/ram0
21696          nsh> mount -t vfat /dev/ram0 /tmp
21697          nsh> echo "echo 1 > /dev/null" > /tmp/test.sh
21698          nsh> cat /tmp/test.sh
21699          echo 1 > /dev/null
21700          nsh> sh /tmp/test.sh
21701          ...
21702
21703        The nsh prompt doesn't get printed.  You can type a couple of commands,
21704        but then the system will crash because of bad pointers.  From Ken Pettit
21705      - apps/nshlib:  Fix buffer overrun when redirected to a file.  SAVE_SIZE
21706        must be the same as sizeof(struct serialsave_s).  From Masayuki Ishikawa
21707
21708    * System Utilities: apps/system:
21709
21710      - system/system.c:  Fixes build error; There is no result variable, use
21711        errcode instead.  From Anthony Merlino
21712      - apps/system/vi:  Bug fixes:
21713          1.  Deletion of last line in file using 'dd' caused infinite loop
21714              searching for 'nextline'.  Fixed.
21715          2.  Insertion of line above 1st line using 'O' caused line to be
21716              inserted on 2nd line.  Fixed.
21717          3.  Paste buffer from 'dd' was being free'd after the 'p'aste operation,
21718              preventing multiple paste opportunity.  Fixed.
21719          4.  The cursor was not being bound to the line end and was allowed to
21720              'hover' over the '\n' EOL character.  This caused wierd (relative to
21721              standard vi) insertion locations and cursor movement with 'a'ppend
21722              and 'i'nsert.  Fixed.
21723          5.  The 'vi_shrinkpos' position didn't take the end of file pointer into
21724              account when calculating 'curpos', 'prevpos' variables causing
21725              wierdness when deleting things near the end of the file.  Fixed.
21726          6.  The 'yy'ank command was improperly deleting the text from the
21727             document instead of simply yanking to the paste buffer.  Fixed.
21728          7.  The 'dd'elete line funciton was not copying the deleted line to the
21729              paste buffer as part of the delete operation.  Fixed.
21730          8.  The bottom line of the screen was sometimes being used for document
21731              text and other times for command / find entry.  Fixed by reserving
21732              the bottom the bottom line for status / command only.
21733          9.  When scrolling up / down through a file, the cursor position was not
21734              preserved and moved further and further to the left column based on
21735              the line lengths of the lines visited.  Fixed.
21736          10. The display was being COMPLETELY redrawn with each keystroke,
21737              causing the responsiveness to be unbearable.  Fixed.  Added logic to
21738              dynamicall indicated which portions of the screen need to be updated
21739              (full display, current line to end of screen, current line only,
21740              none).
21741          11. The individual display line updates were being performed a character
21742              at a time by calling the vi_putch() function, causing slow
21743              performance, especially in telnet or USBCDC sessions where there is
21744              a lot of overhead per packet.  Fixed by calling vi_write() instead
21745              with a block of characters with breaks as needed for TAB exansion.
21746          12. The forward delete 'x' operation allowed deletion through '\n'
21747              characters causing lines to be joined.  This is different from
21748              standard vi where 'x' at the end of a line performs a delete
21749              backward operation.  Fixed.
21750          13. When in 'ex' or find sub-modes (':' or '/' bottom line modes),
21751              hitting backspace with empty text did not return the operation to
21752              command mode like it does in standard vi.  Fixed.
21753          14. Performing a 'find' opertation would only search from the current
21754              cursor position to the end of the file and did not wrap like in
21755              standard vi.  Fixed.
21756          15. Loading a file that was larger than the initial text allocation
21757              would force a call to 'vi_extendtext', marking the file as modified
21758              when in fact it hadn't even been loaded yet.  Fixed.
21759          16. Combined vi_insert_mode and vi_replace_mode into a single function
21760              to save code space since they are nearly identical routines.
21761          17. In command mode, backspace was deleting characters which is
21762              different from standard vi.  Backspace in command mode normally
21763              simply moves the cursor left / to the previous line.  Fixed.
21764          18. Added code to handle boundry conditions when the file is new and
21765              commands are applied to an empty file.
21766          19. Fixed vi_shrinktext so it doesn't allocate a zero-length buffer when
21767              the last character in the file is deleted.
21768          20. The 'x' command was not copying to the paste buffer.  Fixed.
21769          21. Fixed parsecolon routine to properly deal with ":wq" command sequence.
21770        From Ken Pettit
21771
21772    * Wireless Utilities: apps/wireless:
21773
21774      - apps/wireless/bluetooth/btsak:  'bt bnep0 info' outputs a reversed addr. It
21775        should print BDAddr: aa:bb:cc:dd:ee:ff instead of BDAddr:
21776        ff:ee:dd:cc:bb:aa.  From Lwazi
21777      - apps/wireless/bluetooth/btsak:  Fix some errors in btsak.  From Lwazi Dube
21778      - apps/wireless/bluetooth/btsak/btsak_main.c: Fix address parsing.  From
21779        Lwazi Dube
21780      - apps/wireless/bluetooth/btsak:  Remove unnecessary gatt get commands. From
21781        Lwazi Dube
21782      - apps/wireless/bluetooth/btsak/btsak_scan.c:  Fix reversed address.  From
21783        Lwazi Dube
21784      - apps/wireless/ieee802154/i8sak:  Fixes issues related to re-running
21785        daemon. Releases lock when releasing daemon. Re-sets daemon_shutdown so
21786        that a subsequent daemon launch does not immediately return.  From Anthony
21787        Merlino
21788
21789NuttX-7.29 Release Notes
21790------------------------
21791
21792The 129th release of NuttX, Version 7.29, was made on March 25, 2019,
21793and is available for download from the Bitbucket.org website.  Note
21794that release consists of two tarballs:  nuttx-7.29.tar.gz and
21795apps-7.29.tar.gz.  These are available from:
21796
21797    https://bitbucket.org/nuttx/nuttx/downloads
21798    https://bitbucket.org/nuttx/apps/downloads
21799
21800Both may be needed (see the top-level nuttx/README.txt file for build
21801information).
21802
21803Additional new features and extended functionality:
21804
21805    * Core OS:
21806
21807      - Configuration:  CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to
21808        disable the file system.  NuttX with no file system does not make
21809        sense and is no longer supported.  From Gregory Nutt.
21810      - Rename most internal OS functions from sched_* to nxsched_* to
21811        indicate that they are NuttX internal functions (some renaming is
21812        still needed).  From Gregory Nutt.
21813      - Rename all internal OS functions from task_* to nxtask_* to indicate
21814        that they are NuttX internal functions.  From Gregory Nutt.
21815      - Rename sched_process_timer to nxsched_process_timer.  Rename
21816        sched_timer_expiration to nxsched_timer_expiration.  Rename
21817        sched_alarm_expiration to nxsched_alarm_expiration.  Those are the
21818        appropriate names for an internal sched/ function (still many named
21819        incorrectly).  From Gregory Nutt.
21820      - Standardize naming:  Rename os_start() to nx_start(), rename os_smp*
21821        to nx_smp*, rename os_bringup to nx_bringup, rename all internal
21822        static functions to begin with nx_ vs os_.  From Gregory Nutt.
21823      - Initialization:  Remove the option CONFIG_BOARD_INITTHREAD.  Now, if
21824        CONFIG_BOARD_INITIALIZE is selected, then the board_initialize()
21825        logic will ALWAYS run on an internal kernel thread.  This will
21826        prevent the problems people have had doing inappropriate
21827        board_initialization on the IDLE thread.  From Gregory Nutt.
21828      - Initialization:  Add support for CONFIG_BOARD_EARLY_INITIALIZE.  If
21829        this option is selected then nx_start() will call a board-provided
21830        function board_early_initialize() immediately after calling
21831        up_initialize().  Rename board_initialize() to
21832        board_late_initialize().  From Gregory Nutt.
21833      - Signal Delivery:  Add a flag to the TCB to indicate that we are in a
21834        signal handler.  Use this flag to assure that a there is never
21835        attempts to nest signal handling operations on a thread.  This was
21836        guaranteed before but when locking of pre-emption during signal
21837        delivering was eliminated in a previous commit, there was a remote
21838        possibility of an attempt to do nested signal handling.  This flag
21839        assures that there is only one signal handled at a time.  From
21840        Gregory Nutt.
21841      - Signal Handler Security:  The architecture-specific signal handler
21842        return register state is saved and available on the user stack.
21843        This commit reorders some logic so that certain, critical registers
21844        are preserved in the TCB.  This eliminates most malicious exploits
21845        which more the return address, for example, but does not make the
21846        logic 100% secure.  From Gregory Nutt.
21847      - Timer Interrupt Procssing:  Add a configurable call out to a
21848        user-provided function, 'timer hook', on each timer interrupt.  From
21849        Gregory Nutt.
21850      - PM Activity:   Add pm_staycount() API for get stay numbers.  This
21851        function is currently not used and a waste of FLASH space.  From ligd.
21852      - Pthreads:  Add support for pthread_mutex_timedlock  From Leif Jakob.
21853      - Pthread Spinlocks:  Add a very preliminary implementation of the new
21854        POSIX pthread_spinlock_* interfaces.  From Gregory Nutt.
21855      - Critical Section Monitor:  Remove SCHED_IRQMONITOR_GETTIME to
21856        simplify the clock source selection:  (1) Use up_critmon_gettime if
21857        SCHED_IRQMONITOR, (2) Call clock_systimespec if SCHED_TICKLESS, (3)
21858        Don't collect timing info for all other cases.  From Xiang Xiao.
21859      - Work Queue Notification:  Notifier can now work with either lpwork
21860        or hpwork. From Xiang Xiao.
21861      - Protected Build:  Add add a new field (us_heapend) to struct
21862        userspace_s that labels the end of the heap.  From Xiang Xiao.
21863
21864    * Binary Loader/Kernal Modules/Shared Libraries
21865
21866      - Shared Libraries:  Implement dlerror() using strerror().  From Xiang
21867        Xiao.
21868      - Shared Libraries:  Add LD_LIBRARY_PATH environment variable
21869        support.  From anchao.
21870      - ELF Loaders:  Optimize elf load speed:  (1) Don't zero out memory,
21871        (2) Reduce the initial buffer size to 32 bytes.  From Xiang Xiao.
21872      - ARM ELF Relocation:  Add support for the R_ARM_THM_JUMP11 relocation
21873        type.  This relocation type may be generated when LTO optimization
21874        is enabled.  From anchao.
21875      - ELF Modules:  Add relocation buffer table to reduce filesystem
21876        access.  From anchao.
21877      - ELF Modules:  Add symbol buffer table to reduce filesystem access.
21878        From anchao.
21879
21880    * File Systems/Block and MTD Drivers
21881
21882      - Filesystem Mount:  Move the union inode_ops_u i_mtd field into the
21883        mount section of inode_ops_u and remove the guard to simplify fs
21884        which support both block and mtd.  From Xiang Xiao.
21885      - ROMFS:  Add support to mount a ROMFS volume using an MTD driver
21886        interface using the standard mount() operation.  From Xiang Xiao.
21887      - LittleFS:  VFS wrapper improvement:  (1) Support block device
21888        interface, (2) support ioctl, stat and sync file operation, (3)
21889        support forceformat and autoformat option, (4) update file->f_pos
21890        and dir->fd_position, (5) remove the internal struct from dir, and
21891        (6) remove mtd byte read/write requirement.  From Xiang Xiao.
21892      - UnionFS:  Support mount of UnionFS from the NSH command line.  From
21893        Xiang Xiao.
21894
21895    * Networking/Network Drivers:
21896
21897      - UsrSock:  Add mutual exclusion so that only user can perform a
21898        socket request  From zhangyuan7.
21899      - UDP:  Initialize callback address structure to avoid random values
21900        in padding.  From anchao.
21901
21902    * Wireless/Wireless Drivers:
21903
21904      - SX127x:  Initial support for SX127x LoRA radio  From Mateusz Szafoni.
21905
21906    * Graphics/Display Drivers:
21907
21908      - Graphics:  Fix a naming collision:  Ye olde nx_start that started
21909        the NX graphics is now nxmu_start().  nxmu_start() is now
21910        prototyped in nxmu.h (instead of nx.h).  From Gregory Nutt.
21911      - NX Server Startup:  Extend nxmu_start() so that receives a display
21912        number as an argument.  This makes it possible to have multiple
21913        instances of the NX server running on boards that support multiple
21914        displays.  Also includes updates to boardctl() to accept display
21915        number paramters.  From Gregory Nutt.
21916      - Graphics:  nx_openwindow() and nxtk_openwindow() now accept an
21917        additional 'flag' parameter.  This argument is current used only to
21918        select a RAM backed, per-window framebuffer.  From Gregory Nutt.
21919      - Per-Window Framebuffers:  Windows may now be optionally created
21920        with a RAM frambuffer backing up the window content.  Rending into
21921        the window will result in rending into the backup framebuffer, then
21922        updating the physical display from the framebuffer.  The advantage
21923        of this option is that the application that manages window will no
21924        longer receive redraw() callbacks.  Those calls normally occur when
21925        a window "above" moves exposing a portion of the window below.  If
21926        this option is selected, then the system will redraw the exposed
21927        portion of the window from the backup framebuffer without
21928        intervention of the window applications.  This greatly reduces the
21929        complexity of the application and performance of the window at the
21930        expense of increased memory usage.  Redraw requests in other cases
21931        are also suppressed:  Changes to window position, size, etc.  As a
21932        consequence, some manual updates will be required when certain
21933        events occurr (like removing a toolbar from a window).  NOTE:  A
21934        significant amount of RAM, usually external SDRAM, may be required
21935        to use per-window framebuffers.
21936
21937    * Other Common Device Drivers:
21938
21939      - Driver Notifications:  Support signal notification through
21940        SIGEV_THREAD in all drivers that provide signal notifications:
21941        RTC, Joysticsks, buttons, Zero-Crossing, wireless, FT80x, Timer,
21942        PHY. From Xiang Xiao.
21943      - Watchdog Driver:  Support auto-monitor service  From Gregory Nutt.
21944      - Timer and Alarm Drivers:  Implement up_critmon_gettime and
21945        up_critmon_convert and remove the critical section from
21946        current_usec to infinite recursion.  From Xiang Xiao.
21947      - RTC Driver:  Protect the RTC state with a semaphore.  From Xiang
21948        Xiao.
21949      - Serial Upper Half:  Call pm_activity() when characters are received
21950        on a console device.  From Gregory Nutt.
21951      - MPU60x0:  Initial support for TDK InvenSense MPU6000 and MPU6050
21952        6-axis gyroscope and accelerometers.  This commit supports SPI
21953        media only.  From Bill Gatliff.
21954      - EEPROM Driver:  Add configurable SPI eeprom frequency.  From
21955        Valmantas Paliksa.
21956      - GPIO Driver:  Support reading and writing gpio pins using cat and
21957        echo.  From Valmantas Paliksa.
21958      - MCP2515:  Add MCP2515 clock input config to KConfig.  From
21959        Valmantas Paliksa.
21960      - MAX7456:  Support for the Maxim MAX7456 on-screen-display chip.
21961        From Bill Gatliff.
21962
21963    * Common Board Logic:
21964
21965      - boardctl():  up_testset() can now be accessed by applications via
21966        the boardctl() interface rather than attempting to call it
21967        directly.  pthread Spinlocks are not available unless the
21968        architecture supports the   up_testset() operation.  From Gregory
21969        Nutt.
21970      - boardctl():  Add support for BOARDIOC_NXTERM which can be used to
21971        create an NxTerm terminal.  From Gregory Nutt.
21972      - boardctl():  Add boardctl() commands to replace direct calls to
21973        nxterm_redraw() and nxterm_kbdin().  From Gregory Nutt.
21974
21975    * Microchip PIC32MZ Drivers:
21976
21977      - PIC32MZ Timers:  Add support for the PIC32MZ timers (driver,
21978        lowerhalf, freerun and oneshot)  From Abdelatif Guettouche.
21979
21980    * Common ARM Options:
21981
21982      - arch/arm:  Move FPU options to a common place and unify the usage
21983        by removing ARCH_CORTEXRxF.  From Xiang Xiao.
21984      - arch/:  Unify the cache interface for all architectures that
21985        support a data cache.  From Xiang Xiao.
21986      - ARMv7-M/A/R:  Add a architecture-specific new barriers.h header
21987        file that provides the memory barrier definitions that were
21988        previously in the (now unified) cache.h header files.  From Gregory
21989        Nutt.
21990
21991    * ARMv7-A
21992
21993      - ARMv7-A:  Support thumb mode and fix interworking issue. From
21994        zhangyuan7.
21995      - ARMv7-A:  Add weak attribute to arm_data_initialize so platform
21996        could provide the new implementation as needed.  From zhangyuan7.
21997      - ARMv7-A:  Add SCR bit definitions.  From Xiang Xiao.
21998      - ARMv7-A:  Add mmu_l1_map_regions() to remove the code duplication.
21999        From Xiang Xiao.
22000      - ARMv7-A:  Add the initial cortex-a7 architecture support  From
22001        zhangyuan7.
22002
22003    * ARMv7-M
22004
22005     - ARMv7-M:  stackcheck allow faulting stack calculation to make it to
22006       the up_assert reg dump  From David Sidrane.
22007
22008    * Microchip/Atmel SAMD21/L21 Drivers:
22009
22010      - SAMD2/L2:  Add RS485 support to SAMD2L2 serial.  From Alan Carvalho
22011        de Assis.
22012
22013    * Misoc:
22014
22015      - Minerva:  Add support for the Minerva architecture.  From Ramtin
22016        Amin.
22017
22018    * Misoc Boards:
22019
22020      - misoc:  Add support for an NSH configuration using the Verilator
22021        board.  From Ramtin Amin.
22022
22023    * Nordic NRF52:
22024
22025      - NRF52:  1. Added 52840 family support 2. Use common IRQ and memory
22026        layout header file for 52832 & 52840.  From Levin Li.
22027
22028    * Nordic NRF52 Drivers:
22029
22030      - NRF52 RNG:   1. added RNG device driver 2. added errdata to correct
22031        temp which will be used by RNG module 3. use general task_trigger /
22032        event_clear inline api for all driver.  From Levin Li.
22033
22034    * NXP i.MX RT Drivers:
22035
22036      - i.MXRT XBAR:  Add XBAR Support.  From David Sidrane.
22037      - i.MXRT USB:  Add USB analog header file.  From David Sidrane.
22038      - i.MXRT OCOTP:  Added OCOTP Support.  From David Sidrane.
22039      - i.MXRT LCD:  Adds framebuffer support for the i.MXRT 1050.
22040        Includes DCD initialization for SDRAM to provide space for the
22041        framebufer. External code I used/ported is from NXP and is BSD
22042        3-clause license.  From Johannes.
22043
22044    * NXP i.MX RT Boards:
22045
22046      - IMXRT1050-EVK:  Adds framebuffer support for the i.MXRT 1050.
22047        From Johannes.
22048
22049    * NXP LPC17xx
22050
22051      - LPC17xx:  Add a configuration option to skip over the framebuffer
22052        when adding DRAM to the heap.  From Gregory Nutt.
22053
22054    * NXP LPC17xx Boards
22055
22056      - Open1788:  Add a configuration to test NxTerms in the PROTECTED
22057        mode.  From Gregory Nutt.
22058      - Open1788:  Re-arrange PROTECTED mode link map to make more space
22059        for large kernels with debug enabled.  From Gregory Nutt.
22060      - Open1788:  Add a configuration for testing per-window frame buffers
22061        using apps/examples/pwfb.  From Gregory Nutt.
22062
22063    * NXP LPC54xx Boards
22064
22065      - LPCXpresso-LPC54628/pwfb:  Add per-window framebuffer configuration
22066        using apps/examples/pwfb.  From Gregory Nutt.
22067      - LPCXpresso-LPC54628:  Add a configuration for addition per-window
22068        framebuffer using apps/examples/pwlines.  From Gregory Nutt.
22069
22070    * STMicro STM32 Drivers:
22071
22072      - STM32F0/L0 SPI:  Add SPI support for F0.   From Mateusz Szafoni.
22073      - STM32 ADC, PWM and TIM:  (1) configure injected channels external
22074        trigger when ADC enabled, (2) update injected conversion queue of
22075        context after configuration, (3) support for offset configuration,
22076        and (6) support for advanced timers channel 5 and 6.  From Mateusz
22077        Szafoni.
22078      - STM32 DFU Mode:  Add logic to reboot the STM32 in DFU mode.
22079        Current implementation only works for STM32F2 and F4.  From Bill
22080        Gatliff.
22081      - STM32F7 LSE:  Add configuration of LSE oscillator drive capability
22082        From Jussi Kivilinna.
22083      - STM32F7 I2C:  Fix another memory access issue on a bus error.  From
22084        David Sidrane.
22085      - STM32F7 TIM:  Add OUTTOGGLE mode for STM32f7 timer  From Valmantas
22086        Paliksa.
22087      - STM32F7 Timer Lower Half:  Add timer lowerhalf driver for stm32f7.
22088        From Valmantas Paliksa.
22089      - STM32F7 ITM:  Add ITM syslog support.  From Valmantas Paliksa.
22090      - STM32F7 CAN:  Add CAN driver with support for three bxCAN
22091        interfaces.  From Valmantas Paliksa.
22092      - STM32F7 QSPI:  Add stm32f7 Quad SPI support.  From Valmantas Paliksa.
22093      - STM32L4 LSE:  Ports Jussi Kivilinna's recent STM32F7 LSE change to
22094        STM32L4.  From Juha Niskanen (Haltian).
22095      - STM32H7 I2C:  Apply David Sidrane's fix for the STM32F7 to the
22096        STM32H7.  From Gregory Nutt.
22097      - STM32H7 DMA:  Rename  DMA1/2 IRQ names to match those from other
22098        STM32.  Add auxiliary definitions.  Add DMAMAP definitions for
22099        MDMA, DMA1, DMA2 and BDMA.  Add some address blocks.  Change RCC
22100        definitions to match other STM32 ports.  Enable clock for MDMA and
22101        BDMA.  Rename DMA channel definitions.  Separated files for MDMA,
22102        DMA, BDMA and DMAMUX.  Add missing definitions for MDMA, BDMA and
22103        DMAMUX.  SPI DMA mode.  Add base addresses for D1, D2 and D3
22104        domain; use 2 bytes to specify memory region.  Add D1 domain core
22105        prescaler configuration.  From Mateusz Szafoni.
22106      - STM32H7 OTG:  Initial OTG support for STM32H7 and some minor
22107        improvements.  Add support for HSI48 clock.  From Mateusz Szafoni.
22108      - STM32H7 Build:  Initial support for protected build mode. From
22109        Mateusz Szafoni.
22110      - STM32L4 I2C:  Apply David Sidrane's fix for the STM32F7 to the
22111        STM32L4.  From Gregory Nutt.
22112
22113    * STMicro STM32 Boards:
22114
22115      - B-L072Z-LRWAN1:  Add SX127x configuration.  From Mateusz Szafoni.
22116      - Nucleo-F091RC:  Add support for SX127x radio.  From Mateusz Szafoni.
22117      - Nucleo-F091RC:  Add SX127x configuration.  From Mateusz Szafoni.
22118      - Nucleo-F207ZG:  Add support for USB and initialize CDCACM if
22119        configured.  From Mateusz Szafoni.
22120      - STM32F429I-DISCO:  Add an apps/examples/examples/nxhello
22121        configuration.  From Gregory Nutt.
22122      - Nucleo-F446RE:  Add support for the Nucleo F446RE.  From Sebastien
22123        Lorquet.
22124      - B-L072Z-LRWAN1:  Use HSI as default clock source.  From Mateusz
22125        Szafoni.
22126      - Nucleo-L073RZ:  Add SX127x configuration.  From Mateusz Szafoni.
22127      - Nucleo-L073RZ:  Port button logic from nucleo-f072 which appears to
22128        be the same.  From Gregory Nutt.
22129      - Nucleo-L432KC:  Add support for I2C driver initialization.  From
22130        Nikolay Semenov.
22131      - Nucleo-H743ZI:  Add support for USB and initialize CDCACM if
22132        configured.  From Mateusz Szafoni.
22133      - OmnibusF4: Initial support for the OmnibusF4 family of flight
22134        management units.  "OmnibusF4" is not a product name per se, but
22135        rather a design spec that many product vendors adhere to. The spec
22136        defines the major components, and how those components are wired
22137        into the microcontroller. Airbot is one such vendor, and they
22138        publish a schematic here:  http://bit.ly/obf4pro.   Other software
22139        that supports the OmnibusF4 family include Betaflight, iNAV, and
22140        many others. PX4 recently added support as well, using their own,
22141        non-upstreamed, bespoke port of NuttX. No code from those resources
22142        is included in this port.  From Bill Gatliff.
22143      - OmnibusF4:  Add MAX7546 support.  From Bill Gatliff.
22144
22145    * TI CCxx:
22146
22147      - CC1312R1:  Code complete and builds successfully.  Stalled on
22148        further radio development.  I planned to integrate the IEEE 802.15.4
22149        radio interface, but the Cortex-M0 interface is not available with
22150        an open license.
22151
22152    * TI CCxx Boards:
22153
22154      - LaunchXL-CC1312R1:  Add support for on-board LEDs and buttons.  The
22155        LauchXL-CC1312R1 NSH Configuration is now fully functional. From
22156        Gregory Nutt.
22157      - LaunchXL-CC1310:  Clone LED and button support from the
22158        LaunchXL-CC1312R1.  The number of LEDs and buttons as well as DIO
22159        usage is identical (Still not functional).  From Gregory Nutt.
22160
22161    * Tools:
22162
22163      - tools/rmcr.c:  Add a tool to remove carriage returns and dangline
22164        whitespace at the end of lines.  From Gregory Nutt.
22165      - tools/nxstyle.c:  Can now detect if the C comment closing is not on
22166        a separate line.  From Gregory Nutt.
22167      - tools/nxstyle.c:  Make sure that all files begin with a comment on
22168        line 1 (which should be the file header).  From Gregory Nutt.
22169      - tools/nxstyle.c:  Add check for multiple definitions of local
22170        variables on a line.  From Gregory Nutt.
22171      - tools/nxstyle.c:  Beef up logic that detects multiple variable
22172        definitions per line.  From Gregory Nutt.
22173      - tools/nxstyle.c:  Add capability to detect CamelCase identifiers.
22174        From Gregory Nutt.
22175      - tools/nxstyle.c:  Add logic to detect a blank line following a left
22176        brace or a blank line preceding a right brace.  From Gregory Nutt.
22177      - tools/nxstyle.c:  Don't complain about certain lowercase characters
22178        in otherwise uppercase pre-processor identifers:  IPv6, IPv4,
22179        ICMPv6, IGMPv2, p as a decimal point, d signifying a divisor.  It
22180        was a bad idea to let the door open a crack for there.  While they
22181        improve readability, the inconsistently also causes other
22182        problems.  From Gregory Nutt.
22183
22184    * Build System:
22185
22186      - Makefiles:  Modify tools/Makefiles to add a "Do not Edit" warning
22187        on defconfig files  From Alan Carvalho de Assis.
22188
22189    * Libraries/Header Files:
22190
22191      - lib_vsprintf() (Nano):  Add newlib-nano lib_vsfprintf has been
22192        added and is now the default support for the printf family.  This
22193        fprintf code was originally adapted from AVR libc and provides
22194        improved floating point output support, including 'g' mode and
22195        making 'f' mode include digits past the decimal by default.  The
22196        newlib version can be found here:
22197        https://salsa.debian.org/electronics-team/toolchains/newlib-nano.
22198        That project is GPL overall, but the newlib-nano printf portions
22199        are BSD licensed as described in the COPYING.NEWLIB file.  From
22200        Keith Packard.
22201      - lib_vsprintf() (Nano):  Added support for long lont types.  From
22202        Johannes.
22203      - lib_vsprintf() (Nano):  Added hh type modifier (without extending
22204        the flag variable).  From Johannes.
22205      - lib_vsprintf() (Nano): Adds configurable support for numbered
22206        arguments.  From Johannes.
22207      - lib_vsprintf() (Nano): Cleaned naming and allow for leading zeros
22208        in argument number (which doesn't make sense but should be).  From Johannes.
22209      - lib_vsprintf() (Legacy):  Add support for %g format which, for
22210        these purpose, is equivalent to %f except that trailing zeroes are
22211        suppressed.  From Gregory Nutt.
22212      - vscanf():  Moved vscanf logic to lib_sscanf.c  Switched to stream
22213        interface (tricky, because the old implementation used massive read
22214        ahead, which isn't suitable for streams, chars already read are
22215        gone).  Added hh, h, and ll modifiers.  From Johannes.
22216      - scanf() and fscanf():  Added scanf and fscanf based on enhanced
22217        vscanf().  From Johannes.
22218      - uname():  Add build date and time to uname output (like Linux).
22219        From Gregory Nutt.
22220      - strsep():  Add strsep BSD/Linux function.  From Xiang Xiao.
22221      - netdb:  Hostname support no longer depends on CONFIG_NET since the
22222        host name is also useful in the non-network environment.
22223        CONFIG_NET_HOSTNAME changed to CONFIG_LIB_HOSTNAME.  From Xiang Xiao.
22224      - netdb:  Support the nameserver change notification then we can pass
22225        DNS info from server to client in usrsock case.  From Xiang Xiao.
22226      - include/fixedmath.h:  Add macros for conversion between types
22227        b16_t and type double  From Gregory Nutt.
22228      - include/limits.h:  Define NL_ARGMAX (as well as some of the other
22229        'invariant values' per
22230        http://pubs.opengroup.org/onlinepubs/7908799/xsh/limits.h.html).
22231        From Johannes.
22232      - linclude/limits.h:  Add 'range 9 999999' to CONFIG_LIBC_NL_ARGMAX
22233        to Kconfig.  Per OpenGroup.org, the minimum value for NL_ARGMAX is
22234        9.  From Gregory Nutt.
22235      - include/nuttx/lcd/edid.h:  Add extended EDID block IDs  From
22236        Gregory Nutt.
22237
22238    * apps/ General:
22239
22240      - apps/:  Follow up the kernel signal-related change in various files
22241        under examples/ and graphics/.  From Xiang Xiao.
22242      - apps/:  Update for corrected name of standard header file.  Should
22243        be dlfcn.h, not dllfcn.h.  From Gregory Nutt.
22244      - apps/:  The file system can no longer be disabled.  Remove all
22245        conditional logic based on CONFIG_NFILE_DESCRIPTORS==0  From
22246        Gregory Nutt.
22247      - apps/:  Remove/replace all conditional logic based on
22248        CONFIG_NSOCKET_DESCRIPTORS == 0.  That value is always greater than
22249        zero now.  In places just replace with #ifdef CONFIG_NET.  From
22250        Gregory Nutt.
22251      - apps/:  Some updates due to NuttX renaming:
22252        CONFIG_BOARD_INITIALIZE is now CONFIG_BOARD_LATE_INITIALIZE;
22253        board_initialize() is now board_late_initialize().  From Gregory
22254        Nutt.
22255      - apps/: Graphics interfaces nx_openwindow() and nxtk_openwindow()
22256        now accept an additional 'flag' parameter.  From Gregory Nutt.
22257
22258    * NSH: apps/nshlib:
22259
22260      - apps/nshlib/nsh_netinit.c:  Update for changes to signal
22261        notification structures.  From Gregory Nutt.
22262
22263    * Examples/Tests: apps/examples:
22264
22265      - apps/examples/ini_dumper:  New example program.  ini_dumper is
22266        example program that dumps content of ini file in pretty ascii table.
22267        It is using inih ini library in fsutils/inih.  From Michal Lyszczek.
22268      - apps/examples/modbusmaster:  Add Simple Modbus master example.
22269        This example only supports Read/Write HoldingRegisters, but it is
22270        easy to extend it to support Read/Write Input/Coils/etc.
22271        Originally creatd by Vytautas in 2016 and updated with minor fixes
22272        for this commit.  From Alan Carvalho de Assis.
22273      - apps/examples/pwfb:  Added a test/example at apps/examples/pwfb
22274        that was used for initial testing of the per-window framebuffer
22275        feature.  From Gregory Nutt.
22276      - apps/examples/pwlines:  Added another a test/example at
22277        apps/examples/pwlines that was used for further testing of the
22278        per-window framebuffer feature.  From Gregory Nutt.
22279      - apps/examples/sx127x:  Add sx127x demo  From Mateusz Szafoni.
22280
22281    * File System Utilities: apps/system
22282
22283      - apps/fsutils/inih:  New package.  inih (INI Not Invented Here) is a
22284        simple .INI file parser written in C.
22285        https://github.com/benhoyt/inih.  From Michal Lyszczek.
22286
22287    * Network Utilities: apps/netutils:
22288
22289      - apps/netutils/codecs/:  Remove the big Base64 stack array.  From
22290        Xiang Xiao.
22291      - apps/netutils/codecs/:  Add base64_[de|en]code_length() API  From
22292        ligd.
22293
22294    * System Utilities: apps/system
22295
22296      - apps/system/cfgdata:  Make builtin task stack size and priority
22297        configurable.  Set default to 2048 (from 1024) per recommendation
22298        of Ken Pettit.  From Gregory Nutt.
22299      - apps/system/embedlog:  Update to version 0.4.0. From Michal Lyszczek.
22300      - apps/system/nxplayer and nxrecorder:  Change 'int prio' to
22301        'unsigned int prio'.  Required by changes to MQ function
22302        prototypes. From Michal Lyszczek.
22303      - apps/system/psmq: New package.  psmq is publish subscribe message
22304        queue. It's a set of programs and libraries to implement
22305        publish/subscribe way of inter-process communication on top of
22306        POSIX message queue.  From Michal Lyszczek.
22307      - apps/system/zmodem:  Switch to the raw mode before transfer and
22308        restore to the original setting after finishing the transfer.  From
22309        Xiang Xiao.
22310
22311    * Testing:  apps/testing:
22312
22313      - apps/testing/:  Move all file system tests from examples/ to
22314        testing/ (cxxtest, fstest, nxffs, smart, smart_test, smp).  From
22315        Gregory Nutt.
22316      - apps/testing/cxxtest:  Add a README file.  From Gregory Nutt.
22317      - apps/testing/ostest:  Add test of pthread_mutex_timedlock()  From
22318        Gregory Nutt.
22319      - apps/testing/ostest:  Fix several errors in the setvbuf() test.
22320        From Gregory Nutt.
22321      - apps/testing/scanftest:  Port of Greg King's scanf test
22322        (https://github.com/cc65).  From Johannes.
22323
22324    * Tools: apps/tools:
22325
22326      - apps/tools/check-hash.sh:  Add a tool check hash on downloaded
22327        packages.  From Michal Lyszczek.
22328
22329Bugfixes.  Only the most critical bugfixes are listed here (see the
22330ChangeLog for the complete list of bugfixes and for additional, more
22331detailed bugfix information):
22332
22333    * Core OS:
22334
22335      - Signals:  Restructure nxsig_deliver() so that the signal handler is
22336        not called with the pre-emption disabled (or, at least no with
22337        pre-emption disabled by nxsig_deliver() itself).  From Gregory Nutt.
22338      - Critical Section Monitor:  Move up_critmon_* to arch.h avoid the
22339        duplicated declaration.  From Xiang Xiao.
22340      - Assertions:  Architecture-specific assertion logic should dump CPU0
22341        IDLE stack only when PID equals 0.  IDLE threads of other CPUs do
22342        not need this special check.  From Xiang Xiao.
22343      - Message Queues:  Change 'int prio' to 'unsigned int prio'.
22344        According to open group specification, priority field in mq_*
22345        functions should have unsigned type:
22346        http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/mqueue.h.html.
22347        From Michal Lyszczek.
22348      - Timer Expiration:  Fix macro SEC2TICK() 32-bits overflow by using
22349        uint64_t in calculation.  From ligd.
22350      - Kernel Memory Manager:  In mm/kmm_heap/kmm_kernel.c, remove unused,
22351        duplicated kmm_heapmember(). From Xiang Xiao.
22352      - User Memory Manager:  Ensure all user allocation try sbrk before
22353        fail  From Xiang Xiao.
22354      - waitid():  Could exit without leaving critical section on some
22355        error conditions.  From Gregory Nutt.
22356      - IOBs:  iob_allocwait() should decrease semcount manually. From
22357        Xiang Xiao.
22358      - IOBs:  iob_copyin() should wait for each buffer and adjust the
22359        return value of iob_copyin_internal return to simplify the code
22360        From Xiang Xiao.
22361      - IOB Notifier:  Don't check iob_navail in iob_notifier_setup to
22362        avoid a potential race condition.  From Xiang Xiao.
22363      - IOB Debug Dump:  Format the whole line before log to avoid the
22364        multiple timestamp prefix in each line.  From Xiang Xiao.
22365      - SHM:  Convert bytes to pages by MM_NPAGES instead of MM_PGALIGNUP
22366        From Xiang Xiao.
22367      - SHM:  shmget() should hould call shm_extend() to allocate the
22368        physical memory.  From Xiang Xiao.
22369      - Page Allocator:   mm/pgalloc: shouldn't just allocate one page
22370        always.  From Xiang Xiao.
22371      - Granule Allocator:  Fix the wrong data in g_1bit_info and make the
22372        internal function static.  From Xiang Xiao.
22373      - srbk():  Fix a backward conditional test.  Should call
22374        mm_initialize() when brkaddr equal zero  From Xiang Xiao.
22375      - sbrk():  Pass ARCH_HEAP_VEND as maxbreak argument  From Xiang Xiao.
22376      - ELF Headers:  Move elf related arch function to include/nuttx/elf.h
22377        because the implementation is located in libs/libc/machine and in
22378        order to avoid the conflict with the 3rd party libraries and clean
22379        up the file inclusion:  (1) Remove redundant elf32.h, (2) Remove
22380        nuttx/binfmt/elf.h in libs/libc/machine, (2) Remove
22381        nuttx/binfmt/elf.h in modlib, and (4) Rmove nuttx/module.h in
22382        modlib. From Xiang Xiao.
22383      - ELF Executables:  If there is an address environment
22384        (CONFIG_ARCH_ADDRENV), binfmt/elf doesn't need to free ctor/dtor
22385        alloc since freeing the address environment releases the heap
22386        automatically.  From Xiang Xiao.
22387      - ELF Configuration:  Correct libcxx exception handling by
22388        introducing the generic config(CXX_EXCEPTION and CXX_LIBSUPCXX)
22389        From Xiang Xiao.
22390      - ELF Loaders:  Call umm_initialize as soon as possible  otherwise
22391        elf_loadctors/elf_loaddtors may fail to allocate memory.  From
22392        Xiang Xiao.
22393
22394    * Crypto:
22395
22396      - Crypto AES:  After NuttX 7.28 crypto/aes.c would no longer
22397        compile.  From Gregory Nutt.
22398
22399    * File System/Block and MTD Drivers:
22400
22401      - open():  Fix not returning failure for block_proxy() call. From
22402        David Sidrane.
22403      - AIO: aio_cancel() needs to signal caller after success.  Also fix
22404        minor issue in the error handler.  From Xiang Xiao.
22405      - HostFS:  Remove the unnecessary use of host_stat() in
22406        hostfs_bind()  From ligd.
22407      - LittleFS:  Fix a minor issue found in code review:  (1) Replace
22408        printf to finfo/fwarn/ferr, (2) Replace malloc/free to
22409        kmm_malloc/kmm_free, (3) define LFS_NAME_MAX to NAME_MAX, (4) Check
22410        the big endian using CONFIG_ENDIAN_BIG.  From Xiang Xiao.
22411      - LittleFS:  VFS Lookahead should use bit unit not byte unit. From
22412        Xiang Xiao.
22413      - NxFLAT:  Correct a double free debug assertion.  This occurs when
22414        groups are enabled:  (1) once via binfmt_exit and unload_module,
22415        and (2) once via sched_releasetcb().  this was corrected by adding
22416        logic to free/unload the memory once and nullify the pointer so
22417        that cannot be freed a second time.  This commit resolves Bitbucket
22418        issue #145.  From Valmantas Palik�a.
22419      - NxFLAT:  File descriptor leaks when nxflat loading fails.  From
22420        Valmantas Palik�a.
22421      - ProcFS:  Fix typo in procfs uptime logic.  From Sebastien Lorquet.
22422
22423    * Networking/Network Drivers:
22424
22425      - Network Configuration:  The setup seems to support a network
22426        without sockets (CONFIG_NSOCKET_DESCRIPTORS == 0).  That is not the
22427        case; if the network is enabled, sockets must be provided.  From
22428        Gregory Nutt.
22429      - Networking:  The value ERROR should never be returned from internal
22430        OS functions.  That is reserved for returning values to appliations
22431        with the errno value set.  Within the OS, errors are returned with
22432        a negated errno value ALWAYS.  From Gregory Nutt.
22433      - Networking:  The struct in_addr doesn't have the member sin_addr.
22434        The function lib_lo_ipv6match() is for IPv6.  Correct the function
22435        it calls from lib_lo_ipv4matchto() to lib_lo_ipv6match().  Also add
22436        CONFIG_NET_IPv6 for configuration.  From Kejun ZHOU.
22437      - TCP (buffered) send:  Fix assertion crash when window size is
22438        zero.  From Gregory Nutt.
22439      - ICMP/ICMPv6:  Bind icmp callback from device to connection.
22440        Resolves the issue that bind() could not be called before send()
22441        From anchao.
22442      - TUN/TAP Driver:  Re-order all TUN/TAP driver state data.  Not only
22443        was was with wasting memory due to alignement requirements, it was
22444        also causing network packet buffers to be improperly aligned
22445        causing problems because the network requires 16-bit packet buffer
22446        alignment for uint16_t accesses.  This alignment problem was
22447        discovered by Alan Carvalho de Assis.  From Gregory Nutt.
22448      - TUN/TAP Driver:  Packet buffer size should include the configured
22449        GUARD_SIZE.  And, given how the buffers are allocated, the
22450        allocation size must be an even number of 16-bit values to preserve
22451        alignment.  From Gregory Nutt.
22452      - Local Sockets:  In local_connect(), initialize lc_result before
22453        giving lc_waitsem  From zhangyuan7.
22454      - Local Sockets:  Fixed deadlock issue by replacing nxsem_wait() with
22455        net_lockedwait() so that we do not wait with the network locked.
22456        From zhangyuan7.
22457
22458    * Graphics/Display Drivers:
22459
22460      - NX Graphics:  Remove naming associated with the now non-existent
22461        NXFE graphics layer: Rename nxfe_reportposition to
22462        nxmu_reportposition.  Rename nxfe_redrawreq to nxmu_redrawreq.
22463        Rename nxfe.h to nxmu.h.  Rename nxfe_state_s to nxmu_state_s.
22464        Rename nxfe_conn_s to nxmu_conn_s.  From Gregory Nutt.
22465      - NxTERM:  Remove the nxterm_unregister interface.  The correct way
22466      to unregister a device is to unlink it.  From Gregory Nutt.
22467      - NxTerm:  Needs to clear display initially.  Otherwise, garbage from
22468        previous display may still be present from preceding NxWM window.
22469        From Gregory Nutt.
22470      - Font Cache:  Fix a memory leak in the font cache.  With a busy
22471        NxTerm display, this could drain off all the memory pretty quickly!
22472        From Gregory Nutt.
22473      - Graphics:  Nothing under graphics/ should set the errno.  From
22474        Gregory Nutt.
22475      - Graphics:  Fix a coordinate system error in nx_filltrapezoid().
22476        When no clipping rectangle is falls, it falls back to use the
22477        entire window as for the clip.  However, that window must then then
22478        be in window relative coordinates, not in absoute device
22479        coordinates.  From Gregory Nutt.
22480
22481    * Common Board Logic:
22482
22483      - boardctl(): Fix compiling error when set
22484        CONFIG_BOARDCTL_IOCTL/CONFIG_BOARDCTL_UNIQUEID.  From Kevin Liu.
22485
22486    * Common Drivers:
22487
22488      - INA3221:  Fix errors in INA3221 register field addresses and
22489        bitfield values.  Signed value was losing its signed-ness due to
22490        use of unsigned type for register.  From Ken Pettit.
22491      - Serial Upper Half:  Initialize OPOST and ONLCR in uart_register.
22492        From Xiang Xiao.
22493      - Serial Upper Half:  Don't reset the circular buffer on close since
22494        DMA may still be transferring data in the background if the user
22495        closes the handle too quickly and the handle is opened with
22496        O_NONBLOCK.  From Xiang Xiao.
22497      - 16550 UART:  Fix error: 'g_uart0port' undeclared.  From Xiang Xiao.
22498      - 16550 UART:  Fix typo for UART1 flow field initialization  From
22499        Gregory Nutt.
22500      - CDC/ACM HCD:  Fixes to the IOCTL method in recovery of UART pointer
22501        and in names of Termios-related field.  From xhbm.
22502      - USB Device:  Fix type for USBDEV_TRACE_INITIALIDSET in Kconfig.
22503        From Mateusz Szafoni.
22504      - TCA64xx: Fix some errors in the TCA64XX driver.  From Bruno
22505        Schwander.
22506      - SYSLOG RAMLog:  Fix error: Conflicting types for 'ramlog_addchar'
22507        From Xiang Xiao.
22508      - NRF24L01:  Fix uninitialized irq_work which was causing a
22509        hard_fault on interrupt handler whenever something was sent from
22510        nrf24l01_term  From Petri Ahonen.
22511      - MCP2515:  Use kmm_zalloc to allocate device state structure.  Fix
22512        some compiler errors. From Valmantas Paliksa.
22513
22514    * Architecture Common:
22515
22516      - arch/ Common:  Remove architecture-specific watchdog.h and
22517        arm-elf.h because they are empty.  The arm-elf header file was
22518        never used; the empty watchdog.h header file was used in only one
22519        place.  From Xiang Xiao.
22520      - arch/ Common:  Move up_pminitialize() after timer_initialize()
22521        From ligd.
22522      - arch/ Common:  Align semi-hosting call style with other syscalls in
22523        architecture-specific syscall.h.  From Xiang Xiao.
22524      - arch/ Common:  Every file that uses serial IOCTLs (TIOC*) must
22525        explicity include nuttx/fs/ioctl.h.  This was included previously
22526        via sneak path in the now deleted arch/serial.h.  From Gregory Nutt.
22527      - arch/ Interfaces:  Rename sched_process_cpuload to
22528        nxsched_process_cpuload.  All internal sched_ functions should be
22529        prefixed with nx.  From Valmantas Paliksa.
22530
22531    * ARMv7-A:
22532
22533      - ARMv7-A MMU:  Updating the cp15_wrttb and cp15_wrdacr functions to
22534        use inline assembly in the correct way.  The incorrect method was
22535        generating errors as ARMv7-a expects the MCR/MRC instructions to
22536        provide registers as an argument(MRC p15, 0, <Rt>, c2, c0, 0) and
22537        the code was providing a constant value(and hence the build
22538        error).  From Bilal Wasim.
22539      - ARMv7-A:  Remove inclusion pg_macros.h for armv7-a since this
22540        header file does not exist.  From zhangyuan7.
22541      - ARMv7-A:  Guard some assembly files if configuration not selected.
22542        From zhangyuan7.
22543      - ARMv7-A GIC:  Fix assemble error when including gic.h  From Xiang
22544        Xiao.
22545      - ARMv7-A GIC:  Don't use GIC_ICDDCR_ENABLEGRP1 for GIC NONSECURE
22546        since this bit doesn't exist in this mode.  From liuzhuang.
22547
22548    * ARMv7-R:
22549
22550      - ARMv7-R Syscall:  In arch/arm/include/syscall.h, add missing
22551        inclusion of arch/armv7-r/syscall.h for Cortex-R.  From Xiang Xiao.
22552
22553    * ARMv7-M:
22554
22555      - ARMv7-M Initialization:  As noted by Roland Takacs in Bitbucket
22556        issue 141, there is a compilation error for STM32 if CONFIG_NET and
22557        CONFIG_NETDEV_LATEINIT are selected.  That was due in part to the
22558        commit which extended up_netinitialize() with a
22559        !defined(CONFIG_NETDEV_LATEINIT) guard but did not add the guard to
22560        concrete implementations.  I say "in part" because I don't think
22561        that the original intent of commit 19e16cb was to enable an
22562        alternative initialization of MCU internal Ethernet support but
22563        rather to enable support of external Ethernet devices that may have
22564        dependencies on, for example, SPI.  However, this is still a proper
22565        fix to avoid the compilation error that can occur with this
22566        combination of configuration options.  From Gregory Nutt.
22567      - ARMv7-M Configuration: ARCH_HIPRI_INTERRUPT shouldn't select
22568        ARMV7M_USEBASEPRI.  First because that is a violation of the
22569        layered nature of the Kconfig architecture, but also because then
22570        Kconfig will generate errors when high priority interrupts are used
22571        with other architectures.  From Xiang Xiao.
22572      - ARMv7-M Vector Table:  Make the default NVIC_VECTAB_TBLOFF_MASK
22573        safer.  The base address of the new vector table must be aligned to
22574        the size of the vector table extended to the next larger power of
22575        2.  From Xiang Xiao.
22576      - ARMv7-M RAM Vectors:  Correct bad NVIC_VECTAB_TBLOFF_MASK
22577        definitions in previous commit.  Were missing bits in the mask.
22578        Raised DEBUGASSERT in armv7-m/up_ramvec_initialize.c line: 144.
22579        From Mateusz Szafoni.
22580
22581    * Expressif ESP32 Drivers:
22582
22583      - ESP32 Timer ISR:  Fix backward comparison.  From Gregory Nutt.
22584      - ESP32 Serial:  Fix some backward arguments.   Correct 2-stop bit
22585        setting.  From Gregory Nutt.
22586
22587    * Microchip/Atmel SAMD2x/L2x Drivers:
22588
22589      - SAMD2/L2 Serial:  SAMD2/L2 serial driver.  It needs
22590        sam_usart_enable(). to work  From Alan Carvalho de Assis.
22591
22592    * Microchip/Atmel SAMD3/4 Drivers:
22593
22594      - SAM3/4 Ethernet:  Port Anthony Merlino's SAMv7 fix to similar
22595        Ethernet driver for the SAM3/4.  From Gregory Nutt.
22596
22597    * Microchip/Atmel SAMV7 Drivers:
22598
22599      - SAMv7 SPI:  Fix DMA Tx/Rx timeout issue.  From Kevin Liu.
22600      - SAMv7 QSPI:  Compile error when set CONFIG_SAMV7_QSPI_DLYBCT.
22601        From Kevin Liu.
22602      - SAMv7 Ethernet:  The logic for determining the number of queues for
22603        SAMV71 must be extended.  All SAMv7 parts increase the number of
22604        queues from 3 to 6 at revision B, not just the SAMV71.  From
22605        Gregory Nutt.
22606      - SAMv7 Ethernet:  Fixes rxdesc index logic to handle Buffer Not
22607        Available (BNA) condition.  If a SOF is found, but no EOF, don't
22608        move past the frame. Instead, keep the index at the SOF buffer
22609        until the rest of the data is written.  This fixes a receiver
22610        lockup condition where the peripheral and this driver get out of
22611        sync with there head pointers. In this case the driver has moved
22612        past buffers it owns, without clearing ownership,  which results in
22613        the peripheral and driver in a deadlock with each other.  From
22614        Anthony Merlino.
22615
22616    * Microchip/Atmel SAMA5Dx Drivers:
22617
22618      - SAMA5Dx Ethernet:  Port Anthony Merlino's SAMv7 fix to similar
22619        Ethernet driver for the SAMA5Dx.  From Gregory Nutt.
22620
22621    * Microchip/Atmel SAMA5Dx Board:
22622
22623      - SAMA5D2-XULT:  Move console from FLEXCOM4 to UART1.  FLEXCOM4 does
22624        not work for the Arduino serial.  UART1 is used with the VCOM
22625        provided by the EDBG.  From Gregory Nutt.
22626
22627    * NXP i.MXRT:
22628
22629      - i.MXRT Clock Configuration:  If SDRAM is actived it was only
22630        running at 40MHz.  This was becaus imxrt_clockconfig.c changed the
22631        SEMC clock divider after the DCD was configured.  This commit
22632        corrects that.  From Johannes.
22633
22634    * NXP i.MXRT Drivers:
22635
22636      - i.MXRT GPT:  Correct register offsets.  From David Sidrane.
22637      - i.MXRT TMR:  Fix addressing and restructure using common offset.
22638        From David Sidrane.
22639      - i.MXRT ADC:  Error in offset.  From David Sidrane.
22640
22641    * NXP/Freescacle Kinetis Boards:
22642
22643      - Teensy-3.x:  Fix a mismatch in types in defconfig.  From Gregory
22644        Nutt.
22645
22646    * NXP LPC17xx:
22647
22648      - LPC176x Clock Configuration:  The code preserves undocumented
22649        reserved bits only if board does not set them to keep previous
22650        behavior for boards where developers (hopefully) know what values
22651        should be set into these bits.  From Pavel Pisa.
22652      - LPC17xx Clock Configuration:  The enable of EMC clocks has to be
22653        preserved when already enabled by loader.  EMC and related pins
22654        configuration has to be skipped if the system is run from SDRAM.  A
22655        region of SDRAM which is used by system must not be used for heap.
22656        From Pavel Pisa.
22657
22658    * NXP LPC17xx Drivers:
22659
22660      - LPC17xx CAN:  The name can_txready clashes with Nuttx CAN core
22661        global function.  LPC178x has only single LPC17_SYSCON_PCLKSEL with
22662        only single divisor.  From Pavel Pisa.
22663
22664    * NXP LPC17xx Boards:
22665
22666      - Open1788:  Add missing MPU configuration option.  From Gregory Nutt.
22667
22668    * On Semi LC823450 Boards:
22669
22670      - LC823450-XGEVK:  Remove -nostdinc to avoid build error  From
22671        Masayuki Ishikawa.
22672
22673    * STMicro STM32:
22674
22675      - STM32:  Don't try including stm32_gpio.h from within chip/*.h
22676        header files.  Not only is bad style for a layered inclusion
22677        system, but it doesn't always work.  From Gregory Nutt.
22678
22679    * STMicro STM32 Drivers:
22680
22681      - STM32 PWM: Fix polarity and IDLE state configuration From Mateusz
22682        Szafoni.
22683      - STM32 ADC, PWM and TIM:  (1) missing T1TRGO2 for JEXTSEL, (2) fix
22684        sample time configuration for channels. The array index for
22685        channels was missing, (3) fix TRGO/TRGO2 configuration, and (6)
22686        support for advanced timers channel 5 and 6.  From Mateusz Szafoni.
22687      - STM32 Heap:  Change 'if CONFIG_STM32_HAVE_CCM' to 'ifdef
22688        CONFIG_STM32_HAVE_CCM' to avoid a warning when
22689        CONFIG_STM32_HAVE_CCM is not defined.  From Gregory Nutt.
22690      - STM32 Oneshot Timer:  Fix an error introduced be a previous timer
22691        commit.  From Maximilian Kriegleder
22692      - STM32 Tickless Mode and Free-Running Timer:  Apply Max's
22693        stm32_oneshot.c fix to the tickless implementation and to the
22694        freerunning time.  From Mateusz Szafoni.
22695      - STM32 PWM: Set CCPxP and CCPxNP bits if polarity is negative.
22696        Missing commas in initializers could break compilation in certain
22697        configurations.  From Mateusz Szafoni.
22698      - STM32F7 Interrupts:  Add the missing macro STM32_IRQ_NIRQS used by
22699        arch/arm/src/stm32f7/stm32_irq.c.  From Kejun ZHOU.
22700      - STM32H7 DMA:  Fix AHB1 base adresses memory map. From Mateusz
22701        Szafoni.
22702      - STM32H7 SysTick:  H7 appears to ignore the SysTick CLKSOURCE bit
22703        and use the CPU clock in all cases.  From Mateusz Szafoni.
22704
22705    * STMicro STM32 Boards:
22706
22707      - B-L072Z-LRWAN1:  Fix typo in SPI1 pin definitions.  From Mateusz
22708        Szafoni.
22709      - STM32F429I-DISCO:  Handle multiple calls to the LCD
22710        up_fbinitialize() function.  From Gregory Nutt.
22711      - STM32F769I-DISCO:  Florian R. H�lzlwimmer reports that
22712        stm32_appinitialize.c often has missing OK and NULL definitions.
22713        This should be fixed by including sys/types.h where they are
22714        defined.  From GregoryN.
22715      - STM32F769I-DISCO:  Remove CONFIG_STM32F7_QUADSPI=y from the
22716        configuration.  This was apparently set before the implementation
22717        was added.  Now that the implementation was added, the configuration
22718        will not build because it requires that QSPI GPIO pin definitions
22719        be provided in the board.h header file.  From Gregory Nutt.
22720
22721    * TI AM335x Drivers:
22722
22723      - AM335x Serial:  Eliminate an error 'TIOCSBRK undeclared.  From
22724        Gregory Nutt.
22725
22726    * C Library/Header Files:
22727
22728      - strto*:  In alll strto* function family, did't consume single '-'
22729        or '+', allow sign in strotul(l)).  From Johannes.
22730      - getopt():  Add logic to reinitialize the stale context for the
22731        FLAT/PROTECTED builds.  In these builds getopt() global variables
22732        may be shared by many tasks.  If any task exits the getopt() loop
22733        before all command line arguments have been parsed, then getopt()
22734        global variables will be left in a bad state.  The next time
22735        getopt() is called, this logic should detect the bad state and
22736        force the state of getopt() to be re-initialized so that it can be
22737        reused.  This logic is not full proof (it would fail, for example,
22738        if you tried to parse the same command line twice) but should catch
22739        the typical misuse cases.  From Xiang Xiao.
22740      - sscanf(): Initialized the lastc pointer to avoid the checks for
22741        NULL.  Removed a bug in the floating point parsing which allowed
22742        several signs after each other.  From Johannes.
22743      - lib_vsprintf() (Legacy):  No precision specifier resulted in
22744        precision 0 but should be precision 6.  From Johannes.
22745      - lib_vsprintf() (Legacy):  Correct justification for alternate forms
22746        of %p and %P  From ligd.
22747      - lib_vsprintf() (Nano):  Add long long support.
22748        CONFIG_LIBC_LONG_LONG needs at least CONFIG_NANO_PRINTLEVEL 2.
22749        Code size for compile without CONFIG_LIBC_LONG_LONG shouldn't be
22750        affected.  From Johannes.
22751      - lib_vsprintf() (Nano):  Remove CONFIG_LIBC_PRINT_MINIMAL.  The
22752        output in that configuration is unsatisfactory and inappropriate
22753        for use with NuttX.  For example, the output from many NSH commands
22754        become corrupted and useless.  Doesn't belong in this context.
22755        From Gregory Nutt.
22756      - libs/libc/symtab:  Remove unused symtab_findorderedbyvalue().  From
22757        Xiang Xiao.
22758      - libs/libc/machine/arm:  Fix the minor issue in libc arm machine
22759        folder; MOVW/MOVT should use zero(not sign) extension.  From Xiang
22760        Xiao.
22761      - libs/libc/libc.csv:  Should be locale.h not local.h.  From Joao
22762        Matos.
22763      - libs/libc/libc.csv:  Needed logic for correct compilation if not
22764        using CONFIG_LIBC_WCHAR.  From Joao Matos.
22765      - libxx:  Always include libxx_cxa_guard.cxx in the build for for
22766        uclibcxx. From zhangyuan7.
22767
22768      - include/stdbool.h:  Define bool only when __cplusplus isn't
22769        defined.  From Xiang Xiao.
22770      - include/nuttx/list.h:  Added a Linux-compatible list
22771        implementation.  From zhuyanlin.
22772      - include/nuttx/irq.h:  Fix enter_critical_section/spin_lock_irqsave
22773        macro typo error and remove the duplicated inclusion of
22774        arch/irq.h. From Xiang Xiao.
22775      - include/dlfcn.h: Correct naming of standard header file.  Should
22776        be dlfcn.h, not dllfcn.h.  From Gregory Nutt.
22777      - include/nuttx/nx/nxmu.h:  This header file could be lethal; it
22778        declared an #error if CONFIG_DISABLE_MQUEUE=y.  From Gregory Nutt.
22779      - include/nuttx/compiler.h:  Important fix for C++ users.
22780        compiler.h was using the value of __STDC_VERSION__ to determine if
22781        inline functions are supported or not.  If not then the keyword
22782        inline was defined out. Good for C but bad for C++ because C++
22783        does not define __STDC_VERSION__ at all.  C++ applications may
22784        draw in compiler.h indirectly via other head files and this can
22785        result in C++ compiler problems since 'inline' is defined out.
22786        This fix is to ignore the (undefined) __STDC_VERSION__ if
22787        __cplusplus is defined.  From Gregory Nutt.
22788      - include/nuttx/elf.h:  Adds missing extern "C" __cplusplus guard.
22789        From Anthony Merlino.
22790      - include/poll.h:  Remove un-named union from 'struct pollfd'.  It
22791        is not required by OpenGroup.org and violates the NuttX C coding
22792        standard because it is not C89 compatible.  From Gregory Nutt.
22793      - libs/libc/Makefile, libs/libnx/Makefile, and mm/Makefile:  Remove
22794        obj-path MKDEPS option since make dependency target (MT) is not
22795        supported by some toolchains.  From anchao.
22796      - include/nuttx/compiler.h:  Assume inline support if
22797        __STDC_VERSION__ not defined.  From Xiang Xiao.
22798
22799    * Tools:
22800
22801      - tools/convert-comments.c:  Fix an error in handling of a blank C++
22802        comment before a comment block.  From Gregory Nutt.
22803      - tools/lowhex.c:  Fix an initialization problem that was causing
22804        some odd behavior at the beginning of lines.  From Gregory Nutt.
22805      - tools/nxstyle.c:  Fix logic that detects if an operator is
22806        correctly delimited with spaces.  sched/:  Various changes because
22807        sched/ C files were used as Guinea Pigs to test nstyle.c.  From
22808        Gregory Nutt.
22809      - tools/nxstyle.c:  Was confusing hex constants with strings staring
22810        with 'x'.  Added logic to complain about hex constants containing
22811        upper case characters.  From Gregory Nutt.
22812      - tools/nxstyle.c:  Fix logic error that prevent detecion of '/' and
22813        '/=' as operators.  net/:  Minor updates resulting from testing
22814        tools/nxstyle.  From Gregory Nutt.
22815
22816    * NSH Library: apps/nshlib:
22817
22818      - NSH Console:  Fix copy paste errors. Some Kconfig configuration
22819        names needed CONFIG_ prefix.  From David Sidrane.
22820      - nshlib/nsh_timcmds.c:  Uninitialized struct tm caused 'date -s' to
22821        fail.  From Valmantas Palik�a.
22822
22823    * Examples: apps/examples:
22824
22825      - apps/examples/nxterm:  Replace direct calls to nxtk_register()
22826        with legal, indirect calls via boardctrl(BOARDIOC_NXTERM).
22827        Replace calls to (deleted) nxterm_unregister().  The correct way
22828        to delete a driver is by unlink'ing it.  From Gregory Nutt.
22829      - apps/examples/nxterm:  Most configuration options were not
22830        available in the Kconfig file.  From Gregory Nutt.
22831      - apps/examples/nxterm:  Replace illegal direct calls to
22832        nxterm_redraw() and nxterm_kbdin() with new boardctl() calls.
22833        From Gregory Nutt.
22834      - apps/examples/nxterm:  NxWM passed the size of the NxTK sub-window
22835        but nxterm example passed the size of the complete NxTK window.
22836        They must be made consistent.  From Gregory Nutt.
22837
22838    * Graphics Utilities: apps/graphics:
22839
22840      - apps/graphics/NxWidgets/nxwm:  Correct an error in the type of the
22841        return value in CCalibration.  From Gregory Nutt.
22842      - apps/graphics/NxWidgets/nxwm:  Replace direct calls to
22843        nxtk_register() with legal, indirect calls via
22844        boardctrl(BOARDIOC_NXTERM).  Replace calls to (deleted)
22845        nxterm_unregister().  The correct way to delete a driver is by
22846        unlink'ing it.  From Gregory Nutt.
22847      - apps/graphics/NxWidgets:  Replace illegal direct calls to
22848        nxterm_redraw() and nxterm_kbdin() with new boardctl() calls.
22849        From Gregory Nutt.
22850
22851    * Modbus: apps/modbus:
22852
22853      - apps/modbus/Kconfig:  Fix modbus master Kconfig.  Modbus Master
22854        ASCII compiles correctly.  From Alan Carvalho de Assis.
22855
22856    * Network Utilities: apps/netutils:
22857
22858      - apps/netutils/dhcpc/dhcpc.c:  Fix an error for DHCP REQUEST
22859        receiving a NAK.In DHCP Request operation, no need to update
22860        ciaddr to the client address and keep it as 0.  From Kevin Liu.
22861
22862    * System Utilities: apps/system:
22863
22864      - apps/system/vi/vi.c:  Fix an infinite loop bug that can show up in
22865        some cases (plus a couple of other items).  From Ken Pettit.
22866      - apps/system/vi: Condition KEY_CMDMODE_REPEAT with
22867        CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT to avoid build error when
22868        option is not selected.  From Anthony Merlino.
22869      - apps/system/nxplayer/nxplayer.c:  Fix build error when only enable
22870        CONFIG_AUDIO_EXCLUDE_VOLUME is enabled.  From ZhongAn.
22871      - apps/system/system/system.c:  Correct a path name.  From anchao.
22872      - apps/system/taskset:  Fix command arguments are not passed.  From
22873        Masayuki Ishikawa.
22874
22875    * Testing: apps/testing:
22876
22877      - apps/testing/ostest/timedmutex.c:  pthread_mutex_timedlock()
22878        returns EDTIMEDOUT on a timedout, not EAGAIN.  From Gregory Nutt.
22879
22880    * Tools: apps/tools:
22881
22882      - apps/tools/mksymtab.sh:  'export LC_ALL=C' to get the traditional
22883        sort order  From anchao.
22884
22885NuttX-7.30 Release Notes
22886------------------------
22887
22888The 130th release of NuttX, Version 7.30, was made on May 19, 2019,
22889and is available for download from the Bitbucket.org website.  Note
22890that release consists of two tarballs:  nuttx-7.30.tar.gz and
22891apps-7.30.tar.gz.  These are available from:
22892
22893    https://bitbucket.org/nuttx/nuttx/downloads
22894    https://bitbucket.org/nuttx/apps/downloads
22895
22896Both may be needed (see the top-level nuttx/README.txt file for build
22897information).
22898
22899Additional new features and extended functionality:
22900
22901    * Core OS:
22902
22903      - pthreads:  Added non-standard pthread_get_stackaddr_np() and
22904        pthread_get_stacksize_np().  From Joao Matos.
22905      - boardctl():  Add a command to start the VNC server.  From Gregory
22906        Nutt.
22907      - Signals:  Remove references to CONFIG_DISABLE_SIGNALS in many
22908        files.  Signals can no longer be disabled.  From Gregory Nutt.
22909
22910    * Wireless/Wireless Drivers:
22911
22912      - NRF24L01:  Add support for "multicast" TX mode - no waiting for ACK
22913        (needs to be enabled with fcntl SETTXPAYLOADNOACK)  From Leif Jakob.
22914
22915    * Graphics/Display Drivers:
22916
22917      - NX Graphics:  Add new server->client callback to notify the window
22918        client of server events. Remove the old 'blocked' callback and just
22919        make it one case of an 'event' callback.  From Gregory Nutt.
22920      - NX Graphics:  Implement new interfaces nx_synch() and nxtk_synch().
22921        This are used to synchronize the NX server with the window client.
22922        Currently most of the logic is equivalent to nx_block() and
22923        nxtk_block(), but with slightly different semantics.  They are
22924        separate now because they are likely to diverge in the future.
22925        From Gregory Nutt.
22926      - NX Graphics:  Add support for modal windows.  From Gregory Nutt.
22927      - NX Graphics:  Implement a software cursor.  The cursor behaves
22928        like a "sprite", always at the top of the display with a
22929        transparent background.  Includes new NX interfaces to show/hide
22930        the cursor, set the cursor image, and to move the cursor position.
22931        From Gregory Nutt.
22932      - NX Graphics:  Added support for hiding windows. This features is
22933        needed by Twm4Nx:  When a window is iconified, the icon should
22934        appear on the background and the window should disappear (i.e., be
22935        hidden).  The windows needs to remain healthy and to be updated in
22936        all ways, but it cannot affect the display content.  Conversely,
22937        when the icon is clicked, the icon needs to be hidden on the
22938        background and the window needs to be restored in its current
22939        state (which may be different than the state of the window at the
22940        time it was iconified.  From Gregory Nutt.
22941      - NX Graphics:  Windows can now be created in the hidden state.
22942        This can be used to clean up initial window presentation which may
22943        involve several steps.  This makes those steps all invisible until
22944        nx[tk]_setvisibility() is called to make the windows visible.
22945        From Gregory Nutt.
22946      - NX Graphics:  Add new NX interfaces to query if a window is hidden
22947        or not.  From Gregory Nutt.
22948      - NxTerm IOCTLs:  Replace specific interfaces between boardctl and
22949        nxterm with a generalized IOCTL interface.  From Gregory Nutt.
22950      - NxTerm:  Add a new IOCTL that can be used to inform NxTerm that
22951        the size of a window has changed.  From Gregory Nutt.
22952
22953    * Other Common Device Drivers:
22954
22955      - CAN Upper Half:  Support multiple readers of the same port  From
22956        Valmantas Paliksa.
22957      - MAX7456:  Adds a read-only (for now) /dev/osd0/CM interface for
22958        obtaining the chip's onboard NVM character map data.  Use seek()
22959        to position the cursor over a desired subset of bytes, or request
22960        a large read to obtain the entire EEPROM memory contents.  Values
22961        are returned in binary form. Use hexdump, etc. to format them for
22962        viewing.  From Bill Gatliff.
22963      - Serial Upper Half:  The upper half serial driver configuration
22964        CONFIG_SERIAL_DMA used to enable DMA on both RX and TX streams.
22965        This was replaced with CONFIG_SERIAL_RXDMA and CONFIG_SERIAKL_TXDMA
22966        which will permit supporting DMA on only one or both streams.
22967        From Gregory Nutt.
22968      - FUSB303:  Add FUSB303 driver  From Juha Niskanen.
22969
22970    * Microchip PIC32MZ Drivers:
22971
22972      - PIC32MZ GPIO:  Adds support for edge detect mode.  Slew Rate was
22973        also added for completeness.  From Abdelatif Guettouche.
22974
22975    * Microchip/Atmel SAMv7 Boards
22976
22977      - SAME70-xplained:  Add a configuration for test Twm4Nx using VNC.
22978        From Gregory Nutt.
22979
22980    * Microchip LPCxx Drivers:
22981
22982      - LPC17xx Ethernet:  Added support for KSZ8081RNA PHY to LPC17xx
22983        Ethernet driver.  From jjlange.
22984      - LPC17xx Ethernet:  Added support for Ethernet PHY ioctl() on
22985        LPC17xx.  From jjlange.
22986
22987    * NXP i.MX RT:
22988
22989      - .i.MXRT1020:  Gets imx1020 family support started. It is pretty
22990        similar, but subtly different, to 1050/60 (less PLLs, less GPIO
22991        banks, differently numbered ports etc. etc.).
22992
22993        Moved each of the imxrt family-specific files into its own
22994        subdirectory to tidy things up a bit, and remove the vast majority
22995        of ifdefs from the mainline code.
22996
22997        From Dave Marples.
22998
22999    * NXP LPC54xx Drivers
23000
23001      - LPC54xx USB FS Host:  Bring in the USB FS OHCI driver from LPC17.
23002        This is a quick'n'dirty port from LPC17 that I hope finish
23003        sometime later.  Currently, it is missing hardware clocking setup
23004        and is not even hooked into the build system yet.  From Gregory
23005        Nutt.
23006
23007    * NXP LPC54xx Boards
23008
23009      - LPCXpresso-LPC54628:  Add a Twm4Nx configuration.  From Gregory Nutt.
23010
23011    * Sony CXD56xx
23012
23013      - CXD56xx:  Add initial CXD56xx chip driver sources.  From Nobuto
23014        Kobayashi.
23015
23016    * Sony CXD56xx Spresense Board
23017
23018      - Spresense:  Add Spresense board support.  This is not the full
23019        Spresense BSP from Sony, only the barebones logic to present an
23020        NSH console.  From Nobuto Kobayashi.
23021
23022    * STMicro STM32:
23023
23024      - STM32F7 Clocking: Add support for using the HSE in bypass mode,
23025        configured by board.h  From Anthony Merlino.
23026      - STM32F7 Clocking:  Added support for TICKLESS mode.  From Valmantas
23027        Paliksa.
23028      - STM32H7 Backup Domain:  Add backup domain control registers.  From
23029        Jukka Laitinen.
23030      - STM32H7 Clocking:  Set the STM32H7 default HSI pre-divider to 4.
23031        The I2C driver currently assumes HSI clock to be 16MHz.  From Jukka
23032        Laitinen.
23033      - STM32H7 Memorymap.:  Add the STM32H7 SYSTEM_UID and DEBUGMCU_BASE
23034        register definitions.  From Jukka Laitinen.
23035      - STM32L071x:  Add support for STM32L071x.  From Mateusz Szafoni.
23036
23037    * STMicro STM32 Drivers:
23038
23039      - STM32 OTGHS Host:  Allow VBUS monitoring for the OTG_HS host
23040        driver.  From Jason Harris.
23041      - STM32F0/L0 ADC:  Initial ADC support for the STM32 M0  From Mateusz
23042        Szafoni.
23043      - STM32F0/LO I2C: Port STM32F7 I2C to STM32F0/L0,  From Mateusz Szafoni.
23044      - STM32F1 FLASH:  As noted by Matias N, the FLASH base address used
23045        was incorrect.  It was using the address of the FLASH data, not
23046        the address of the FLASH registers.  From Gregory Nutt.
23047      - STM32F3 I2C: Port STM32F7 I2C to STM32F3.  From Mateusz Szafoni.
23048      - STM32F7 Ethernet.c:  Auto-generate Ethernet MAC address from
23049        device unique ID.  From Valmantas Paliksa.
23050      - STM32F7 FLASH:  Add flash block mapping support for progmem.  From
23051        Valmantas Paliksa.
23052      - STM32F7 FMC:  Updated stm32_fmc.h with more FMC definitions.  From
23053        Joao Matos.
23054      - STM32F7 GPIO:  Adds additional pin alternate function for SPI2.
23055        From Anthony Merlino.
23056      - STM32F7 PWM:  Ported the PWM from F4 to F7.  From Eduard Niesner.
23057      - STM32F7 SDMMC: Support bypassing the input clock divider on the
23058        SDMMC interface. This enables using the full clock speed provided
23059        to the SDMMC interface with no dividing.  From Anthony Merlino.
23060      - STM32F7 SPI:  Add SPI DMA threshold configuration.  From Valmantas
23061        Paliksa.
23062      - STM32F7 UID:  Add UID access.  From Valmantas Paliksa.
23063      - STM32F7 USB:  USB High speed for STM32F7 series  From Ramtin Amin.
23064      - STM32H7 Ethernet:  Add stm32h7 Ethernet driver.  This is the
23065        initial push for the Ethernet driver.  The driver has been tested
23066        to be working on a nucleo board.  This is still WIP, it doesn't
23067        for example do MAC filtering on HW level, but just receives all
23068        Ethernet packets.  From Jukka Laitinen.
23069      - STM32H7 GPIO:  Add the GPIO_ETH_RMII_RXD1 pinmap definition for
23070        STM32H7.  From Jukka Laitinen.
23071      - STM32H7 SDMMC:  Add STM32H7 SDMMC driver.  It is mostly copied
23072        from STM32F7, with modified register addresses and bits, and IDMA
23073        dded.  This is still WIP; it only works with IDMA.  From Jukka
23074        Laitinen.
23075      - STM32H7 Timers:  Add timer devices driver for STM32H7.  This i
23076        mostly a forklift from stm32f7 with some h7 specific
23077        modifications.  From Jukka Laitinen.
23078      - STM32L0 AES:  Add support for AES for L0.  From Mateusz Szafoni.
23079      - STM32L0 RND:  Add support for RND.  From Mateusz Szafoni.
23080      - STM32L0 HSI48:  Add support for HS148 for L0. Move HSI48 enable
23081        from stm32_usbdev.c to stm32xx_rcc.c  From Mateusz Szafoni.
23082      - STM32L4 USB FS Device:  Add USB FS device support.  From Juha
23083        Niskanen.
23084      - STM32L4 HSI48:  Port HSI48 from STM32F0/L0  From Juha Niskanen.
23085      - STM32L4 CRS:  Port CRS from STM32F0/L0  From Juha Niskanen.
23086
23087    * STMicro STM32 Boards:
23088
23089      - B-L072Z-LRWAN1:  Add ADC example.  From Mateusz Szafoni.
23090      - B-L072Z-LRWAN1:  Add nxlines_oled example (ssd1306).  Add support
23091        for the I2C tool  From Mateusz Szafoni.
23092      - Nucleo-144:  Added STM32_RCC_DCKCFGR2_DSISRC definition to board.h.
23093        From Joao Matos.
23094      - Nucleo-144:  Mount sysfs for ifconfig for f767-netnsh/defconfig.
23095        Even if ifconfig is working to set IP, it will not work to display
23096        NICs (without args)  From Phil Coval.
23097      - Nucleo-144:  Add basic PWM support to nucleo-144 board.  More PWMs
23098        and multi channels support may be investigated and added later.
23099        Tested on Nucleo-F767ZI.  From Phil Coval.
23100      - Nucleo-F303ZE:  Add nxlines_oled example (ssd1306)  From Mateusz
23101        Szafoni.
23102      - Nucleo-H743ZI:  Enable the FPU.  From Jason Harris.
23103      - Nucleo-H743ZI:  Add support for I2C devices: ssd1306, pca9635,
23104        i2ctools  From Mateusz Szafoni.
23105      - Nucleo-H743ZI:  Add default clock configuration for SDMMC for
23106        Nucleo-H743ZI's board.h.  From Jukka Laitinen.
23107      - Nucleo-H743ZI:  Add the input clock frequency definitions in
23108        board.h for all the drivers. Assumes internal clock source for
23109        all the timers.  From Jukka Laitinen.
23110      - STM32F4 Discovery:  Keep c++ global constructor symbols  From
23111        Masayuki Ishikawa.
23112      - Nucleo-L073RZ:  Add MFRC522 support  From Mateusz Szafoni.
23113      - OmnibusF4:  Add boardctl() reset logic.  From Bill Gatliff.
23114      - OmnibusF4:  Add board_ioctl() which is needed only if
23115        CONFIG_BOARDCTL_IOCTL=y is selected;  Update NSH configuration
23116        to enable board IOCTLs and DFU mode reset.  From Bill Gatliff.
23117      - STM32L Discovery:  Add support for board_late_initialize(), Move
23118        common initialization logic out of board_app_initialize() into new
23119        file stm32_bringup.c  From Gregory Nutt.
23120      - STM32F103-Minimum:  Add PROCFS automount support  From Alan
23121        Carvalho de Assis.
23122
23123    * Libraries/Header Files:
23124
23125      - include/alloca.h:  Add alloca.h.  Included limited implementation
23126        of alloc() that is only available for GCC versions 3 and above.
23127        From Joao Matos.
23128      - include/cxx/cstdlib:  Add std::random()  From Gregory Nutt.
23129
23130    * apps/ General:
23131
23132      - Many locations:  Remove references to CONFIG_DISABLE_SIGNALS.
23133        Signals can no longer be disabled.  From Gregory Nutt.
23134
23135    * Examples/Tests: apps/examples:
23136
23137      - apps/examples/fb:  Add some awareness of overlays to
23138        apps/examples/fb  From Matthew Koch.
23139      - apps/examples/lvgldemo.  Update to Littlevgl 5.3.  From Matthew
23140        Koch.
23141      - apps/examples/pwfb:  Extend example to verify software cursors.
23142        From Gregory Nutt.
23143      - apps/examples/pwfb:  Add options to reduce the number of windows.
23144        This is helpful during debug to reduce the complexity.  From
23145        Gregory Nutt.
23146
23147    * Network Utilities: apps/netutils:
23148
23149      - apps/netutils/cjson:  Support for the current version of cJSON.
23150        From Mateusz Szafoni.
23151      - apps/netutils/libcurl4nx:  This is an initial commit libcurl4nx.
23152        It is not complete yet, but I still wish to commit the unfinished
23153        bits to describe the roadmap, and because it is already usable.  It
23154        will be updated and fixed in the future weeks and months, certainly
23155        including POST support and later, SSL.  From Sebastien Lorquet.
23156      - apps/netutils/netinit.  This commit removes the private network
23157        initialization logic from NSH and puts in a common location at
23158        apps/netutils/netinit.  Now that netork initialization logic can be
23159        used by applications that do not include NSH.  From Gregory Nutt.
23160      - apps/netutils/netlib:  Add a  more flexible version of
23161        netlib_parsehttpurl().  This one can parse any URL, and is
23162        extensible so future improvements keep the same API.  From Sebastien
23163        Lorquet.
23164
23165    * System Utilities: apps/system
23166
23167     - apps/system/spi:  I needed a small test tool for spi in the style of
23168       the I2C tool, but I didn't see one so I've hacked one out of the I2C
23169       tool source.  From Dave Marples.
23170
23171    * Graphics:  apps/graphics:
23172
23173      - apps/graphics/twm4nx.  This release introduces Twm4Nx.  Twm4Nx is a
23174        "port" of TWM, Tab Window Manager (or Tom's Window Manager) version
23175        1.0.10 to NuttX NX windows server.  No, a port is not the right
23176        word.  It is are-design of TWM from the inside out to work with the
23177        NuttX NX server and NXWidgets.  The name Twm4Nx reflects this
23178        legacy.  But Twm4Nx is more a homage to TWM than a port of TWM.
23179
23180        The original TWM was based on X11 which provides a rich set of
23181        features.  TWM provided titlebars, shaped windows, several forms of
23182        icon management, user-defined macro functions, click-to-type and
23183        pointer-driven keyboard focus, graphic contexts, and user-specified
23184        key and pointer button bindings, etc.
23185
23186        Twm4Nx, on the other hand is based on the NuttX NX server which
23187        provides comparatively minimal support.  Additional drawing support
23188        comes from the NuttX NxWidgets library (which necessitated a
23189        conversion to C++).
23190
23191        Twm4Nx is greatly stripped down and targeted on small embedded systems
23192        with minimal resources.  For example, no assumption is made about the
23193        availability of a file system; no .twmrc file is used.
23194
23195        The state of the "port" is available in
23196        apps/graphics/twm4mx/README.txt.  To summarize:  The port is fully
23197        functional but probably only at an alpha release level.  The only
23198        missing critical feature is built-in touchscreen calibration.
23199
23200      - apps/graphics/littlevgl.  Update to Littlevgl 5.3.  From Matthew
23201        Koch.
23202      - apps/graphics/nxglyphs:  Put all NxWidgets and NxWM glyphs into a
23203        common directory where they can eventually be shared. Decouple
23204        from nxwidgets and nxwm so that they can be used elsewhere.
23205        Creates include/graphics/nxglyphs.h  From Gregory Nutt.
23206      - apps/graphics/nxglyphs:  Add some new cursor bitmap images.  From
23207        Gregory Nutt.
23208      - apps/graphics/nxglyphs:  Add mkcursor.c.  Will auto-generate
23209        cursor image header file from Gimp C output.  From Gregory Nutt.
23210      - apps/graphics/nxglyphs:  Add 16x16 cursor images.  30x30 are kind
23211        of large on small displays.  From Gregory Nutt.
23212      - apps/graphics/nxglyphs:  Add a new resize cursor image. From
23213        Gregory Nutt.
23214      - apps/graphics/nxwm:  Separate NxWidgets and NxWM into separate
23215        directories.  Remove old, common NxWidgets directory.  From
23216        Gregory Nutt.
23217      - apps/graphics/nxwm:  Move the NxWM unit test main() to apps/nxwm.
23218        It is no longer a unit test, but the main startup entry point for
23219        NxWM.  From Gregory Nutt.
23220      - apps/graphics/nxwidgets:  Update NX window clients so that they
23221        use the new 'event' callback (vs. the obsoleted 'blocked' callback).
23222        From Gregory Nutt.
23223      - apps/graphics/nxwidgets:  Add a synchronize method to every window.
23224        This is a wrapper arounc nx[tk]_sync and permits C++ applications
23225        to synchronize with the NX server.  From Gregory Nutt.
23226      - apps/graphics/nxwidgets:  Add support for modal windows.  From
23227        Gregory Nutt.
23228      - apps/graphics/nxwidgets:  Add cursor control methods to the
23229        CNxServer class.  From Gregory Nutt.
23230      - apps/graphics/nxwidgets:  Add a method to CButtonArray that will
23231        allow us to dynamically resize the array (at the cost of losing all
23232        button labels).  From Gregory Nutt.
23233      - apps/graphics/nxwidgets:  Fix a possible deadlock condition when
23234        waiting for window geometry data that will never come.  Fixed by
23235        re-requesting geometry data if we don't already have it.  From
23236        Gregory Nutt.
23237      - apps/graphics/nxwidgets:  Add handshake to
23238        CWidgetControl::getWindowHandle() to avoid returning a NULL
23239        handle.  From Gregory Nutt.
23240      - apps/graphics/nxwidgets:  CNxTkWindow, CNxWindow, CNxServer:  Add
23241        support to create RAM backed windows.  From Gregory Nutt.
23242      - apps/graphics/nxwidgets:  Add methods to all windows to query if a
23243        window is visible or hidden.  From Gregory Nutt.
23244
23245Bugfixes.  Only the most critical bugfixes are listed here (see the
23246ChangeLog for the complete list of bugfixes and for additional, more
23247detailed bugfix information):
23248
23249    * Core OS:
23250
23251      - Clock Initialization:  A recent change broke Tickless mode for all
23252        architectures.    The original change was intended to handle the
23253        case where up_timer_gettime may not start from zero case.  The
23254        side effect is that this changed to order of initialization of
23255        clocking, breaking Tickless mode::  After this change the tickless
23256        timer structures are used before they are initialized in
23257        clock_inittime().  The commit has been reverted.
23258      - pthread Stack Attribute:  Fixed pthread_attr_get/setstacksize
23259        param type to size_t.  From Joao Matos.
23260      - Signals:  The abnormal termination signal handler was just calling
23261        exit() conditionally when, for example, Ctrl-C is sent to a task.
23262        The abnormal termination handler must obey the rules of cancellation
23263        points:  If cancelation is disabled, then the abnormal termination
23264        logic must wait for cancelation to be re-enabled; If cancellation
23265        is deferred then the abnormal termination logic may have to wait
23266        for the victim task to enter or exit a cancellation point.  From
23267        Gregory Nutt.
23268      - Syscall: Added support for munmap() syscall.  From Joao Matos.
23269      - Syscall: Fix a warning due to inconsistencies in return type in
23270        syscall.csv.  From Gregory Nutt.
23271      - Syscall:  Correct an error syscall.csv. Error occurred when
23272        creating the munmap() proxy if CONFIG_FS_RAMMAP is not defined.
23273        From Gregory Nutt.
23274
23275    * File System/Block and MTD Drivers:
23276
23277      - fs/littlefs/lfs.c:  Fix lfs_format bug.  In superblock disk root-
23278        block assignment, the second must be root[1].  From YanLin Zhu.
23279
23280    * Networking/Network Drivers:
23281
23282      - getsockname():  Fix addrlen check in socket debug features.
23283        Getsockname() checked erroneously a pointer agains 0, where the
23284        intention was to dereference the pointer and to check the length.
23285        This causes also a compilation failure if the code is compiled
23286        with CONFIG_DEBUG_FEATURES and with -Werror flag set.  From Jukka
23287        Laitinen.
23288      - Network Locking:  net_lock() and net_restorelock() now return a
23289        value.  That values is the standard zero on success; negated errn
23290        value on failure.  This return value is only needed for
23291        -ECANCELED.  That cancellation indication needs to ripple all the
23292        way back to the highest levels where the cancellation can be acted
23293        on.  This commit only adds the return value; it does not add
23294        checking for the return values of net_lock() and net_restorelock()
23295        at higher levels.  That is required too.  From Gregory Nutt.
23296      - PHY Notification Driver:  Change sprintf to strncpy in phy_notify.
23297        On some platforms, the sprintf doesn't accept a const char* as a
23298        format argument.  From Jukka Laitinen.
23299      - 6LoWPAN HC06:  Correct an endian-ness problem in HC06 decompression.
23300        From Ivan Ucherdzhiev.
23301
23302    * Wireless/Wireless Drivers:
23303
23304      - NRF24L01:  Don't block in read if file descriptor is O_NONBLOCK.
23305        From Leif Jakob.
23306
23307    * Graphics/Display Drivers:
23308
23309      - NX Graphics:  Fix an error in coordinate system usage.  Expected
23310        rectangle in device coordinate frame, but was passing the
23311        rectangle in window-relative coordinate frame.  From Gregory Nutt.
23312      - NX Graphics:  Fix an oversight in the implementation of per-window
23313        framebuffers.  It is true that redraw callbacks can be suppressed
23314        for all cases ... EXCEPT ONE:  When the window is resized to a
23315        larger size, then the newly exposed territory must be drawn for
23316        the first time.  From Gregory Nutt.
23317      - NxTK:  Fix an error in handling mouse events for framed windows.
23318        When drawing, NX may report mouse positions outside of the Window.
23319        The is only for NX windows, but the outside-the-side positions were
23320        being discarded by nxtk_events().  From Gregory Nutt.
23321      - NxTK:  Refuse to open a toolbar of height zero or less.  From
23322        Gregory Nutt.
23323      - Nxglib:  Correct bogus logic in nxgl_interesting().  From Gregory
23324        Nutt.
23325      - VNC Server:  Fix an error in color conversion.  From Gregory Nutt.
23326
23327    * Common Drivers:
23328
23329      - APDS9960:  Initial state of allocated structure was not being set.
23330        Noted by Leif Jacob.  From Gregory Nutt.
23331      - MFRC522:  In mfrc522_read uid.sak must be different from 0x04 not
23332        as before from 0x00. SAK == 0x00 is a valid PICC type.  Add
23333        interface to read MIFARE Ultralight data  From Mateusz Szafoni.
23334      - Power:  Fix build for battery gauge  From Tom Kopriva.
23335      - Syslog:  In syslog buffered mode, avoid IOB alloc lock-up with
23336        heavy network activity.  This change alters the buffered syslog
23337        logic to use 'iob_tryalloc' instead of blocking 'iob_alloc' to
23338        avoid syslog printing from getting stuck when all IOBs are
23339        depleted by network activity.  An issue was seen when large
23340        incoming TCP transfer uses free IOB buffers and processing
23341        threads try to use syslog which then block at iob_alloc.  From
23342        Jussi Kivilinna.
23343      - USB CDC/ACM Device:  This fixes a problem where the host sent a
23344        "get descriptor" message of type "standard" with a recipient of
23345        type "interface". Since the composite driver would only pass
23346        messages to the child interfaces when a message was not
23347        "standard", this message was not handled. I changed the condition
23348        so that the composite driver checks not only if this is a
23349        "standard" message but if it is also directed to the device.
23350        Otherwise, the handling is delegated to the children of the
23351        composite device.  From Matias N.
23352      - USB HID:  The usbhid_descriptor_s struct defined in hid.h included
23353        some optional fields that should not be hard-defined as part of
23354        that structure.  An arbitrary number of optional entries could be
23355        included in the descriptor, but that is not properly represented.
23356        No code on NuttX currently depends on the structure definition
23357        with an optional descriptor so it is safe to remove.  From Matias N.
23358      - USB MSC Device:  Correct typo "const const" to "const".
23359        arch/arm/src/stm32/stm32_i2s.c:  In debug assertions, it on a
23360        sample rate of 0, but based on other code comments this value
23361        implies disabling the i2s master clock.  From Jason Harris.
23362      - Zerocross Driver:  Fix some errors when debug assertions are
23363        enabled.  From Matous Pokorny.
23364      - User Leds:  Fix ledset validity check in ULEDIOC_SETALL ioctl.
23365        From Jussi Kivilinna.
23366
23367    * Architecture Common:
23368
23369      - All board interfaces (those starting with board_) must be defined
23370        in board-specific logic.  Otherwise, they cannot be customized for
23371        specialized usage by different boards.  The board_reset()
23372        interface was defined in architecture-specific logic that only
23373        called up_systemreset().  That is useless!  This change removes
23374        the board_reset() implementation from the architecture-specific
23375        code and re-implements it in the src/ directory of each board that
23376        has CONFIG_BOARDCTL_RESET enabled.  That is the correct functional
23377        partitioning.  From Gregory Nutt.
23378      - Start-up:  Remove dependency on CONFIG_ARCH_FPU for inclusion of
23379        nvic.h in all other *_start.c files.  From Gregory Nutt.
23380      - Architecture initialization:  up_initialize() needs to know about
23381        ramlog_consoleinit()  From Jason Harris.
23382
23383    * Microchip PIC32MZ Drivers:
23384
23385      - PIC32MZ GPIO:  Corrects the gpioirq when mismatch mode is
23386        selected.  From Abdelatif Guettouche.
23387
23388    * ARMv7-A:
23389
23390      - ARMv7-A Build:  Fix 'cc1: warning: switch -mcpu=cortex-a7 conflicts
23391        with -march=armv7-a switch'  From Xiang Xiao.
23392
23393    * Nordic NRFxx
23394
23395      - NRF52:  Fix compiler error in nrf52832_errdata.c when following
23396        C89.  From Erik Englund.
23397
23398    * STMicro STM32:
23399
23400      - STM32 Configuration:  It seems one option in the timer configuration
23401        was lost at some point.  From Matias N.
23402      - STM32 start-up:  Inclusion of nvic.h should not be conditioned on
23403        CONFIG_ARCH_FPU.  From Mateusz Szafoni.
23404      - STM32H7 Clocking:  Fixes for STM32H7 RCC definitions.  From Jukka
23405        Laitinen.
23406
23407    * STMicro STM32 Drivers:
23408
23409      - STM32F0/L USART:  A few fixes for USART.  From Mateusz Szafoni.
23410      - STM32F1/F30 FLASH:  RCC register access should not be offset by
23411        FLASH register base.  From Matias N.
23412      - STM32F7 CAN:  CAN fixes.  From Valmantas Paliksa.
23413      - STM32F7 I2C:  I2C Interrupt storm fix.  I2C track bad state.  Now
23414        we track bad state and so the SW reset only when it occurs.  From
23415        David Sidrane.
23416      - STM32F7 OTG: Fixes some macros related to OTGFS/OTGHS preventing
23417        OTGHS from working.  From Anthony Merlino.
23418      - STM32F7 OTG Device:  Correct hard-coded FIFO size that is wrong
23419        for OTG FS.  From Ramtin Amin.
23420      - STM32F7 QSPI:  Fix QuadSPI interrupts.  This commit essentially
23421        replaces wrongly named configuration variable STM32F7_QSPI_INTERRUPTS
23422        into CONFIG_STM32F7_QSPI_INTERRUPTS.  Also fixes some getreg/
23423        putreg where register addresses were used instead of register
23424        offsets  From Pierre-Olivier Vauboin.
23425      - STM32H7 I2C: Fix I2C4 compilation for STM32H7.  From Jukka
23426        Laitinen.
23427      - STM32H7 UART: Fix compilation for UART7, UART8 and I2C4s.  From
23428        Jukka Laitinen.
23429      - STM32L4 USB Device:  Add missing PWR USBV enable, correct two USB
23430        register bits  From Juha Niskanen.
23431
23432    * STMicro STM32 Boards:
23433
23434      - STM32F103-Minimum:  USB reset was not working appropriately since
23435        the pin connected to D+ was incorrectly defined and the pullup/down
23436        logic was reversed.  From Matias N.
23437      - Nucleo-l476RG:  Fix some errors in GPIO logic when debug assertions
23438        are enabled.  From Matous Pokorny.
23439      - Nucleo-L476RG:  Add missing files of BMP180 example for Nucleo-L476RG.
23440        From Fabian Justi.
23441      - STM32F103-Minimum GPIO:  Fix some errors when debug assertions are
23442        enabled.  From Matous Pokorny.
23443      - STM32L4 PWM:  Fix register addr, en_bit and resetbit for pwm timers.
23444        From Fabian Justi.
23445      - STM32F746G-DISCO: I2C1 config on stm32f746g-disco. Typo in
23446        stm32f7/stm32_i2c.c  From Matthew Koch.
23447
23448    * C Library/Header Files:
23449
23450      - include/limits.h:  Remove the duplicate TMP_MAX definitions.  The
23451        standard requires that TMP_MAX defines be in stdio.h.  From
23452        Xiang Xiao.
23453      - include/sys/select.h:  Fix compiler error when
23454        CONFIG_NSOCKET_DESCRIPTORS is undefined.  From Xiang Xiao.
23455      - include/signal.h:  Add commented out definition of the si_addr
23456        field.  From Joao Matos.
23457      - include/unistd.h:  Fixed R_OK/X_OK definitions to match POSIX.
23458        From Joao Matos.
23459
23460      - libs/libc/locale: Improved error handling in setlocale().  From Joao
23461        Matos.
23462      - libs/libc: Fixed return code in uname().  From Joao Matos.
23463      - libs/libc/stdio:  Restore support for printing NULL string as
23464        "(null)".  Legacy printf supported printing "(null)" in place for
23465        NULL string:  printf("null: %s\n", NULL); => null: (null).  This
23466        commit restores this functionality for new printf library.  From
23467        Jussi Kivilinna.
23468
23469    * Examples: apps/examples:
23470
23471      - apps/examples/pca9635/pca9635_main.c: fix compilation error. From
23472        Mateusz Szafoni.
23473
23474    * Graphics Utilities: apps/graphics:
23475
23476      - Various graphics apps (and apps/examples):  If CONFIG_VNCSERVER=y,
23477        don't call vnc_default_fbinitialize() directly.  That is a violation
23478        of the portable POSIX interface.  Instead, call
23479        boardctl(BOARDIOC_VNC_START);.  From Gregory Nutt.
23480      - apps/graphics/nxwidgets:  CWidgetControl::handleLeftClick now
23481        returns a value to indicate if the click was actually processed or
23482        not. CWidgetControl::pollMouseEvents:  Correct return value.  From
23483        Gregory Nutt.
23484      - apps/graphics/nxwidgets/:  NXWidgets::CNxWidgets:  Fix some issues
23485        with returned values.  On setting the widget size or position, it was
23486        returning false if there was no change in size or position.  Many
23487        places in the code were treating the false return value as an error.
23488        From Gregory Nutt.
23489
23490    * System Utilities: apps/system:
23491
23492      - apps/system/nxplayer:  Fix some logical errors from recent commits.
23493        They broke the build of the nxplayer as a library vs. a task.
23494
23495NuttX-7.31 Release Notes
23496------------------------
23497
23498The 131st release of NuttX, Version 7.31, was made on July 21, 2019,
23499and is available for download from the Bitbucket.org website.  Note
23500that release consists of two tarballs:  nuttx-7.31.tar.gz and
23501apps-7.31.tar.gz.  These are available from:
23502
23503    https://bitbucket.org/nuttx/nuttx/downloads
23504    https://bitbucket.org/nuttx/apps/downloads
23505
23506Both may be needed (see the top-level nuttx/README.txt file for build
23507information).
23508
23509Additional new features and extended functionality:
23510
23511    * Core OS:
23512
23513      - poll():  Removed all references to CONFIG_DISABLE_POLL.  The
23514        standard POSIX poll() can no longer be disabled.  From Gregory Nutt.
23515      - LWL console:  Add support for OpenOCD 'Lightweight Link' protocol
23516        between a target and debugger for use when you need a console but
23517        the target doesn't have a spare serial port or other available
23518        resource.  From Dave Marples.
23519
23520    * Network/Network Drivers:
23521
23522      - Socket Options:  Previous change removed some incorrect SO_LINGER
23523        socket option functionality.  SO_LINGER was always enabled if
23524        CONFIG_NET_SOLINGER was selected.  This change implements a proper
23525        version of SO_LINGER.  It is based on new logic to drain the
23526        buffered TX data, integrated with network event notification system.
23527        Supports notification when UDP or TCP write buffer becomes empty.
23528        From Gregory Nutt.
23529      - Telnet Driver:  Handle ctrl events (SIGINT, SIGSTP).  From
23530        Valmantas Paliksa.
23531      - Telnet Driver:  I/O thread now offloads reading from socket
23532        from client thread to the I/O thread.  From Valmantas Palik�a.
23533
23534    * Wireless/Wireless Drivers:
23535
23536      - GS2200M:  Add support for Telit GS2200M Wi-Fi module  From Masayuki
23537        Ishikawa.
23538      - GS2200M:  Introduce CONFIG_WL_GS2200M_SPI_FREQUENCY.  Also, changed
23539        usleep(100) to up_udelay(100) to avoid invalid response.  From
23540        Masayuki Ishikawa.
23541      - GS2200M: Add channel parameter for AP mode in gs2200m.c  From
23542        Masayuki Ishikawa.
23543
23544    * Graphics/Video/Display Drivers:
23545
23546      - Video Streaming:  Add basic Video Stream and Capture implementation
23547        based on the SPresence SDK code release  From Alin Jerpelea.
23548      - video/:  Create video/ directory to hold non-driver video-related
23549        logic.  From Gregory Nutt.
23550      - EDID:  Add some initial EDID logic ported from FreeBSD.  From
23551        Gregory Nutt.
23552      - EDID:  Add logic to sort video modes by how close they are to the
23553        preferred mode.  This is part of the logic to pick the best possible
23554        video mode.  From Gregory Nutt.
23555      - EDID/Video Modes:  Separate EDID and from videomode management.
23556        They really are separate things.  From Gregory Nutt.
23557      - EDID/Video Modes:  Add debug functions to dump the EDID and
23558        videomode content.  From Gregory Nutt.
23559      - VESA GTF:  Bring VESA Generalized Timing Formula (GTF) from FreeBSD.
23560        From Gregory Nutt.
23561      - Video Modes:  At some additional lookups from FreeBSD.  Not
23562        currently used in NuttX so ifdef'ed out for now.  From Gregory Nutt.
23563      - tda19988:  Now uses the new common videomode structure of
23564        include/nuttx/video/videomode.h as do other video components.  From
23565        Gregory Nutt.
23566      - ILI9340:  Add ILI9340 LCD Single Chip Driver.  Required LCD driver
23567        settings:  LCD_MAXCONTRAST should be 255, but any value >0 and <=255
23568        will be accepted.  LCD_MAXPOWER should be 1:  0=off, 1=on.  From
23569        Alin Jerpelea.
23570      - LPM013M091A:  Add JDI LPM013M091A LCD Driver.  From Alin Jerpelea.
23571      - ISX012:  Add support for ISX012 Image sensor.  From Alin Jerpelea.
23572
23573    * Other Common Device Drivers:
23574
23575      - SPI Interface:  Added standard definitions for ADC SPI device ID.
23576        From Daniel P. Carvalho.
23577      - AK09911/AK09912:  Add Asahi AK09911/AK09912 compass sensor over I2C
23578        bus From Alin Jerpelea.
23579      - AS726X:  Add support for AS726X spectral sensor  From Fabian Justi.
23580      - BMI160:  Add driver support for the Bosch BMI160 Inertial Measurement
23581        sensor.  This driver can be used with the BMI160 sensor connected
23582        over SPI or I2C bus.  From Alin Jerpelea.
23583      - BMP280:  Add Bosch BMP280 Barometic pressure sensor connected over
23584        I2C bus.  From Alin Jerpelea.
23585      - INA3221:  Adds INA3221_I2C_ADDRx macro helpers.  From Anthony
23586        Merlino.
23587      - VL53L1x:  Added support for VL53L1x TOF sensor.  From Juan Flores.
23588
23589    * Microchip PIC32MZ Drivers:
23590
23591      - PIC32MZ DMA: Add DMA support.  From Abdelatif Guettouche.
23592
23593    * NXP i.MXRT Drivers:
23594
23595      - i.MXRT EHCI:  Add i.MXRT EHCI driver.  From Dave Marples.
23596      - i.MXRT USDHC:  Implements SDIO and Multi-card support for i.MXRT.
23597        From Dave Marples.
23598      - i.MXRT USDHC:  Implements USDHC1 & 2 selection on the imxrt. If
23599        only one port is active (either 1 or 2) it will always be numbered
23600        as 0, if both are active then USDHC1 will be number 0, USDHC2 will
23601        be 1.  From Dave Marples.
23602      - i.MXRT Serial:  Add TIOCSINVERT ioctls.  From Beat K�ng.
23603      - i.MXRT Serial:  Implemented RS485 RX/TX switching and RTS/CTS flow
23604        control for the IMXRT family.  It has been tested on 1020 but I
23605        don't see any reason for issues on any other family member.  From
23606        Dave Marples.
23607
23608    * NXP/Freescale Kinetis Drivers:
23609
23610      - Kinetis Serial:  Add UART signal inversion support  From Beat K�ng.
23611
23612    * NXP LPC11xx:
23613
23614      - LPC11xx:  Support for the LPCXpresso-LPC1115 and for the LPC1115
23615        architecture in general was removed after NuttX-7.30.  The LPC11
23616        port was never really used (to my knowledge) and was no longer
23617        supported. A snapshot of the port is still available in the
23618        Obsoleted repository.  It can be brought back into the main
23619        repository at any time if anyone is willing to provide support
23620        for the architecture.  From Gregory Nutt.
23621
23622    * NXP LPC17xx Boards:
23623
23624      - PNEV5180B:  Add support for NXP Semiconductors' PN5180 NFC Frontend
23625        Development Kit.  This board is based on the NXP LPC1769 MCU.  At
23626        the moment there is just support for a minimal nsh configuration via
23627        UART0.  From Michael Jung.
23628      - PNEV5180B:  Add usbnsh configuration.  This is basically the same as
23629        the 'nsh' defconfig, but uses CDC/ACM as the NuttShell console
23630        device.  From Michael Jung.
23631      - PNEV5180B:  Adds NSH configuration with UART0 and eth0 via CDC/ECM
23632        on USB device.  From Michael Jung.
23633      - PNEV5180B:  Add new configuration includes a USB Composite Device
23634        with both CDC/ACM and CDC/ECM.  NuttShell provides a terminal via
23635        CDC/ACM.  A network interface (eth0) is provided via CDC/ECM.  From
23636        Michael Jung.
23637      - PNEV5180B ROMFS: Auto-mount baked-in ROMFS image.  Includes support
23638        for linking a binary ROMFS image into the nuttx executable and for
23639        mounting it during board bring-up.  From Michael Jung.
23640      - PNEV5180B PROTECTED:  Add PROTECTED mode configuration with
23641        NuttShell.  From Michael Jung.
23642
23643    * NXP LPC40xx:
23644
23645      - LPC40xx:  Add support for LPC40xx family chips.  Renamed LPC17XX to
23646        LPC17XX_40XX in directory, configuration, file names, etc., as
23647        appropriate.  Corrected a few peripheral definitions and pin
23648        functions for the LPC17xx family.  Added configuration options, chip
23649        definitions, and additional pin functions for the LPC40xx family.
23650        From jjlange.
23651
23652    * NXP LPC40xx Boards:
23653
23654      - LPC4088-Devkit:  Added board configuration for Embedded Artists
23655        LPC4088 Developer's kit.  From jjlange.
23656      - LPC4088-Quickstart:  Added board configurations for Embedded Artists
23657        LPC4088 Quickstart board.  From jjlange.
23658
23659    * NXP LPC54xx Boards
23660
23661      - LPCXpresso-LPC54628:  Enable DATE command in twm4nx1 and twm4nx2
23662        configurations.  From Gregory Nutt.
23663
23664    * Sony CXD56xx
23665
23666      - CXD56xx:  Adds (1) the HW pin configuration, (2) GPIO support for
23667        CXD56xx, (3) GPIO interrupts, (4) clock support, (5) PMIC (Power
23668        management integrated circuit) support (6) add a simple FIFO
23669        scheduler that minimizes overhead, (6) Inter Core Communication.
23670        From Alin Jerpelea.
23671      - CXD56xx:  Add Package Configuration. The CXD56xx can come in FCBGA
23672        185 pin or WLCSP 100 pin package.  For each package we have to pick
23673        the right pin setup.  The default configuration is set to FCBGA 185
23674        pin package  From Alin Jerpelea.
23675      - CXD56xx:  Add Power Management support  From Alin Jerpelea.
23676      - CXD56xx: (1) Add syscontrol, (2) Add the function to change the
23677        clock speed, (3) Add pinctrl and clock ctrl functionality.  From
23678        Alin Jerpelea.
23679
23680    * Sony CXD56xx Drivers:
23681
23682      - CXD56xx USB: Add basic support for USB connectivity.  From Alin
23683        Jerpelea.
23684      - CXD56xx SDHC:  Add SDHCI driver for the CXD56xx.  From Alin
23685        Jerpelea.
23686      - CXD56xx SPI:  Add SPI support.  From Alin Jerpelea.
23687      - CXD56xx DMA:  Add DMA support.  From Alin Jerpelea.
23688      - CXD56xx RTC:  Add RTC support.  From Alin Jerpelea.
23689      - CXD56xx PWM:  Add support for PWM.  From Alin Jerpelea.
23690      - CXD56xx Power Management:  Add Power Management PROCFS support. From
23691        Alin Jerpelea.
23692      - CXD56xx Timer:  Add Timer driver.  From Alin Jerpelea.
23693      - CXD56xx Watchdog Timer:  Add watchdog timer support.  From Alin
23694        Jerpelea.
23695      - CXD56xx UID:  Add support to be able to read the HW UID.  From Alin
23696        Jerpelea.
23697      - CXD56xx I2C:  Add I2C support.  From Alin Jerpelea.
23698      - CXD56xx I2C:  Add I2C character driver support.  For testing
23699        purposes, we use the CXD56_I2C_DRIVER to register the /dev/i2c[]
23700        character devices.  Add battery gauge and battery charger drivers.
23701        Add SPI-based SP card support.  From Alin Jerpelea.
23702      - CXD56xx SCU:  Add Sensor Control Unit (SCU); Use DMAC for reading
23703        sensing data from SCU on CXD56xx chip.  From Alin Jerpelea.
23704      - CXD56xx ADC:  Add ADC interface support.  From Alin Jerpelea.
23705      - CXD56xx eMMC:  Add eMMC support for CXD56xx chip  From Alin Jerpelea.
23706      - CXD56xx Camera:  Add driver for hardware image processor device to
23707        enable the hardware image processor set CXD56_GE2D=true.  From Alin
23708        Jerpelea.
23709      - CXD56xx CISIF:  Add CISIF support to be able to use cameras.  From
23710        Alin Jerpelea.
23711      - CXD56xx GNSS:  Add GNSS device, add Geofence Support, add UART0
23712        interface. UART0 is an interface with hardware flow control in the
23713        application subsystem.  From Alin Jerpelea.
23714
23715    * Sony CXD56xx Spresense Board:
23716
23717      - Default Configurations:  (1) We are using the framework to
23718        initialize the CPU, (2) Enable PowerManager on SPresence board, (3)
23719        Initialize the UART interfaces, (4) Enable clock management using
23720        the CXD56 framework, (5) Use timerisr on the SPresence board, (6)
23721        Enable USBDEV on Spresense board, (7) Enable SD Card support on
23722        SPresence board, (8) Enable Mass Storage on Spresense board  From
23723        Alin Jerpelea.
23724      - Default Configurations: Add support for RNDIS configuration.  From
23725        Masayuki Ishikawa.
23726      - RTC:  Enable RTC functionality on SPresence board  From Alin
23727        Jerpelea.
23728      - SPI FLASH:  Enable SPI Flash arch/arm/src/cdx56xx:  (1) Group all
23729        CXD56xx Options in one menu, (2) Add Storage Options menu and
23730        Peripheral Support comment, (3) Add SPI Flash support  From Alin
23731        Jerpelea.
23732      - Add SPI configuration for SPresence board. Enable PWM support on
23733        SPresence board;  The powermanager procfs is disabled by default and
23734        need to be enabled by the CONFIG_CXD56_PM_PROCFS option.  Timers can
23735        be used on the SPresence board.  Watchdog timer support also added.
23736        From Alin Jerpelea.
23737      - Add USERLED for SPresence board.  From Alin Jerpelea.
23738      - Enable I2CDEV for SPresence board.  Add useful diagnostic LEDs on
23739        the SPresence board.  From Alin Jerpelea.
23740      - Add support for Tilt GS2200M Wi-Fi module.  From Masayuki Ishikawa.
23741      - Remove SPI MMC/SD support and enable ADC support for SPresence
23742        board.  From Alin Jerpelea.
23743      - Enable BMI160_I2C sensor over I2C on SPresence board.  From Alin
23744        Jerpelea.
23745      - Add I2CTOOL support and extend GPIO for future use. Add delay
23746        support for CXD56xx chip.  For development is useful to register
23747        I2C busses when the I2CTOOL is built.  Enable GPIO interface on
23748        the Spresense board.  From Alin Jerpelea.
23749      - Add use o the CXD56_I2C_DRIVER to register the /dev/i2c character
23750        devices.  Enable battery gauge and battery charger support.  From
23751        Alin Jerpelea.
23752      - Enable UID functionality.  To enable the UID functionality for
23753        SPresence board  set BOARDCTL_UNIQUEID in menuconfig.  From Alin
23754        Jerpelea.
23755      - Add USBDEV_SETNOTIFYSIG signal ID.  Set signal ID for notify USB
23756        device connection status and supply current value.  From Alin
23757        Jerpelea.
23758      - Register the procfs in the NSH configuration.  This is a
23759        configuration change in sync with the other ones.  Enable
23760        READLINE_CMD_HISTORY, enable by default SPI 4 and 5, and enable
23761        SPI to keep all configurations in sync.  From Alin Jerpelea.
23762      - Add support for MSC and USB Composite device.  Adds usbmsc
23763        configuration.  Spresense board does not have buttons and but a
23764        template for gpio buttons that can be connected on the external
23765        header From Alin Jerpelea.
23766      - LCD:  Add support for LPM013M091A LCD, add support for ILI9340
23767        LCD, add a new configuration to support an LCD.  From Alin
23768        Jerpelea.
23769      - WiFi:  Improve performance for webserver:  (1) Enable SPI DMA for
23770        both TX and RX, (2) Increase SPI clock speed from 4MHz to 10MHz,
23771        (3) Increase buffer size for sendfile() from 512B to 1KBm abd (4)
23772        Enable sendfile() for webserver.  From Masayuki Ishikawa.
23773      - MPY:  Add MPY defconfig.  From Alin Jerpelea.
23774      - Update defconfigs rndis and wifi:  Enable RTC and webserver with
23775        directory listing support.  Also, changed start year/month/day for
23776        NuttX 2019.  From Masayuki Ishikawa.
23777      - Build nuttx.spk images.  Enable nuttx.spk binary image that can be
23778        flashed on SPresence board.  From Alin Jerpelea.
23779      - configs/SPresence:  Add entry point for MPY.  The entry point is
23780        needed for the downstream projects based on SPresence.  From Alin
23781        Jerpelea.
23782      - Enable internal flash storage for SPresence boards. The SmartFS
23783        flash is mounted under /mnt/spif folder.  From Alin Jerpelea.
23784      - For compatibility with SDK we need to change the USER_ENTRYPOINT
23785        in all configurations to spresense_main().  From Alin Jerpelea.
23786
23787    * STMicro STM32:
23788
23789      - STM32 Kconfig:  Add MEDIUM_DENSITY selection.  From Dave Marples.
23790      - STM32 Kconfig:  Add the missing STM32 LCD Clock Source Selections.
23791        From Alan Carvalho de Assis.
23792      - STM32G0:  Initial support for STM32G0 family.  From Mateusz Szafoni.
23793      - STM32F0L0G0:  Renamed directories STM32F0L0 to STM32F0L0G0 since
23794        they now also supports the STM32G0 thanks to Mateusz Szafoni's
23795        contribution  From Gregory Nutt.
23796      - STM32H7x3:  Added ADC pins to pin map.  From David Sidrane.
23797
23798    * STMicro STM32 Drivers:
23799
23800      - STM32 PWM:  Add support for all PWM modes.  Add an interface to
23801        change PWM mode.  Refactor pwm_mode_configure(). STM32_PWM_CHANx
23802        corresponds to the timer channel and STM32_PWM_OUTx corresponds to
23803        the timer channel output.  Add CHAN5 and CHAN6 to
23804        PWM_TIMx_NCHANNELS.  Calculate thePWM_TIMx_NCHANNELS if
23805        CONFIG_STM32_PWM_MULTICHAN is selected.  From Mateusz Szafoni.
23806      - STM32 FSM/FSCM:  Split the STM32 FMC/FSMC functionality.  Makes FMC
23807        it's own thing rather than piggy backing on the FSMC code.  The
23808        peripherals have a few utility functions and this commits lets you
23809        have a common architectural functions rather than having duplicate
23810        functions in each board implementation.  From Jason Harris.
23811      - STM32F7 DTCM:  Add procfs register  From Daniel Agar.
23812      - STM32F7 GPIO:  Add GPIO driver.  Code is inspired from STM32F3-
23813        Discovery and Nucleo-L476RG platforms.  Tested on Nucleo-F767ZI.
23814        From Phil Coval.
23815      - STM32F7 Serial:  This adds the ability to invert and swap RX/TX on
23816        STM32F7 UARTs.  I added the TIOCGINVERT as well to reserve the IOCTL
23817        number, but did not implement it. This is the same as for
23818        TIOCGSINGLEWIRE.  From Beat K�ng.
23819      - STM32L4 CRS:  Make STM32L4 CRS synchronization source board
23820        configurable.  From Juha Niskanen.
23821      - STM32L4 HSI48:  Enable CRS_CR_CEN with CRS_CR_AUTOTRIMEN.  From
23822        Jussi Kivilinna.
23823      - STM32L4 I2C:  Add support for 16 and 120 MHz timings.  Board can use
23824        HSI16 clock for I2C  From Juha Niskanen.
23825      - STM32L4 PWR:  Enable PWR peripheral for setting USV.  From Jussi
23826        Kivilinna.
23827      - STM32L4 RCC:  Use Range 1 Boost mode if SYSCLK is higher than 80
23828        MHz.  From Juha Niskanen.
23829      - STM32L4 Serial:  Add TIOCSINVERT and TIOCSSWAP ioctls.  From Beat
23830        K�ng.
23831      - STM32H7 ADC:  Added ADC Driver, ADC clocking.  From David Sidrane.
23832      - STM32H7 Ethernet: Fix typo in define.  From Pierre-Olivier Vauboin.
23833      - STM32H7 PWM:  Port PWM from STM32  From Mateusz Szafoni.
23834      - STM32H7 QEncoder:  Ported the QEncoder from F7 to H7.  From Eduard
23835        Niesner.
23836      - STM32H7 Serial:  Add TIOCSINVERT and TIOCSSWAP ioctls.  Ensure
23837        TIOCSSINGLEWIRE is atomic and UE disabled.  From Beat K�ng.
23838
23839    * STMicro STM32 Boards:
23840
23841      - Olimex-STM32-E407:  Added BMP180 initialization and a configuration
23842        to test the BMP180.  From Juan Flores.
23843      - Olimex-STM32-E407:  Add DAC support, add IN219 support, add timer
23844        driver support.  From Juan Flores.
23845      - Olimex-STM32-E407:  Add support for MRF24J40 radio.  From Gregory
23846        Nutt.
23847      - Axoloti:  Adds initial support for the Axoloti sound/music
23848        synthesizer board.  Board is based on STM32F427 SoC.  See
23849        http://www.axoloti.com/.  From Jason Harris.
23850      - Nucleo-G071RB:  Initial support for nucleo-g071rb.  From Mateusz
23851        Szafoni.
23852      - Nucleo-L432KC:  Add new configuration settings for CRS
23853        synchronization to board.h.  From Juha Niskanen.
23854      - Nucleo-L432KC:  Add support for testing the ina219 current sensor.
23855        From Sebastien Lorquet.
23856      - Nucleo-L452RE: Add new configuration settings for CRS
23857        synchronization to board.h.  From Juha Niskanen.
23858      - Nucleo-144: Add ROMFS support.  Image was generated using genromfs
23859        tool.  Tested on Nucleo-F767ZI.  From Phil Coval.
23860      - Nucleo-144:  Add reset feature.  Code is derives from STM32F4-
23861        Discovery.  It can be enabled using CONFIG_BOARDCTL_RESET  From Phil
23862        Coval.
23863      - Nucleo-L476RG:  (1) Add I2C tool to board init, (2) Add support for
23864        AS726X spectral sensor  From Fabian Justi.
23865      - Nucleo-L496ZG: Add new configuration settings for CRS
23866        synchronization to board.h.  From Juha Niskanen.
23867      - STM32L476VG-Disco: Add new configuration settings for CRS
23868        synchronization to board.h.  From Juha Niskanen.
23869      - STM32L4R9AI-Disco:  Add ksh config, some updates for I2C, SPI and
23870        DFSDM support.  From Juha Niskanen.
23871      - Nucleo-H743ZI: Add ADC support.  From David Sidrane.
23872      - STM32F769I-Disco PWM:  Enable PWM support for stm32f769i-disco
23873        board.
23874      - STM32L-Discovery:  Add button support for stm32Ldiscovery.  Add
23875        chronometer board config.  From Alan Carvalho de Assis.
23876
23877    *  TI AM335x:
23878
23879      - AM335x Clock Module:  Add clock module registers definition.  Switch
23880        to DMTIMER1 for systick.  From Petro Karashchenko.
23881
23882    *  TI AM335x Drivers:
23883
23884      - AM335x CAN, LCD:  Add register description files for DCAN and LCD.
23885        From Petro Karashchenko.
23886      - AM355x I2C:  Add register description files for I2C (plus various
23887        improvements to the WDOG register definitions)  From Petro Karashchenko.
23888      - AM355x MCSPI:  Add register description files for MCSPI.  From Petro
23889        Karashchenko.
23890      - AM355x LCDC:  This change brings in an initial LCD driver into the
23891        AM335x architecture.  Ported from FreeBSD.  From Gregory Nutt.
23892      - AM335x Framebuffers:  Add logic to map the framebuffer to a non-cached,
23893        non-buffered memory region.  From Gregory Nutt.
23894      - AM335x LCDC:  Add logic to get/set the module reference clock.  From
23895        Gregory Nutt.
23896
23897    *  TI AM335x Boards:
23898
23899      - Beaglebone-Black LCD:  Add a configuration for bringing up the LCDC
23900        driver.  From Gregory Nutt.
23901      - Beaglebone-Black LCD:  Framework (only) for TDA19988 and LCD support
23902        for Beaglebone Black.  Can't use TDA19988 yet because there is no I2C
23903        driver.  In the mean time, support LCD initialization using a fixed,
23904        configurable video mode.  From Gregory Nutt.
23905
23906    * ZiLOG z16f ZNeo:
23907
23908      - z16f ZNeo:  Add support for the latest 5.2.1 version of the ZDS-II
23909        toolchain.  From Gregory Nutt.
23910
23911    * ZiLOG eZ80Acclaim!:
23912
23913      - Integrate support for the newest eZ80 ZDSII 5.3.0 toolchain.  From
23914        Gregory Nutt.
23915
23916    * ZiLOG eZ80Acclaim! Drivers:
23917
23918      - eZ80 RTC:  Integrate and verify the RTC driver  From Gregory Nutt.
23919      - eZ80 RTC:  Add an RTC lower half driver.  From Gregory Nutt.
23920
23921    * ZiLOG eZ80Acclaim! Boards:
23922
23923      - MakerLisp:  Add initial support for the MakerLisp eZ80 board.  Ref:
23924        https://makerlisp.com/  From Gregory Nutt.
23925      - MakerLisp:  Add hooks needed by SPI driver.  Move SPI MMC/SD chip
23926        selected configuration from ez80_lowinit.c to here as is done in
23927        other NuttX architectures.  This enables support for multiple
23928        devices on the SPI bus.  From Gregory Nutt.
23929      - MakerLisp:  Add Smart Flash Programmer project.  From Gregory Nutt.
23930      - MakerLisp:  Enable Procfs, RTC, SPI-based SD support, task name, NSH
23931        data command in NSH configuration..  From Gregory Nutt.
23932      - MakerLisp:  Use .ztgt files from MakerLisp SDK.  From Gregory Nutt.
23933      - MakerLisp:  Add a tiny FLASH-resident loader that will load and
23934        start applications in Intel HEX format from an SD card.  From
23935        Gregory Nutt.
23936      - MakerLisp:  Bring in a new configuration to support execution
23937        entirely out of external SRAM.  From Gregory Nutt.
23938      - MakerLisp:  Add an sdboot configuration that will load .hex files
23939        from the SD card.  From Gregory Nutt.
23940      - MakerLisp:  Add a linker script to support copying the NuttX image
23941        from FLASH into external SRAM.  From Gregory Nutt.
23942      - MakerLisp:  The VGA display controller and keyboard controller come
23943        up by default emulating a terminal with 'newline mode' on.  That is
23944        newlines expance to carriage-return, newline.  This change turns that
23945        mode off.  From Gregory Nutt.
23946
23947    * Libraries/Header Files:
23948
23949      - include/cxx/cstddef:  Add C11++ std::nullptr_t  From junmin-kim.
23950      - libc netdb: Implemented the netdb functions getnameinfo(),
23951        getservbyport(), and getservbyport_r().  From Michael Jung.
23952
23953    * Documentation
23954
23955      - Applied a style sheet to static HTML files. Put the TOC of each
23956        document to the side, where it made sense (in some documents the
23957        TOC was actually inside a section so it wasn't possible). In some
23958        cases the TOC is built with a table, in others with a <ul> element,
23959        so I had to accommodate for this. I also didn't go into collapsing,
23960        although this could really help for some long TOCs.  From Matias N.
23961      - Coding Standard:  Add a brief section summarizing the major
23962        differences between the NuttX C and C++ coding standards.  This is a
23963        stop-gap measure in lieu of having a real C++ coding standard.  From
23964        Gregory Nutt.
23965      - Coding Standard:  Update requirements for indenting C pre-processor
23966        statements.  From Gregory Nutt.
23967      - Coding Standard:  Small change discouraging the practice of
23968        enclosing the value argument of 'return' statements in parentheses.
23969        From Gregory Nutt.
23970      - COPYING.  Tools in the tools/ directory are not intended for binary
23971        redistribution and may not all conform to BSD licensing.  From
23972        Gregory Nutt.
23973
23974    * Tools:
23975
23976      - tools/ocdconsole.py:  OCD TCL interface changed after version 0.10
23977        of OpenOCD.  This change allows the script to work with both the
23978        older and newer TCL interface.  From Dave Marples.
23979      - tools/nxstyle.c:  Tool depends on the file under test containing
23980        "Private Functions" or "Public Functions" block comments.  Emit an
23981        error if neither are present in a C source.  From Gregory Nutt.
23982      - tools/nxstyle.c:  Bandaid-up logic that detects left brackets on the
23983        same line in global structure/enumeration types and initializers.
23984        From Gregory Nutt.
23985      - tools/nxstyle.c:  No warning for declarations that begin in column 1
23986        within 'extern "C"'.  This is because the 'extern "C"' is conditioned
23987        on __cplusplus so the declarations are not normally indented.  From
23988        Gregory Nutt.
23989      - tools/:  Add spk binary format.  The .spk binary format is used on
23990        SPresence and other boards based on the CXD56 arch.  To enable this
23991        binary format set in your config CONFIG_CXD56_BINARY=y.  From Alin
23992        Jerpelea.
23993      - tools/:  Add flash_writer for CXD56 boards.  This flash writter is
23994        using the xmodem for firmware transfer for flashing please use:
23995        'tools/flash_writer.py -s -c /dev/ttyUSB0 -d -b 115200 -n nuttx.spk'.
23996        From Alin Jerpelea.
23997
23998    * apps/ General:
23999
24000      - Removed all references to CONFIG_DISABLE_POLL.  The standard POSIX
24001        poll() can no longer be disabled.  From Gregory Nutt.
24002
24003    * Examples/Tests: apps/examples:
24004
24005      - apps/examples/abntcodi:  Adds test/demo program for ABNT CODI
24006        library.  From Alan Carvalho de Assis.
24007      - apps/examples/webserver:  Update to compile with
24008        CONFIG_NETUTILS_HTTPD_SENDFILE=y.  Also some configs such as
24009        CONFIG_NETUTILS_HTTPDFILESTATS can be selected by menuconfig.
24010        From Masayuki Ishikawa.
24011      - apps/examples/chrono:  Add chronometer apps example.  From Alan
24012        Carvalho de Assis.
24013
24014    * Network Utilities: apps/netutils:
24015
24016      - apps/netutils/webserver:  Add mp3 mime type to httpd.c.  From
24017        Masayuki Ishikawa.
24018      - apps/netutils/webserver:  Add directory listing to httpd.  From
24019        Masayuki Ishikawa.
24020      - apps/netutils/webserver:  Add web server info based on uname().
24021        From Masayuki Ishikawa.
24022
24023    * Network Utilities: apps/wireless
24024
24025      - apps/wireless/gs2200m:  Add usrsock daemon for Tilt GS2200M Wi-Fi
24026        module.  From Masayuki Ishikawa.
24027      - apps/wireless/gs2200m:  Add channel parameter for AP mode.  From
24028        Masayuki Ishikawa.
24029
24030    * Graphics:  apps/graphics:
24031
24032      - apps/graphics/nxglyphs:  Add more modern looking button images for
24033        the Twm4Nx CONTEMPORARY theme.  From Gregory Nutt.
24034      - apps/graphics/slcd:  Adds a CSLcd class that will generate graphic
24035        simulated segments of an SLCD display.  From Gregory Nutt.
24036      - apps/graphics/twm4nx:  This change adds a calibration screen to
24037        Twm4Nx.  In addition to the Calibration screen port from NxWM, this
24038        required extensions to the event handling logic to support (1)
24039        receiving raw, uncalibrated touchscreen inputs, (2) shutting down
24040        of externally controlled windows.  From Gregory Nutt.
24041      - apps/graphics/twm4nx:  Move application-related files into different
24042        directories to separate them from the core Twm4Nx files.  From
24043        Gregory Nutt.
24044      - apps/graphics/twm4ndx:  Compile out cursor support if we are using a
24045        mouse.  From Gregory Nutt.
24046      - apps/graphics/twm4nx:  Add an alternative COMPONTEMPORARY theme.
24047        Still has some artifacts on the display.  From Gregory Nutt.
24048      - apps/graphics/twm4nx:  Use custom CWidgetStyle to force Icon
24049        background to match selected desktop background.  From Gregory Nutt.
24050      - apps/graphics/twm4nx:  Add some definitions to support Themes.
24051        Background image is now optional.  From Gregory Nutt.
24052      - apps/graphics/twm4nx:  Add a configuration option to control the
24053        number of buttons in one column of the Icon Manager.  The Icon
24054        anager no longer relies the default window width; now it
24055        determines a preferred window width based primarily on the font
24056        size.  From Gregory Nutt.
24057      - apps/graphics/tmw4nx:  Add a CClock class that implements the
24058        Twm4Nx digital clock based on the CSLcd simulated SLCD segements.
24059        From Gregory Nutt.
24060      - apps/graphics/twm4nx/README.txt:  Add an overview of how to create
24061        Twm4Nx applications.  From Gregory Nutt.
24062
24063    * Industry:  apps/industry:
24064
24065      - apps/industry/abnt_codi:  Adds support for ABNT CODI library.  This
24066        is an energy meter protocol used in Brazil.  From Alan Carvalho de
24067        Assis.
24068
24069Bugfixes.  Only the most critical bugfixes are listed here (see the
24070ChangeLog for the complete list of bugfixes and for additional, more
24071detailed bugfix information):
24072
24073    * Core OS:
24074
24075      - Semaphores:  Fix a bad assertion in priority inheritance logic.
24076        The comments state correctly that we cannot make any assumptions
24077        about the number of holders of the semaphore, yet the code
24078        asserts if there are any holders.  This makes the code behave
24079        closer to what the comments say.  From Gregory Nutt.
24080      - Memory Manager:  Fix error that occurs when CONFIG_CPP_HAVE_VARARGS
24081        is not defined.  In that case, the arguments to the debug macro will
24082        all be evaluated even though they are not used any variables that
24083        are references must at least be defined.  From Gregory Nutt.
24084      - System Calls:  Adapt the conditional compile logic on when to
24085        include the vfork() syscall proxy and stub to the logic used for
24086        vfork() itself.  From Michael Jung.
24087      - System Calls:  Fixed SYS_mount syscall define when CONFIG_FS_READABLE
24088        is undefined.  From Joao Matos.
24089      - waitpid():  In waitpid, remember to grab the exited child ptr.  After
24090        being unblocked in waitpid, the child pointer might be NULL.  Modify
24091        to use group_exitchild to get the pointer of recent exited child.
24092        From Yang ChungFan.
24093
24094    * File System/Block and MTD Drivers:
24095
24096      - MMC/SD: Fixes bug where thread gets deadlocked due to recursive call
24097        and addresses comment regarding events.  When initializing the
24098        MMCSD, if we are being told there is a card, but we fail to
24099        initialize it, we should not re-register for an insertion event as
24100        this will immediately cause us to call in again. Instead, we should
24101        register for a removal event and wait for the card to be removed and
24102        re-inserted.  From Anthony Merlino.
24103
24104    * Networking/Network Drivers:
24105
24106      - UsrSock:  Fix debug logs and remove DEBUGASSERT from
24107        usrsockdev_do_request().  In a client mode, socket() will be the
24108        first request for usrsockdev_do_request().  However, in a server
24109        mode, the first request to accepted sockets will be recv() or other
24110        which depend on applications. So I think we should remove thi
24111        DEBUGASSERT from usrsockdev_do_request().  From Masayuki Ishikawa.
24112      - ICMPV6 Autoconfig:  Use ntohs() to convert IPv6 address from
24113        network to host order int network debug output.  From Bernd Walter.
24114      - TCP Buffering:  Fix TCP buffer send deadlock in iob_copyin() when
24115        IOB buffers are exhausted and network lock is taken.  From
24116        Valmantas Paliksa.
24117      - TCP Close:  Fix TCP active close in inet_close.c.  In previous
24118        implementation, FIN packet was not sent when a socket is actively
24119        closed (e.g. telnetd or webserver) without SO_LINGER.  This issue
24120        happens because the socket closing sequence waits for the
24121        status.cl_sem only if lingering timeout is set. However, in many
24122        server use-cases, SO_LINGER is not usually set and even in these
24123        cases, FIN packet must be sent correctly.  This changes the logic
24124        in inet_close.c so that it can wait for status.cl_sem regardless
24125        of SO_LINGER. Instead, if SO_LINGERis set, it waits for the
24126        semaphore with timeout option.  From Masayuki Ishikawa.
24127      - UDP:  Fix C89 compatibility problem.  Empty initializers are not
24128        permitted.  Caused eZ80 build failure.  From Gregory Nutt.
24129      - Telnet:  Fix a C89 non-compliance that was breaking the eZ80 build.
24130        From Gregory Nutt.
24131
24132    * Wireless/Wireless Drivers:
24133
24134      - NRF24L01: Fix NRF24L01_NCMDS in ioctl.h.  The last one in
24135        nrf24l01.h is _WLCIOC(NRF24L01_FIRST + 15)  From Masayuki Ishikawa.
24136      - NRF24L01:  Fix PIPENO/PKTLEN bitmask in RX FIFO header.  In RX FIFO
24137        header, the first byte should use 5 lsb to store PKTLEN and 3 msb
24138        to store PIPENO. However, FIFO_PIPENO_SHIFT was set to 4 which
24139        causes the lsb of pipe number to interfere with the received packet
24140        size stored in the FIFO.  This fix RX corruption when using pipe
24141        number > 0.  From Federico Braghiroli.
24142
24143    * Graphics/Display Drivers:
24144
24145      - Raising Windows:  Fix a critical list handling bug in the graphics
24146        system.  When a lower-level window was raised while a model window
24147        was in place, then list corruption could occur.  From Gregory Nutt.
24148
24149    * Common Drivers:
24150
24151      - Serial:  Limit the number of times that the poll semaphore is
24152        incremented.  From Dave Marples.
24153      - USB Host:  Remove duplicate const in USB Host files.  From Adam
24154        Porter.
24155      - USB Host Composite:  Class-specific descriptors were not available
24156        if the interface is part of a composite device, since only interface
24157        and endpoint descriptors are copied by usbhost_copyinterface().
24158        This change will  copy any class-specific interface descriptors for
24159        use in downstream class drivers.  The loop was aborting due to
24160        finding two interface descriptors back-to-back.  From Adam Porter.
24161      - USB Host Composite:  The cfgdesc pointer was initialized after the
24162        buffer had been advanced, so it was not pointing where it should.
24163        The totallen operations at the end of the function ended up
24164        overwriting memory belonging to the first copied interface
24165        descriptor.  From Adam Porter.
24166      - USB MSC:  Fix usbmsc_exportluns declaration.  Fixes the following
24167        error "...undefined reference to `usbmsc_exportluns'".  From Alin
24168        Jerpelea.
24169
24170    * Architecture Common:
24171
24172      - Rename all arch/<family>/src/<chip>/chip directories to
24173        arch/<family>/src/<chip>/hardware.  This eliminates a name collision
24174        that is usually harmless but does cause problems at the time.  The
24175        problem is because the include path includes '.' and 'chip/.',
24176        therefore an inclusion like '#include <chip/mcu_header.h' can be
24177        ambiguous if a file named mcu_header.h exists in both at both
24178        arch/<family>/src/<chip>/chip and at arch/<family>/src/chip/chip.
24179        From Gregory Nutt.
24180
24181    * Board Common:
24182
24183      - Default Configurations:  Update configurations for changes to
24184        apps/netutils/netinit configuration.  MAC address configuration
24185        was represented by type long long.  That is a problem for
24186        architectures that do not support type long long.  Replaces by
24187        two long configuration items.  From
24188        Gregory Nutt.
24189      - Default Configurations:  Change CONFIG_NSH_MACADDR to
24190        CONFIG_NETINIT_MACADDR  From Masayuki Ishikawa.
24191      - Default Configurations:  Fix mac address settings for RNDIS.
24192        Recently CONFIG_NETINIT_MACADDR_2 and CONFIG_NETINIT_MACADDR_1 were
24193        newly introduced instead of CONFIG_NETINIT_MACADDR.  This change
24194        conforms to this change.  From Masayuki Ishikawa.
24195      - Default Configurations:  Kconfig files should not select
24196        SCHED_WORKQUEUE since that is really only is only the logical OR if
24197        SCHED_LPWORK and SCHED_HPWORK.  Selecting it has no effect other
24198        than to produce an erroneous configuration.  From Gregory Nutt.
24199      - Linker Scripts:  Make sure sections are aligned to 32-bits in all LD
24200        linker scripts.  This fixes and issues noted specifically for the
24201        SAMD21 by Bernd Walter, but should be applicable to all other LD
24202        scripts as well.
24203      - Linker Scripts:  Add . = ALIGN(4); before every .data section,
24204        add . = ALIGN(4); before every ARM.extab section, add . = ALIGN(4);
24205        before every definition of __exidx_start, add . = ALIGN(4); before
24206        every .init_section.  Convert TABs to spaces in all ld linker
24207        scripts.  This just makes things easier to modify with scripts
24208        because the files are more consistent.  From Gregory Nutt.
24209      - configs/Board.mk:  Cannot call $(AR) directly.  That works only with
24210        GCC.  It must, instead use the ARCHIVE command from Config.mk as do
24211        other Makefiles.  From Gregory Nutt.
24212
24213    * MIPS32:
24214
24215      - Fix a copy-paste error.  On vfork, the GP register was being set to
24216        the new SP value vs. the context GP value.  NOTED in Bitbucket issue
24217        155.  From Gregory Nutt.
24218      - An older commit used CP0 register definitions that were not defined
24219        in the NuttX cp0.h header file.  Probably these were from the
24220        Microchip hacked up GCC toolchain but are not generally available
24221        outside that toolchain.  Fix: Add definitions to NuttX cp0.h header
24222        file.  From Gregory Nutt.
24223
24224    * Microchip PIC32MZ Drivers:
24225
24226      - PIC32MZ GPIO: Use LAT instead of PORT when writing.  From Ouss4.
24227
24228    * Microchip/Atmal SAM3/SAM4 Drivers:
24229
24230      - SAMD2/L2:  Correct TC register bit field definitions used with
24231        TC_CTRLBCLR and TC_CTRLSET registers.  From Bernd Walter.
24232
24233    * NXP LPC17xx Boards:
24234
24235      - LPC17xx PROTECTED:  On the LPC1769 there are two 16 KiB AHB SRAM
24236        blocks, which are mapped back to back at physical address 0x2007C000
24237        and 0x20080000 (i.e. right below and right above a 512 KiB boundary).
24238        Memory from those two blocks is considered continuous when assigned
24239        to a heap.  In the protected build mode, when the memory protection
24240        unit is used, though, it must be split into two MPU regions.  This
24241        is because MPU regions must be naturally aligned, and the 32KiB
24242        continuous address space of the two 16KiB AHB SRAM blocks does not
24243        start at an address divisible by 32KiB.  The only other
24244        configurations that use protected build mode on lpc17xx are
24245        currently open1788/knsh and open1788/knxterm.  The LPC1788 has the
24246        AHB SRAM blocks mapped more sanely (from an MPU region point of
24247        view), which is probably why no problems emerged here.  Both still
24248        compile with my change and other than wasting an MPU region (which
24249        would otherwise remain unused) should work fine.  That said, I
24250        have no hardware to confirm.  From Michael Jung.
24251
24252    * NXP LPC54xx Boards:
24253
24254      - LPCXpresso-LPC54628:  Modify the TWM configurations to properly
24255        inject keyboard data.  This way, in the case of multiple NxTERMs,
24256        only the NxTerm at the top of the hierarchy gets the keyboard input.
24257        Otherwise, it is not possible to use multiple NxTerms with each the
24258        keyboard input going to a different NxTerm window.  From Gregory
24259        Nutt.
24260
24261    * NXP i.MXRT Drivers:
24262
24263      - i.MXRT Serial:  Fix serial TIOCSINVERT  From David Sidrane.
24264      - i.MXRT USDHC:  USDHC Stopgap Fix for build breakage  From David
24265        Sidrane.
24266      - i.MXRT USDHC:  Fix compiler error for CONFIG_IMXRT_USDHC1 &&
24267        !CONFIG_IMXRT_USDHC2  From David Sidrane.
24268
24269    * On Semiconductor LC823450:
24270
24271      - LC823450-XGEVK:  Remove CPU assignment for LPWORK.  This change will
24272        reduce audio under-run when running dvfs auto mode.  From Masayuki
24273        Ishikawa.
24274
24275    * SiLabs EFM32 Drivers:
24276
24277      - EFM32 USB Host:  Apply Adam Porter's STM32 fix to EFM32 which has
24278        the same IP.  From Gregory Nutt.
24279
24280    * STMicro STM32:
24281
24282      - STM32F1 Pinmap:  Fix names for complementary PWM outputs  From
24283        Mateusz Szafoni.
24284      - STM32L4:  If SRAM3 is used as heap, do not power it off in stop 2
24285        mode.  From Juha Niskanen.
24286
24287    * STMicro STM32 Drivers:
24288
24289      - STM32 ADC:  Fix a compilation error when verbose analog debugging is
24290        enabled for the STM32 ADC. not all STM32s have an SQR4 register.
24291        From rajan gill.
24292      - STM32 PWM:  Fix pulse count for the number of counts greater than 128.
24293        From Mateusz Szafoni.
24294      - STM32 USB OTG FS/HS Host:  In stm32_ctrlout() in the HS and FS host
24295        drivers, the data buffer isn't sent. This patch passes the buffer
24296        and buflen to the stm32_ctrl_senddata() function.   With this change,
24297        I am able to send MBIM control messages to my USB modem, and read the
24298        response.  From Adam Porter.
24299      - STM32L4 USB:  Fix USB device PMA accesses.  USB PMA accesses are
24300        done as 16-bit words on STM32L4 instead of 32-bit words on STM32L1.
24301        From Jussi Kivilinna.
24302      - STM32L4 OTG FS/HS:  Fix constant using in comparison to determine
24303        endpoint is interrupt type.  From Adam Porter.
24304      - STM32F7 OTG FS/HS:  Fix constant using in comparison to determine
24305        endpoint is interrupt type.  From Adam Porter.
24306      - STM32H7 PWM:  Fix pulse count for the number of counts greater than 128.
24307        From Mateusz Szafoni.
24308      - STM32H7 Serial: Fix error when SINGLEWIRE or
24309        CONFIG_STM32H7_SERIALBRK_BSDCOMPAT defined.  From David Sidrane.
24310      - STM32H7 SPI:  Correct a typo in condition compilation.  From
24311        Jonathan Richner.
24312      - STM32H7 Timer:  Fixed compile errors with TIM13, TIM14, TIM7.  From
24313        David Sidrane.
24314      - STM32H7 USB OTG FS/HS:  Fix constant using in comparison to determine
24315        endpoint is interrupt type.  From Adam Porter.
24316      - STM32G0 Serial:  Fix STM32G0 error when SINGLEWIRE or SERIALBRK_BSDCOMPAT
24317        defined (it reflects previous changes in STM32H7). From Mateusz Szafoni.
24318
24319    * STMicro STM32 Boards:
24320
24321      - Nucleo-L432KC:  Shorten some long lines, fix i2c pinout.  From
24322        Sebastien Lorquet.
24323      - STM32L476VG-Disco:  Fix an error in defconfig files because a line
24324        in the rcS file was longer than the configured NSH command line.
24325        From Juha Niskanen.
24326      - STM32L4R9AI-Disco:  Fix an error in defconfig files because a line
24327        in the rcS file was longer than the configured NSH command line.
24328        From Juha Niskanen.
24329      - OmnibusF4:  Correct naming of a configuration variable for ROMFS.
24330        From Phil Coval.
24331      - Olimex-STM32-E407:  Change initialization to match the way it is
24332        done with other boards.  From Gregory Nutt.
24333      - Olimex-STM32-E407 SPI:  Add SPI initialization logic.  From Juan
24334        Flores.
24335      - STM32F4-Discovery ROMFS:  Missing colon in declaration of local
24336        variable.  From Phil Coval.
24337      - STM32F4-Discovery ROMFS:  Correct naming of a configuration variable
24338        for ROMFS.  From Phil Coval.
24339      - STM32F4-Discovery Build:  Fix .ARM.exidx section overlap Source:
24340        https://stackoverflow.com/questions/30778614/arm-none-eabi-ld-section-arm-exidx-overlaps-section-data.
24341        From Alan Carvalho de Assis.
24342      - STM32F4-Discovery PROTECTED:  Fix a problem with undefined symbol
24343        'abort' from GCC library in PROTECTED build.  Fix by moving libgcc
24344        into recursive archive group between --start-group and --end-group.
24345        Other kernel/Makefiles suffer from this same issue  From Gregory
24346        Nutt.
24347      - Nucleo-H743ZI SPI:  Correct typos in function naming.  From Jonathan
24348        Richner.
24349
24350    * TI AM335x:
24351
24352      - AM335x SYSCLK:  Add a function to return a frequency of the system
24353        clock.  From Gregory Nutt.
24354      - AM355x CM:  Fix a typo in a macro name.  From Gregory Nutt.
24355      - AM355x LCD:  Fix a few typos.  Add things needed by the LCDC driver.
24356        From Gregory Nutt.
24357
24358    * TI Tiva Drivers:
24359
24360      - Tiva Ethernet: Add a workaround for tiva with qemu.   With qemu,
24361        tiva_ifup() hangs because Ethernet link status can not be set
24362        correctly. This change is a workaround to avoid this issue.  From
24363        Masayuki Ishikawa.
24364
24365    * TI Tiva Boards:
24366
24367      - TM4C1294-Launchpad:  Fix syntax error in oocd.sh script.  From
24368        Nathan Hartman.
24369
24370    * ZiLOG Common:
24371
24372      - z80:  up_addregion() must be prototyped in nuttx/mm/mm.h, not
24373        up_internal.h.  Various name changes to better conform to the coding
24374        standard, naming conventions, and use by other architectures.  From
24375        Gregory Nutt.
24376
24377    * ZiLOG Z80 Boards:
24378
24379      - z80sim:  Remove unused function up_earlyserialinit() from serial
24380        driver.  From Gregory Nutt.
24381
24382    * ZiLOG z16f ZNeo:
24383
24384      - z16f ZNeo:  Replicate build changes make for eZ80 and z8 for ZNeo.
24385        From Gregory Nutt.
24386      - ZNeo compile fixes:  Fix misuse of FAR which makes a difference on
24387        this platform.  Be consistent in use of WDOG_ID type.  ZDS-II doesn't
24388        like auto-conversions of struct wdog_s * to WDOG_ID (which is type
24389        struct wdog_s *).  From Gregory Nutt.
24390
24391    * ZiLOG eZ80Acclaim!:
24392
24393      - eZ80:  Fix eZ80 compile problems due to New ZDS-II toolchain and
24394        ongoing bit rot due to non-C89 code creeping into the core OS.  From
24395        Gregory Nutt.
24396      - eZ80:  Fix some backward conditional logic in Make.defs.  From
24397        Gregory Nutt.
24398      - eZ80:  Fix a logic error in vector initialization.  From Gregory Nutt.
24399
24400    * C Library/Header Files:
24401
24402      - signal.h:  Fix a C89 compliance problem that cause the eZ80 build to
24403        fail.  Empty structure and unions are not accepted by the compiler.
24404        From Gregory Nutt.
24405      - wqueue.h:  Allow definitions even if work queues are not enabled.
24406        This solves build failures when work queues are not enabled.  From
24407        Gregory Nutt.
24408      - fixedmath.h:  Regarding the single precision float to/from fixed
24409        point conversions in fixedmath.h, I believe the floating point
24410        literals should be appended with the letter 'f' to avoid (expensive)
24411        conversions from single to double precision, and thereby also avoid
24412        (expensive if done in SW) double point arithmetic (which is what is
24413        happening upon inspection of my disassembly).  From rajan gill.
24414
24415      - stdio:  Fix long long usage in all of the newer printf-related
24416        logic:  The selection CONFIG_LIBC_LONG_LONG must be ignored if the
24417        architecture does not support long long types.  From Gregory Nutt.
24418      - gm_time_r():  Spurious reorganization of a loop in gm_time_r() to
24419        work around and ZDD-II internal compiler error.  Might be a little
24420        bigger now, but is also probably a more structured use of C.  From
24421        Gregory Nutt.
24422      - Debug:  For platforms whose CPP tool does not support a variable
24423        number arguments to pre-processor macros, we may still need to build
24424        the debug functions even when CONFIG_DEBUG_FEATURES is not selected.
24425        For example, __alert() may be needed if CONFIG_ARCH_STACKDUMP is
24426        set.  From Gregory Nutt.
24427
24428    * Tools:
24429
24430      - tools/nxstyle.c:  Fix error in conditional logic that was preventing
24431        detection bad brace alignment.  Add logic to handle alignment of
24432        braces in data initializers which following slightly different
24433        indentation rules.  From Gregory Nutt.
24434      - tools/mkexport.sh:  The mcu sub-directory chip/ was renamed to
24435        hardware/ in late May of 2019.  The mkexport.sh script that copies
24436        these files was not updated, however, until now.  Noted by Alin
24437        Jerpelea.  From Gregory Nutt.
24438
24439    * NSH Library: apps/nshlib:
24440
24441      - apps/nshlib:  Fix all places where cle() and readline() are used.
24442        readline() returns EOF on a failure.  cle() returns a negated errno
24443        value.  Checking only for EOF causes failues to be missed (and
24444        infinite loops ensuing).  From Valmantas Paliksa.
24445      - nshlib/nsh_parse.c:  Fix a warning about an uninitialized variable
24446        from the ZDS-II compiler.  From Gregory Nutt.
24447      - apps/nshlib/nsh_ddcmd.c:  Seemingly nonsense change but somehow
24448        works around a compilation error using the ZDS-II toolchain.  It
24449        was claiming that vtbl was undefined indd_outfopen().  From Gregory
24450        Nutt.
24451
24452    * Network Utilities: apps/netutils:
24453
24454      - apps/netutils/netinit:  MAC address configuration was represented
24455        by type long long.  That is a problem for architectures that do not
24456        support type long long.  Replaces by two long configuration items.
24457        From Gregory Nutt.
24458      - apps/netutils/telnetd/telnetd_daemon.c:  Fix a C89 violation that
24459        caused the eZ80 build to fail.  From Gregory Nutt.
24460      - apps/netutils/json:  Removed.  Replaced with apps/netutils/cjson.
24461        From Gregory Nutt.
24462
24463    * Graphics Utilities: apps/graphics:
24464
24465      - apps/graphics/twm4nx:  Fix an uninitialized variable that was
24466        causing toolbar buttons to randomly come up enabled or disabled.
24467        Remove some unused event definitions.  From Gregory Nutt.
24468      - apps/graphics/twm4nx:  Fix a calibration screen startup issue.
24469        Make an initial calibration screen optional.  From Gregory Nutt.
24470      - apps/graphics/twm4nx:  Revise logic to detect clicks on the
24471        background image.  The original implementation had some side
24472        effects.  From Gregory Nutt.
24473      - apps/graphics/twm4nx:  Remove some remaining stuff from TWM that
24474        was never used.  Menus need to close after the 'terminal' selection
24475        is made.  Otherwise, the menu can become buried under a newly open
24476        menu and not easily recovered.  From Gregory Nutt.
24477      - apps/graphics/twm4ndx:  Add a 'critical' bit to the eventID.  While
24478        resizing, all events will be ignore except those marked critical.
24479        From Gregory Nutt
24480      - apps/graphics/twm4nx:  CBackground now brings up the main menu if
24481        the background image is clicked.  This makes the behavior the same
24482        across all of the background except when an icon is clicked.  From
24483        Gregory Nutt.
24484      - apps/graphics/twm4nx:  Fix a bug in placement of icons on the
24485        desktop. When many windows are displayed, a bug in the looping logic
24486        could cause an infinite loop.  From Gregory Nutt.
24487      - apps/graphics/twm4nx:  Fix some errors found when enabling NX
24488        keyboard support. The most important being that the mouse and
24489        keyboard drivers need to be opened non-blocking.  From Gregory Nutt.
24490
24491NuttX-8.1 Release Notes
24492------------------------
24493
24494The 132nd release of NuttX, Version 8.1, was made on September 14, 2019,
24495and is available for download from the Bitbucket.org website.  Note
24496that release consists of two tarballs:  nuttx-8.1.tar.gz and
24497apps-8.1.tar.gz.  These are available from:
24498
24499    https://bitbucket.org/nuttx/nuttx/downloads
24500    https://bitbucket.org/nuttx/apps/downloads
24501
24502Both may be needed (see the top-level nuttx/README.txt file for build
24503information).
24504
24505The major release version number is only incremented when there is a major
24506change to the OS that makes it more-or-less incompatible with preceding
24507versions.  This release bumps the major version number from 7 to 8 due
24508primarily to a major reorganization in the what was the configs/ directory
24509in nuttx-7.31.  That directory has been renamed boards/ and now has a
24510directory structure that mirrors the organization of the arch/ directory
24511for the most part:
24512
24513    board/ - Holds all board-related information
24514    board/<arch> - Holds board-related information for all boards that use
24515      the same CPU architecture.  For example, all ARM-based boards will be
24516      found under board/arm
24517    board/<arch>/<chip> - Holds board-related information for all boards
24518      that use the same MCU chip family.  For example, all STM32-based
24519      boards will be found under board/arm/stm32
24520    board/<arch>/<chip>/<board> - Holds board-related information for a
24521      specific board.  This is analogous to the configs/<board> directory in
24522      nuttx-7.31.  So, for example, the STM32F4-Discovery board support that
24523      was at configs/stm32f4disovery can now be found under
24524      boards/arm/stm32/stm32f4discovery.
24525    boards/<arch>/<chip>/<board>/<configs> - All configurations for a
24526      specific board can now be found together in this configs/
24527      subdirectory.  So, continuing the example, the STM32F4-Discovery NSH
24528      configuration can now be found at
24529      boards/arm/stm32/stm32f4discovery/configs/nsh.
24530
24531In additional, common MCU logic can be found at board/<arch>/<chip>/common
24532and MCU common drivers can be found at board/<arch>/<chip>/common.  Related
24533changes include changes to tools/, comments, and documentation that depend
24534on the board directory structure.
24535
24536This re-organization is the work of Alin Jerpelea.  Not only did Alin do
24537this major directory re-organization, but he ran the code standard
24538compliance tool and corrected every .c and .h file under boards/ so that
24539they all correctly follow the NuttX coding style.  These changes were very
24540extensive and, hence, will not be addressed individually in the ReleaseNotes.
24541
24542You have to give Alin credit for his effort to take on really big jobs and
24543stick with it until it is finished.  Kudos!
24544
24545A more constrained re-organization of the drivers/ directory was also
24546contributed by Augusto Fraga Giachero.  Augusto reorganized some driver
24547directories to make better functional associations and also to make space
24548for a new set of RF-related drivers.
24549
24550Additional new features and extended functionality:
24551---------------------------------------------------
24552
24553    * Core OS:
24554
24555      - POSIX Message Queues:  Add a test to verify that message queue is
24556        closed by the same task group that opened it.  If not, then list
24557        corruption would result.  This test is only performed if
24558        CONFIG_DEBUG_FEATURES is enabled since it should not normally be an
24559        issue:  It would be a strange programming practice to open a
24560        message queue in open task group, then close it in another.  From
24561        ???.
24562      - Signal Notifications:  Add configuration option to select either the
24563        high-priority or low-priority work queue for SIG_EVTHREA
24564        notifications.  From ligd.
24565      - System Calls:  In order to support built-in in function in protected
24566        mode, a task_spawn() system call must be supported.  task_spawn()
24567        and posix_spawn() are NuttX OS interfaces.  In PROTECTED and KERNEL
24568        build modes, then can be reached from applications only via a system
24569        call.  Unfortunately this is overly complex because there is a (soft)
24570        limit of 6 parameters in a system call; task_spawn has seven
24571        parameters.  This is a soft limit but still difficult to extend
24572        because it involves assembly language changes to numerous
24573        architectures.  Better to get more creative.  Rather than extend the
24574        maximum number of parameters across all architectures, I opted
24575        instead to marshal the seven parameters into a structure and pass
24576        only a single parameter:  A pointer to the structure containing the
24577        seven marshaled parameters.  From Gregory Nutt.
24578      - /etc/passwd and /etc/group:  Improve the format of the /etc/passwd
24579        file as used in the sim:nsh configuration.  It is now a little
24580        more similar to other systems and includes user and group IDs.  Add
24581        also an /etc/group file to support future testing.  From Gregory
24582        Nutt.
24583      - User/Group IDs:  Implement 'real' setuid, getuid, setgid, and getgid
24584        interfaces is so configured (otherwise fall back to stubs that
24585        support only the 'root' user ID and group.  Once set, these IDs will
24586        be inherited by all child task groups.  From Gregory Nutt.
24587      - Debug Output:  Add debug macros for contactless.  The various
24588        contactless device drivers currently define device specific debug
24589        macros within their local header files.  This patch adds generic
24590        ctls[info|warn|err] macros for the overall contactless subsystem to
24591        be used in future drivers.  Ported the existing contactless device
24592        drivers to use these generic logging macros and fixed some logging
24593        bugs along the way.  From Michael Jung.
24594      - IOB instrumentation.  Introduces producer/consumer id to every IOB
24595        call.  This is so that the calls can be instrumented to monitor the
24596        IOB resources and to collect usage statistics.  From Anthony
24597        Merlino.
24598      - IOB ProcFS:  Adding ProcFS support at /proc/iobinfo to show the data
24599        collected from the IOB instrumentation.  From Anthony Merlino.
24600      - Versioning:  Report GIT information via ProcFS.  GIT info reported:
24601        branch, version, GIT hash, hostname, user, build date.  Integrates
24602        into existing .version and ProcFS.  From David Alessio.
24603
24604    * File System/Block and MTD Drivers:
24605
24606      - BinFS:  The BinFS file system uses the same built-in library and
24607        built-in arrays as does NSH.  The built-in arrays are simple name-
24608        value pairs that map built-in function names with the user-space
24609        entry point.  In the FLAT build, the built-in arrays are available
24610        everywhere via the backdoor left open by the FLAT address space.
24611        In the PROTECTED build, however, the kernel must maintain its own
24612        reference to the user-space built-in array.  This commit adds those
24613        kernel globals and a new boardctl(BOARDIOC_BUILTINS) that can be
24614        used by applications to the provide the built-in list reference to
24615        the kernel.  From Gregory Nutt.
24616      - MMC/SD:  Added support for MMC (eMMC) bigger than 2 GB (Tested with
24617        IMXRT1050EVKB and samsung eMMC 16GB).
24618      - AT24CSxx:  Register a character driver for UUID of AT24CSxx chips.
24619        Allows the UUID to read as a file or displayed from an nsh prompt with:
24620        nsh> hexdump /dev/eeprom.uuid  From David Alessio.
24621      - Macronix FLASH:  Add support for 4-byte addressing on >128Mb
24622        Macronix flash parts  From jjlange.
24623      - MX25Rxx:  Add support for 512B sectors.  From Simon Piriou.
24624      - SST26:  Accept the 16MBit Flash when reading the JEDEC-ID at
24625        initialization time.  From Ouss4.
24626
24627    * Network/Network Drivers:
24628
24629      - IPv4 Options:  Now handles reception of IPv4 packets with larger
24630        IPv4 headers containing options.  From Gregory Nutt.
24631      - Sockets:  Re-order the content of all address-family socket
24632        'connection' structures so that they begin with a common prologue.
24633        This permits better use of logic for different address family
24634        types.  From Gregory Nutt.
24635      - TCP:  Make RTO and WAIT_TIME configurable.  This fix is not really
24636        correct:  TCP RTO really should be calculated dynamically for each
24637        TCP connection:  http://sgros.blogspot.com/2012/02/calculating-tcp-rto.html.
24638        From zhangyuan7.
24639      - IP Forwarding:  Check if interface is up early on when forwarding to
24640        avoid extra work.  As noticed in a previous wireless commit, when
24641        forwarding is enabled and a packet comes in, the packet is attempted
24642        to be sent on each other netdev without regard for whether it is in
24643        the UP state.  Of course this is eventually caught, but it can be
24644        caught earlier to avoid unnecessary work, especially in the 6LoWPAN
24645        case where a useless packet conversion will occur.  From Anthony
24646        Merlino.
24647      - RNDIS:  Expose option to change the number of write requests that
24648        can be in flight.  From Anthony Merlino.
24649      - GS2200M:  Add UDP support.  From Masayuki Ishakawa
24650      - GS2200M:  Implement GS2200M_IOC_IFREQ IOCTL command.  From Masayuki
24651        Ishikawa.
24652      - GS2200M:  Enable NuttX's DHCP client instead of GS2200M's DHCP
24653        client.  From Masayuki Ishikawa.
24654      - GS2200M:  GS2200M now supports SIOCGIFHWADDR  From Masayuki
24655        Ishikawa.
24656
24657    * Wireless/Wireless Drivers:
24658
24659      - IEEE802.15.4 Network Driver:  Allow 64-bit prefix to be configurable
24660        when auto-configuring the IPv6 address during bring-up.  Previously,
24661        only the link-local prefix fe80::/64 was used.  Also, put the
24662        network in the DOWN state at the end of initialization.  From
24663        Anthony Merlino.
24664      - IEEE 802.15.4 MAC:  Adds support for energy detect.  Adds support
24665        for energy detect by introducing a new radio call/callback, as the
24666        PHY layer is required to perform the energy detect.  From Anthony
24667        Merlino.
24668      - IEEE 802.15.4 MAC:  Adds support for getting/setting
24669        macMaxFrameRetries via IOCTL.  Add get support for rxonidle
24670        attribute  From Anthony Merlino.
24671      - IEEE 802.15.4 MAC:  Move the global iobuffer into the macnet struct
24672        so that more than one macnet device can exist.  From Anthony
24673        Merlino.
24674      - IEEE 802.15.4 MAC:  Defer handling of extracting association
24675        response to LPWORK queue.  From Anthony Merlino.
24676      - IEEE 802.15.4 Radios:  Support dynamic FCS length.  Adds
24677        IEEE802154_ATTR_PHY_FCSLEN.  This change introduces
24678        IEEE802154_ATTR_PHY_FCSLEN which the radio layer can support to
24679        set/get the FCS length that's added to the end of the frame.  One
24680        use case, in promiscuous mode, is to add back in the FCS of the
24681        received frame by increasing the iob->io_len by the FCS length.
24682        From Anthony Merlino.
24683      - Xbee:  Support "WR" AT command for writing parameters to non-
24684        volatile memory.  From Anthony Merlino.
24685      - Xbee:  Add configuration option for setting the default prefix
24686        to use when bringing up the network and setting the IP address.
24687        From Anthony Merlino.
24688
24689    * Other Common Device Drivers:
24690
24691      - RTC:  If the RTC time is successfully set, then update the current
24692        system time to match.  From ligd.
24693      - ADT7320:  Add support for the ADT7320 temperature sensor.  From
24694        Augusto Fraga Giachero.
24695      - DAC7554:  Add support to the DAC7554 digital-to-analog converter.
24696        From Augusto Fraga Giachero.
24697      - DAT-31R5-SP+: Add support to the DAT-31R5-SP+ digital attenuator.
24698        Creates a the new device driver directory drivers/rf/ to support
24699        drivers related to RF peripherals.  It also adds support for the
24700        DAT-31R5-SP+ digital attenuator.  From Augusto Fraga Giachero.
24701      - ISL29023:  Add basic driver of ISL29023 ambient light sensor.  The
24702        basic driver can set operational mode, range, and resolution.  It
24703        can also read lux value in continuous mode. Interrupt and the alarm
24704        is not implemented.  From Matous Pokorny.
24705      - SHT3x:  Add Sensirion SHT3x driver.  From Markus Bernet.
24706
24707    * Simulator:
24708
24709      - Simulator Build:  Even though the simulation has no "chips", it
24710        needs to have CONFIG_ARCH_CHIP and chip sub-directories.  Otherwise,
24711        we would have to treat it as a special case in the build system
24712        after the changes to the boards/ directory.  From Gregory Nutt.
24713
24714    * Microchip PIC32MZ:
24715
24716      - PIC32MZ.  Make the PLL input clock configurable.  From Ouss4.
24717
24718    * ARMv7-M
24719
24720      - Add ARMv7-M setjmp/longjump functions.  From David S. Alessio.
24721
24722    * NXP i.MXRT:
24723
24724      - i.MXRT Clocking:  Enable TRACE clocks if the divider has been
24725        defined in the board's board.h file.  From Dave Marples.
24726
24727    * NXP i.MXRT Drivers:
24728
24729      - i.MXRT QEncoder:  Adds quadrature encoder driver for IMXRT.  From
24730        Nicholas Chin.
24731      - i.MXRT uSDHC:  This change completes SDIO support for IMXRT, and
24732        also adds support for WiFi using the AP6212A module based on Simon
24733        Piriou's rather excellent work. The patch should also address
24734        DavidS's concern about width setting for USDHC1 and 2.  Testing of
24735        the WiFi is minimal so far but functionality is proven.  I'm
24736        specifically not happy that the driver doesn't recover elegantly
24737        from a DMA data checksum failure, but that is an issue that can be
24738        dealt with in due course ... I'm trying to get the rest of the
24739        interfaces fleshed out and the hardware proven so it can go for pre-
24740        production build. I _think_ there's only Bluetooth and USB-device
24741        left to implement now.  From Dave Marples.
24742      - i.MXRT uSDHC:  IMXRT uSDHC driver cmd line reset logic modified.
24743        From Ivan Ucherdzhiev.
24744
24745    * NXP/Freescale Kinetis Drivers:
24746
24747      - Kinetis Serial:  Add possibility to specify pull-up instead of
24748        open drain for serial single-wire mode.  From Beat K�ng.
24749
24750    * NXP LPC17xx/40xx:
24751
24752      - LPC17xx/40xx Build:  Cortex-M system reset is applicable to
24753        LPC17xx/40xx too.  From Pavel Pisa.
24754
24755    * NXP LPC17xx/40xx Drivers:
24756
24757      - LPC17xx/40xx Ethernet:  Follow the procedure listed in the
24758        LPC176x/5x User Manual when reading from and writing to the PHY's
24759        registers (section 10.11.14). I couldn't see any behavioral change
24760        after this commit, but nonetheless is a good practice to follow the
24761        manufacturer's recommended procedure.  From Augusto Fraga Giachero.
24762
24763    * NXP S31K1xx:
24764
24765      - Added architecture support for the NXP S32K1xx family.  Basic
24766        support includes the boot up logic, clock configuration, LPUART
24767        console, Systick timer, GPIO controls, and eDMA (unverified).
24768
24769    * NXP S31K1xx Drivers:
24770
24771      - S32K1xx eDMA  Leverage eDMA logic from i.MXRT to S32K1XX.  Appears
24772        to be the same IP but with fewer channels and features than the
24773        i.MXRT implementation.  From Gregory Nutt.
24774      - S32K1xx LPUART:  Bring in the LPUART from i.MXRT.  It is the same
24775        IP.  From Gregory Nutt.
24776      - S32K1xx SysTick:  Bring in Cortex-M0+ SysTick and interrupt handling
24777        from samd2l2; bring in Cortex-M4F Systick and interrupt handling
24778        from LPC54xx.  From Gregory Nutt.
24779      - S32K1xx GPIO:  Bring in GPIO logic from Kinetis.  Looks like similar
24780        IP.  From Gregory Nutt.
24781      - S32K1xx Ethernet:  Unverified port of the i.MXRT Ethernet driver to
24782        the S32K1xx.  The i.MXRT uses the same IP.  From Gregory Nutt.
24783      - S32K1xx LPSPI and LPI2C:  Brings in the LPSPI and LPI2C peripheral
24784        drivers from the i.MXRT which used the identical IP.  From Gregory
24785        Nutt.
24786
24787    * NXP S31K1xx Boards:
24788
24789      - S32K118EVB.  This commit adds initial board support for the NXP
24790        S32K118EVB development board.  Currently supports only a minimal
24791        NSH configuration.  From Gregory Nutt.
24792      - S32K118EVB:  Implement board support for on-board LEDs and buttons.
24793        This is taken from the Freedom-K66f with has the same LED and
24794        button configuration as the S32K116EVB and uses the same GPIO IP.
24795        LEDs, but not buttons, have have been verified.  From Gregory Nutt.
24796      - S32K146EVB:  Adds initial board support for the S32K146EVB
24797        development board.  Currently supports a NSH configuration with a
24798        richer feature set than the minimal configuration of the S32K118EVB.
24799        From Gregory Nutt.
24800      - S32K146EVB:  Add support for execution out of SRAM.  This is helpful
24801        for bring-up when you want to avoid putting a lethal image in FLASH.
24802        From Gregory Nutt.
24803      - S32K148EVB:  Add support for the NXP S32K148EVB development board.
24804        Very similar to the S32K146EVB but with more on-chip memory and
24805        hardware features.
24806
24807    * Sony CXD56xx
24808
24809      - CXD56xx:  Migrate CXD56xx common code to the common/ directory:
24810        Boot code, FLASH code, I2C driver, UID.  From Alin Jerpelea.
24811      - CXD56xx:  Add SPH.  The SPH is used by the ASMP implementation from
24812        the SDK.  From Alin Jerpelea.
24813
24814    * Sony CXD56xx Drivers:
24815
24816      - CXD56xx:  Add sensors connected to the SCU on Spresense board:
24817        o Avago APDS9930 Proximity and Ambient light Sensor.
24818        o Rohm BH1721FVC Ambient Light Sensor.
24819        o Rohm BH1745NUC Color Sensor.
24820        o Rohm BM1383GLV/BM1383AGLV Pressure Sensor.
24821        o Rohm BM1422GMV/BM1422AGMV Magnetic Sensor.
24822        o Bosch BMI160 Sensor support.
24823        o Bosch BMP280 Barometic Pressure Sensor.
24824        o Kionix KX022/KX122 Acceleration Sensor.
24825        o Murata LT1PA01 Proximity and Ambient light Sensor.
24826        o Rohm RPR0521RS Proximity and Ambient light Sensor.
24827        o BMI160:  Add optional I2C address.
24828        From Alin Jerpelea.
24829      - CXD56xx:  Add the sensor initialization for CXD56xx boards in the
24830        common board folder:
24831        o APDS9930: typo fix
24832        o cxd56_ak09912 initialization.
24833        o cxd56_bmi160 initialization.
24834        o cxd56_apds9960 initialization.
24835        o cxd56_bh1721fvc initialization.
24836        o cxd56_bh1745nuc initialization.
24837        o cxd56_bm1383glv initialization.
24838        o cxd56_bm1422gmv initialization.
24839        o cxd56_bmi160 initialization.
24840        o cxd56_bmp280 initialization.
24841        o cxd56_kx022 initialization.
24842        o cxd56_lt1pa01 initialization.
24843        o cxd56_rpr0521rs initialization.
24844        o cxd56_sensors initialization.
24845        o Backup Log driver.
24846        o crashlog driver.
24847        o Move gs2200m initialization.
24848        o Move ili9340 initialization.
24849        o Move lpm013m091a initialization.
24850        From Alin Jerpelea.
24851
24852    * Sony CXD56xx Spresense Board:
24853
24854      - Spresense:  Enable SmartFS and UDP support  From Masayuki Ishikawa.
24855
24856    * STMicro STM32:
24857
24858      - STM32F4 PLLI2S:  Add support to enable the I2S Phase Locked Loop on
24859        STM32F427 and STM32F437 MCUs.  From Michael Jung.
24860
24861    * STMicro STM32 Drivers:
24862
24863      - STM32 ADC:  Add ADC calibration procedure for IP_ADC_V1.  Tested on
24864        STM32F100, and it magically increased result accuracy.  STM32F103
24865        has the same calibration procedure.  I am not sure about others.
24866        From Matous Pokorny.
24867      - STM32 SPI:  TI Synchronous Serial Frame Format.  The SPI macros on
24868        STM32 MCUs now support the Texas Instruments Synchronous Serial
24869        Frame Format protocol (TI protocol).  Defined a new SPIDEV_MODETI
24870        and add support for it in stm32_spi.c.  From Michael Jung.
24871      - STM32 UART:  Serial add HW HS on UART 4 & 5.  From David Sidrane.
24872      - STM32 PWM:  Configure multi-channel duty only if channel specified.
24873        This allows you to update duty cycle for a single channel.   From
24874        Mateusz Szafoni.
24875      - STM32F7 Ethernet:  Add a timeout on MAC reset  From David Sidrane.
24876      - STM32F7 FLASH:  Exposes stm32_flash_xxx functions.  From Anthony
24877        Merlino.
24878      - STM32F7 PWM:  Configure multi-channel duty only if channel specified.
24879        This allows you to update duty cycle for a single channel.   From
24880        Mateusz Szafoni.
24881      - STM32F7 UART:  Serial add HW HS on UART 4 & 5.  From David Sidrane.
24882      - STM32H7 ADC:  Fix internal channel numbers.  From Markus Bernet.
24883      - STM32H7 BBSRAM:  Add BBSRAM support.  From David Sidrane.
24884      - STM32H7 DTCM:  Port DTCM from F7  From David Sidrane.
24885      - STM32H7 I2C:  Select ARCH_HAVE_I2CRESET in configuration.  From
24886        David Sidrane.
24887      - STM32H7 PWM:  Configure multi-channel duty only if channel
24888        specified.  This allows you to update duty cycle for a single
24889        channel.  From Mateusz Szafoni.
24890      - STM32H7 RCC:  Fix RCC register definitions and typos for ADC/UART.
24891        From Markus Bernet.
24892      - STM32H7 RTC:  Ported over F7 RTC.  From David Sidrane.
24893      - STM32H7 SPI:  Allow more clock sources.  From David Sidrane.
24894      - STM32H7 UART:  Serial add HW HS on UART 4 & 5.  From David Sidrane.
24895      - STM32H7 UART:  Fix typo in UART8 configuration.  From Markus Bernet.
24896      - STM32H7 UID:  Ported UID from F7  From David Sidrane.
24897      - STM32L4 PWM:  Configure multi-channel duty only if channel specified.
24898        This allows you to update duty cycle for a single channel.   From
24899        Mateusz Szafoni.
24900      - STM32L4 UART:  Serial add HW HS on UART 4 & 5.  From David Sidrane.
24901
24902    * STMicro STM32 Boards:
24903
24904      - B-L475E-IOT01A:  Add mx25rxx memory chip and smartfs support in NSH
24905        configuration.  From Simon Piriou.
24906      - LX_CPU:  Add support for the PIKRON LX_CPU board.  From Pavel Pisa.
24907      - Nucleo-F303RE:  Add basic NSH configuration.  From Mateusz Szafoni.
24908      - Nucleo-F303RE:  Enable console on UART2 and set entry point to
24909        nsh_main() in the PWM configuration.  From Mateusz Szafoni.
24910      - Nucleo-H743ZI:  Add RTC support.  From David Sidrane.
24911      - Nucleo-L432KC:  Added GPIO drivers for use with /apps/examples/gpio.
24912        From Daniel P. Carvalho.
24913      - Nucleo-L432KC:  Added Zero Cross sensor to nucleo-l432kc.  From
24914        Daniel P. Carvalho.
24915
24916    * TI Tiva:
24917
24918      - Tiva:  Add support for Tiva TM4C123AH6PM.  From Nathan Hartman.
24919      - Tiva Configuration:  Modify preprocessor logic to support
24920        configurations with no UART.  Now similar to logic for other
24921        architectures.  From Nathan Hartman.
24922      - Tiva Interrupts:  Add handling for IRQs 128 thru 159.  From Nathan
24923        Hartman.
24924
24925    * TI Tiva Drivers:
24926
24927      - TM4C QEncoder:  Reinstate TM4C qencoder driver and expand its
24928        ioctls. Add TIVA_HAVE_QEI0, TIVA_HAVE_QEI1 as applicable to each
24929        ARCH_CHIP_TM4C12*.  Rewrite tiva_qe_setup().  Replace tiva_qe_ppr()
24930        with tiva_qe_resetatppr().  Add tiva_qe_resetatmaxpos() and
24931        tiva_qe_resetatindex().  Add missing definitions:
24932        SIGMODE_QUADRATURE, SIGMODE_CLK_AND_DIR, SWAP_NO_SWAP, SWAP_PHA_PHB.
24933        Rename TIVA QEI ioctl QEIOC_PPR to QEIOC_RESETATPPR; add TIVA QEI
24934        ioctl identifiers QEIOC_RESETATMAXPOS, QEIOC_RESETATINDEX.  From
24935        Nathan Hartman.
24936
24937    * TI Tiva Boards:
24938
24939      - TM4C1294-Launchpad:  Enables /dev/userleds in board bring-up for
24940        tm4c1294-launchpad by calling userled_lower_initialize() in
24941        tm4c_bringup().  From Nathan Hartman.
24942
24943    * TI Tiva Drivers:
24944
24945      - Tiva GPTM timers:  Implement 16-bit PWM mode.  Add
24946        tiva_pwm16_sel_event() to choose GPTMCTL.TnEVENT value.  Implement
24947        tiva_pwm_mode16().  This also involved numerous corrections to the
24948        16-bit timer logic.  Add tiva_timer16pwm_setperiodduty() to set
24949        initial period, duty cycle, and enable interrupts if requested in
24950        GPTM peripheral. Interrupts are not enabled in NVIC until
24951        tiva_timer16_start() is called.  Add tiva_timer16pwm_setduty() to
24952        update duty cycle at any time.  Add new TIMER_FLAG_* configuration
24953        flags to enable configuring the 16-bit PWM feature.  Extend type of
24954        "flags" in tiva_timer32config_s and tiva_timer16config_s from 8- to
24955        32-bits to allow more flags.  From Nathan Hartman.
24956
24957    * Build System:
24958
24959      - Export Build:  Export all variables/files to support architecture
24960        independent build against NSH.  From Pavel Pisa.
24961      - Application Export:  This change too build tools allows to export
24962        built-in applications registry into temporarily created directory
24963        where export archive content is prepared.  If the Makefile in apps/
24964        directory does not define export:  target then error is print but
24965        export continues without interruption. It would be more logical to
24966        print warning but there is no way instruct apps make to not print
24967        error.  From Pavel Pisa.
24968      - boards/Board.mk:  Add support to pass dependency paths.  From
24969        Gregory Nutt.
24970
24971    * Libraries/Header Files:
24972
24973      - libs/libc/libc.csv:  Add some missing C library functions.  From
24974        Pavel Pisa.
24975      - libs/libc/libc.csv: Add ioctl() to fs_ioctl() wrapper for varidic
24976        case.  From Pavel Pisa.
24977      - libs/libc/builtin/:  Moves shared built-in information out of
24978        binfmt/libbuiltin and into libs/libc/builtin where it can be shared
24979        with applications.  This should permit built-in application in the
24980        PROTECTED build where binfmt/libbuiltin was not available in user
24981        space.  From Gregory Nutt.
24982      - libs/libc/dirent/:  Added alphasort() implementation, scandir()
24983        implementation and DT_* definitions to include/dirent.h.  Apparently
24984        those definitions are not required by POSIX, but are part of
24985        4.3BSD and available in glibc as well.  From Michael Jung.
24986      - libs/libc/grp/:  Added stubbed implementations of getgrgid,
24987        getgrgid_r, getgrnam, getgrnam_r, and initgroups.  These functions
24988        are essentially stubs pretending that NuttX supported groups and
24989        that the only configured group in the system was 'root' with gid 0.
24990        The intend is not to provide meaningful new features, but to ease
24991        porting of foreign source code to NuttX.  From Michael Jung.
24992      - libs/libc/machine/arm/armv7-m/:  Add Cortex M4F machine optimized
24993        fabsf and sqrtf.  From David S. Alessio.
24994      - libs/libc/pwd/:  Added stubbed implementations.  Added stubbed
24995        implementations of getpwuid, getpwuid_r, getpwnam, and getpwnam_r.
24996        These functions are essentially stubs pretending that NuttX
24997        supported users and that the only configured user in the system
24998        was 'root' with uid 0.  The intend is not to provide meaningful
24999        new features, but to ease porting of foreign source code to NuttX.
25000        From Michael Jung.
25001      - libs/libc/pwd and libs/libc/grp/:  Modify to get user/group data
25002        from /etc/passwd and /etc/group if so configured.  From Gregory
25003        Nutt.
25004      - libs/libc/stdio/:  Add support for the size_t integer qualifier 'z'
25005        to the printf family.  This is kind of tricky due the variety of
25006        sizeof(size_t) on different platforms.  From David Sidrane.
25007      - libs/libc/unistd.h:  Added stubbed implementations of setuid() and
25008        setgid().  These functions are essentially stubs pretending that
25009        NuttX supported users and groups and that the only configured user
25010        and group in the system were both 'root' with a uid and a gid of 0,
25011        respectively.  The intent is not to provide meaningful new features,
25012        but to ease porting of foreign source code to NuttX.  From Michael
25013        Jung.
25014      - libs/libc/unistd/:  Add getuid() and getgid() stubs to match
25015        MichaelJung's setuid() and setgid().  From Gregory Nutt.
25016      - libc/libc/unistd/:  Add stubs for geteuid(), getegid(), seteuid(),
25017        setegid(), setreuid(), and setregid().  NuttX does not currently
25018        support effective user/group IDs, but these stubs will support
25019        linkage of applications that expect these POSIX standard interfaces.
25020        From Gregory Nutt.
25021
25022    * Symbol Tables:
25023
25024      - NuttX provides lists of available syscalls and library functions and
25025        tools to process them.  The lists can be used to build symbol table
25026        which allows runtime program loading which can reuse functions
25027        already compiled into NuttX system image.  List processing,
25028        compilation and linking to the final system image has been possible
25029        only under manual control until now.  Provided changes add option
25030        (CONFIG_EXECFUNCS_GENERATE_SYSTEM_SYMTAB) to build complete list of
25031        available functions and syscalls automatically.  The symbolic table
25032        is generated in form libsymtab.a which can be reused by application
25033        or directly pull in when "g_symtab" and "g_nsymbols" variables are
25034        requested by EXECFUNCS configuration.  I have tried to follow
25035        mechanisms for library compilation in different kernel protection
25036        modes but tested only flat no-MMU build. The basic assumption is
25037        that this library and libraries providing syscall stubs and C-
25038        library functions are available in user-space context and initial
25039        application (usually NSH) registers the symbol table through IOCTL.
25040        The table can be reused then by another applications in their
25041        address space as kernel allows. Simple for flat or protected mode,
25042        I am not sure if really support in MMU mode. It is highly probable
25043        that I have made some mistake, overlooked something, but the
25044        functionality is optional (should not cause troubles in any mode if
25045        disabled) and main purpose is to lower memory overhead when more
25046        applications are loaded on memory constrained system which usually
25047        use direct kernel calling without protection or address space
25048        separation. If the table should be provided by kernel to
25049        applications then makefiles has to be adjusted.  From Pavel Pisa.
25050
25051    * Tools:
25052
25053      - tools/:  Change preferred argument of configurations tools to use
25054        ':' as the delimiter between <board-name> and <config-name>.  This
25055        is to emphasize that this is not a path; it is configuration
25056        specification.  The legacy '/' delimiter is still supported but
25057        not recommend and not advertised.  Updated configurations
25058        instructions in README.txt files to show ':' delimiter vs '/'
25059        delimiter.  Update all configuration-related tools to accept ':'
25060        separator between board and configuration name.  From Gregory Nutt.
25061
25062    * apps/ General:
25063
25064      - Makefile:  Added support for application-specific export target.
25065        Used by nuttx/tools/mkexport.sh.  From Pavel Pisa.
25066      - apps/builtins:  Move apps/builtins/builtin_forindex.c to
25067        nuttx/libs/libc/builtin since it is required by kernel logic as
25068        well.  Other changes account for movement of builtin.h from
25069        nuttx/include/nuttx/binfmt/built.h to nuttx/include/lib/builtin.h.
25070        From Gregory Nutt.
25071
25072    * Examples/Tests: apps/examples:
25073
25074      - apps/examples/uid:  Demo used to verify PASSWD and GROUP interfaces.
25075        From Gregory Nutt.
25076      - apps/examples/webserver/:  Initialilze network and run forever only
25077        if not built-in app.  Infer from CONFIG_NSH_BUILTIN_APPS if we are a
25078        NSH built-in app or not.  If built-in app (CONFIG_NSH_BUILTIN_APPS
25079        defined) then we assume network is initialized prior to webserver
25080        starting and we exit on webserver failure.  If running standalone
25081        (CONFIG_NSH_BUILTIN_APPS is undefined) then behavior is unchanged:
25082        webserver initializes network and runs forever.  From Nathan Hartman.
25083
25084    * Network Utilities: apps/fsutils:
25085
25086      - apps/fsutils/passwd:  Handle the improved the format of the
25087        /etc/passwd file.  It is now a little more similar to other systems.
25088        From Gregory Nutt.
25089
25090    * Network Utilities: apps/netutils:
25091
25092      - apps/netutils/dhcpc:  Add host name support to DHCP client.  From
25093        Masayuki Ishikawa.
25094
25095    * Network Utilities: apps/wireless
25096
25097      - apps/wireless/ieee802154/i8sak:  I8sak improvements:  (1) Adds
25098        support for getting/setting maxretries and promsicuous mode from
25099        i8sak, (2) Fixes a build warning and handles a few cases where a
25100        fault can occur due to not catching missing arguments.  From
25101        Anthony Merlino.
25102      - apps/wireless/ieee802154/i8sak:  Allow setting the endpoint PAN ID.
25103        From Anthony Merlino.
25104      - apps/wireless/ieee802154/i8sak:  Adds support for energy scan result
25105        printout.  From Anthony Merlino.
25106      - apps/wireless/ieee802154/i8shark:  Adds support for intentionally
25107        suppressing passing the FCS so that Wireshark doesn't try to
25108        validate it.  From Anthony Merlino.
25109      - apps/wireless/ieee802154/libmac:  Adds support for getting/setting
25110        the FCS length  From Anthony Merlino.
25111      - apps/wireless/gs2200m:  Add UDP support to the GS2200M driver.  From
25112        Masayuki Ishikawa.
25113      - apps/wireless/gs2200m:  Add DHCP client handling in ioctl_request().
25114        From Masayuki Ishikawa.
25115      - apps/wireless/gs2200m:  ioctl_request() supports SIOCGIFHWADDR.
25116        From Masayuki Ishikawa.
25117
25118Bugfixes:
25119---------
25120Only the most critical bugfixes are listed here (see the ChangeLog for a
25121more complete list of bugfixes and for additional, more detailed bugfix
25122information):
25123
25124    * Core OS:
25125
25126      - Priority Inheritance:  Fix a race in telnet with PRIORITY_INHERITANCE
25127        and SCHED_HPWORK.  Sometimes causes an assertion to fire incorrectly.
25128        From David S. Alessio.
25129      - Task Groups:  Correct some naming.  The NuttX task groups have been
25130        using the acronym 'gid' and also the type 'gid_t' for the the task
25131        group ID.  That is incorrect.  Than naming is reserved for use with
25132        group permissions.  So these were all named to grpid and grpid_t so
25133        that it is clearer that these refer to NuttX task group IDs, and not
25134        to group permissions.  From Gregory Nutt.
25135      - Task Termination:  nxtask_signalparent() in task_exithook.c may
25136        invalidate the group's parent task ID (tg_ppid) too soon.  The
25137        tg_ppid field is use only to remember the parent tasks ID so that it
25138        can send the SIGCHLD signal to it.  So it must stay valid until
25139        SIGCHLD has been sent.  In nxtask_signalparent(), it calls
25140        nxtask_sigchild() to send SIGCHLD to the parent, then invalidates
25141        tg_ppid.  That would be okay, except that the SIGCHLD is only sent
25142        when the last member of the group terminates. That is incorrect;
25143        tg_ppid can be invalidated too soon and, as a consequence, SIGCHLD
25144        would never be sent.  Noted by Jeongchan Kim in the Google group:
25145        https://groups.google.com/forum/#!topic/nuttx/SXd8fVwVKBk  From
25146        Gregory Nutt.
25147      - sched_get_rr_interval():  sched_get_rr_interval() should return
25148        {0,0} if round-robin scheduling is not selected for the task.  From
25149        Gregory Nutt.
25150      - SMP Type Collision:  The non-standard, non-portable type cpu_set_t
25151        was created specifically to support the NuttX internal, SMP
25152        implementation.  Any resemblance to any other cpu_set_t would be
25153        purely coincidental.  However it appears that that coincidence has
25154        occurred.  cpu_set_t has an equivalent, non-standard, non-portable
25155        type in the GNU C library.  Compilation of libgnat expects this
25156        non-standard type to be defined.  Who am I to stand in the way of
25157        progress?  This commit removes the conditioning on CONFIG_SMP so
25158        that cpu_set_t is typed (as a uint8_t) even if CONFIG_SMP is not
25159        defined.  Reference:  Bitbucket issue 164.  From Gregory Nutt.
25160      - Binary Loader:  Change some debug macros from berr() to binfo()
25161        when dumping module data.  The report of problems is important
25162        during development but when it enables complete informative output
25163        about load binaries then the important information can be easily
25164        overlooked.  The huge output sent to serial terminal slows loading
25165        significantly as well.  From Pavel Pisa.
25166      - Power Management:  Fix g_pmcount 16-bits overflow when
25167        CONFIG_PM_XXENTER_COUNT set big value.  From ligd.
25168      - Timekeeping:  Fix cases in time conversion that must be >=
25169        NSEC_PER_SEC, not > NSEC_PER_SEC.  From Gregory Nutt.
25170
25171    * File System/Block and MTD Drivers:
25172
25173      - opendir():  opendir() set errno to a negative value in one error
25174        case.  From Michael Jung.
25175      - SmartFS:  Update smartfs smart_scan() function.  From Simon Piriou.
25176      - ProcFS:  Add missing LF to cpuload procfs output  From David Alessio.
25177      - MMC/SD:  Copy/paste error fix in the SDIO-based block driver for
25178        MMC.  From Ivan Ucherdzhiev.
25179      - MMC/SD:  Correct a misplaced #endif in the SDIO-based driver.  From
25180        Gregory Nutt.
25181
25182    * Networking/Network Drivers:
25183
25184      - Ethernet Configuration:  Ethernet packet buffer size cannot be
25185        permitted to go below 1294 if IPv6 is selected.  From Gregory Nutt.
25186      - TCP RST:  Fix outgoing RST packet with wrong ack number.  From
25187        biantao.
25188      - TCP Close:  Fix TCP close flow; free the connection after all TCP
25189        close process finished.  From zhangyuan7.
25190      - UDP Broadcast:  Remove net stack dependency from CONFIG_NET_BROADCAST.
25191        This change allows us to use CONFIG_NET_BROADCAST without network
25192        stack (i.e. usrsock application can use broadcast)  From Masayuki
25193        Ishikawa.
25194      - UDP:  Fixes a UDP send copy-paste error in the new SO_LINGER code:
25195        CONFIG_TCP_NOTIFIER to CONFIG_UDP_NOTIFIER.  From Juha Niskanen.
25196      - TCP and UDP:  Fix errors in the new implementation of SO_LINGER.
25197        The tcp_drain() and udp_drain() functions were casting the working
25198        argument to the wrong type, resulting in hangs and abnormal
25199        behavior.  There is a complexity in the TCP drain logic when the
25200        remote peer closes the socket before all Tx data has been flushed.
25201        Sometimes we are not notified of this case and wait the entire
25202        timeout unnecessarily.  There is a workaround in place in
25203        tcp_txdrain(), but this really should be revisited.  From Gregory
25204        Nutt.
25205      - 6LoWPAN:  Removes unnecessary conversions that were happening due to
25206        a misunderstanding of byte ordering with EUI-64.  From Anthony
25207        Merlino.
25208      - RNDIS:  Fix issue with DEBUGASSERT when using composite device and
25209        endpoint numbers not being the default.  From Anthony Merlino.
25210
25211    * Wireless/Wireless Drivers:
25212
25213      - wireless network devices:  Attach radio to d_buf before registering
25214        device to handle forwarding case.  When CONFIG_NET_IPFORWARD is
25215        enabled, and CONFIG_NET_6LOWPAN is being used, a packet that
25216        attempts to get forwarded on the 6LoWPAN interface will require
25217        that the radio's buffer be attached to d_buf. Otherwise an assertion
25218        will fire.  The underlying "radio" in this case is the
25219        mac802154_netdev.  This behavior has probably not been observed
25220        because the buffer is normally attached in the periodic txpoll
25221        worker.  However, in my case, the 6LoWPAN interface was not UP yet,
25222        and therefore the worker hadn't run yet.  From Anthony Merlino.
25223      - IEEE 802.15.4 MAC:  Fixes issues with extended address. 1) Extended
25224        address should be read-only. 2) Extended address should be placed
25225        in frame in "reverse-canonical" order.  The extended address is a
25226        read-only attribute and thus an attempt to write the extended
25227        address should be denied. Instead, the extended address should
25228        really be either set by the PHY/radio itself, or provided at board
25229        bring-up time to the radio layer. The MAC layer now pulls in the
25230        extended address from the radio any time the MAC is reset.  The
25231        extended address is also supposed to be sent in the frame in
25232        reverse-canonical order. This is very confusing in the standard and
25233        it wasn't until I realized it was backwards in Wireshark that I
25234        researched this further. Searching online I find documents from the
25235        committee for suggestions/feedback on the future standard.  It isn't
25236        in the 2015 standard but a newer version of the standard will
25237        presumably clarify this. It says that the extended address should be
25238        written in reverse-canonical form, meaning the OUI comes last, not
25239        first inside the frame.  From Anthony Merlino.
25240      - IEEE 802.15.4 MAC:  Frame Version should have been 1, but was being
25241        set to 3 when payload exceeds version 0 capabilities.  Adds warning
25242        to build to indicate what is noted in the menu for
25243        CONFIG_MAC802154_NTXDESC  From Anthony Merlino.
25244      - IEEE 802.15.4 MAC:  Fixes issue where the txdesc's ackreq flag was
25245        not being set, despite the frame containing a Frame Control field
25246        with ACKREQ bit set.  From Anthony Merlino.
25247      - Xbee:  Fix logic to prevent deadlock scenario when there are no
25248        available IOBs  From Anthony Merlino (2018-12-21).
25249      - Xbee:  Change assumption about destination address mode for incoming
25250        frames.  If a short address has been assigned to our radio, then
25251        assume we were addressed using that.  Otherwise we were addressed
25252        using our extended address.  From Anthony Merlino.
25253      - Xbee:  Initialize the short address to the unspecified address and
25254        query for the extended address on initialization.  From Anthony
25255        Merlino.
25256      - Xbee:  Adds CONFIG_XBEE_LOCKUP_WORKAROUND option and corresponding
25257        logic to workaround an issue where the XBee locks up and stops
25258        responding.  This typically happens when there is a lot of data
25259        being received over the link.  When the XBee stops responding, many
25260        times, querying the XBee kicks it out of this state.  However,
25261        occasionally the XBee is completely locked up and the XBee has to
25262        be reset.  This change handles these conditions by periodically
25263        (if not naturally occurring) querying the XBee.  If during any
25264        query, the XBee does not respond within a certain number of
25265        attempts, the XBee is reset.  From Anthony Merlino.
25266      - Xbee:  Cancel query timeout upon receiving the expected response.
25267        Add protection for race condition that can cause association
25268        timeout to continue firing repeatedly  From Anthony Merlino.
25269      - Xbee:  Detect lockup and reset XBee in xbee_req_data  From Anthony
25270        Merlino.
25271      - Xbee:  Fixes one instance of the use of IOBUSER_WIRELESS_MAC802154
25272        which isn't available without the software MAC layer.  Instead we
25273        use IOBUSER_WIRELESS_RAD802154 throughout the whole driver since it
25274        is always available when IEEE 802.15.4 support is enable.  From
25275        Anthony Merlino.
25276
25277    * Common Drivers:
25278
25279      - pipes:  Use inode reference counter instead of device reference
25280        counter to handle dup().  I found that if I dup() a pipe, the
25281        reference counter d_refs is not increased.  If I close any of the
25282        fd, backed by the same pipe, the pipe will be freed.  This causes
25283        any further usage on the fd referencing a non existent pipe.  This
25284        change uses the inode reference counter, which is properly
25285        maintained during dup().  From Yang ChungFan.
25286      - SPI Bitbang:  Fix build error when the SPI bitbang variable width
25287        support is enabled.  From Augusto Fraga Giachero.
25288      - GPIO Lower Half:  Remove limitation when pintype >
25289        GPIO_INTERRUPT_PIN.  From ligd.
25290
25291    * ARMv4/ARMv5
25292
25293      - Classic ARM7/ARM9:  When performing stability test, the application
25294        would cause kernel crash. When I trace the stack, I find that
25295        register R1 has been changed, and its value is the same as register
25296        CPSR.  In up_fullcontextrestore.S, the restoration of R0 and R1 is
25297        not atomic:  'msr cpsr r1 will enable interrupts and the recovery of
25298        r0 and r1 may be interrupted and the value or R1 may be changed.
25299        Fix is to use a single ldmia to restore R0, R1, and return via R15.
25300        From Loyen Wang.
25301
25302    * ARMv7-A
25303
25304      - ARMv7-A:  Fix typo and missing quotation for ARMv7-A.  From Oki
25305        Minabe.
25306      - ARMv7-A:  Fix double increment in armv7-a's
25307        arm_addrenv_destroy_region().  From Oki Minabe.
25308      - ARMv7-A:  Fix L2 page table mask for ARMv7-A page allocator.  From
25309        Oki Minabe.
25310
25311    * ARMv7-M
25312
25313      - Interrupts.  Removes the architecture-common
25314        CONFIG_ARCH_INT_DISABLEALL configuration option (but which was
25315        supported only by ARMv7-M).  In the normal course of things,
25316        interrupts must occasionally be disabled using the up_irq_save()
25317        inline function to prevent contention in use of resources that may
25318        be shared between interrupt level and non-interrupt level logic.
25319        Now the question arises, if we are using BASEPRI to disable
25320        interrupts and have high priority interrupts enabled
25321        (CONFIG_ARCH_HIPRI_INTERRUPT=y), do we disable all interrupts except
25322        SVCall (we cannot disable SVCall interrupts).  Or do we only disable
25323        the "normal" interrupts?  If we are using the BASEPRI register to
25324        disable interrupts, then the answer is that we must disable ONLY the
25325        "normal interrupts".  That is because we cannot disable SVCALL
25326        interrupts and we cannot permit SVCAll interrupts running at a
25327        higher priority than the high priority interrupts (otherwise, they
25328        will introduce jitter in the high priority interrupt response time.)
25329        Hence, if you need to disable the high priority interrupt, you will
25330        have to disable the interrupt either at the peripheral that
25331        generates the interrupt or at the NVIC.  Disabling global interrupts
25332        via the BASEPRI register cannot effect high priority interrupts.
25333        From Gregory Nutt.
25334      - ARMv7-M Priorities:  In the 'normal' case, the priority of the
25335        SVCALL interrupt was the same as the priority of the high priority
25336        interrupt.  This means that SVCALL interrupt processing can defer
25337        the high priority interrupt and result in the jitter in that
25338        interrupt response.  Fix is to raise the priority of the high
25339        priority interrupt above the priority of the SVCALL interrupt.
25340        Suggested by Nathan Hartman.  From Gregory Nutt.
25341
25342    * Microchip i.MXRT Drivers:
25343
25344      - i.MXRT ENC:  Fix some errors in register bit definitions.  Noted by
25345        Arie de Muijnck.  From Gregory Nutt.
25346      - i.MXRT LPI2C:  Slave addresses are now correctly shifted when
25347        sending START.  TX/RX FIFOs now discarded on error to prevent FIFO
25348        underflow errors.  Fixes error checking to use priv structure and
25349        removes checking of BBF flag as it is not an error.  From Nicholas
25350        Chin.
25351
25352    * Microchip PIC32MZ Drivers:
25353
25354      - PIC32MZ SPI:  Fix SPI Mode selection.  CKE is the inversion of the
25355        CPHA.  From Ouss4.
25356
25357    * Microchip/Atmel SAMD2x/SAML2x Drivers:
25358
25359      - SAMD2/L2 I2C:  Correct time calculation.  From Bernd Walter.
25360
25361    * Microchip/Atmel SAM3/SAM4:
25362
25363      - SAM3/4:  Add missing DMA configuration Kconfig setting.  From Bernd
25364        Walter.
25365
25366    * NXP LPC17xx/40xx Drivers:
25367
25368      - LPC17xx/40xx ADC:  Only use PCLKSEL0 for ADC on LPC176x family.
25369        From jjlange.
25370      - LPC17xx/40xx Ethernet:  Set speed back to 10Mbps if 10Mmbps link
25371        negotiated.  From Augusto Fraga Giachero.
25372      - LPC17xx/40xx I2C:  Abort I2C transfers if a timeout has occurred.
25373        If a timeout has occurred in the middle of a I2C transfer, the next
25374        I2C interrupt should abort any transfers and send a stop condition
25375        to the corresponding I2C bus.  Failure to do so will result in
25376        memory corruption / undefined behavior as priv->msgs points to a
25377        region of memory it doesn't owns anymore after lpc17_40_i2c_start
25378        returns.  From Augusto Fraga Giachero.
25379      - LPC17xx/40xx I2C:  Calculate the appropriate timeout for I2C
25380        transfers.  Depending on the bus frequency and transfer size, I2C
25381        transactions can take quite a bit, so a fixed timeout is not a
25382        good solution.  Calculating the timeout at run time poses some
25383        overhead but still better than aborting long transactions.  From
25384        Augusto Fraga Giachero.
25385
25386    * NXP/Freescale Kinetis Drivers:
25387
25388      - Kinetis I2C:  i2c transfer ensure correct result returned.
25389        kinetis_i2c_transfer released the mutex then fetched the state,
25390        this resulted in returning the correct results.  From David
25391        Sidrane.
25392
25393    * NXP LPC17xx/40xx Drivers:
25394
25395      - LPC17xx/40xx CAN:  If BOARD_CCLKSEL_DIVIDER is not equal to 1 on
25396        LPC178x or LPC40xx then base clock rate is calculated incorrectly
25397        because CCLK frequency does not correspond to PLL0 clock which is
25398        used for PCLK.  This  is partially workaround solution.  It would
25399        be probably better to define BOARD_PCLK_FREQUENCY even for LPC176x
25400        targets and use that to replace divisor by base_clock in up_dev_s.
25401        From Pavel Pisa.
25402
25403    * NXP LPC17xx/40xx Boards:
25404
25405      - LPC17xx/40xx Ethernet:  Add missing LPC17_40_PHY_CEMENT_DISABLE
25406        variable to the lpc17xx/40xx Kconfig file.  For some reason this
25407        setting was not referenced anywhere except in the Ethernet driver.
25408        From Augusto Fraga Giachero.
25409      - LPC17xx/40xx Ethernet:  Fix the initialization for DP83848x PHYs.
25410        The DP83848x requires the RMII mode to be manually enabled through
25411        the MII_DP83848C_RBR register. Before querying the speed and mode
25412        it should wait for the link to be established.  From Augusto Fraga
25413        Giachero.
25414
25415    * NXP i.MXRT Drivers:
25416
25417      - i.MXRT LPUART:  Fix some errors in the LPUART register definition
25418        files.  Correct naming of a function:  up_earlyserialinit() should
25419        be imxrt_earlyserialinit().  Remove prototypes for non-existent
25420        serial initialization functions.  From Gregory Nutt.
25421      - i.MXRT USDHC:  uSDHC typo fixes and command transfer error handling
25422        modified.  From Ivan Ucherdzhiev.
25423
25424    * SiLabs EFM32 Drivers:
25425
25426      - EFM32 OTG host:  Adam Porter's various fixex for STM32 FS/HS
25427        probably should be applied to EFM32 host which which has very
25428        similar IP.  From Gregory Nutt.
25429
25430    * STMicro STM32:
25431
25432      - STM327F Configuration:  Kconfig add depends on BBSRAM.  From David
25433        Sidrane.
25434      - STM32F7 Interrupts:  Fix overwritten IRQ enable.  System boot order
25435        calls clock_initialize() then up_initialize().  clock_initialize()
25436        was setting up the alarm IRQ up_initialize is initializing the NVIC.
25437        This most likely worked in the past due to a bug in the NVIC
25438        initialization code that failed to clear the Interrupt enables.
25439      - STM32H7:  Rix BBSRAM name in memory map.  From David Sidrane.
25440      - STM32H7:  Removed f7 in file path.  From David Sidrane.
25441
25442    * STMicro STM32 Drivers:
25443
25444      - STM32H7 BBSRAM:  Fix issues causing no writes and hardfaults.  From
25445        David Sidrane.
25446      - STM32H7 BBSRAM:  Convince compiler to perform 32 bit write.  From
25447        David Sidrane.
25448      - STM32F7 OTGHS:  Fixes bad preprocessor logic preventing USB OTG HS
25449        to work when used without external ULPI.  From Anthony Merlino.
25450      - STM32 OTGH[FS|HS] Host  STM32 host only initiates transfer if
25451        buflenl > 0.  From Adam Porter.
25452      - STM32F7/H7/L4 OTG host:  Adam Porter's fix for STM32 FS/HS probably
25453        should be applied to STM32 F7, H7, and L4 OTG host which are very
25454        similar.  From Gregory Nutt.
25455      - STM32/F7/H7/L4:  This change was required to get my devices
25456        (CDC-MBIM) to enumerate.  Initially the system timed out retrieving
25457        the USB configuration descriptor.  Ctrl IN requests got nothing but
25458        NAKs.  I found that the initial SETUP packet and corresponding IN
25459        transfer were fine; it was the Status OUT phase that was getting the
25460        NAK.  After receiving a NAK on the Status OUT, the code would loop
25461        back and issue another ctrl IN, which will always fail because the
25462        data was already transferred before. Thus the entire transfer would
25463        'timeout'.  The fix I implemented moves the DATANAK timeout loop to
25464        only apply to the Status OUT.  Both the ctrl IN and the Status OUT
25465        need their own retry loops.  From Adam Porter.
25466      - STM32F7 SDMMC:  If there is only one SDMMC it is slot 0  From David
25467        Sidrane.
25468      - STM32F7 USART1:  USART1_RXDMA is dependent on STM32F7_DMA2 not
25469        STM32F7_DMA1  From Anthony Merlino.
25470      - STM32H7 DBGMCU:  Memory Map DBGMCU is @ 0x5c001000  From David
25471        Sidrane.
25472      - STM32F7 SDMMC:  Fix warning when DMA is not enabled.  From David
25473        Sidrane.
25474      - STM32H7 Ethernet:  Fix some errors in Ethernet MAC configuration.
25475        From Markus Bernet.
25476      - STM32H7 Ethernet:  Correct stm32h7 mac address filtering.  Correct
25477        the MAC address 0 register definition and remove the 'receive all'
25478        flag.  Now the Ethernet driver only receives packets addressed to
25479        correct MAC.  From Jukka Laitinen.
25480      - STM32H7 Ethernet:  Correct memory corruption error.  The Ethernet
25481        driver initialization incorrectly wrote to DMACRXCR instead of
25482        DMACSR when trying to clear the stopped flags.  This caused
25483        invalid buffer length in the DMACRXCR, causing DMA to overflow the
25484        RX buffers when large packets are sent to the device.  From Jukka
25485        Laitinen.
25486      - STM32H7 PWR:  Ensure data is flushed on backup domain access
25487        changes.  From David Sidrane.
25488      - STM32H7 Serial:  Serial fix undefined with TERMIOS  From David
25489        Sidrane.
25490      - STM32H7 UARTs:  Fix UART7/8 typos.  Fix bug in ETH_MACQTXFCR
25491        configuration.  From Markus Bernet.
25492
25493    * STMicro STM32 Boards:
25494
25495      - Multiple STM32 Boards:  If CONFIG_SCHED_CRITMONITOR is selected,
25496        then make sure that ITM and DWT resources are enabled before
25497        accessing ITM and DWT registers.  By default, these registers are
25498        disabled.  Suggested by Juha Niskanen.  From Gregory Nutt.
25499      - Nucleo-H743ZI:  Correct logic that determines if the RTC driver is
25500        available.  Find in build testing.  From Gregory Nutt.
25501      - Nucleo-G071RB:  Fix linker script to avoid .ARM.exidx section
25502        overlap with .data  From Daniel Pereira Volpato.
25503      - Modify all linker scripts (all boards, all architectures) to use
25504        solution from Daniel P. Volpato.  From Alan Carvalho de Assis.
25505      - Nucleo-L432KC ADC:  Change analog pins definitions and correct DMA
25506        related issue.  From Daniel P. Carvalho.
25507
25508    * TI Tiva:
25509
25510      - Tiva Configuration:  Rename TM4C123GH6PMI identifiers to
25511        TM4C123GH6PM.  Rationale: In terms of firmware programming, there
25512        is no functional difference between these parts:  TM4C123GH6PMI7,
25513        TM4C123GH6PMI7R, TM4C123GH6PMT7, and TM4C123GH6PMT7R.  From a
25514        programming standpoint, all of the above parts are TM4C123GH6PM,
25515        which means it doesn't make sense to differentiate between PM and
25516        PMI. (The PM means 64-LQFP. The I means temperature range -40C to
25517        +85C. It could be T meaning -40C to +105C. The R means it ships in
25518        Tape and Reel packaging as opposed to Tray.)  From Nathan Hartman.
25519      - Tiva Configuration:  Rename TM4C1294NC identifiers to TM4C1294NCPDT.
25520        Rationale: TM4C1294NC is ambiguous: TM4C1294NCPDT is a 128-TQFP,
25521        TM4C1294NCZAD is a 212-NFBGA.  The TM4C1294NC part currently
25522        supported by NuttX is the TM4C1294NCPDT used on the TI EK-TM4C1294XL
25523        "Connected LaunchPad" (see configs/tm4c1294-launchpad).  To ensure
25524        the correct part is fully specified, this commit updates all
25525        TM4C1294NC identifiers to TM4C1294NCPDT.  From Nathan Hartman.
25526      - Tiva Configuration:  Fix TM4C129XNCZAD part number in Kconfig and
25527        identifiers.  Rationale: Fully specify that this is the 212-pin BGA
25528        package (ZAD ending) and for consistency with earlier changes to
25529        other Tiva TM4C12x part numbers in Kconfig names and identifiers.
25530        From Nathan Hartman.
25531
25532    * TI Tiva Drivers:
25533
25534      - Tiva TM4C 1-Wire:  Fix wrong description on define TIVA_1WIRE_BASE:
25535        Was "EEPROM and Key Locker" (same as the item above). Now "1-Wire
25536        Master Module." Make DMACTL symbols visible for TM4C123:  Remove
25537        "#ifdef CONFIG_ARCH_CHIP_TM4C129" guard around UART DMA Control
25538        (DMACTL) symbols.  These bits are valid on TM4C123 devices, as well
25539        as on TM4C129. Also, improve the comment on UART_DMACTL_DMAERR.
25540        From Nathan Hartman.
25541      - Tiva GPIO Interrupts:  LM3S, LM4F, TM4C: Fix GPIO IRQ error, ports
25542        R, S, T.  Preprocessor logic for CONFIG_TIVA_GPIOx_IRQS was setting/
25543        clearing port Q defines when it should act on ports R, S, T.
25544        gpioport2irq() was missing handling for port T.  From Nathan
25545        Hartman.
25546      - Tiva Timers:  Fix minor errors in tiva_timerlib.c.  Fix incorrect
25547        preprocessor conditionals related to Kconfig defines:
25548        CONFIG_TIVA_TIMER32_EDGECOUNT -> CONFIG_TIVA_TIMER16_EDGECOUNT,
25549        CONFIG_TIVA_TIMER32_TIMECAP -> CONFIG_TIVA_TIMER16_TIMECAP,
25550        CONFIG_TIVA_TIMER32_PWM -> CONFIG_TIVA_TIMER16_PWM.  From Nathan
25551        Hartman.
25552      - Tiva Timers: Fix errors in low-level timer support.
25553        tiva_gptm_configure() and tiva_gptm_release() were calling
25554        tiva_emac_periphrdy() instead of tiva_gptm_periphrdy().  Fix
25555        error in "abcde" description of bit flag defines.  From Nathan
25556        Hartman.
25557      - Tiva Timers:  Fix one code error and some comment errors.
25558        tiva_timer16_setinterval(): Was DEBUGASSERTing on mode !=
25559        TIMER16_MODE.  Fixed to DEBUGASSERT on mode == TIMER16_MODE.
25560        From Nathan Hartman.
25561
25562    * ZiLOG Z80 Boards:
25563
25564      - z80sim Serial:  Fix uart_dev_t initializer:  pollfds[] is a array of
25565        pointers and, hence, the NULL initializer must be included in braces.
25566        Noted by Paul Osmialowski in Issue #160.  From Gregory Nutt.
25567      - z80sim Interrupts:  Missed a name change up_irqinitialize to
25568        z80_irq_initialize.  From Gregory Nutt.
25569
25570    * C Library/Header Files:
25571
25572      - include/netinet/in.h:  Rename __pad member to sin_zero in struct
25573        sockaddr_in.  Libwebsockets initializes the 'sin_zero' member of
25574        sockaddr_in objects to zeros.  Apparently, judging from mailing list
25575        entries, there are platforms on which not doing this causes
25576        undefined behavior.  On NuttX compiling respective code is broken,
25577        as the corresponding member variable is called '__pad'.  Neither in
25578        the 'nuttx' nor in the 'apps' repository did I find any reference to
25579        this identifier.  Thus, I believe its a safe bet to just rename it.
25580        UNIX Network Programming states in this regard:  "The POSIX
25581        specification requires only three members in the structure:
25582        sin_family, sin_addr, and sin_port. It is acceptable for a POSIX-
25583        compliant implementation to define additional structure members, and
25584        this is normal for an Internet socket address structure. Almost all
25585        implementations add the sin_zero member so that all socket address
25586        structures are at least 16 bytes in size."  From Michael Jung.
25587
25588      - libs/libc/libc.csv:  Correct dependency of setlocale on
25589        CONFIG_LIBC_LOCALE.  From Pavel Pisa.
25590      - libs/libc/machine/arm/armv7-m:  Fix build error for ELF.  From
25591        Masayuki Ishikawa.
25592      - libs/libc/math.csv:  Correct format of some function entries.  From
25593        Pavel Pisa.
25594
25595    * Tools:
25596
25597      - tools/:  Change all occurrences of /bin/(ba)sh in shell scripts to
25598        /usr/bin/env bash which appears more portable  From Manuel St�hn.
25599
25600    * NSH Library: apps/nshlib:
25601
25602      - apps/nshlib/:  As noted by David S. Alessio, 'cat' should not output
25603        any additional newline at the end of the cat'ed file content.  This
25604        additional newline was added to assure that the NSH prompt was
25605        presented on a new line.  However, that is not the correct behavior
25606        of 'cat' per the IEEE std:  "The standard output shall contain the
25607        sequence of bytes read from the input files. Nothing else shall be
25608        written to the standard output."  Reference:
25609        https://pubs.opengroup.org/onlinepubs/009695399/utilities/cat.html.
25610        This commit changes the function nsh_catfile() which underlies the
25611        'cat' command and well as other NSH commands.  Although this is the
25612        correct behavior for 'cat' it may not be the correct behavior for
25613        other commands implemented via nsh_catfile().  That remains to be
25614        determined.  From Gregory Nutt.
25615
25616    * System Utilities: apps/system:
25617
25618      - apps/system/cle/:  ASCII DEL should be treated by Delete-Left.  From
25619        Dave Marples.
25620      - apps/system/i2ctool:  (1) Friendlier I2C "knock-knock" uses only
25621        read request.  While many I2C slave devices have multiple indexed
25622        registers, some have only one register and it's not indexed.  For
25623        example, the I2C bus switch TCA9548A has only a Control Register,
25624        attempting to index to "Reg[0]" alters its contents to 0x00
25625        disabling all subordinate buses.  This patch fixes that problem by
25626        simply trying to read something/anything from the slave.  This also
25627        helps coax out slaves with register files that start from a higher
25628        index, i.e. the AT24CS0x, FLASH chips with a UUID that appears as a
25629        2nd I2C slave at (address+8), report their serial number at
25630        Reg[80]-Reg[8F] and will NAK a read of Reg[0].  (2) Modify get/set
25631        to prevent write of reg index if not specifed  From David Alessio.
25632
25633    * Network Utilities: apps/netutils:
25634
25635      - apps/netutils/dhcpd:  Fixes bug where hwaddr was being used instead
25636        of ipaddr in the ARP update.  This bug seems to have been introduced
25637        three years ago during a rewrite to remove a direct OS call to arp.
25638        I'm not sure how others have not run into issues with this.  The
25639        behavior I was observing was that the DHCPD would go to offer an IP
25640        address, but then send a ARP request for the IP instead because it
25641        didn't know where to send the data.  From Anthony Merlino.
25642      - apps/netutils/netinit/:  Remove warnings.  Unhook PHY notification
25643        signal handler when cleaning up, if an error occurs after the signal
25644        handler is put into place.  From Nathan Hartman.
25645
25646    * Wireless Utilities: apps/wireless:
25647
25648      - apps/wireless/ieee802154/i8sak:  Fixes conversion from extended
25649        address to IPv6 address.  From Anthony Merlino.
25650
25651NuttX-8.2 Release Notes
25652------------------------
25653
25654The 133nd release of NuttX, Version 8.3, was made on November 16, 2019,
25655and is available for download from the Bitbucket.org website.  Note
25656that release consists of two tarballs:  nuttx-8.2.tar.gz and
25657apps-8.2.tar.gz.  These are available from:
25658
25659    https://bitbucket.org/nuttx/nuttx/downloads
25660    https://bitbucket.org/nuttx/apps/downloads
25661
25662Both may be needed (see the top-level nuttx/README.txt file for build
25663information).
25664
25665Additional new features and extended functionality:
25666---------------------------------------------------
25667
25668    * Core OS:
25669
25670      - Signals:  Add support for SIGPIPE default action.  SIGPIPE uses
25671        SIG_SIGPIPE_ACTION which terminates process by default.  It also
25672        could be ignored.  From liuhaitao.
25673      - Spinlocks:  Remove support for re-entrant spinlocks.  They seemed
25674        like a good idea, but they are never used.  From Xiang Xiao.
25675      - Memory Manager:  Remove the assumption that one character equals
25676        eight bits.  From Xiang Xiao.
25677      - Power Management:  Historically, the NuttX PM subsystem has
25678        consisted of two functional components:  (1) an "Upper" part that
25679        detects state changes based on a random walk driven by activity
25680        levels, and (2) and "lower" part that implementst the state changes.
25681        This change decouples that upper activity-based logic from the lower
25682        random walk logic and allows use of other upper state detection
25683        logic (such as a custom, application-specific state machine).  From
25684        Matias Nitsche.
25685      - boardctl():  Expose power manager function through boardctl()
25686        interface.  From Xiang Xiao.
25687
25688    * File System/Block and MTD Drivers:
25689
25690      - GD25:  Add support for a new FLASH vendor.  From zhangbo_a.
25691      - GD25:  Add support for GD25 device with 256-Mbit capacity.  From
25692        YanLin Zhu.
25693      - GD25:  Add 4-byte address operation for capacity larger than
25694        128-Mbit.  From YanLin Zhu.
25695      - GD25:  Add gd25_lock/unlock to case: enable 4-bytes address  From
25696        ligd.
25697      - GD5F:  Add gigadevice SPI NAND FLASH driver.  From YanLin Zhu.
25698
25699    * Networking/Network Drivers:
25700
25701      - Networking:  Use ntoh() when printing IPv6 addresses so that the
25702        addresses appear in friendlier host order vs. network order.  From
25703        Bernd Walter.
25704      - Netlink:  Implement minimal NETLINK_ROUTE socket functionality that
25705        can (for now) be use used to obtain a list of network devices, IPv4
25706        ARP and IPv6 Neighbor tables, and IPv4 and IPv6 routing tables.
25707        From Gregory Nutt.
25708
25709    * Wireless/Wireless Drivers:
25710
25711      - BCM43438A1 Bluetooth:  Add support for the BCM43438A1 Bluetooth
25712        capability.  From Dave Marples.
25713      - HCIUART Shim:  Add a serial 'shim' to allow any regular serial port
25714        to support a Bluetooth H4 interface and to be used to drive a
25715        Bluetooth device.  From Dave Marples.
25716      - BCM4343x HCIUART:  BCM4343x HCIUART support.  From Dave Marples.
25717      - BCM43xxx:  Move drivers/wireless/ieee80211/ to
25718        drivers/wireless/ieee80211/bcm43xxx/ since the directory only
25719        contains only BCM43362 and BCM43438 related code.  From Xiang Xiao.
25720      - GS2200M:  Add reset handler to interface.  Add reset and un-reset
25721        sequence in driver. From Masayuki Ishikawa.
25722
25723    * Audio/Audio Drivers:
25724
25725      - Audio:  Add message type to support audio trigger.  From anchao.
25726
25727    * Other Common Device Drivers:
25728
25729      - Altair:  Add support for the altair LTE modem driver.  From Alin
25730        Jerpelea.
25731      - MCP2515:  MCP2525 SPI STD-EXT ID fixes.  From DisruptiveNL.
25732      - OpenAMP:  Brings in the drivers needed to support OpenAMP.  These
25733        changes were ported from https://github.com/FishsemiCode/nuttx.
25734        This port was effort of a number of people, I rather arbitrarily
25735        gave authorship to Guiding Li because he has the largest number of
25736        fundamental quashed commits from the Xiamoi repository.  From
25737        Guiding Li.
25738
25739    * Simulator:
25740
25741      - Simulator:  Add stack coloration feature.  From ligd.
25742      - Simulator:  Report PM activity on simulated UART.  From Matias
25743        Nitsche.
25744      - Simulator:  Add host ftruncate() support.  From chao.an.
25745      - Simulator:  Replace all CONFIG_DEV_CONSOLE with USE_DEVCONSOLE for
25746        arch/sim and compile up_devconsole.c conditionally.  From Xiang
25747        Xiao.
25748      - Simulator OpenAMP:  Support OpenAMP between two simulator
25749        instances.  Please read rpserver/rpproxy section in
25750        boards/sim/sim/sim/README.txt for more information.  From chao.an.
25751
25752    * ARMv7-M
25753
25754      - ARMv7-M:  Add BPIALL register address.  From Dave Marples.
25755      - ARMv7-M MPU:  Add user peripheral helper
25756
25757    * Atmel SAMD2/L2 Boards:
25758
25759      - Arduino-M0:  Add initial board support for the Arduino M0 which is
25760        based on the SAMD21 chip.  Include nsh and usbnsh configurations.
25761        From Alan Carvalho de Assis.
25762
25763    * NXP i.MXRT Drivers:
25764
25765      - i.MXRT LCD:  Add support for LCD.  Clean up some LCD-related
25766        interfaces.  From Fabio Balzano.
25767      - i.MXRT Serial:  This change improves the performance of UART serial
25768        ports on the IMXRT by enabling the RX & TX FIFOS and transmission on
25769        the holding register being empty (TDRE) rather than transmission
25770        being complete (TC).  From Dave Marples.
25771      - i.MXRT Pin Mux:  This change separates out the pinmux and iomux
25772        functions cleanly.  For ease of conversion default IOMUX definitions
25773        have been added into imxrt_iomux.h.  The change effectively does two
25774        things:  (1) unifies the iomux definitions - previously some pins
25775        had them, and some didn't. This effectively made it impossible to
25776        use the pinmuxes without editing the header file in the standard
25777        distribution tree. And (2) unifies the pin definitions so that every
25778        pin now has a suffix. This makes it *much* easier to see when a pin
25779        is in use in your code, because it will always have a definition in
25780        your board.h file.  From Dave Marples.
25781      - IMXRT1020-EVK:  Add support for the MIMXRT1021-EVK board.  It
25782        features nsh, netnsh and usdhc sample configurations.  From Dave
25783        Marples.
25784
25785    * NXP i.MXRT Boards:
25786
25787      - IMXRT1060-EVK:  Add basic LCD support for the board IMXRT1060-EVK.
25788        From Fabio Balzano.
25789      - IMXRT1060-EVK:  Added Littlevgl demo configuration into the
25790        IMXRT1060-EVK board directory.  From Fabio Balzano.
25791
25792    * NXP/Freescale Kinetis Drivers:
25793
25794      - Kinetis Ethernet:  Add support for TJA1100 PHY.  From David Sidrane.
25795
25796    * NXP S31K1xx:
25797
25798      - S32K1xx:  Support configuration and initialization of the flash
25799        configuration bytes.  From Gregory
25800
25801    * NXP S31K1xx Boards:
25802
25803      - S32K1**EVB:  Create a special FLASH section to hold the FLASH
25804        configuration bytes.  From Gregory Nutt.
25805      - S32K146EVB:  Added configuration script and instructions for using
25806        Thread-Aware OpenOCD for the S32K146 with Eclipse.  From Han
25807        Raaijmakers.
25808
25809    * Renesas RX65N:
25810
25811      - RX65N:  Adds a port of to the Renesas RX65N Micro-controller.  This
25812        port includes Serial (UART) driver (13 ports) and Ethernet
25813        driver.  From Anjana.
25814
25815    * Renesas RX65N Boards:
25816
25817      - RSK RX65N-2MB:  Add support for the RSK RX65N-2MB board.  From
25818        Anjana.
25819      - GR-Rose:  Add support for the GR-Rose board.  From Anjana.
25820
25821    * Sony CXD56xx
25822
25823      - CXD56xx CPU FIFO:  Add configurations for CPU FIFO elements.  From
25824        Alin Jerpelea.
25825      - CXD56xx Loader:  Update loader and gnssfw ver. 17660.  From Alin
25826        Jerpelea.
25827      - CXD56xx SMP:  Add support for SMP.  To run cxd56xx in SMP mode, new
25828        boot loader which will be released later must be used.  From
25829        Masayuki Ishikawa.
25830      - CXD56xx SMP:  Add IRQ routing for SMP in cxd56_irq.c.  In CXD56xx,
25831        each external interrupt controller can be accessed from a local
25832        APP_DSP (Cortex-M4F) only.  This change supports IRQ routing for SMP
25833        by calling up_send_irqreq() in both up_enable_irq() and
25834        up_disable_irq().  From Masayuki Ishikawa.
25835
25836    * Sony CXD56xx Drivers:
25837
25838      - CXD56xx I2C: Add ability to set the i2c frequency to other than just
25839        100 or 400 Hz.  From Alin Jerpelea.
25840      - CXD56xx SDHCI:  Reduce power consumption by stopping SD clock.  Re-
25841        enable SD clock during access to SD card.  Improve GNSS low
25842        sensitivity with SD card inserted.  From Alin Jerpelea.
25843
25844    * Sony CXD56xx Spresense Board:
25845
25846      - CXD56xx Board Common:  Add the Altair LTE modem support on the
25847        Spresense board.  From Alin Jerpelea.
25848      - CXD56xx Board Common:  Add Spresense Image Processor.  Enable support
25849        for accelerated format converter, rotation and so on. using the CXD5602
25850        image processing accelerator.
25851      - Spresense:  Add board specific pin configurations of CXD5602 pins to
25852        fit Spresense board.  From Takayoshi Koizumi.
25853      - Spresense:  Add a configuration option to select if an extension
25854        board is attached to the SPresence.  If there is no extension board
25855        attached, the SPresense may run in a low-power mode by default (as
25856        determined by the CONFIG_CXD56_CUSTOM_PINCONFIG option).  If an
25857        extension board is present, then the SPresense will need to run at a
25858        higher power mode, selected by the new CONFIG_SPRESENSE_EXTENSION
25859        option.  From Gregory Nutt.
25860      - Spresense Camera:  Add ISX012 camera initialization and
25861        configuration.  From Alin Jerpelea.
25862      - Spresense OS test:  Enable ostest in rndis/defconfig and
25863        wifi/defconfig. From Masayuki Ishikawa.
25864      - Spresense:  Add --gc-sections to LDFLAGS and add -ffunction-sections
25865        and -fdata-sections to ARCHCFLAGS in scripts/Make.defs.   From
25866        Masayuki Ishikawa.
25867      - Spresense SMP:  Add smp configuration.  From Masayuki Ishikawa.
25868      - Spresense SCU:  The SCU has to be initialized at bootup on Spresense
25869        board because several functions depend on it. Add audio control
25870        definitions.  Add configuration for the audio implementation.  From
25871        Alin Jerpelea.
25872      - Spresense:  Add audio and board audio control implementation.  From
25873        Alin Jerpelea.
25874      - Spresense:  Sdd power_control and audio_tone_generator.  Add a simple
25875        way to control the audio buzzer with defined frequency for user-space
25876        apps.  From Alin Jerpelea.
25877      - Spresense:  Add the optional initialization of  GNSS and GEOFENCE at
25878        boot if the drivers are enabled  From Alin Jerpelea.
25879      - Spresense:  Add LTE configuration.  From Alin Jerpelea.
25880      - Spresense:  Enable high current mode for the Spresense Extension
25881        board on all examples that have SDCARD support.  From Alin Jerpelea.
25882      - Spresense:  Add lcd examples configuration.  This is a configuration
25883        for the basic nx examples  From Alin Jerpelea.
25884
25885    * STMicro STM32:
25886
25887      - STM32F0/L0/G0:  Add support for STM32G070xx family.  From Daniel
25888        Pereira Volpato.
25889      - STM32F0/L0/G0 Power:  Scale dynamic voltage and flash wait states
25890        properly on STM32G0 chips.  Included preliminary implementation of
25891        PWR module VOS support.  From Daniel Pereira Volpato.
25892      - STM32L4R5ZI:  Add support for the STM32L4R5ZI chip type.  From Jussi
25893        Kivilinna.
25894      - STM32 L4+ DMA:  Add DMA support for STM32L4+ series.  From Jussi
25895        Kivilinna.
25896      - STM32 L4 Clocking:  Enable "Range 1 boost" mode if any PLL freq
25897        above 80 Mhz.  From Jussi Kivilinna.
25898      - STM32 L4 LPTIM:  Add support for LPTIM timers on the STM32L4 as PWM
25899        outputs.  From Matias N.
25900      - STM32 H7 Progmem: Add FLASH progmem support.  From David Sidrane.
25901
25902    * STMicro STM32 Drivers:
25903
25904      - STM32 Serial:  Single Wire add pull{up|down|none} via new IOCTL
25905        command.  From David Sidrane.
25906      - STM32 F0/L0/G0 Serial:  Single Wire add pull{up|down|none} via
25907        new IOCTL command.  From David Sidrane.
25908      - STM32 F0/L0/G0 PWM:  Add PWM support.  From Daniel Pereira Volpato.
25909      - STM32 G0 TIM:  Support timers available on STM32G070.  Includes TIM1
25910        PIOs, TIM driver lower-half.  From Daniel Pereira Volpato.
25911      - STM32 F7 Serial:  Single Wire add pull{up|down|none} via new IOCTL
25912        command.  From David Sidrane.
25913      - STM32 H7 BBSRAM:  Exclude BBSRAM from cacheable when
25914        CONFIG_ARMV7M_DCACHE. ST placed the STM32H7 BBSRAM in the SRAM
25915        default memory region which is cacheable. This change sets the
25916        BBSRAM memory range to non-cacheable.  From David Sidrane.
25917      - STM32 H7 SDMMC:  Add SDMMC support and IDMA as well as interrupt
25918        driven transmission.  Support pull-ups and SDIO.  From David Sidrane.
25919      - STM32 H7 Serial:  Single Wire add pull{up|down|none} via new IOCTL
25920        command.  From David Sidrane.
25921      - STM32 L4 OTGFS:  Enable OTGFS for STM32L4+ series.  The OTGFS
25922        peripheral on stm32l4x6 and stm32l4rxxx reference manual is exactly
25923        the same.  From Jussi Kivilinna.
25924      - STM32L4 IDLE Loop:  (1) Added BEGIN_IDLE()/END_IDLE() to stop call
25925        so that we also get notification via LED of the STOP mode, (2) Added
25926        the stm32l4_clockenable call as previously discussed, and (3) Added
25927        call to pm_changestate() to inform drivers we're back to running
25928        after the call to stm32l4_stop() returns.  From Matias N.
25929      - STM32 L4 Serial:  Single Wire add pull{up|down|none} via new IOCTL
25930        command.  From David Sidrane.
25931
25932    * STMicro STM32 Boards:
25933
25934      - Nucleo-G070RB:  Initial support for board STM32 NUCLEO-G070RB,
25935        including NSH config.  Enables PWR peripheral and set SYSCLK to
25936        maximum frequency.  From Daniel Pereira Volpato.
25937      - Nucleo-G070RB: Enable basic timers.  Add TIMx clock frequencies to
25938        board.h.  From Daniel Pereira Volpato.
25939      - Nucleo-G070RB:  Add PWM support and GPIO_TIM3_* mappings.  Add a PWM
25940        configuration. From Daniel Pereira Volpato.
25941      - Nucleo-G070RB:  Add button driver support, Add driver support. Add
25942        GPIO configuration.  From Daniel Pereira Volpato.
25943      - Nucleo-L476RG:  Add required definitions if libcxx is enabled.  From
25944        Matias N.
25945      - Nucleo-L476RG:  Add support for LPTIM timers as PWM outputs.  From
25946        Matias N.
25947      - Nucleo-H743ZI:  Added GPIO device driver for user-space apps.  From
25948        Heiko Demlang.
25949      - olimex-stm32-e407:  Newer Olimex E407 boards are populated with
25950        STM32407ZE chips.  From David Alessio.
25951      - STM32F4-Discovery:  Add support for external DS1307 module.  From
25952        Alan Carvalho de Assis.
25953      - STM32F4-Discovery:  Add support for MMCSD_SPI.  This change works
25954        with STM32F4 Discovery Shield plus microSD click  From Masayuki
25955        Ishikawa.
25956      - STM32F4-Discovery:  Add support for gs2200m.  Works with mikroe
25957        STM32F4 Discovery Shield (slot3)  From Masayuki Ishikawa.
25958
25959    * TI Tiva:
25960
25961      - TM4C129ENCPDT:  Add support for Tiva TM4C129ENCPDT.  From Nathan
25962        Hartman.
25963
25964    * TI Tiva Boards:
25965
25966      - TM4C123G-Launchpad: SPI CAN functionality on TM4C123GXL.  From
25967        DisruptiveNL.
25968
25969    * Build System:
25970
25971      - tools/Config.mk:  Eliminate use of the built-in implicit rules.
25972        From anchao.
25973      - tools/Config.mk and Makefile.unix:  Support the incremental build
25974        for configuration change.  From Xiang Xiao.
25975      - tools/Config.mk:  Support the ability to change the CFLAGS for
25976        the compilation of a single file.  Set special compiler options as
25977        follows the rule:  sourcefile + fixed suffix "_[A|C|CPP|CXX]FLAGS".
25978        For example in apps/examples/hello/Makefile:
25979        $(SRCDIR)/hello_main.c_CFLAGS = -DTEST.  From Xiang Xiao.
25980      - Configuration:  Auto-select CONFIG_BUILD_LOADABLE when either
25981        CONFIG_BUILD_KERNEL or CONFIG_BINFMT_LOADABLE is selected.  From
25982        Xiang Xiao.
25983
25984    * Libraries/Header Files:
25985
25986      - libs/libc:  Add CONFIG_MODLIB_SYSTEM_SYMTAB to generate the symbol
25987        table for dlopen/insmod.  From Xiang Xiao.
25988      - getdelim() and getline():  Add implementations of the POSIX
25989        functions getdelim() and getline().  Because of how the function is
25990        defined, getline() canot be used on platforms that use CR-LF lin
25991        terminations.  From Gregory Nutt.
25992      - alarm(), setitimer(), and getitimer():  Implement alarm(),
25993        setitimer() and getitimer() APIs.  From liuhaitao.
25994
25995    * Tools:
25996
25997      - tools/mkexport.sh:  Copy the essential build script files too and
25998        move Make.defs/gnu-elf.ld into scripts like board folder layout.
25999        From Xiang Xiao.
26000      - tools/mkexport.sh:  Should export full content for FLAT build even
26001        with CONFIG_BUILD_LOADABLE.  From Xiang Xiao.
26002      - tools/testbuild.sh:  Add an option to select the number of CPUs to
26003        use with 'make'  From Gregory Nutt.
26004      - tools/indent.sh:  Add a command line option to suppress reformatting
26005        of comments.  This is useful when comments are already correct
26006        and/or contain formatted data such as tables or lists.  From Gregory
26007        Nutt.
26008      - tools/nxstyle.c:  Add detection of carriage returns.  Improve
26009        reporting of TABs.  From Gregory Nutt.
26010      - tools/nxstyle.c:  Add logic to detect if there is a blank line
26011        following the final right brace.  From Gregory Nutt.
26012      - tools/nxstyle.c:  Eliminate false alarm errors on comments that are
26013        to the right of code when the comment terminator is on the same
26014        line as the last of the comment.  From Gregory Nutt.
26015      - tools/nxstyle.c:  Eliminate false alarms when checking for
26016        alignment of comments to the right of code.  Fix check for C++ style
26017        comments so that strings like http:// and https:// do not generate
26018        false alarms.  From Gregory Nutt.
26019      - tools/nxstyle.c:  Eliminate false positive 'Invalid character after
26020        asterisk in comment block'.  From Gregory Nutt.
26021
26022    * apps/ Build System:
26023
26024      - apps/ Build System:  Numerous changes for improvements and general
26025        clean-up of the apps/ build system.  Too many small and individual
26026        changes to list here.  Includes many improvements related to loadable
26027        modules and symbol table generation, removal of duplicated logic,
26028        renaming of binary directories, use of cygpath, etc.  From Xiang Xiao.
26029      - apps/Application.mk:  Support the ability to change the CFLAGS for
26030        the compilation of a single file.  Set special compiler options as
26031        follows the rule: sourcefile + fixed suffix "_[A|C|CPP|CXX]FLAGS"
26032        As an example in apps/examples/hello/Makefile:
26033        $(SRCDIR)/hello_main.c_CFLAGS = -DTEST
26034        From Xiang Xiao.
26035      - apps/Application.mk and main.c files:  Change builtin's entry point
26036        from main to xxx_main by macro expansion.  This change make the
26037        entry point fully compliant with POSIX/ANSI standard.  From Xiang
26038        Xiao.
26039
26040    * Examples/Tests: apps/examples:
26041
26042      - apps/examples/audio_rttl:  Add a simple RTTL player demo that is
26043        able to play tunes according to an RTTL song.  From Alin Jerpelea.
26044      - apps/examples/bmi160:  Add bmi160 example app.  This app will read
26045        the BM160 data and list it on the NSH console.  From Alin Jerpelea.
26046      - apps/examples/charger:  Simple charger example that will display on
26047        the console voltage and current values.  From Alin Jerpelea.
26048      - apps/examples/netlink_route:  Add test/example of NETLINK_ROUTE
26049        'get' operations.  From Gregory Nutt.
26050
26051    * NuttShell:  apps/nshlib:
26052
26053      - apps/nshlib/: Add rptun cmd for boot remote core.  From ligd.
26054      - apps.nshlib/:  Add a -t option to the arp command which will enable
26055        printing the entire ARP table.  From Gregory Nutt.
26056      - apps/nshlib/:  Add new NSH command, 'pmconfig'.  From ligd.
26057
26058    * System Utilities:  apps/system:
26059
26060      - apps/system/cle:  Add basic color support to the CLE editor.
26061        From Dave Marples.
26062      - apps/system/i2c:  While many I2C slave devices have multiple
26063        indexed registers, some have only one register and it's not indexed.
26064        For example, the I2C bus switch TCA9548A has only a Control
26065        Register, attempting to index to "Reg[0]" alters its contents to
26066        0x00 disabling all subordinate buses.  This change fixes that
26067        problem by simply trying to read something/anything from the slave.
26068        This also helps coax out slaves with register files that start from
26069        a higher index, i.e. the AT24CS0x, FLASH chips with a UUID that
26070        appears as a 2nd I2C slave at (address+8), report their serial
26071        number at Reg[80]-Reg[8F] and will NAK a read of Reg[0].  Modified
26072        get/set to prevent write of reg index if not specified.
26073      - apps/system/i2c:  Added a 'dump' command to issue a single
26074        transaction to retrieve multiple bytes from an I2C slave and
26075        register/offset.  From David Alessio.
26076      - apps/system/spi:  Add options to specify devtype, id for chip
26077        select.  From David S. Alessio.
26078      - apps/system/symtab:  Remove system/symtab since the same
26079        functionality exist in nuttx now.  From Gregory Nutt.
26080      - apps/system/usrsock_rpmsg:  Add rpmsg based usrsock implementation.
26081        From Jianli Dong.
26082
26083    * Network Utilities: apps/netutils:
26084
26085      - apps/netutils/cjson/:  Update default version to 1.7.12. Previous
26086        releases raise compilation warnings about redefined true/false.
26087        From raiden00pl.
26088      - apps/netutils/netlib/:  Add a function to read the entire ARP table
26089        using NETLINK_ROUTE protocol.  From Gregory Nutt.
26090      - apps/netutils/netlib/:  Add support for retrieving a snapshot of the
26091        IPv6 neighbor table using Netlink sockets.  From Gregory Nutt.
26092      - apps/netutils/netlib/:  Add a utility function that will return a
26093        list of all network devices in the UP state.  From Gregory Nutt.
26094      - apps/netutils/netlib/:  Add function to retrieve routing tables
26095        using Netlink.  From Gregory Nutt.
26096
26097Bugfixes:
26098---------
26099Only the most critical bugfixes are listed here (see the ChangeLog for a
26100more complete list of bugfixes and for additional, more detailed bugfix
26101information):
26102
26103    * Core OS:
26104
26105      - Signals:  Fix undefined reference from sig_default.c to
26106        sched_suspend() if CONFIG_SIG_SIGSTOP_ACTION is not defined.  From
26107        raiden00pl.
26108      - waitpid():  Fix a NULL pointer dereference on race without
26109        DEBUG_ASSERT.  From David Alessio.
26110      - WD Timers:  Back out a kludge-workaround in wd_start for an SDCC
26111        compiler problem fix back in Feb 2017.  That workaround now appears
26112        to conflict with newer GCC versions using (unsupported) warning
26113        options and SDCC no longer needs the work-around.  From Gregory
26114        Nutt.
26115      - clock_systimespec():  Fix early timespec overflow if using 32 bit
26116        system timer.  From Jens Gr�f.
26117      - Spinlocks:  spin_trylock handle memory barrier and instrumentation
26118        correctly.  From Xiang Xiao.
26119      - Power Management:  Fix a problem where a timer cannot start when it
26120        encounters a very small pmtick.  From ligd.
26121      - boardctl(BOARDIOC_MKRD):  This change corrects a problem with NSH:
26122        NSH was calling the OS internal function ramdisk_register() in
26123        violation of the portable POSIX interface.  This change solves the
26124        problem by introducing a new boardctl() function BOARDIOC_MKRD
26125        which moves the RAM disk creation into the OS.  From Gregory Nutt.
26126      - boardctl(BOARDIOC_ROMDISK):  Add support for the new
26127        BOARDIOC_ROMDISK command.  This allows applications to create ROMFS
26128        block drivers without illegal direct calls to romdisk_register.
26129
26130    * File System/Block and MTD Drivers:
26131
26132      - SmartFS:  Fix O_CREAT without O_TRUNC truncating existing file.
26133        Also nothing in POSIX says that O_APPEND should prevent O_TRUNC.
26134        From Juha Niskanen.
26135      - SmartFS:  Honor O_APPEND on writes.  Also document pwrite() bug/
26136        limitation.  From Juha Niskanen.
26137      - GD25:  spi_devid argument was not used in initialization.  GD25
26138        driver was always using priv->spi_devid initialized to zero by
26139        kmm_zalloc(). This change initializes it from the supplied function
26140        argument.  From Juha Niskanen.
26141      - MMC/SD:  Set wrbusy after success of all the operations.  Any
26142        failure could leave wrbusy set when it should not be if the
26143        operation failed.  From David Sidrane.
26144      - MMC/SD:  Enter a removed card state On a failure.  If we fail to
26145        read cardstatus in mmcsd_transferready consider this a hard error
26146        and set the card to removed.  From David Sidrane.
26147      - MMC/SD (SDIO): Align DMA buffer for MBURST size.  From David S.
26148        Alessio.
26149
26150    * Networking/Network Drivers:
26151
26152      - Socket close():  Fixed problems noted by Bernd Walter:  Eliminate an
26153        incomplete test when a disconnection event happens. When a
26154        disconnection event occurs, the close logic MUST always terminate
26155        the wait.  The conditional test was not incorrect, however, it
26156        lacked 'else' logic and would simply ignore that disconnection event
26157        in some cases.  That is bad because there may not be another
26158        disconnection event and that can lead to hangs (or at least very,
26159        very long delays).  From Gregory Nutt.
26160      - ICMPv6:  Dispatch ICMP_POLL to device's callback list too since
26161        icmpv6_neighbor stills append the callback into this list.  From
26162        Gregory Nutt.
26163      - ICMPv6:  Decouple autoconfig and ICMPv6 socket to avoid an invalid
26164        Kconfig combination.  From Xiang Xiao.
26165      - ICMPv6:  cmpv6_autoconfig() error handling must not overwrite
26166        overwrite the error code.  From Xiang Xiao.
26167      - TCP/UDP:  Fix a chicken and egg problem by eliminating the check of
26168        the arp/neighbor tables before packet transmission:
26169        1. For buffered TCP/UDP case, if CONFIG_NET_ARP_SEND /
26170           CONFIG_NET_ARP_IPIN / CONFIG_NET_ICMPv6_NEIGHBOR isn't enabled
26171           and the table doesn't contain the Ethernet address for the
26172           destination IP address yet, then the logic will skip the real
26173           transmission and then ARP/neighbor logic can't steal the final
26174           buffer to generate the ARP/ICMPV6 packet.
26175        2. For all other case, the TCP layer or user program should already
26176           contain the retransmit logic, the check is redundant and may
26177           generate many duplicated packets if ARP/ICMPV6 response is too
26178           slow because the cursor stop forward.  If user is still concerned
26179           about the very first packet lost, he could fix the issue by
26180           enabling CONFIG_NET_ARP_SEND / CONFIG_NET_ICMPv6_NEIGHBOR.
26181        From Xiang Xiao.
26182      - UDP sendto():  Add a check for the device that is polling.  In the
26183        multiple network device case, this check is necessary to prevent
26184        sending the UDP packet to the wrong device.  From Gregory Nutt.
26185
26186    * Wireless/Wireless Drivers:
26187
26188      - MRF24J40:  Correct erroneous isolation of address mode field and
26189        subsequent bad comparison.  From Gregory Nutt.
26190      - GS2200M:  Add SPI_SELECT() to _read/write_data() in gs2200m.c
26191      - BCM43xx Wireless:  In the SDIO interface, the behavior of the DMA
26192        setup differs, depending on the hardware capability
26193        SDIO_CAPS_DMABEFOREWRITE.  If this capability is set, then the DMA
26194        setup much be done before the transfer setup.  Dave Marples
26195        modified this file for the i.MXRT USDHC which does have the
26196        SDIO_CAPS_DMABEFOREWRITE.  Xiao Xiang reports that this change
26197        breaks the Wifi on the Photon which does not report the
26198        SDIO_CAPS_DMABEFOREWRITE and suggests reverting the change.  In
26199        reality both changes are correct but must be conditioned on the
26200        DMA capability of the underlying SDIO device.  From Gregory Nutt.
26201
26202    * Common Drivers:
26203
26204      - Various drivers (Cloned logic):  On error, memory was freed, but
26205        the error was not returned.  It just continued as though no error
26206        happened.  From Petro Karashchenko.
26207      - Serial:  Fix data corruption when outputting data in SMP mode  From
26208        Masayuki Ishikawa.
26209      - Serial:  serial_io.c used signal numbers, but did not include
26210        signal.h.  This has no problems but missing signal definitions have
26211        been seen in certain cases.  From David Sidrane.
26212      - Serial DMA:  Avoid uart_xmitchars_done() move the tail bigger then
26213        head.  If ioctl(TCOFLUSH) occurs between uart_xmitchars_dma() and
26214        uart_xmitchars_done(), TCOFLUSH will reset xmit buffer, then
26215        uart_xmitchars_done() will move the 'tail' ahead of 'head', then
26216        sends lots of wrong data.  From ligd.
26217      - mkfifo():  mkfifo() should return -1 and set errno on failure  From
26218        raiden00pl.
26219      - RAMLog: Fix ramlog readers never awakened up when using ramlog as
26220        syslog or console.  We also make an attempt to avoid the thundering
26221        herd problem if there are multiple readers/pollers. This change also
26222        removes forcing CONFIG_RAMLOG_CRLF in nuttx/syslog/ramlog.h as there
26223        is no point of wasting precious RAM for useless characters.  From
26224        Juha Niskanen.
26225      - USB CDC/ACM:  Fix memory leak of RX failsafe timer.  From Juha
26226        Niskanen.
26227      - USB HID Keyboard device:  Fix keyboard debounce algorithm used when
26228        CONFIG_HIDKBD_NODEBOUNCE is undefined.  From Jeff Theusch.
26229      - USB HID Keyboard:  Change default for CONFIG_HIDKBD_POLLUSEC per
26230        recommendation of Jeff Theusch.  From Gregory Nutt.
26231      - VL53L1X IOCTLs:  IOCTL commands for the VL53L1X did not follow the
26232        sequence.  Noted by Daniel Pereira de Carvalho.  From Gregory Nutt.
26233      - syslog:  syslog_force does not set errno so do not test against it.
26234        From Juha Niskanen.
26235      - syslog:  Fix assertion that assumes re-opened syslog file is the
26236        same.  Logic in syslog_file_channel() is calling syslog_initialize()
26237        for the default syslog device as a recovery action after failed
26238        syslog_dev_initialize().  From Juha Niskanen.
26239
26240    * Simulator:
26241
26242      - Simulator HostFS:  Skip '.' and '..' in readdir'  From Xiang Xiao.
26243      - Simulator HostFS:  Fix warning: 'mapflags' may be used uninitialized
26244        in this function.  From Xiang Xiao.
26245      - Simulator Tickless:  Correct the calculation of the Tickless timer
26246        period.  Fix some missing initialization of globals and missing
26247        return values.  From Matias N.
26248      - Simulator:  Add -m32 to HOSTLDFLAGS if enable CONFIG_SIM_M32.  From
26249        Xiang Xiao.
26250      - Simulator PM:  Fixes compilation for sim target when enabling power
26251        management.  From Matias N.
26252      - Simulator Build:  Fixes missing recursion into sim board directory
26253        for dependency generation.  From Matias N.
26254      - Simulator SIMUART:  Remove CONFIG_SIM_UART_DATAPOST for arch/sim.
26255        It's very dangerous to call NuttX API from simuart_thread.  From
26256        Xiang Xiao.
26257
26258    * ARMv7-A
26259
26260      - ARMv7-A:  Apply Masayuki Ishakawa's change for ARMv7-M to this SMP
26261        architecture as well.  From Gregory Nutt.
26262
26263    * ARMv7-M
26264
26265      - ARMv7-M:  Fix a deadlock in up_sigdeliver() in SMP mode.  In
26266        previous implementation, up_disable_irq() was called before
26267        recovering local context. However, I noticed a deadlock happens in
26268        the following situation. For example, if up_sigdevliver() is in
26269        progress on CPU0 and CPU1 has called up_cpu_paused to CPU0, hence
26270        g_cpu_irqlock has been locked by CPU1, in this case, we would see a
26271        deadlock in later call of enter_critical_section() to restore
26272        irqcount.  To avoid this situation, we need to call
26273        enter_critical_section() to break the deadlock.  From Masayuki
26274        Ishikawa.
26275
26276    * Atmel SAM3/4 Boards:
26277
26278      - SAM4CM:  Fix cpustart() implementation.  In Cortex-M, offset 0 in
26279        vector table stores initial stack pointer and offset 4 stores reset
26280        vector.  From Masayuki Ishikawa.
26281
26282    * Atmel SAMA5Dx Boards:
26283
26284      - SAMA5D4-EK:  Fix bad conditional compilation for
26285        board_app_initialize().  Should depend only on CONFIG_LIB_BOARDCTL,
26286        CONFIG_BUILD_KERNEL is irrelevant.  From Gregory Nutt.
26287
26288    * Microchip i.MXRT:
26289
26290      - i.MXRT WFI:  WFI needs to be disabled on i.MXRT.  We found the
26291        reason:  The imxrt1050 is configured to use SYSTICK for the kernel
26292        timer, but SYSTICK cannot wake up the MCU from low-power modes.
26293        Disable low-power modes on this MCU until we have support for an
26294        alternative timer.  Earlier versions of the board (EVK, not EVKB),
26295        had A0 silicon which by default did not enter low-power mode on a
26296        WFI.  With this change in place together with the previous one my
26297        system is stable, just using more power than it should.  From Dave
26298        Marples.
26299
26300    * Microchip i.MXRT Drivers:
26301
26302      - i.MXRT Serial:  TC (Transmission complete) and TDRE (TX Buffer
26303        Empty) were transposed in imxrt_serial.c.  The end result was that
26304        for unoptimized code everything worked fine, but optimized code got
26305        itself into a real mess and continually fired interrupts.  From Dave
26306        Marples.
26307
26308    * Microchip i.MXRT Boards:
26309
26310      - IMXRT1020-EVK:  Make naming of the LED consistent.  In most places
26311        it is referred to as LED1.  In board.h it is referred to as
26312        USERLED1.  The i.MXRT1020-EVK hardware user guide (HUG) uses the
26313        name USERLED.  This command makes all names internally consistent
26314        and consistent with the HUG.  Noted by Alin Jerpelea.  From Gregory
26315        Nutt.
26316
26317    * NXP/Freescale Kinetis Boards:
26318
26319      - TWR-K60N512:  Suppress errors related to card detect GPIO
26320        configuration if SDHC support is not enabled.  From Gregory Nutt.
26321
26322    * NXP LPC17xx/40xx Drivers:
26323
26324      - lpc17xx/40xx I2C:  Respect the I2C_M_NOSTART flag.  Sending a
26325        restart condition when not requested will break other drivers that
26326        depend on this behavior.  From Augusto Fraga Giachero.
26327      - LPC17xx/40xx Ethernet: Use usleep() instead of up_delay() for large
26328        wait times.  From Augusto Fraga Giachero.
26329
26330    * NXP LPC54xx:
26331
26332      - LPC54 Clocking:  Fix PLL settings.  For the lpc54628 Rev. E board
26333        the PLL was not configured properly and the board would not boot
26334        correctly. I checked the startup files from the official IDE and
26335        inspected the assembly instructions for the libraries used.  From
26336        Andrei Stefanescu.
26337
26338    * NXP i.MXRT Boards:
26339
26340      - IMXRT1060-EVK:  Fix FT5X06 CTRSTn pin configuration, increased
26341        number of pollwaiters for the FT5X06, tuned resolution during
26342        pointer dragging.  From Fabio Balzano.
26343
26344    * On Semiconductor Boards:
26345
26346      - LC823450:  Fix cpustart() implementation.  In Cortex-M, offset 0 in
26347        vector table stores initial stack pointer and offset 4 stores reset
26348        vector.  From Masayuki Ishikawa.
26349      - LC823450-XGEVK:  Fix build error for posix_spawn.  From Masayuki
26350        Ishikawa.
26351
26352    * Sony CXD56xx:
26353
26354      - CXD56xx Assertions:  Replace some assertions with error return
26355        values.  From Alin Jerpelea.
26356      - CXD56xx Interrupts:  Fix hang-up when error interrupt occurs.  From
26357        Alin Jerpelea.
26358      - CXD56xx Pin Configuration:  PIN_AP_CLK is used as a port selector of
26359        SDIO expander on the extension board, and is set output low in
26360        initialization.  Therefore, this pin cannot be used by the other
26361        board.  To avoid this restriction, remove this initial operation
26362        because this pin is pulled down by default on the extension board.
26363        From Alin Jerpelea.
26364      - CXD56xx:  Remove duplicate NVIC_SYSH redefinitions.  The NVIC_SYSH
26365        is already defined in nvicpri.h  From Alin Jerpelea.
26366
26367    * Sony CXD56xx Drivers:
26368
26369      - CXD56xx SDHCI:  Fix initial value of semaphore in sdhci driver.
26370        From Alin Jerpelea.
26371
26372    * Sony CXD56xx Boards:
26373
26374      - Spresense:  The SD Card TXS02612 port expander is hosted on the
26375        Extension board and should not be enabled if the extension board is
26376        not present.  From Alin Jerpelea.
26377
26378    * STMicro STM32:
26379
26380      - STM32 F4 Pin Multiplex:  Ethernet pin ETH_RMII_REF_CLK is an input.
26381        From Gregory Nutt.
26382      - STM32 H7 ADC:  Fix typos in ADC register definitions.  From Markus
26383        Bernet.
26384      - STM32 H7:  Heap allocation, SRAM and SRAM1 are not continuous  From
26385        David Sidrane.
26386      - STM32 H7 CRC:  Add the CRC option in KConfig.  From Eduard Niesner.
26387      - STM32 H7 RCC: Add PLL3 Support and only enable PLLs if used.  From
26388        David Sidrane.
26389      - STM32 L4x6xx RCC:  This fix is needed if HSI clock is selected.
26390        Otherwise when waking up from STOP mode, the MSI clock is selected
26391        instead of the HSI clock.  From Matias N.
26392
26393    * STMicro STM32 Drivers:
26394
26395      - STM32 USB Host:  There was no relationship between
26396        CONFIG_STM32_USBHOST and CONFIG_USBHOST, yet they they were used
26397        interchangeably.  This means that can (and did) get out of synch
26398        causing link time failures.  This change adds logic to select
26399        CONFIG_USBHOST when CONFIG_STM32_USBHOST is selected, keeping the
26400        two settings synchronized.  Furthermore, since CONFIG_STM32_USBHOST
26401        is the authoritative setting, all occurrences of CONFIG_USBHOST were
26402        replaced with CONFIG_STM32_USBHOST.  From Gregory Nutt.
26403      - STM32 SDIO:  SDIO Fix system hang on card eject.  From David Sidrane.
26404      - STM32 F7 Ethernet:  Large Ethernet packet can leads network halt.
26405        From Bazooka Joe.
26406      - STM32F7 OTGHOST:  OTGFS_EPTYPE_INTR should be OTG_EPTYPE_INTR.  From
26407        Gregory Nutt.
26408      - STM32 F7 SDMMC: SDMMC Fix system hang on card eject.  From David
26409        Sidrane.
26410      - STM32 L4 Firewall:  Correct a test to determine if an address lies
26411        in FLASH or not.  Improper mask caused test to always fail.  From
26412        Gregory Nutt.
26413      - STM32 H7 Ethernet:  Bazooka Joe's fix to the STM32 F7 Ethernet
26414        driver should be applied to the H7 as well.  The other STM32
26415        Ethernet drivers already have the change.  From Gregory Nutt.
26416      - STM32 H7 Ethernet:  Fix ETH_MACMDIOAR_CR_MASK bit mask.  From Markus
26417        Bernet.
26418      - STM32 H7 SDMMC: SDMMC Fix system hang on card eject.  From Gregory
26419        Nutt.
26420      - STM32 H7 FLASH:  Flash driver BUG fixes.  From David Sidrane.
26421      - STM32 H7 TIM:  Correct register bit definitions and alternate
26422        functions.  Fix other copy-paste definitions.  From Daniel Pereira
26423        Volpato.
26424      - STM32 L4 SDMMC:  SDMMC Fix system hang on card eject.  From David
26425        Sidrane.
26426
26427    * STMicro STM32 Boards:
26428
26429      - STM32F4-Discovery:  Fix build error for posix_spawn.  From Masayuki
26430        Ishikawa.
26431
26432    * TI Tiva:
26433
26434      - TIVA IRQs:  Fix wrong IRQ vector number.  From Nathan Hartman.
26435      - Tiva FLASH:  Fix several mistakes in tiva_write(). (1) Fix wrong
26436        use of && when & was intended. (2) Add compile- time warning
26437        directive because according to this function's interface, it is
26438        supposed to support unaligned writes and/or writes of arbitrary
26439        numbers of bytes to FLASH.  However, this function does NOT support
26440        that at this time. This needs to be fixed. (3) Fix wrong
26441        preprocessor conditional.  Was written to use the 32-word write
26442        buffer only for TM4C1294NCPDT.  This buffer is available on all
26443        M4C123 and TM4C129 parts. Now conditioned upon
26444        CONFIG_ARCH_CHIP_TM4C123 or CONFIG_ARCH_CHIP_TM4C129. (4) Add
26445        comments to document the intent of the above preprocessor logic.
26446        From Nathan Hartman.
26447
26448    * Xtensa
26449
26450      - Xtensa:  Apply Masayuki Ishakawa's change for ARMv7-M to this SMP
26451        architecture as well.  From Gregory Nutt.
26452
26453    * Build System:
26454
26455      - Makefiles:  Change ${shell pwd} to $(CURDIR) since pwd doesn't exist
26456        on Windows  From Xiang Xiao.
26457      - tools/Makefile.unix:  Fix build error when issue 'make -B':  "mkdir:
26458        cannot create directory 'staging': File exists:
26459        tools/Makefile.unix:269: recipe for target 'staging' failed".  From
26460        Xiang Xiao.
26461      - All ARM linker scripts:  Preface all _ebss definitions with '. =
26462        ALIGN(4)'.  Otherwise, the following .bss section may not be aligned
26463        properly.  From Gregory Nutt.
26464      - MIPS Linker Scripts:  The PIC32M* start-up code initializes .bss by
26465        writing 16 bytes at a time in a loop.  The start (_sbss) alignment
26466        is only required to be 4 bytes since the write is done with 4 store
26467        instructions.  From Gregory Nutt.
26468      - Top-level Kconfig:  Add some protection so that you cannot select an
26469        architecture-specific header file if the architecture does not
26470        provide the header file.  From Gregory Nutt.
26471      - libc Kconfig:  Should select the NuttX float.h file automatically
26472        if the NuttX math library is selected.  From Gregory Nutt.
26473      - tools/Makefile.unix:  Make COMMON_DIR work with
26474        CONFIG_ARCH_BOARD_CUSTOM.  From Xiang Xiao.
26475      - tools/ Make fragments:  Fix the various minor issue for NUTTXLIBS /
26476        USERLIBS:  (1) Remove libcxx duplication in FlatLibs.mk and from
26477        kernel space, (2) Remove libpass1 from KernelLibs.mk since kernel
26478        build doesn't support the two pass mode, and (3) Remove FSDIR
26479        related comment since file system cannot be disabled now  From Xiang
26480        Xiao.
26481
26482    * C Library/Header Files:
26483
26484      - getcwd():  Remove stray sched_unlock().  Also fixes several typos.
26485        From Juha Niskanen.
26486      - date(), hostname():  Fix portability issue with date, hostname  From
26487        David Alessio.
26488      - libs/libxx/Kconfig: Automatically select CONFIG_CLOCK_MONOTONIC when
26489        CONFIG_LIBCXX is selected.  Removed hardcoded -DCLOCK_MONOTONIC from
26490        CFLAGS in Make.defs of several configurations.  That definition is
26491        now automatically adding this define when CONFIG_LIBCXX=y.  From
26492        Daniel Pereira Volpato.
26493      - libs/libxx/Kconfig:  CONFIG_LIBC_LOCALE is needed to build libcxx.
26494        A math library is also needed, however, there are various ways to
26495        provide a math library so CONFIG_LIBM is not now set.  From Matias
26496        N.
26497      - libs/libc/symtab:  Move symbol table generation into libc since the
26498        address in symbol table should come from userspace binary for
26499        PROTECTED build, not kernel binary.  From Xiang Xiao.
26500      - libs/libc/ Kconfig files:  Disable EXECFUNCS_HAVE_SYMTAB for kernel
26501        build.  The symbol table doesn't have any meaning for kernel build
26502        since all executable binary should be self contained.  From Xiang
26503        Xiao.
26504
26505      - include/sys/time.h:  According to earlier standards, usage of
26506        select(), FD_CLR, FD_ISSET, FD_SET and FD_ZERO just need include
26507        headers: sys/time.h, sys/types.h and unistd.h.  So include
26508        sys/select.h in time.h to compatible with it.  Or mbedtls library
26509        would build break in calling select() and FD_* related functions.
26510        From liuhaitao.
26511
26512    * Tools:
26513
26514      - tools/configure.sh and configure.c:  Do not remove CONFIG_SIM_M32 if
26515        host is specified.  From anchao.
26516      - tools/Directories.mk:  Remove FSDIRS/NOFSDIRS related logic/comments
26517        since the file system can no longer be disabled now.  From Xiang
26518        Xiao.
26519      - tools/Makefile.host:  Add missing binaries from clean target.  From
26520        Gregory Nutt.
26521      - tools/mkromfsimg.sh:  Use sed to add const to ROMFS declarations so
26522        that they lie in FLASH not RAM.  From Bernd Walter.
26523      - tools/nxstyle.c:  Correct detection of missing blank line following
26524        a block comment.  From Gregory Nutt.
26525
26526    * apps/ Build System:
26527
26528      - Makefiles: Change ${shell pwd} to $(CURDIR) since pwd doesn't exist
26529        on Windows  From Xiang Xiao.
26530      - Makefile: Fix warning: jobserver unavailable: using -j1.  Add '+' to
26531        parent make rule.  From Xiang Xiao.
26532      - apps/Application.mk:  Correct an error in PATH usage.  Use of
26533        toolchain path causes make errors.  From Gregory Nutt.
26534
26535    * apps/tools:
26536
26537      - tools/mkromfsimg.sh:  Use sed to add const to ROMFS declarations so
26538        that they like in FLASH not RAM.  From Bernd Walter.
26539
26540    * Examples: apps/examples:
26541
26542      - apps/examples/mount:  Replace illegal call to ramdisk_register()
26543        with a call to boardctl(BOARDIOC_MKRD).  From Gregory Nutt.
26544      - apps/examples/nxlines/:  Correct nxlines example program name.  From
26545        Gregory Nutt.
26546      - apps/examples/nxterm/:  PROGNAME, PRIORITY, STACKSIZE variable
26547        names did not match declarations in Kconfig file.  From Gregory
26548        Nutt.
26549      - apps/examples/romfs:  Remove romfs_testdir.h.  That file is
26550        regenerated whenever the example is built and so should not be in
26551        the repository.  From Gregory Nutt.
26552
26553    * Testing: apps/testing:
26554
26555      - apps/testing/cxxtest/:  Fix typo error in testing/cxxtest.  From
26556        Xiang Xiao.
26557      - apps/testing/unity/:  Fix the error when creating Make.dep.  From
26558        raiden00pl.
26559
26560    * NSH Library: apps/nshlib:
26561
26562      - apps/nshlib:  Remove the inappropriate NSH_BUILTIN_APPS coupling.
26563        From Xiang Xiao.
26564      - apps/nshlib/:  The NSH mkrd command was in violation of the NuttX
26565        portable POSIX interface.  It was calling the internal OS function
26566        ramdisk_register() directly.  Not only is this a violation of the
26567        interface specification, but also prevents use of mkrd in PROTECTED
26568        or KERNEL builds. With this change, the NSH mkrd command now uses
26569        the BOARDIOC_MKRD boardctl() command.  This command is available in
26570        all build modes.  The effect of this change is to move the heart of
26571        the NSH mkrd command into to OS and provide user-space access via
26572        boardctl().  From Gregory Nutt.
26573      - apps/nshlib/:  Replace direct calls to romdisk_register() with
26574        indirect calls via boardioctl(BOARDIOC_ROMDISK).  This not only
26575        fixes the violation of the portable POSIX OS interface, but also
26576        permits use of ROM disks in PROTECTED and KERNEL modes.  From
26577        Gregory Nutt.
26578      - apps/nshlib/:  Add missing NSH_DISABLE_DMESG from Kconfig.  From
26579        Juha Niskanen.
26580
26581    * System Utilities: apps/system:
26582
26583      - apps/system/cle/:  This change modifies the cle to use the streams
26584        file interface more consistently and has removed the observed race
26585        conditions.  It was previously a mix of streams and fileio.  It
26586        also simplifies the VT100 cursor position handling.  From Dave
26587        Marples.
26588      - apps/system/composite:  Remove usb serial loopback test code we can
26589        achieve the same effect by cat or dd command.  From Xiang Xiao.
26590      - apps/system/cu/: (1) Fix early exit.  getc(stdin) can return 0 the
26591        first time around.  (2) Set optind to zero.  getopt() was being
26592        left in a bad state, causing parsing errors on second use.  (3) Fix
26593        priority of cu_listen().  (4) Add suppor for -h.  From David
26594        Alessio.
26595      - apps/system/lzf/: Check the protection by CONFIG_SYSTEM_LZF !=
26596        CONFIG_m (not elf binary) instead of CONFIG_KERNEL_BUILD.  From
26597        Xiang Xiao.
26598      - apps/system/spi:  Correctly parse exch txdata args, if any. Should
26599        always call the board's deselect  From David Alessio.
26600
26601    * File System Utilities: apps/fsutils:
26602
26603      - apps/fsutils/passwd/:  Use named semaphore by checking
26604        CONFIG_FS_NAMED_SEMAPHORES instead of CONFIG_KERNEL_BUILD.  From
26605        Xiang Xiao.
26606
26607    * Network Utilities: apps/netutils:
26608
26609      - apps/netutils/cjson/Makefile:  Fix the error when creating
26610        Make.dep.  From raiden00pl.
26611
26612    * Graphics: apps/graphics:
26613
26614      - apps/graphics/twm4nx/:  Fix a recently introduced error that broke
26615        all Twm4Nx configurations.  From Gregory Nutt.
26616      - apps/graphics/traveler/:  Replace direct calls to romdisk_register()
26617        with indirect calls via boardioctl(BOARDIOC_ROMDISK).  This not only
26618        fixes the violation of the portable POSIX OS interface, but also
26619        permits use of ROM disks in PROTECTED and KERNEL modes.  From
26620        Gregory Nutt.
26621