0.1.0 2007-03-09 Gregory Nutt * Initial Release * Support for Linux user mode simulation and TI TMS320C5471 (Arm7) provided 0.1.1 2007-03-14 Gregory Nutt * Corrected an error in interrupt level context switching for C5471 * Added fgets() and gets() logic; verified c5471 console read. * Corrected error in reading from the C5471 serial port: Improper use of semaphore can cause deadlock. * Fixed an error in the memory cleanup: The idle task cannot take sempahores (because it must always be ready to run). * Tasks can now accept a configurable maximum number of input parameters (argc) * _task_init() was divided into separate functions that require fewer parameters. This was necessary to keep the stack usage down for the 8051/2 (which has only 256 bytes of stack). * Attempts to use C5471 console from interrupt handlers can cause errors. Added a special path for this case. * Refuse calls to sem_wait and sem_trywait from interrupt handlers. This was happening because interrupt handlers were calling printf-like functions. * Added strtok() and strtok_r() * Added a simple shell called nsh (see examples/nsh). * Platform support for 8052 is complete but not stable when the timer interrupt is enabled. Seems to be an issue when SP enters indirect address space. * Documentation updates 0.1.2 2007-03-19 Gregory Nutt * Add dirent.h, opendir(), readdir(), closedir(), etc. * Add strerror() * Added 'ls' command to nsh * Added C5471 watchdog driver * Fixed another bug where free() is called from IDLE task. Can't do this; the caller must be able to wait for access to memory. * Fixed bugs associated with debug output: Cannot do dbg() in middle of context switch logic. because it may require use of semaphores and cause additional context switches. lldbg() is safe. * Interrupt must be disabled throughout all context switches. * Separated C5471 serial driver; a shareable part is in drivers/. ; the C5471 specific part is in arch/C5471. serial.h defines the interface. * Fixed mq_receive() and mq_send(): bad memcpy() * Fixed C5471 signal deliver logic: use of dbg() and other actions by use signal handler can alter errno. need to protect errno during signal handling. * Fixed uninitialized variable in filesystem that could cause various problems * Added a test for roundrobin scheduler. 0.2.1 2007-03-22 Gregory Nutt * Fix error in handing signed decimal in vsprintf(). * Major restructuring of header files to get closer to POSIX compliance. * Eliminate compilation warnings that crept into recent check-ins * Add kill() * Added support for POSIX timers * Some Documentation updates * Added support for the Neuros OSD / DM320 0.2.2 2007-03-26 Gregory Nutt * Created the configs/ directory; separated board configuration from processor architecture logic * Add memory leak detection test to examples/ostest * Corrected memory leak in OS pthread join logic * Corrected memory leaks in examples/ostest due to failures to join or detach from pthreads. * Added pthread_once(), pthread_kill(), pthread_sigmask() * Added pthread_barrierattr_*() APIs * Added pthread_barrier_init(), pthread_barrier_destroy(), and pthread_barrier_wait(); * Added pthread barrier test * Added protection so that errno cannot be modified from interrupt handling. * sched_setparam(), sched_setscheduler() now correctly set errno; pthread_setscheduler() now returns the correct errno. * Added pthread_setschedprio(). * Added directories to hold board-specific header files * Added directories to hold board-specific drivers 0.2.3 2007-03-29 Gregory Nutt * mq_receive and mq_send now return errno's appropriately * mq_receive and mq_send are now correctly awakened by signals. * Fixed an unmatched sched_lock/unlock pair in task_delete(). * sched_lock must be called in _exit() because operation of task_delete() can cause pending tasks to be merged and a context switch to occur. * Added mq_timedreceive() and mq_timedsend() * signal mask is now inherited by both child tasks and threads. * Improved sharebility of stdout among pthreads (only). Nothing was broken, but by moving the mutual exclusion logic to a higher level, the printf output is more readable. * Fixed a bug in file system cleanup: A list was being deleted before the buffers contained in the list. * Fixed a bug in the wait-for-message-queue-not-empty logic. * Added a test of timed mqueue operations; detected and corrected some mqueue errors. * Identified and corrected a race condition associated with pthread_join. In the failure condition, memory was being deallocated while still in use. 0.2.4 2007-04-28 Gregory Nutt * Verified c5471 build under Cygwin on WinXP * Makesystem changes to better support different SoCs. * Made arch/c5471/include and arch/dm320/include identical in preparation for merging into arch/arm * Logic from arch/c5471 and arch/dm320 combined into arch/arm. arch/c5471 and arch/dm320 are deprecated and will be removed when the new c5471 and dm320 logic is verified. 0.2.5 2007-05-19 Gregory Nutt * Corrected some build/configuration issues introduced with the last release. * Added support for the NXP 214x processor on the mcu123.com lpc214x development board (untested) * Added support for block devices. * Simulated target now exports a VFAT filesystem * Begin support for VFAT filesystem (missing functionality) * Added mount() and umount() * Fix bug in memcmp return value * Fix errors in timeslice calculation (several places) * Added missing irqrestore() in timer_deleteall(). * close() was not closing the underlying device. * Added fsync() * Added strspn() and strcspn() 0.2.6 2007-05-26 Gregory Nutt * Added unlink(), mkdir(), rmdir(), and rename() * Fixed several serious FAT errors with oflags handling (&& instead of &) * Added FAT support for unlink(), mkdir(), rmdir(), and rename * Added FAT support for opendir(), closedir(), readdir(), seekdir(), telldir(), rewindir(). * Fixed ARM compilation errors introduced in 0.2.5 (that is what I get for only testing on the simulation). 0.2.7 2007-06-09 Gregory Nutt * Added stat() to fs layer and to FAT * Fixed reference counting errors associated with mounted filesystems * Added fat_getattrib() and fat_setattrib() * Added statfs() to fs layer and to FAT * Correct file name extension in tools/zipme.sh * Fix error in dependencies in 8051/2 Makefile * sched/Makefile: Don't build sleep() or usleep() if signals are disabled * sched/sched_setparam.c: Remove redundant disabling of interrupts * sched/usleep.c: Fixed nsec calculation * lib/lib_strcspn.c: Function incorrectly named strspn(). * examples/ostest/main.c: Errors in SDCC version of a memcpy() call * examples/ostest/sighand.c: Don't call fflush() if streams are disabled * include/limits.h, include/time.h, sched/clock_internal.h: A support for using selectable system timer frequency. * Fixed error in mountpoint related conditional compilation introduced in 0.2.5 * Restructured some Makefiles to better handle enabling and disabling NuttX features without having so much conditional compilation in the source files. * tools/mkconfig.c: No longer depends on asprintf() and _GNU_SOURCE and so should now build in non-GNU, non-GLIBC environments. * include/nuttx/compiler.h: Fix for using SDCC with the Z80. * include/assert.h & arch/pjrc-8051/src/up_assert.c: SDCC does support __FILE__and __LINE__ (not tested) * examples/ostest/barrier.c: Don't call usleep() when signals are disabled. 0.2.8 2007-07-02 Gregory Nutt * tools/Makefile.mkconfig: Under Cygwin, executable has a different name * tools/mkdeps.sh & arch/arm/src/Makefile: Corrected a problem makeing dependencies * tools/zipme.sh: Force directory name to be nuttx-xx.yy.zz * fs/fs_opendir.c: Correct errors in semaphore usage that can cause deadlock. * lib/lib_getopt.c: Added getopt() support * examples/nsh/: NSH now supports cat, mount, umount, and mkdir. ls supports -l -s, and -R * Added basic OS support to manage environment variables: environment storage, cloning on task creation, sharing on pthread creation, destruction on thread/task exit. * Add environment variables APIs: environ, getenv, putenv, clearenv, setenv, unsetenv * Correct an error in realloc() when the block is extended "down" in memory. In this case, the old memory contents need to be copied to the new location and an allocated bit was not being set. * examples/ostest/: Added an environment variable test. * examples/nsh/: Break into several files. * lib/: Added strrchr, basename, dirname * examples/nsh/: Add cp, rm, rmdir, set, unset commands. echo will now print environment variables. 0.3.0 2007-11-06 Gregory Nutt * Imported uIP into the tree (see http://www.sics.se/~adam/uip/index.php/Main_Page) * Adding socket(), bind(), connect() * Added snprintf() * Added send() and sendto(); integrate write() and close() with socket descriptors. * Added recv() and recvfrom(). * Added getsockopt() and setsockopt() * Documentation updated to address socket interfaces. * Implemented receive timeouts via setsockopt(SO_RCVTIMEO). * Provide support for multiple network devices * Implement socket ioctl() calls to set addresses * Added listen() and accept() * Added DM90x0 Ethernet driver * ARP timer is now built into the network layer * Basic client functionality verified: TCP socket(), bind(), connect(), recv(), send(). 0.3.1 2007-11-19 Gregory Nutt * Separated net/uip/uip.c into several functions in several files. * Corrected a TCP problem where packets were dropped because there was no recv() in place but the packet was being ACKed. There are still TCP recv buffering issues, but this is part of a larger buffering issue. * Basic server functionality verified: TCP listen(), accept() * Fix DM90x0 driver problem that caused TX overruns * Add strncmp() * Added TCP/IP read-ahead buffer to minimize failed ACKs and packet loss. 0.3.2 2007-11-23 Gregory Nutt * Add strcat() and strncat() * Integrated uIP micro webserver * Corrected a serious bug in TCP queue management * Fix leak in socket close logic * Add TX notification to driver so that it can respond faster to the availability of TX data. * Moved urgent data info into device structure. * TCP and ICMP protocols can now be disabled. * Added UDP test in examples/udp * Verified/debugged UDP socket(), bind(), sendto() and recvfrom() logic using examples/udp * recvfrom() and accept() now correctly return the remote address. * Fixed computation error in ntohl(). 0.3.3 2007-11-28 Gregory Nutt * Removed unused uIP files * sched/, mm/, and net/ subsystem debug can not be selectively enabled/disabled * Correct socket close logic: needs to disconnect TCP socket on close * uIP webserver now seems to be fully functional * fs/ and lib/ subystem debug can not be selectively enabled/disabled * Added vsnprintf * Integrated uIP telnetd * Add missing logic to read-ahead buffer logic * examples/nettest uses larger buffers * Improved ACK handling in send() to better handler deferred acknowledgements and polling intervals. Greatly improves send performance. 0.3.4 2007-12-10 Gregory Nutt * Added and partially verified DHCP server logic (netutils/dhcpd) * Fix BROADCAST=y compilation problems * Fix UDP recvfrom timeout bug * Correct processing of input UDP broadcast packets. * Verfied basic DHCP client functionality (netutils/dhcpc) * Implemented send() timeout logic * Added and verified a TELNETD front end to NSH (examples/nsh) * Add a skeleton Ethernet device driver (drivers/net/skeleton.c) * Added C5471 Ethernet device driver (arch/arm/src/c5471/c5471_ethernet.c) * Found and fixed several problems in uIP when compiled for ARM with optimization. 0.3.5 2007-12-18 Gregory Nutt * Added inet_ntoa() and ether_ntoa() * Added netdev_foreach() to support traversal of registered network devices * Added support for 'ifconfig' command to NSH (examples/nsh) * Moved MAC and Ethernet definitions to net/ethernet.h * Fix sim and DM90x0 compilation errors introduced in 0.3.4 * Fixed errors in C5471 configuration files for examples/uip * Modified DHCPC (netutils/dhcpc) so that it should work in environments where there are more than one DHCPD server. * NSH ifconfig command now shows uIP status as well (examples/nsh) 0.3.6 2008-01-06 Gregory Nutt * Changes for use with SDCC compiler * Added a simulated z80 target * Fix deadlock errors when using stdio but with no buffering * Add support for Pascal P-Code interpreter 0.3.6.1 2008-01-07 Gregory Nutt * The initial 0.3.6 release including an error that prevented building successfully if the Pascal add-on was was not present. 0.3.7 2008-01-31 Gregory Nutt * Added support for the Zilog Z16F using the Zilog Z16F2800100ZCOG Development Kit. * Add support toolchains that do not support making of dependencies * Fix Cygwin build with spaces in directory names * Name make system changes to deal with non-GNU toolchains (i.e., Zilog) * Add support for Windows native toolchains that cannot follow Cygwin soft links * Modified serial driver interface to handle hardware with non-16550A-like interrupt architecture (like the Z16F) * Added a "dumb" serial console driver to simplify OS bringup * Corrected a bug that caused the errno value of one task to be clobbered when a different task exits. Affects all architectures. 0.3.8 2008-02-10 Gregory Nutt * Added a test case to verify the Pascal P-Code interpreter * Added /dev/zero * 'errno' is now defined to be *get_errno_ptr() with no name conflicts * Added lseek() and fseek() * Integrated Pascal interpreter test case on the simulation platform. Needs pascal-0.1.1. * Add Pascal test case on the z16f platform. Needs pascal-0.1.2 (does not yet work due to some tool issues). * C buffered I/O fixes: - Fix fflush() return value, - Add correct fflush behavior when the FILE argument is null. - Add logic to a correctly handle read/write access on the same FILE - fseek() flushes read/write data when before moving the file pointer - When read data is flushed, reposition the file pointer to account for buffered, but unread data * Pascal P-Code files are now standardized to big-endian for portability * Fix a build problem with z80 and SDCC 2.7.0 (format of a map file changed) (see bug 1887170) * Pascal P-Code runtime now compiles with the SDCC toolchain. * Added a generic CAN driver. This driver is untested as of this writing. * Corrected DM320 UART configuration problem 0.3.9 2008-03-09 Gregory Nutt * Began adding support for the ZiLOG Z8Encore! microcontroller for the Z8Encore000ZCO development board and the Z8F6403 part. * Fix broken 'clean' target on z80sim configurations * Re-structure arch/z80 to provide support for all ZiLOG 8-bit microcontrollers (ez8 in particular for now). * Add support for TRS80-Model 3 based on the xtrs emulation (http://www.tim-mann.org/xtrs.html) Per patch from Jacques Pelletier. * In all shell scripts, change #!/bin/sh to #!/bin/bash to resolve problems in Ubuntu where /bin/sh is a link to dash. * Z8Encore! port verified on ZDS-II instruction set/chip simulator. 0.3.10 2008-05-15 Gregory Nutt * Add support for the ZiLOG EZ80Acclaim microcontrooler (EZ80F91 chip). * Add configuration for the ZiLOG z8f64200100kit development kit, Z8F6423 part. * Add configuration for the ZiLOG ez80f0910200kitg development kit, EZ80F091 part. * Correct critical list handling errors in task shutdown logic: One in timer deletion logic (timer_delete.c) and one in stream logic (lib_init.c) reported by kwonsk. 0.3.11 2008-06-01 Gregory Nutt * Add support for recursive mutexes. * Eliminate a memory leak: contained watchdog instance was not being deleted with a POSIX timer was deleted reported by kwonsk. * Eliminate a deadlock condition in opendir() reported by kwonsk. * Fix several FAT filesystem problems reported by kwonsk (Changes not yet verified). * Host simulator no longer uses Linux system calls directly; Now works with Cygwin. * Fix an error that occurs when a POSIX timer is deleted by the timer signal handler. * Add logic to allow the examples/ostest to be run repetitively as an endurance test. * Add a ramdisk block driver 0.3.12 2008-08-10 Gregory Nutt * Improved solution to POSIX timer lifetime controls bug fixed in 0.3.11. * Add test for recursive mutexes * Correct bug in recursive mutex logic * Add mkfifo() * Add pipe() and test for both pipes and fifos * Attempts to open a FIFO will now block until there is at least one writer * Add test/Fixed errors in FIFO reader/writer interlocks * Removed limitation: task_create() was only dup'ing 3 file descriptors (now dups all open file descriptors). * Added a test for redirection of stdio through pipes * Fixed error in dup and dup2: Must call open/close methods in fs/driver so that driver can correctly maintain open reference counts. * Same issue on closing file descriptors in exit() * Fixed in error in stdio flush logic. Needed ssize_t vs size_t for error check. * Moved all FAT related files from fs to fs/fat * Implemented mkfatfs(), a non-standard API to create a FAT filesystem on a block device (not yet tested). * Added a test for mkfatfs() on a RAM disk in examples/mount and verified basic mkfatfs functionality for FAT12. 0.3.13 2008-09-01 Gregory Nutt * NSH: Added mkfatfs, mkfifo, sleep, usleep and nice commands * Fixed problem with console input in Cygwin-based simulator; NSH now works with simulator. * NSH will now execute commands in background * sched_get_priority_max/min returned error on SCHED_RR * Removed duplicate getenv() implementation in /lib * Correct detection of End-of-File in fgets * NSH: Implemented sh and crude script handler * Fix prototype of read() and write(). Need to use ssize_t and size_t, not int and unsigned int. * NSH now supports redirection of command output * NSH can now use both telnet and serial front ends together * NSH: $variable can be used for any command value * Fixed an error in opendir() that could cause an assertion to fail inappropriately. * Correct an error in the FAT that caused files opened for writing with O_APPEND to fail. The file was not being properly positioned to the end of the file in that case. * NSH now supports last exit status $? * NSH now supports if-then[-else]-fi construct * NSH now supports comments beginning with '#' * NSH now supports commands to inspect and modify memory * NSH cat command now supports multiple files on command line * Add chdir() and getcwd() * Fix error in getopt() when called with argc==1 * Fix error in stat() when used on the root directory * NSH: Add cd and pwd commands and current working directory to all NSH commands that refer to paths. * Fix errors and warnings introduced into Linux sim build because of recent Cygwin-based sim changes * NSH: Add mem command to display heap usage * Added telnet NSH configuration for Neuros OSD. * Basic integration of concurrent telnet/serial NSH functional on Neuros OSD. * Fixed a critical bug that affects the way that environment variables are shared amongst pthreads. * uIP port enhance to support multi-threaded, concurrent socket access. So, for example, one thread can be reading from a socket while another is writing to the socket. 0.3.14 2008-09-08 Gregory Nutt * FAT FS now uses position variable in struct file. This simplifies operations like ftell(). * fseek() needs to discard bytes buffered by ungetc(). * Corrected ftell() return value. * Added fsetpos() and fgetpos(). * NSH: Now supports 'test' and '[' commands * Correct error in send() timeout logic. * Correct error in multi-threaded socket handling in send() and sendto(). Outgoing data could overwrite incoming data. * Add support to uIP for application access to ICMP protocol stacks; Add ping request logic. * NSH: Add ping command * Correct IP checksum calculation in ICMP and UDP message send logic. * NSH: Created an HTML document and a more detailed README file describing NSH. * Added basic TFTP client logic (netutils/tftpc). * NSH: Add get and put commands to support TFTP get and put operations. * NSH: Added a mkrd command that will create a RAMDISK that can be formatted and mounted. * Corrected a critical bug that prevent recvfrom from receiving packets from any remote UDP port. * NSH: Add hexadecimal dump command (xd) * Fixed several critical bugs with regard to fat reading and writing and FAT12 accesses. Basically the FAT FS only worked with my tiny test files and test cases. A lot of stronger FAT tested is needed!! * Fixed another FAT bug in implementation of FAT lseek; this prohibit correct random access to large files. 0.3.15 2008-09-20 Gregory Nutt * Added support for ROMFS filesystem. * Added a simple test the ROMFS filesystem (examples/romfs) * NSH: Use ROMFS to provide an option for a start-up script at /etc/init.d/rcS * Add definition of BIOC_XIPBASE ioctl and implement in RAM disk block driver. This is a low level requirement for eXecute In Place (XIP) support. * Add a FIOC_MMAP to perform memory mapping of a file and implemented the ioctl command in the ROMFS filesystem. This is a requirement for eXecute In Place (XIP) support. * Add mmap() API with restricted capability (only for XIP support) * Extend ROMFS test at /examples/romfs to verify mmap() and XIP support. * Add support for Intel Hex format output using objcopy * Completed the basic port of the NXP LPC2148 on the mcu123.com board. The basic port includes successful booting, timer interrupts, serial console, succesfully passing the examples/ostest, and a NuttShell (NSH) configuration. * ARM architectures now support drivers/lowconsole.c 0.3.16 2008-10-10 Gregory Nutt * Added header files defining a common USB device controller architecture * Added USB device side driver for the LPC214x * Correct the frequency of system timer interrupts in the NXP LPC214x port (off by 20x in nuttx-0.3.15) * Add an option to set aside a separate stack for interrupt handling (ARM only). This is useful when memory is constrained, there are multiple tasks, and the interrupt stack requirement is high (as when USB is enabled). * Added USB serial class device side driver (emulates Prolific PL2303 serial-to-USB adaptor) * Add LPC214x USB serial configuration; Add examples/usbserial test * Added USB device side driver for the DM320 (untested at initial release) * Fixed an error in a previous (post 0.3.15) check-in that broke the LPC214x system timer. * Fixed serial driver bugs related to (1) open counts and (2) recognizing O_NONBLOCK on read. * Fixed an error in read(); it was not setting the errno on errors returned from the driver. 0.3.17 2008-10-28 Gregory Nutt * Incorporate patch "[2164503] nuttx-0.3.16 does not build for ARM with USB disabled" * Reduced the amount of memory reserved for USB serial control requests. It was unnecessarily large. * Added LPC214x SPI1 driver to interface with MMC on mcu123.com board. * Added a simple SPI-based MMC/SD block driver * NSH: Add LPC214x-specific support to NSH; NSH now mounts any SD cards in the slot. * FAT: Fix access to unaligned 32-bit values in partion table (start sector & size) * Fixed a problem with a un-initialized variable in the USB serial driver. * Added USB storage NXP LPC214x configuration * Added a test for USB storage under examples/usbstorage * Fixed a bug in the LPC214x USB driver: It was not properly clearing a HALTed endpoints (other than EP) on receipt of CLEAR FEATURES request. * Added USB storage class device side driver (BBB) * Fixed a bug in the LPC214x USB driver: It was not properly handling request buffers larger then the endpoint's max packet (DM320 driver also fixed, untested) * Added logic to the USB device interface: A bit is needed to force the driver to to terminate an IN transfer with a short packet (zero-length if necessary). * Fix an error in the NXP LPC214x USB device driver that was causing corruption of the request queue (M320 driver also fixed, untested) * Correct another error in the NXP LPC214x USB device driver that caused read failures when the request buffer size was larger than maxpacket. * Numerous corrections/extensions to the USB tracing logic included in 0.3.16 (but not integrated until 0.3.17) * Fixed another bug in the NXP LPC214x USB device driver: After a stalled endpoint is resumed (view CLEAR FEATURE), we must restart the IN (outgoing) queue. 0.3.18 2008-11-16 Gregory Nutt * Added port for the STMicro STR71x processor and configuration for the Olimex STR-P711 board (STR71x testing is stalled because I have been unable to get OpenOCD to communicate with my JTAG wiggler on Linux). * Fix race condition workaround delay in LPC214X SPI logic. This was also the cause of the very bad MMC/SD performance. * Began port of the Hitachi SH-1 using the SH-1/US7032EVB1 board * Re-built all configurations that use SDCC and Zilog toolchains to make sure they still build (they didn't, but they do now). * Fixed several erroneous "list empty" checks in the CAN driver. * Hitachi SH-1 passes (reduced) examples/ostest; the examples/nsh test still fails. There are remaining instabilities that make the port un-usable. The nature of these is not understood; the behavior is that certain SH-1 instructions stop working as advertised. This could be a silicon problem, some pipeline issue that is not handled properly by the gcc 3.4.5 toolchain (which has very limit SH-1 support to begin with), or perhaps with the CMON debugger. At any rate, I have exhausted all of the energy that I am willing to put into this cool old processor for the time being. * Renamed configuration item CONFIG_PROC_STACK_SIZE as CONFIG_IDLETHREAD_STACKSIZE: It now only controls the size of the stack for the IDLE thread. Added CONFIG_USERMAIN_STACKSIZE: This is the size of stack used with the user_start() thread is created. The two stacks no longer have to be the same. * Add a loop device that converts a file into a block device. * Each NSH command can not be disabled through a configuration setting. All of these settings make the configuration of NSH potentially complex but also allow it to squeeze into very small memory footprints. * Added a block to character (BCH) driver. This is kind of the reverse of the loop device; it allows you access a block device like a character device. * Added strcasecmp() and strncasecmp() * NSH: Added the 'dd' command * NSH: Added the 'losetup' command * Fixed a FAT bug: After recent changes, it would mount a (invalid) FAT file system even if the medium is not formatted! * Corrected two important errors in FAT lseek implementation: (1) the sectors-per-cluster value was being reset to "1" and (2) important lseek logic was omitted when the seek position was zero. * Fixed a bug in getopt(). It would fail if on certain combinations of terminal argument types. 0.3.19 2008-11-26 Gregory Nutt * Add poll() and select() APIs (in the initial check-in, these work only with character devices) * Add poll() methods to /dev/null, /dev/zero, pipes, fifos, and serial drivers. * Add examples/poll for testing poll() and select() * Fix hostile behavior of getc, fgetc, getchar, etc.: the serial driver was waiting for a full buffer of read data before return. This means that getc would stall when it needed to refill the input buffer. The old behavior (read full blocks) might be useful in other contexts, so it is still available within the driver as a configuration option. * Implement poll() and select() support for TCP/IP sockets * Fixed an important bug in the TCP/IP buffering logic. When TCP/IP read-ahead is enabled and not recv() is in-place when a TCP/IP packet is received, the packet is placed into a read-ahead buffer. However, the old contents of the read-ahead buffer were not being cleared and old data would contaminate the newly received buffer. * Implemented support for connection backlog. The size of the backlog is specified by the second argument of the standard listen() API. Hooks are provided to support poll()/select() waiting for connections, with a subsequent call to accept() to use the backlogged connection. * Fixed a minor bug in accept(). It should allow the address and addresslen values to be NULL * Added first-cut definition for a framebuffer interface (and simulated framebuffer for testing purposes only) * Added fixed precision math support * Added some color converson routines into what may become a real graphics library someday. * Added a framebuffer driver for the DM320 (untested on initial check-in) * Network: add support for outgoing multicast addresses * Added some rasterizers to the graphics library 0.4.0 2008-12-06 Gregory Nutt * Initial release of a tiny windowing system for NuttX * Add fixed precision sin() and cos() (not well tested at initial check-in) * Add an X11-based simulated framebuffer driver * The simulated target now has an option (CONFIG_SIM_WALLTIME) that will let the simulation run in more-or-less realtime. * Added more extensive window support: frames, toolbars, etc. * Added support for bitmap fonts * Integrated the new font support with a font test in examples/nx * Add documentation for NX graphics subsystem 0.4.1 2009-02-06 Gregory Nutt * Added board support for the ZiLog eZ80Acclaim! ez80f910200zco Development Kit. * Fixed several compilation errors in fixed precision math library when built against toolchains that do not support 64-bit type 'long long'. * Fix errors in some function prototypes in dirent.h * Add eZ80F91 EMAC driver * Fix recvfrom() compilation error: only noted under ZDS * Updated all ARM Make.def files to work with gcc 2.4.2 (However, there are still some build issues associated with that toolchain in use of arm-elf-objcopy -- see the TODO.txt list for details) * Fix problems with Z16F and eZ80 compilation introduced with recent changes. 0.4.2 2009-02-28 Gregory Nutt * M16C: Add support for the Renesas M16C MCU and the SKP16C26 StarterKit. However, the target cannot be built because the GNU m16c-elf-ld link fails with the following message: m32c-elf-ld: BFD (GNU Binutils) 2.19 assertion fail /home/Owner/projects/nuttx/buildroot/toolchain_build_m32c/binutils-2.19/bfd/elf32-m32c.c:482 Where the reference line is: /* If the symbol is out of range for a 16-bit address, we must have allocated a plt entry. */ BFD_ASSERT (*plt_offset != (bfd_vma) -1); No workaround is known at this time. This is a show stopper for M16C. * eZ80Acclaim!: Fix interrupt vectors positioning; they were being positioned wrong by 64 bytes (Kevin Franzen). * eZ80Acclaim!: Corrected some stack handling errors during interrupt handling context save and restore (Kevin Franzen). * eZ80Acclaim!: Corrected vector initializeation logic (Kevin Franzen). * eZ80Acclaim!: Corrected overflow problem in the calculation of UART baud rate divisor, the system timer divisor, and the EMAC poll timer. * eZ80Acclaim!: Fixed GPIO pin configuration get serial output * eZ80Acclaim!: Correct stack overflow in ostest example configuration * eZ80Acclaim!: Fixed restoration of interrupts state on interrupt level context swith. 0.4.3 2009-03-04 Gregory Nutt * z8Encore! and eZ80Acclaim!: Fixed the serial driver initialization sequence * eZ80Acclaim!: Fixed error in vector table: Missing space set aside for the "unused" vectors. As a result, all vectors above timer4 were skewed. * eZ80Acclaim!: Fixed logic error in UART interrupt handler. * Many fixes in FAT file system and in NSH for correct compilation with ZDS-II * eZ80Acclaim!: Added and verified a NuttShell (NSH) configuration. * eZ80Acclaim!: Correct endian-ness; defconfig files said BIG endian. * Restructured parts of the uIP port for correct compilation with ZDS-II * eZ80Acclaim!: Complete basic integration of the eZ80F91 EMAC driver. The driver is basically functional and should mature prior to the 0.4.3 release. * Implemented priority inheritance logic for POSIX semaphores. Because the pthread mutexes are built on semaphores, they will have this property as well. 0.4.4 2009-03-29 Gregory Nutt * examples/nsh: A debug option was left on that can (and does) cause infinite loops and stack overflows. * net/uip: Correct calculation of checksum on ICMP ping response. * examples/dchpd: Added a tiny DHCP server example * net/uip: Correct UDP bind behavior. It should select a valid port number if it receives a port number of zero. * netutils/dhcpd: Corrrect for ZDS compiler. Fix issue with re-use of a port number. Fixed a number of broadcast-related problems. * eZ80Acclaim!: Add a tiny webserver configuration * eZ80Acclaim!: Fixed an important bug in the EMAC Tx timeout logic. It was always timing out when the load was heavy and worse, for some reason, resetting the Tx function caused unexpected registers to be reset in the Rcv function was well. * Z80: Patch incorported: "[2696648] Z80: interrupt flag stored in parity bit" (submitted by JPelletier). The is the same fix that was needed for the eZ80 and fixed in 0.4.2. * netutils: Added logic to support a simple wget() function * examples/wget: Added a test for wget() (untested -- see NOTE) * lib/strncasecmp: Fix cut'n'paste error in function name. * NSH: Added wget command (untested -- see NOTE). * examples/sendmail: A simple sendmail example (untested -- see NOTE) NOTE: Features related to wget and sendmail are not tested on the target platform in this release and, hence, most likely have problems. I don't have the correct network setup to perform that testing now (I'm in a hotel). 0.4.5 2009-04-19 Gregory Nutt * Add an enumeration argument to the SPI chip select and status methods so that the interface can handle more than one device. * eZ80Acclaim!: Add a generic SPI driver for all eZ80 boards. * Add a setmode() method to the SPI interface to handle parts with differing mode requirements. * include/nuttx/i2c.h: Defined a standard I2C interface * eZ80Acclaim!: Add an I2C driver. * eZ8Encore!: Add an I2C driver. * Add support for the Freescale i.MX1/L architecture and a configuration for the Freescale MX1ADS development board. * examples/helloxx: Added a simple C++ hello world example * include/css: Added std header files * libxx: New C++-only directory provides support for minimal C++ applications 0.4.6 2009-05-19 Gregory Nutt * Change SPI interface so that is can accomodate interfaces where the number of bits per word is greater an 8 (such as with many 9-bit display interfaces). -- this might have broken a few things which will need to be retested! * arch/arm/src/imx: Added i.MX SPI driver * SPI: Add a method to set the number of bits per word. Also add an alternative interface for so that (eventually) I can phase the sndblock and recvblock methods and replace them with a single exchange method * Build: objcopy fails with toolchains that use newer GCC and binutils. The following arguments need to be included in the objcopy command line "-R .note -R .note.gnu.build-id -R .comment" This has been fixed in arch/arm/src/Makefile, but other architectures may have the same problem. Thanks to Dave Marples for verifying this. * configs/eagle100/ostest: Added support for the MicroMint Eagle100 board. This board has a Luminary LM3S6918 Cortex-M3. Added a configuration to build examples/ostest. * arch/arm/src/lpc214x: Add configuration option to enable fast GPIO (vs. legacy, "slow" GPIO) for LPC214x. * arch/arm: Restructured the arch/arm directory structure to better support ARM and Cortex-M3. * sched/: pthread_create() must return a (non-negated) errno value on failure. * configs/eagle100/nsh: Add a NuttShell (NSH) configuration for the Eagle-100 0.4.7 2009-05-29 Gregory Nutt * arch/arm/src/lm3s: Added an Ethernet driver for the LM3S6918 * configs/eagle100/nettest: Added an examples/nettest configuration for the Micromint Eagle100 board. * Documentation/NuttxPortingGuide.html: Added a section on NuttX device drivers. * configs/eagle100/httpd: Added an examples/uip configuration for the Micromint Eagle100 board. * arch/arm/src/lm3s: Added an SSI driver for the LM3S6918 * examples/nsh: Added MMC/SD support for the LM3S6918 * arch/arm/src/lm3s: Fix logic for setting and clearing output GPIOs (critical fix!). * drivers/mmcsd: Found numerous errors in current MMC/SD SPI driver. Bad frequency calculation based on CSD settings, inappropriate timeouts, odd code that looks like a bad search and replace. Also needs support for SDHC ver 2.x. New MMC/SD is largely redesigned and probably non-functional in the first check-in. * drivers/mmcsd: Changes verified on 4Gb Kingston microSHDC card and on a 2Gb SanDisk microSDC card on the Eagle100 platform. * fs/fat: With the 4Gb card, the first tests of FAT32 were (finally) performed. Found and corrected a problem that prevented use of FAT32: It was not updating the sector cache before checking the FAT32 FSINFO sector. * configs/eagle100/*/Make.defs: Added configuration options that should make it possible to build NuttX for the Eagle100 using CodeSourcery 2009q1 toolchain and the devkitARM GNU toolchain. * configs/mcu123-lpc214x/src: Corrected some logic in the LPC2148 SPI receive block logic. Re-verified SDC ver1.x support with 1Gb Toshiba SDC, 1Gb PNY SDC, and 4Gb Kingston SDHC. There are CMD0 issues with the 2Gb SanDisk SDC on this board. * fs/fs_mount.c: Corrected error handling that could cause a deadlock on certain mount() failures. 0.4.8 2009-06-13 Gregory Nutt * lib/lib_*stream.c: Extend internal stream logic to support incoming streams. * arch/arm/src/str71x: Serial output is now correct and timer interrupts are working. The test at configs/olimex-strp711/ostest passes. This means that the basic STR-P711 port is complete. * configs/olimex-strp711/nsh: Add and verified a NuttShell (NSH) configuration for the STR-P711. * arch/arm/str71x/str71x_serial.c: The STR711 interrupt driven serial driver finally works after some extradinary measures to handle missed interrupts. NSH is fully functional on the Olimex STR-P711 board. * example/nsh: Moved architecture specific files from NSH directory to board- specific directories. * config/olimex-strp711/src/up_nsh.c: Add an NSH board specific directory for for the Olimex STR7P11 board. * Fixed build of LM3X6918 using the CodeSourcery Windows native toolchain. There were lots of issues with Cygwin paths and Cygwin symbolic links. These changes may work with the devarmKIT as well, but that remains untested. * The NXP LPC2148 and STR711 targets can now also be built using the CodeSourcery or devkitARM Windows native toolchains. 0.4.9 2009-06-26 Gregory Nutt * Add strtoll() and strtoull(); Add macros for atol() and atoll(). * dup() and dup2() will now clone socket descriptors * All socket descriptors are now cloned when a new task is started via task_create(). * Add configuration options to suppress or eliminate cloning of file and/or socket descriptors when a new task is started by task_create(): CONFIG_FDCLONE_DISABLE, CONFIG_FDCLONE_STDIO, CONFIG_SDCLONE_DISABLE. * Use of C++ reserved word 'private' in C header files causes problems for C++ that include them. * Added 'binfmt' support to allow execution of programs in a file system, binding to NuttX symbols. A custom format call NXFLAT is used; this derives from http://xflat.sourceforge.net. At present is supports on XIP execution from ROMFS file systems. Initial check-in is untested and probably breaks many builds. * examples/lib: Added qsort() * examples/nxflat: Added support for symbol tables * Correct logic that creates compiler include paths. On Cygwin, the include paths for Cygwin-based GCC were being converted to windows native paths. That causes many problems -- breaking dependencies for one. * Fixed an important bug in ROMFS. The initial XIP offset was set incorrectly so if sector zero was read first, there was a bad read. I don't know how it worked before. * arch/arm/src/common/up_use_stack.c. Fixed a fatal stack setup error. This file has been around for a long time, but I don't think it has every been used before (i.e., prior to the NXFLAT logic) 0.4.10 2009-08-08 Gregory Nutt * lib/: Added some basic regex-subset, pattern matching functions * lib/: Greatly simplified mktime() and gmtime_r(). The Gregorian and Julian time calculations were interesting, but not necessary in the typical embeddd system. * sched/: Added gettimeofday(). This implementation is simply a thin wrapper around clock_gettimer(). * lib/: Add gmtime(), localtime(), and strftime() * binfmt/: Add exec(). This is just a wrapper that executes both load_ and exec_module() in a more familiar manner. It is not consistent with more standard exec() functions, however, because (1) it returns and (2) it requires symbol table arguments. * lib/: Add fileno() * examples/ostest: Several of the tests used a big, hard-coded stack size when creating test threads (16K stacksize). The stack size should be controlled by the .config file or the OSTest won't work on platforms with memory constraints. * netutils/thttpd: An initial port of Jeff Poskanzer's THTTPD HTTP server. See http://acme.com/software/thttpd/. * examples/thttpd: A basic test program for THTTPD * configs/eagle100/thttpd: A build configuration for THTTPD on the Micromint Eagle-100 LMS6918 (Cortex-M3) board. * configs/ntosd-dm320/thttpd: A build configuration for THTTPD on the Neuros DM320 platform. * lib/: Added strstr() and strpbrk(). * net/recvfrom.c and net/accept(): Sockets now support some non-blocking operations, specifically for (1) TCP/IP read operations when read-ahead buffering is enabled, and (2) TCP/IP accept() operations when TCP/IP connection backlog is enabled. * fs/fs_fcntl.c and net/net_vfcntl.c: Minimal support provided for fcntl(). It can, at least, be used to mark sockets as blocking or non-blocking. * net/net_close.c: Fix bug in close(). If reference count not set to zero then uip_tcpfree() will assert when DEBUG is enabled. * net/accept.c: Fix bug in accept(). The logic expected parts of the return address structure to be initialized or it would return an error. 0.4.11 2009-09-16 Gregory Nutt * fs/fs_read.c and fs/fs_write.c. read() and write() to socket is the same as recv() and send() with flags = 0. Fixed! * net/recvfrom.c: Fix errors in return value from non-blocking socket read. * lib/lib_strcasecmp.c and lib/lib_strncasecmp.c. Use of post-incremented argument to macro caused strcasecmp() and strncasecmp() to fail. * lib/lib_strstr.c: Length of substring off by one causes false alarm sub-string matches. * arch/arm/src/lm3s/lm3s_ethernet.c: Fix errors in LMS6918 FIFO length handling. (1) The incorrect size of the Ethernet header was being subtracted on outgoing messages (4 vs 14), which caused outgoing messages to be a little too long. (2) The size of incoming FIFO messages is 6 bytes larger than it expected (2 for the length and 4 for the FCS). The unhandled extra two bytes of length cause the driver to sometimes read one too many words from the received FIFO (corrupting the next queued receive packet, if any). * net/net_poll.c and net/uip/uip_tcpbacklog.c. Fixed an important race condition bug in polling for connections. The logic worked if the poll was inplace before the connection was received; but the poll failed to awaken if the connection was already pending in the backlog when poll() was called. * net/net_close.c. Fixed another important TCP/IP race condition bug: If the host closes the TCP connection just before the target calls close(), then the close operation may hang indefinitely! * net/net_tcppoll.c. Removed an unnecessary check for outstanding, un-ACKed data. The NuttX socket layer keeps track of ACKs and doesn't need this check; removing the check should improve write throughput * Add DEBUG configuration option to enable debug console output without disabling optimization (and vice versa) * Changed lots of occurrences of debug macro dbg() to lldbg(). dbg() uses stdout to output debug data. That works fine unless (1) the dbg() macro is interrupt logic and the interrupted task has redirected stdout! Most changes were in uIP. * net/uip/uip_tcpinput.c. Connection reference count was not being set correctly when a socket is created by accepting a new connection. Since the reference count is bad, such sockets are not successfully duplicated when being passed to new tasks. * net/net_clone.c. Similarly, after a socket is cloned, its reference count was not being initialized. * lib/lib_strstr.c. Improperly incremented pointer could cause comparison failures. * net/. Connection reference count must always be set to zero before calling uip_tcpfree() or it could trigger a DEBUGASSERT that verifies that the reference count is zero before freeing a connection structure. * net/uip/uip_listen.c. uip_accept() consulted the wrong list to find the listener on a socket. The previous logic worked most of the time, but occasionally picked the wrong listener. * net/net_close.c and net/net_sockets.c. Sockets were not being closed when a task exits. If many server tasks are created and exit without closing sockets (such as with CGI tasks), then eventually, you will run out of sockets. * netutils/thttpd. Basic functionality of THTTPD is complete. This includes serving up files from a file system and executing NXFLAT-based CGI programs and pipe the stdout back to the HTTP client. 0.4.12 2009-10-17 Gregory Nutt * arch/arm/src/stm32 and configs/stm3210e-eval. Added basic support for the STMicro STM32, Cortex-M3 MCU. The specific port is to the STMicro STM3210E-EVAL development board based around the STM32F103ZET6 MCU. * configs/stm3210e-eval/RIDE. Added a basic STMicro RIDE7 project that can be used to perform basic STM32 board bring-up (due to RIDE7 size limitations, it cannot be used for the full NuttX bring-up). * configs/stm3210e-eval/ostest. The STM32 now passes the basic NuttX OS test at examples/ostest. The rest should be a piece of cake. * configs/stm3210e-eval/nsh. Added NuttShell (NSH) example. * configs/stm3210e-eval/src/stm32102e-internal.h. Fix on-board LED GPIO definitions. * arch/arm/src/stm32/src/stm32/stm32_dma.c. Added DMA channel support for the STM32 * arch/arm/src/stm32/src/stm32/stm32_spi.c. Added a DMA-based SPI driver for the STM32. * arch/arm/src/stm32/src/stm32/stm32_serial.c. Finished interrupt-driven, USART console driver. This makes NSH work perfectly. * Things left to do for the STM32 deferred to the 0.4.13 release: USB device driver, LCD driver and NX bringup on the eval board's display and MicroSD support. An SPI driver was included in the 0.4.12 release, but is not yet tested. 0.4.13 2009-11-04 Gregory Nutt * include/nuttx/mtd.h. Added a simple interface definition to support some FLASH, EEPROM, NVRAM, etc. devices. * driver/mtd/m25px.c. Added a driver for SPI based FLASH parts M25P64 and M25P128. * configs/stm3210e-eval/usbserial. Add a USB serial configuration for the STM32. Depends on the STM32 USB driver. * arch/arm/src/cortexm3/up_switchcontext.S & up_svccall.c. Made an improvement to context switching. There are two types of context switches: interrupt context switches and background/user context switches. This change should improve the performance of those background/user context switches by a factor of about two. * arch/arm/src/stm32/: fix several typos in the serial logic. It turns out that these typose don't make any difference as long as you use only one serial port and all uarts are configured the same. But the typos are bugs waiting to happen in any other configuration. * arch/arm/src/stm32/: You have to configure CTS/RTS function pins for USART 2 and USART 3 even if you are not using flow control. * arch/arm/src/stm32/stm32_usbdev.c: Added a USB device-side driver for the STM32. NOTE: This is an early release of the USB driver. There is at least one known issue. The examples/usbserial test only executes correctly under certain conditions (see the full bug description in the TODO list). * arch/arm/src/stm32/stm32_rcc.c: Fixed an error in clock initialization. On some boards (none of mine), the HSE (high speed external clock) delay loop times out if the optimization level is high. The STM32 then falls back to the HSI (internal clock), and the system clock is too slow by a factor of 11.1%. This was fixed by simply add the volatile storage class to the timeout loop counter * arch/arm/src/stm32/stm32_irq.c: Fixed a critical bug in the interrupt control logic. The wrong register was being used for interrupts in a certain range. Worked fine until you try to use an interrupt in that range! 4.14 2009-12-02 Gregory Nutt * arch/arm/src/stm32/stm32_gpio.c: Add support for configure an input GPIO to generate an EXTI interrupt. * config/stm3210e-eval/src/up_buttons.c: Add support for on-board buttons. * include/nuttx/rwbuffer.h: Add generic support for read-ahead buffering and write buffering that can be used in any block driver. * include/nuttx/wqueue.h: Added a generic worker thread that can used to defer processing from an interrupt to a task. * include/nuttx/sdio.h: Defines a generic SD/SDIO interface can can be bound to a MMC/SD driver to provide SDIO-based MMC/SD support. * drivers/mmcsd/mmcsd_sdio.c: Provides an SDIO-based MMC/SD driver. * arch/arm/src/stm32/stm32_sdio.c: Provides an STM32 implementation of the SDIO interface defined in include/nuttx/sdio.h. * fs/fs_mount.c: Correct error handling logic. If the bind() method fails, then a reserved node is left in the tree. This causes subsequent attempts to mount at the location to fail (reporting that the node already exists). This is a problem for block drivers for removable media: The bind method could fail repeatedly until media is inserted. * arch/arm/src/stm32/chip.h & stm32_dma.c: Fixed several definitions that can cause compilation errors when DMA2 is enabled. * arch/arm/src/stm32/stm32_dma.c: Integrated and debugged STM32 DMA functionality that was added in 0.4.12. * configs/stm3210e-eval/usbstorage: Add a configuration to exercise the STM32 with the USB mass storage device class example (examples/usbstorage). * configs/mcu123-lpc214x/up_usbstrg: Move LPC-specific code from examples/usbstorage to configs/mcu123-lpc214x. * configs/stm321e-eval/up_usbstrg: Add STM32-specific logic for the examples/usbstorage test. * arch/arm/src/stm32/stm32_usbdev.c: Fix bugs in STM32 USB device-side driver: (1) Need to disconnect after reset received, (2) Status setup to recover from stall on TX endpoint. 5.0 2009-12-21 Gregory Nutt * arch/hc: Adding framework to support m68hc11/12 * configs/demo9s12ne64: Configuration to support Freescale DEMO9S12NE64 development board (MC9S12NE64 m68hcs12 processor). * drivers/mtd/ftl.c: A FLASH translation layer (FTL) has been implemented. This layer will convert a FLASH MTD interface into a block driver that can be used with any file system. Good performance of this layer will depend upon functioning write buffer support! NOTE: FTL support is untested as of the initial check-in. * Numerous minor changes for m68hc12 to eliminate compilation errors and warnings due to the fact that it uses 16-bit integer types and for casts between uint32 (32-bits) and an mc68hc12 pointer (16-bits). * sys/types: Size of off_t and blkcnt_t should not depend on size of int in the architecture; Removed non-standard type STATUS * include/: Added header files stdint.h, stdbool.h, cxx/cstdint, and cxx/cstdbool * Changed ALL references to non-standard fixed-size types (like uint32, ubyte, etc.) to standard types (like uint32_t, uint8_t, etc.) from stdint.h. Use type bool and {true, false} from stdbool. This effected most of the files in the system! Almost all configurations have been re-built and many have been re-verified in order to get confidence in these changes. * graphics/ and examples/nx: Fix numerous build errors that have been introduced lately. NXGL has suffered some bit-rot from not being used in some of the most recent ports. * The misc/pascal NuttX add-on package has been updated to use the new standard types from stdint.h and stdbool.h and re-integrated with NuttX. The released pascal-2.0 will be the first version that contains the compatible changes. * arch/arm/src/lm3s/lm3s_ethernet.c: Fixed an important bug in the LM3S Ethernet driver: If full packet is received, the packet-too-big check will fail because it needs to subtract 6 from the packet size (to account for the 2-byte packet length and the 4-byte packet FCS in the FIFO). * net/accept.c: Fixed a bad assertion (only happens when debug is enabled). * net/send.c net/uip/uip_tcpseqno.c: Fixed a critical error in the TCP/IP logic. The NuttX port of uIP imcludes logic to send data ahead without waiting for ACKs from the recipient; this greatly improves throughput. However, the packet sequence number was not being updated correctly and, as a result, packets were not be ACKed by the recipient and transfers would sometimes stall. This is a very important bug fix (in fact, I don't understand how TCP/IP worked at all without this fix???) * include/nuttx/arch.h and arch/*/common/up_udelay.c: Change argument of up_udelay() to type useconds_t to avoid warnings when sizeof(int) is 16-bits. * drivers/mmcsd/*: Add casts in constant expressions to avoid warnings when sizeof(int) is 16-bits. 5.1 2010-01-30 Gregory Nutt * arch/arm/src/lpc313x and arch/arm/include/lpc313x: Added framework to support the NXP LPC3131. * Add configs/ea3131. The LPC3131 port for the Embedded Artist EA3131 (LPC3131) is code complete and waiting for me to get hardware in hand. * arch/arm/src/sam3u, arch/arm/include/sam3u, and configs/sam3u-ek - Added the basic framework needed to begin a port for the SAM3U-EK development board. * lib/lib_crc32.c: Add CRC32 logic by Gary S. Brown to lib/. This is the larger (but faster) table look-up version of the CRC32 algorithm. * confgs/ea3131/tools: Added a tool to create a image suitable for use with the LPC313x bootloader. * configs/sam3u-3k/ostest: Completed verification of the basic NuttX OS test for the SAM3U. * arch/arm/src/common/up_createstack: stack was always been cleared when it was allocated. This is a good feature for monitoring the stack during debug, but really hurts thread start-up performance. Clearing is now done if CONFIG_DEBUG=y only. Changes was only made for arm, but really should be made for all architectures. * configs/sam3u/nsh: Added NSH configuration for SAM3U 5.2 2010-03-18 Gregory Nutt * arch/arm/src/sam3u/sam3u_pio.c: Fix an address calculation error that caused ports B & C to get mapped to the PIOA base address. This is an important bugfix! (a patch is available) * arch/arm/src/lpc313x/lpc313x_boot.c: Fix an error in the vector initialization was causing a memory fault. * lib/lib_strtod.c: Add strtod() * lpc3131/ea3131: Several bring fixes submitted by David Hewson. The lpc3131 is almost there! Thanks David! * arch/arm/src/arm/up_head.S: Corrected backward conditional compilation that selects if vectors are located at 0x0000:0000 or 0xffff:f000. This fixes the last show stopper bug in the lpc313x bring-up. * configs/ea3131/nsh: Added a NuttShell (NSH) configuration for the EA3131. 5.3 2010-04-11 Gregory Nutt * arch/arm/src/lpc313x/lpc313x_usbdev.c: USB driver for the LPC313x contributed by David Hewson. * configs/ea3131/src/up_ubstrgc.c, configs/ea3131/usbserial, configs/ea3131/usbstorage: USB storage and USB serial example support contributed by David Hewson. * Several important compilation error fixes in lpc313x and (dualspeed) USB code also contributed by David Hewson. * arch/arm/src/sam3u/sam3u_dmac.c: DMA support for the AT90SAM3U. * arch/arm/src/sam3u/sam3u_hsmci.c: SD memory card support for AT90SAM3U (Neither the DMA nor the HSMCI driver are functional on the initial checkin). * drivers/usbdev: Several important fixes to the USB mass storage driver submitted by David Hewson. * configs/olimex-lpc2378, arch/arm/include/lpc2378, and arch/arm/src/lpc2378 - Basic port of the NXP 2378 on the Olimex board contributed by Rommel Marcelo. * arch/arm/src/sam3u/sam3u_internal.h: Fixed a critical bug in the AT91SAM3U PIO decoding. No PIOs greater than 15 could be used on any port! Obviously, no one has been using this port. 5.4 2010-04-23 Gregory Nutt * include/nuttx/lcd.h: Defines an LCD interface. * graphics/nxglib/fb and lcd: Support LCD and framebuffer rasterizers for NX. * configs/sam3u-ek/src/up_lcd.c: LCD driver for LCD on SAM3U-EK development board. * configs/sam3u-ek/nx: NX graphics configuration for the SAM3U-EK 5.5 2010-05-09 Gregory Nutt * drivers/net/enc28j60.c: Microchip ENC28J60 SPI Ethernet chip driver. (untested on original check-in). * configs/olimex-str7p11/nettest: examples/nettest configuration using the ENC28J60 driver on the Olimex STMicro STR-P711. (unverified on original check-in) * configs/olimex-str7p11/src/up_enc28j60.c: Add ENC28J60 initialization logic. * configs/olimex-str7p11/src/up_spi.c: Fixed some bugs; added support for ENC28J60. * arch/arm/src/str7x/str7x_xti.c: Add basic XTI support (external interrupts). * arch/arm/src/lm3s and arch/arm/include/lm3s: Add definitions for LM3S6965 * configs/lm3s6965-ek: Add configuration for Stellaris LM3S6965 Evaluation Kit (including basic examples/ostest configuration) * lib/lib_dtoa.c and lib/lib_dtoa.c: printf will not print floating point values if you select CONFIG_LIBC_FLOATINGPOINT in your configuration file. Contributed by Yolande Cates. NOTE: these floating point operations have not been well tested and may not be portable to all floating point implementations. * configs/lm3s6965-ek/nsh: Added NuttShell (NSH) configuration for the LM3S6965 Evaluation Kit. Includes both serial and telnet interfaces. * net/net_close.c: Correct a UDP reference counting error 5.6 2010-06-05 Gregory Nutt * drivers/lcd/p14201.c: Driver for RiT P14201 series 128x96 4-bit OLED. * configs/lm3s6965-ek/nx: NX graphics configuration for the LM3S6965 Ethernet Evaluation Kit. * graphics/: Numerous fixes to get the P14201 4-bpp grayscale display working (there may still be some minor issues .. see the TODO list). * arch/arm/include/lpc17xx and arch/arm/src/lpc17xxx: Began port for NXP LPC1768. As of the 5.6 release, there is a complete set of LPC17xx header files defining all bits in all LPC17xx registers, but little else (I still do not have hardware in hand). * drivers/mtd/m25px.c: Add support for M25P1 flash part (See NOTE) * include/nuttx/i2c.h: Extended I2C interface definition to handle multiple transfers (See NOTE). * include/nuttx/usbdev.h: Corrected an important macro definition needed to correctly handle USB null packet transfers (See NOTE). * arch/arm/src/lpc313x: New drivers: I2C and SPI. Plus several important LPC313x USB bug fixes (See NOTE). NOTE: Contributed by David Hewson. 5.7 2010-06-22 Gregory Nutt * configs/nucleus2g: Add ostest configuration for the Nucleus 2G LPC1768 board from 2G Engineering (http://www.2g-eng.com/) * arch/arm/src/lpc17xx: Added basic LPC17xx boot-up logic, interrupt handling, and GPIO configuration. * configs/nucleus2g/ostest: Completed bring-up of LPC1768 on the Nucleus2G board using the examples/ostest * configs/nucleus2g/nsh: Added and verified a NuttShell (NSH) configuration for the LPC1768 on the Nucleus2G board. 5.8 2010-07-18 Gregory Nutt * configs/nucleus2g/src/up_nsh.c and up_ssp.c: Add support for SPI-based MMC/SD cards and integrate into the NSH example. * arch/arm/src/lm3s/lm3s_vectors.S: Correct vectors for GPIOC & D interrupts. * arch/arm/src/lpc17xx/lpc17_clockconfig.c: Power was not being provided to GPIO module. This is a critical bugfix! * arch/arm/src/lpc17xx/lpc17_serial.c: Improved logic to handle missed TX interrupts. * arch/arm/src/lpc17xx/lpc17_ssp.c: Fix a hard fault during SSP initialization. * configs/nucleus2g/src/up_led.c: Change how LEDs are controlled so that they can be used both for NuttX instrumentation and by application software. * include/net/uip/igmp.h and uip-igmp.h: Add header files ini preparation for NuttX IGMP support * net/uip/uip_igmp*.c: Add IGMP support (untested on initial checkin). * examples/igmp: Add a trivial test for IGMP (much more is needed) * configs/nucleus2g/usbserial and usbstorage: Add USB configurations for testing purposes. * arch/arm/src/common/up_internal.h, cortexm3/up_assert.c, */*_vectors.S: Correct compilations errors when CONFIG_ARCH_INTERRUPTSTACK is enabled (feature still not tested) 5.9 2010-08-25 Gregory Nutt * examples/nsh/nsh_telnetd.c: Fix compilation errors that happen when both DHCPC and TELNETD are enabled in the Nuttshell. * graphics/nxglib/fb/nxglib_moverectangle.c: Fix a logic error that caused an uninitialized variable warning. I still don't have a test to prove that the changes are correct. * configs/olimex-lpc2378: Add support for the CodeSourcery toolchain under Linux (contributed by Alan Carvalho de Assis). * arch/arm/src/lpc17xx/lpc17_gpio.c: Fix an important GPIO configuration bug: When attempting to set no pull-up or pull-down (floating), it would, instead, select pull-down. * arch/arm/src/lm3s/lm3s_gpioirq.c: Fix warning for returning a value from functions returning void (contributed by Tiago Maluta). * netutils/dhcpc/dhcpc.c: lease_time was not in host order * examples/uip/main.c: if DHCPC is selected, this example now shows the assigned IP address. * arch/arm/src/lm3s and arch/arm/include/lm3s: Definitions for the TI LM3S9B96 contributed by Tiago Maluta. * arch/arm/src/lm3s/lm3s_gioirq.c: Fix a logic error in the address table lookup. * arch/arm/src/lm3s/lm3s_gioirq.c: Also needs to enable the global GPIO interrupts. * arch/arm/src/lm3s/lm3s_internal.h and lm3s_gpio.c: Fixed the encoding of GPIO port number that limited support for GPIO ports to 8 * sched/pg_*.c and *.c and include/nuttx/page.h: Implemented the common, core logic for on-demand paging. See http://www.nuttx.org/NuttXDemandPaging.html for details. * drivers/usbdev/usbdev_serial.c: Correct compilation errors that occur if CONFIG_USBDEV_DUALSPEED is selected. * configs/ea3131/pgnsh: Add an NSH configuration with on-demand paging enabled. This is not expected to be a functionality configuration (at least not yet); it was created in order to debug the on-demand paging feature. * configs/ntosd-dm320/*/Make.defs: Codesourcery and devkitARM toolchains now supported for the Neuros OSD. * configs/ntosd-dm320 and arch/arm/src/dm320: Add support for the Neuros production OSD (changes contributed by bf.nuttx). 5.10 2010-09-07 Gregory Nutt * configs/ea3131/locked: Create logic to support a two pass build process: The first pass forces critical logic into the locked text region, the second pass builds the NuttX executable more-or-less as normal. * Makefile, arch/arm/src/Makefile, configs/ea3131: Add logic to support a two-pass final link. This logic is only in place in the arch/arm/src/Makefile for now. * arch/arm/src/lpc17xx/lpc17_internal.h: Add missing parentheses in macros definitions (patch submitted by Tiago Maluta). * Documents/NuttxPortingGuide.html, configs/README.txt, etc. - Replaced CONFIG_EXAMPLE with CONFIG_APP_DIR (see documents for desciption). This allows NuttX application code to be built outside of the examples/ directory. For people who have their own configurations and/or Makefiles, you will need to make a couple of changes: - Replace all occurrences of CONFIG_EXAMPLE=foobar with CONFIG_APP_DIR=examples/foobar in all of the configuration files. - Replace any occurrences of examples/$(CONFIG_EXAMPLE) with $(CONFIG_APP_DIR) - Replace any occurrences of lib$(CONFIG_EXAMPLE)$(LIBEXT) with libapp$(LIBEXT) in your Makefiles. - Check any other occurrences of CONFIG_EXAMPLE. * arch/arm/src/lpc313x/lpc313x_spi.c: Fix compilation error when when CONFIG_DEBUG is enabled. * arch/arm/src/lm3s and arch/arm/include/lm3s: Support for the lm3s8962 contributed by Larry Arnold. * configs/lm328962-ek: Support for the TI/Stellaris EKC-LM3S8962 board (also contributed by Larry Arnold). * arch/arm/src/lpc313x/lpc313x_boot.c: The call to lpc313x_boardinitialized() should not be conditioned on CONFIG_ARCH_LEDs being defined! * arch/arm/src/lpc313x/: APB0 and APB1 cannot lie in different sections; they are too close together. * arch/arm/src/lpc313x/lpc13x_boot.c: Resetting all of the clocking had a side effect of wiping out the first 6 words of memory where the interrupt vectors are located (and also not resetting the fractional dividers). This is not usually noticeable because the IRQ vectors are after this point, but really causes problems if you want to handle data and prefectch aborts which are within this zeroed region. 5.11 2010-10-01 Gregory Nutt * configs/ea3131/src/up_fillpage.c: Added new configuration item CONFIG_PAGING_BINPATH. If CONFIG_PAGING_BINPATH is defined, then it is the full path to a file on a mounted file system that contains a binary image of the NuttX executable. Pages will be filled by reading from offsets into this file that correspond to virtual fault addresses. up_fillpage.c implements logic to perform page files using the CONFIG_PAGING_BINPATH file. * configs/mbed: Add configuration to support the mbed.org LPC1768 board (Contributed by Dave Marples). * sched/sem_wait.c and sem_waitirq.c: Eliminate a race condition that can occur when a semaphore wait is interrupt by a signal. (see email thread: http://tech.groups.yahoo.com/group/nuttx/message/530) * drivers/mtd/at45db.c: Add a driver for the Atmel AT45DB161D 4Mbit SPI FLASH part (untested on initial check-in). * arch/arm/src/lm3s and arch/arm/include/lm3s: Corrections for the lm3s8962 port contributed by Larry Arnold. That port is purported to work correctly with these changes in place. * examples/ostest/prioinherit.c: Need to reinitialize globals if test is ran repeatedly in a loop. * configs/ez80f910200zco: Updated to used ZDS-II 4.11.1 5.12 2010-10-26 Gregory Nutt * arch/avr: Add a place to support AVR family processors. * arch/avr/include/avr32 and arch/avr/src/avr32: Add support for AVR32 (all of the AVR32 is a work in progress). * arch/avr/include/at32uc3 and arch/avr/src/at32uc3: Add support for the AVR32 UC3A/B family of AVR32 MCUs. * confgs/avr32dev1: Add support for the Atmel AVR32DEV1 board featuring the AT32UC3B0256 MCU. This board is produced by www.mcuzone.com. * include/stdlib.h, lib/Makefile, lib/lib_abs.c, lib/lib_labs.c, lib_labs.c, lib_llabs.c, lib_imaxabs.c: Add abs(), labs(), llabs(), and imaxabs(). * Add include/inttypes.h * arch/hc/src/mc9s12ne64: This hcs12 port grew a few more files. But it is still a long way from complete. * arch/*/src/*/*_sigdeliver.c: Fixed a serious error in the signal trampoline logic. Essentially, interrupts are re-enabled while the signal handler executes, but the logic to re-disable the interrupts before returning from the signal handler trampoline was missing. Under certain circumstances, this can cause stack corruption. This was discovered by David Hewson on an ARM9 platform, but since the code has been leveraged, the bug has been propogated from ARM to Cortex-M3, AVR32, M16C, SH1, ZNEO, eZ80, Z8, and Z80 -- almost every architecture. The correction has been incorporated for all architectures but only verified on a few. 5.13 2010-11-09 Gregory Nutt * lib/lib_strnlen.c: Added POSIX 2008 strnlen() function. Contributed by Michael Hrabanek. * Fix wild, consistent naming error. For some reason, I called the at32uc3* parts at91uc* everywhere. Fixed by changing lots of files and directories. * configs/avr32dev1/ostest: The AVR32 port now successfully passes the examples/ostest. We have a good AVR32 port! * configs/avr32dev1/nsh: Added a configuration to support the NuttShell (NSH). As of this writing, here is a problem receiving serial data (this is, very likely, my hardware setup). * lib/lib_open.c: Fix an error in fdopen when a valid file desciptor does not refer to an open file. * configs/olimex-lpc1766stk: Add support for the Olimex LPC1766-STK development board. The OS test and NSH configurations (only) have been verified. 5.14 2010-11-27 Gregory Nutt * configs/olimex-lpc1766stk/nettest: Add examples/nettest configuration to verify the LPC17xx Ethernet driver currently under development. * arch/arm/src/lpc17xx/lpc17xx_ethernet.c/.h: Began development of the LPC17xx Ethernet driver. Driver in CVS functional after 2010-11-23. * sched/timer_settime.c: Fix an error in set-up of a one-shot POSIX timer. It was using the repititive timer value (which is zero in the one-shot case), always resulting in a 10Ms timer! Found and fixed by Wilton Tong. * arch/arm/src/lpc17xx/lpc17_vector.S, stm32/stm32_vector.S, lm3s/lm3s_vector.S, sam3u/sam3u_vector.S: Fixed a hard fault problem that can occur if certain types of interrupts are pending at the time another interrupt returns (SYSTICK). This has not been verified on all plaforms, but is a critical fixed that is needed by all Cortex-M3 NuttX users. * configs/olimex-lpc1766stk/thttpd: Add a THTTPD configuration for the Olimex LPC2766-STK board. Verified successfully. * net/uip/uip_tcpappsend.c: Correct an important logic bug in some uIP state data the is used to manage retransmissions. The uIP logic was incompatible with the retransmission logic of net/send.c in one place. The final error was that the final packet in a sequence of packets was too large! In the THTTPD example, this would leave some garbage at the bottom of the display (or worse). I don't know why I haven't see this bug before??? * net/uip/uip_tcpinput.c: The change to uip_tcpappsend.c unmasked an additional error in the TCP sequence number handling. This sympom was that the send() function would hang with outstanding, unacknowledged data (with no re-transmit requests). The was due to differences in sequence number handling in send() and in uip_tcpinput.c; uip_tcpinput.c thought (incorrectly) that all of the bytes were acknowledged; send.c knew that they were not. 5.15 2010-12-12 Gregory Nutt * net/uip/uip_tcpaddsend.c and net/send.c: Another place where the TCP sequence number problem "fixed" in 5.14 might occur. * net/send.c: Check if the destination IP address is in the ARP table. If not, then don't consider the packet sent. It won't be, an ARP packet will go out instead. This improves behavior, for example, on the first GET request from a browser. * arch/arm/src/lpc17xx/lpc17_emacram.h and lpc17_allocateheap.c: The Ethernet logic was using all of AHB SRAM Bank0 for Ethernet packet buffers (16K). An option was added to limit the amount of SRAM used for packet buffering and to re-use any extra Bank0 memory for heap. configs/olimex-lpc1766stk/nettest now uses only 8K at the beginning of Bank0; the 8K at the end of Bank0 is included in the heap * arch/arm/src/lpc17xx/lpc17_ssp.c: Fix compilation errors when SSP1 is selected. * configs/olimex-lpc1766stk/nsh: Enable network and SD/MMC card support in NSH. Networking and telnetd interface as well as SPI-based microSD are now functional. * examples/nsh/nsh_netinit.c: Fix NSH bug. If CONFIG_NET is selected, but CONFIG_EXAMPLES_NSH_TELNETD is not selected, then the network is never initialized and bad things happen if you try to ping. * drivers/lcd: Add header files for the Phillips PCF8833 LCD controller and for the Epson S1D15G10 LCD controller. A driver for the Nokia 6100 LCD is coming. * include/nuttx/spi.h and almost all other SPI files: Added an optional cmddata() method to the SPI interface. Some devices require an additional out-of-band bit to specify if the next word sent to the device is a command or data. This is typical, for example, in "9-bit" displays where the 9th bit is the CMD/DATA bit. The cmddata method provides selection of command or data. * drivers/lcd/p14201.c: Now uses the cmddata() method of the SPI interface. * arch/arm/src/lpc17xx/lpc17_usbdev.c: LPC17xx USB driver now appears to to be fully functional. examples/usbstorage configuration verified (the examples/usbserial configuration is untested). * drivers/usbdev/usbserial.c and usbstorage.c: All USB class drivers need to call DEV_CONNECT() when they are ready to be enumerated. That is, (1) initially when bound to the USB driver, and (2) after a USB reset. * drivers/lcd/nokia6100.c: A driver for the Nokia 6100 LCD. This driver has not be verified as of the initial check-in. * configs/olimex-lpc1766stk/nx: A NX graphics configuration for the Olimex LPC1766-STK board using the Nokia 6100 LCD driver. This configuration has not been verified as of the initial check-in. * include/nuttx/spi.h: the SPI_SETBITS macro was calling the setmode method. This is a very important bug-fix in some usages. 5.16 2011-01-10 Gregory Nutt * include/nuttx/usb: Created new directory. Moved all usb-related header files to this new directory. Created a skeleton for a new USB host header file * drivers/usbhost: Add USB host "registry" where connect devices can be matched with the correct USB class driver. * arc/arc/src/lpc17xx/lpc17_usbhost.c: Add a simple USB host driver for the NXP lpc17xx. * drivers/usbhost: Add generic USB device enumeration logic. * drivers/usbhost: Add a USB host class driver for the (Bulk-Only) USB Mass Storage Class. 5.17 2011-01-19 Gregory Nutt * include/nuttx/usb: rename usb_storage.h to storage.h. * arch/arm/src/lpc17xx/lpc17_usbhost.c: Add support for low-speed devices. * drivers/usbhost/usbhost_skeleton.c: Template for new class drivers * include/nuttx/usb/hid.h and drivers/usbhost/usbhost_hidkbd.c: New files for HID keyboard support. * arch/arm/src/lpc17xx/lpc17_usbhost.c: Will now handle multiple concurrent transfers on different endpoints (still only one TD per endpoint). All methods are protected from re-entrancy; lots of re- structuring in preparation for interrupt endpoint support. * arch/arm/src/lpc17xx/lpc17_usbhost.c: Add support for periodic interrupt transfers. * examples/hidkbd: Added a simple test for the USB host HID keyboard class driver. * configs/olimex-lpc1766stk/hidkbd: Added a configuration to build the USB host HID keyboard class driver test for the LPC17xx. * Ran the tool CppCheck (http://sourceforge.net/apps/mediawiki/cppcheck) and fixed several errors in the code identified by the tool. 5.18 2011-02-27 Gregory Nutt * Incorporate several uIP patches from http://gitweb.aeruder.net/?p=uip.git;a=summary. - Lost SYNACK causes connection reset - Fix missing UDP stats for sent/received packets - Added support for Cygwin as development/test platform. * configs/demo9s12ne64: Integrate new buildroot-1.9 m8s12x toolchain. * 'uname -o' is used throughout the build logic in bash scripts and also in Make.defs files in order to distinguish between Cygwin and Linux. However, the -o option is not standard and is not supported under, for example, OS-X or Solaris. This was solved by changing all 'uname -o' references to the more complex: 'uname -o 2>/dev/null || echo "Other"' * drivers/usbhost/usbhost_enumerate.c: Add logic to get the VID and PID. This is necessary in order to support vendor-specific USB devices. * examples/wlan, configs/olimex-lpc1766stk/wlan, drivers/usbhost/usbhost_rtl8187.c, Add infrastructure to support RTL18187 wireless USB. * configs/nucleus2g: backed out USB host changes... wrong board. * Renamed arc/hc/include/mc9s12ne64 and src/mc9s12ne64 to m9s12. That name is shorter and more general. * The NuttX repository has been converted to SVN and can now be found here http://svn.code.sf.net/p/nuttx/code/trunk/ * configs/mbed/hidkbd: Added USB host support for the mbed LPC1768 board; add a USB host HID keyboard configuraion. * drivers/usbhost/hid_parser.c: Leverages the LUFA HID parser written by Dean Camera. * examples/nsh: Correct an usage of getopt(): If you stop calling getopt() before all parameters are parsed, you can leave getopt() in a strange state. * include/nuttx/video/fb.h: Restore missing RGB type that was accidentally removed when Nokia 6100 support was added. * Rename arch/pjrc-8051 to arch/8051 * configs/ne64badge: Add a configuration for the Future Electronics Group NE64 Badge development board (Freescale MC9S12NE64) * Changes contributed by Uros Platise: - Add support for the STM32F103RET6 - configs/vsn: Support for the ISOTEL NetClamps VSN V1.2 ready2go sensor network platform * arch/hc, configs/ne64badge: Development is complete for the Freescale mc9s12ne64 on the Future Electronics Group NE64 /PoE Badge board. Howeve, this port remains untested until I figure out this BDM / Code Warrior and paged build thing * Added a new 'kill' command to NSH that will support sending signals to running NuttX tasks. 5.19 2011-03-12 Gregory Nutt * arch/arm/stm32/stm32_idle.c: During idle times, the STM32 now uses the WFI instruction to sleep in a reduced power mode until the next interrupt occurs (Contributed by Uros Platise). * NSH: 'mem' command renamed to 'free'. Output is now more similar to the Linux 'free' command. * NSH: Correct a redirection bug in NSH. The following would not work; it resulted in a hang after the 'cat /dev/fifo': nsh> mkfile /dev/fifo nsh> cd /tmp # /tmp is a mounted RAM disk nsh> cat /dev/fifo > test.txt & nsh> echo "This is a test" > /dev/fifo The error was caused because (1) there was a path that resulted in stdout being closed (the "hang") and also (2) the 'cat' command was always outputting to stdout, not to the redirected file descriptor. Now: nsh> cat test.txt This is a test * drivers/pipes/pipe_common.c: Driver open method was not returning an EINTR error when it received a signal. Instead, it just re-started the wait. This makes it impossible to kill a background pipe operation from NSH. * include/stdint.h: Correct some errors in conditional compilation (submitted by Johannes Hampel). * arch/arm/lpc17xx/lpc17_idle.c: Uses the same logic as the STM32: uses the WFI instruction to sleep in a reduced power mode until the next interrupt occurs. * configs/olimex-lpc1766stk: Added an LED encoded to indicate if the LPC1766 is in sleeping. * examples/mm: This is a simplified version of the "built-in" memory manager test of mm/mm_test.c. It is simplified because it does not have access to the internals of the memory manager as does mm/mm_test.c, but it has the advantage that it runs in the actual NuttX tasking environment (the mm/mm_test.c only runs in a PC simulation environment). * drivers/mmcsd_sdio.c/h: Several corrections submitted by Uros Platise. * arch/x86: Provide support for x86 architectures. Support for the i486 architecture under QEMU is provided under arch/x86/include/i486, arch/x86/include/qemu, arch/x86/src/i486, and arch/x86/src/qemu. * configs/qemu-i486: "Board" support configurations for verifying the QEME i486 port. * arch/arm/src/stm32/stm32_spi.c: Correct base address of SPI3 (reported by Uros Platise). * drivers/mmcsd/mmcsd_sdio.c: Correct a loop termination condition (also reported by Uros Platise). * drivers/mtd/ramtron.c: Driver for SPI-based RAMTRON NVRAM devices FM25V10 (and others). Contributed by Uros Platise. * examples/nsh and tools/mkromfsimg.sh: Add support for platform-specific ROMFS-based NSH start-up scripts. * drivers/serial/uart_16550.c and include/nuttx/serial/uart_16550.h: Support for a generic 16550 UART. * configure/qemu-i486/nsh: QEMU NSH example. * ../apps: The apps directory add-on was created by Uros Platise. It supports a set of end-user applications than can be executed on top of NSH. Think of it this way: In a buckled-up embedded application, your end-user programs will probably have their own dedicated start-up logic. But, during development, you might want to have you applications available and executable from the NSH command line. This apps/ addon (and NSH hooks) was contributed by Uros to accomplish just that. * sched/sched_waitpid() and include/sys/wait.h: Provides a simple and very incomplete implementation of waitpid(). waitpid() is only available if CONFIG_SCHED_WAITPID is defined in your configuration file. * sched/atexit.c and sched/exit.c: The atexit function is not frequently used. In order to save a few bytes, it is now conditioned on CONFIG_SCHED_ATEXIT. It your application is currently using atexit(), you will need to add CONFIG_SCHED_ATEXIT to your configuration file. * drivers/net/slip.c: Add a SLIP driver (untested on initial check-in). * configs/olimex-lpc1766stk/slip-httpd: An example that uses SLIP to provide a serial-port based THTTPD web server. 6.0 2011-03-21 Gregory Nutt * lib/lib_fopen(): fopen() was not returning the correct errno value when the underlying open() failed. * include/net/uip/uip-arch.h: The uIP interface has been extended slightly so that drivers can be concurrenly filling and sending packet buffers. This capability was needed by the SLIP driver. * drivers/net/slip.c: Several corrections and some re-design of of the driver. * apps/ChangeLog.txt: the apps/ directory now has its own ChangeLog. * configs/vsn: - IDLE LED blinking fix - Added board power off function * arch/arm/src/stm32/stm32_gpio.c and stm32_internal.h: Fixed PullUp/Down Input Configuration. * arch/arm/src/lpc17xx/lpc17_serial.h: Now supports Auto-RTS and Auto-CTS modes. This is needed to support SLIP. * drivers/net/slip.c: SLIP is now basically functional on the LPC17xx with some caveats as described in the TODO list under LPC17xx. * arch/x86/include/i486/irq.h: Fix irqrestore() macro... it was not correctly re-enabling interrupts. * arch/x86/src: Fix numerous problems with i486/QEMU context switching. Basically, the logic was missing the cases to handle the differing stack frames when a priority change occurs and when no priority change occurs. * configs/qemu-i486/ostest and nsh: The QEMU i486 port is complete. it now passes the OS test and supports the NuttShell (NSH). * misc/drivers: Created a new directory to hold non-BSD licensed drivers that may be added into NuttX via an installation script. * drivers/usbhost/usbhost_rtl8187.c: A decision was made to incorporate code taken from the Linux kernel. That changes the licensing on this module to GPL. To avoid licensing contamination, this driver was moved to misc/drivers/rtl8187x *prior* to adding any of the GPL logic. There is an INSTALL.sh script at the location where the GPL driver(s) can be re-installed into the NuttX source tree. By re-installing the driver, you agree to the GPL licsensing and all of its implications. * Makefile, apps/Makefile, tools/configure.sh: add logic to copy configs///appdir to apps/.config and to simply the application configuration logic. * examples/nsh and apps/nshlib: Move the core NuttShell (NSH) logic out of the exemples directory and into the apps/ directory where it belongs. * apps/Makefile and configs/*/appconfig: Use '=' as the delimiter instead of '/' so that sub-directories in apps/ can be used. * apps/vsn: Move all VSN apps to apps/vsn. * nuttx/examples moved to apps/examples 6.1 2011-04-11 Gregory Nutt * arch/arm/include/lpc17xx/irq.h and arch/arm/src/lpc17xx/lpc17_gpio*.c: Fix several bugs in the GPIO interrupt logic. Submited by Decio Renno. * Initialization for the CONFIG_APPS_DIR is now supported during the earlier, 'context' build phase. * arch/arm/src/lpc17_gpioint.c: Finish coding of the LPC17xx GPIO interrupt logic. * net/netdev_unregister.c: Add capability to un-register a network device. * drivers/mmcsd/mmcsd_sdio.c: extra effort to correctly handle cases without the SDcard (but one issue still exists in STM32) * arch/arm/src/stm32/stm32_tim.*: Added basic timer support TIM1..TIM8 with output PWMs and interrupt logic * config/vsn/src: added basic support for Sensor Interface (GPIO and PWM Power Output, and the sif utility program) * fs/: Reorgnize header so that file systems can be built outside of the nuttx source tree * apps/namedapp/binfs.c: Create a tiny filesystem that can be used to show the internal named apps under /bin. * fs/fs_opendir.c: Correct an error that occurs when a file system is mounted in the root directory. This was discovered while mounting the named app's /bin directory. * lib/: Move all source files into a subdirectory of lib/ named after the header file in which the library function is prototyped. * sched/ and lib/pthread/: Move pthread attribute-related interfaces from sched/ to lib/pthread where they more appropriately belong. * sched/ and lib/semaphore/: Move some semaphore-related interfaces from sched/ to lib/pthread where they more appropriately belong. * syscall/: The beginnings of an optional syscall Kernel interface. * tools/mksyscall.c: Add a tool that will auto-generate syscall proxies and stubs from a comma-separated-value (CSV) data file. * arch/arm/src/cortexm3/mpu.h: Add a header file describing the Cortex-M3 MPU registers. * Numerous modifications to the build system. Various people have reported build problems since the re-organization and release of NuttX-6.0. I am unable to replicate the build problems in my environment, but the changes have be incorporated in hope of correcting the build issues in other environments. * drivers/i2c/st_lis331dl.c: I2C-based driver for the LIS331DL MEMS motion sensor. Contributed by Uros Platise. * Makefile: The NuttX build system will now supported building NuttX as two separately linked images: (1) a kernel-mode RTOS image, and (2) a user- mode application image that communicates to the RTOS kernel via system calls. A lot more still must be done. * user_initialize(): Eliminated the user_initialize() initialization hook. It is difficult to maintain and redundant: Board level initialization an up_initialize() provide the same kind of capability. * arch/*/include/*/type.h: On some compilers, char defaults as unsigned. Explicitly add signed to integer types if signed is what is required. * arch/*: For all architectures -- Global register state save structure (usually called current_regs) should be marked volatile; Added general capability to support nested interrupts (not fully realized for all architectures). * sched/task_create.c: Add support for starting kernel-mode thread. * drivers/usbdev/usbdev_serial.c: Fix reported by Sheref Younan. USB was being reset after serial driver was closed. As a result, you could no reopen the serial driver. * configs/lpcxpresso-lpc1768: Add a board configuration for the Embedded Artists LPCXpresso LPC1768 board. 6.2 2011-05-06 Gregory Nutt * arch/arm/src/lpc17xx/lpc17_gpioint.c: Correct errors in logic that maps and IRQ number into a register bit number. * Makefile: Fix an error introduced in the top-level Makefile in NuttX-6.1. This error only shows up if you have a /tftpboot directory. Then the make will fail with an obscure error about not being able to stat pass2. * configs/lpcxpresso-lpc1768/nsh: Add an NSH configuration for the LPCXpresso board. * configs/*/ld.script: Removed 'sh_link not set for section .ARM.edix' for a few of the builds. In you have this warning, it can be removed with the following change to the ld.script file: + __exidx_start = ABSOLUTE(.); .ARM.exidx : { - __exidx_start = ABSOLUTE(.); *(.ARM.exidx*) - __exidx_end = ABSOLUTE(.); } >sram + __exidx_end = ABSOLUTE(.); * arch/arm/src/lpc17xx: Correct some typos/bugs in configuration of LPC17xx UART2 and UART3. * nuttx/clock.h: Replace all references to the global variable g_system_timer with clock_systemtimer() (currently just a macro that that returns g_system_timer). * lib/string/strrch.c: Would fail if the searched-for character were the first character in the string. * tools/version.sh and mkversion.c: Tools to manage a NuttX version number file * sched/clock_getutc() and lib/time/lib_time.c: Add support for 1 second UTC interface. * net/net_dup2.c and include/nuttx/net.h: The conditional compilation for '#if CONFIG_NFILE_DESCRIPTOR > 0' was wrong in both of these files. It should be '#if CONFIG_NFILE_DESCRIPTORS > 0'. This causes a dup2() failure in THTTPD and a failure to get a CGI page. The consequence can be a very serious bug! * configs/lpcxpresso-lpc1768/usbstorage, thttpd, and dhcpd: Add an USB storage, THTTPD web server, and DHCP server configurations for the NXP LPCXpresso board. * drivers/lcd/ug-9664hswag01.c and ssd1305.h: Add support for Univision UG-9664HSWAG01 OLED with Solomon Systech SD1305 LCD controller. * configs/lpcxpresso-lpc1668/nx: Add a NX graphics configuration for the LPCXPRESO board. * graphics/nxglib/nxglib_nonintersecting.c: Fix some single bit errors in calculation of non-intersecting regions. This was causing an anomaly in examples/nx in column 0. * drivers/mtd/rammtd.c: Added a RAM based MTD driver. This RAM driver simulates FLASH and is useful for testing purposes. * arch/arm/src/arm/up_head.S: Fix backward conditional compilation. This cause the configs/mx1ads configuration to fail to build but does not appear to affect any other ARM9 build. * fs/nxffs: Adding a tiny, wear-leveling FLASH file system for NuttX. This file system is intended to be small and will have some limitations. The implementation is incomplete on initial checkin. * apps/examples/nxffs and configs/sim/nxffs: Add a test a a configuration that will be used to verify NXFFS. * fs/fat/fs_fat32.c and fs_fat32util.c: Incorpated two bugs with fixed provided by Sheref Younan. Thanks! * fs/nxffs: After a couple of weeks of testing and bug fixes, NXFSS appears stable and functional. 6.3 2011-05-15 Gregory Nutt * Remove clock_getutc(). It is replaces with clock_gettime(CLOCK_ACTIVETIME). Add other RTC related changes provided by Uros Platise. * arch/arm/src/stm32/stm32_flash.c: Add support for access to on-chip STM32 FLASH; beginning of integration with NXFFS (Uros Platise). * arch/mips: Added directory structure for PIC32 support * configs/pcblogic-pic32mx: Add directory structure for PCB Logic PIC32MX board * apps/include: Move include/apps to apps/include. A symbolic link is created at build time * Makefile: Removed support for Pascal pcode interpreter. Support for that interpreter has been moved to apps/interpreter/Makefile. * tools/mkdep.sh: Should not report an error if there are no files on the command line. This happens normally in certain configurations. * drivers/usbhost: Sheref Younan reported an error in the error handling when connection to a USB device fails. In certain fail cases, the logic would try to free the device class instance twice, the first was okay, but the second caused a crash. * graphics/nxbe/nxbe_colormap.c: Fix error noted by Bassem Fahmy. The function nxbe_colormap was change to nxbe_configure... apparently "search-and-replace" error. This error was not noticed before because most NX platforms do not use colormapping. * arch/rgmp and configs/rgmp. Add architecture support and build configuration for RGMP. RGMP is a project for running GPOS and RTOS simultaneously on multi-processor platforms. See http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further information about RGMP. * lib/stdio/lib_fclose.c: Must flush all buffered data when the file is closed. Instead, it was discarding the buffered data. * lib/stdio: All output stream logic was modified to support CONFIG_STDIO_LINEBUFFER. If standard C buffered I/O is enabled (CONFIG_STDIO_BUFFER_SIZE > 0), then this option may be added to force automatic, line-oriented flushing the output buffer for putc(), fputc(), putchar(), puts(), fputs(), printf(), fprintf(), and vfprintf(). When a newline is encountered in the output string, the output buffer will be flushed. This (slightly) increases the NuttX footprint but supports the kind of behavior that people expect for printf. 6.4 2011-06-06 Gregory Nutt * lib/drivers/cc1101: Add initial, functional CC1101 wireless driver (contributed by Uros Platise) * arch/mips and configs/pcblogic-pic32mx: The MicroChip PIC32MX port is now code complete and ready to begin testing. Unfortunately, it looks like testing will be delayed due to tool issues (My PICkit 2 will not work the the MPLAB debugger on PIC32; I will need to get a PICkit 3). * drivers/net/e1000.c/h: A PCI-based E1000 Ethernet driver submitted by Yu Qiang. * lib/net/lib_inetaddr.c: An implementation of the inet_addr() function submitted by Yu Qiang. * arch/arm/src/lpc31xx and arch/arm/include/lpc31xx: Renamed from lpc313x to make name space for other famiy members. * arch/arm/*/lpc31xx: Added support for the LPC315x family (untested). * sched/task_exithook.c: Functionality performed when a task exits or is deleted has been moved to a common file task_exithook.c. Now exit() functionality (like flushing I/O and calling registered atexit() functions, etc.) will be performed when a task is deleted as well. * mm/: Added support for CONFIG_MM_SMALL. Each memory allocation has a small allocation overhead. The size of that overhead is normally determined by the "width" of the address support by the MCU. MCUs that support 16-bit addressability have smaller overhead than devices that support 32-bit addressability. However, there are many MCUs that support 32-bit addressability *but* have internal SRAM of size less than or equal to 64K. In this case, CONFIG_MM_SMALL can be defined so that those MCUs will also benefit from the smaller, 16- bit-based allocation overhead. * lib/string/lib_strndup.c: Add standard strndup() library function. * net/getsockname.c: Added standard getsockname() to return the local address associated with a socket. * lib/stdio/lib_asprintf.c: Add asprintf() * configs/olimex-lpc1766stk/ftpc: Add a configuration to support testing of the FTP client shell. * fd/fs_fdopen.c and net/net_checksd.c: Add support so that fdopen may be used with socket descriptors. * net/recvfrom.c: Fix an error found in receiving small files via FTP: The small file is received a buffered in the readahead buffer, then the socket is disconnected. When the app calls recvfrom, the socket is already disconnected and the buffered data is stranded. Now, recvfrom will continue to return success after the socket is disconnected until the readahead buffer is drained. * olimex-lp1766stk/ftpc/defconfig: Many configurations have the MTU (CONFIG_NET_BUFSIZE) set to very small numbers, less then the minimum MTU size that must be supported -- 576. This can cause problems in some networks: CONFIG_NET_BUFSIZE should be set to at least 576 in all defconfig files. This has only been fixed in this defconfig file. 6.5 2011-06-21 Gregory Nutt * arch/avr/src/avr and arch/avr/include/avr: Adds general support for the Atmel 8-bit AVR family. * arch/avr/src/atmega and arch/avr/include/atmega: Adds support for the Atmel AVR ATMega family. * arch/avr/src/at90usb and arch/avr/include/at90usb: Adds support for the Atmel AVR AT90USB family. * configs/micropendous3: Adds a board configuration for the Opendous Micropendous 3 board. This board may be populated with several different members of the Atmel AVR AT90USB family. * configs/amber: This is a placehold for the Atmel ATMega128 Amber Web Server from SoC Robotics. Not much present in this directory on initial check-in. * configs/teensy: Adds a board configuration for the PJRC Teensy++ 2.0 board that features an Atmel AT90USB1286 MCU. * fs/fat: Offsets, sector numbers, etc. need to be off_t, not size_t. size_t is intended to be the maximum size of a memory object, not a file offset. This does not make any difference except on systems (like the AVR) where size_t is only 16-bits. 6.6 2011-07-11 Gregory Nutt * drivers/mtd/ramtron.c, net/net_checksd.c, fs/fs_fdopen.c, and include/nuttx/mii.h: Several structural changes made to get a clean compile under the ez80 ZDS-II toolchain (no design changes). * drivers/usbhost/usbhost_storage.c: Incorpated bugfixes reported by Sheref H. Younan: (1) Read capacity logic read largest block, not the number of blocks and was, therefore, off by one, and (2) Some devices stall of get Max LUN request if they support only a single LUN. Logic now assumes a single LUN if the get Max LUN request fails. * include/nuttx/arch.h, lib/stdio/lib_libvsprintf.c, lib/stdio/lib_fputs.c: Add a new configuration option to support extracting strings from FLASH or EEPROM or other memories where the string data cannot be accessed by simply de-referencing a string pointer. * arch/sim/src/up_romgetc.c: Used to test the basic logic to access strings without directly de-referencing a string pointer. * arch/avr/src/avr/up_romget.c: Used to access strings that lie in the first 64K of FLASH (But I still haven't figured out how to get strings to reside in FLASH without using the PROGMEM attribute). * configs/teensy/src/up_spi.c: Correct reading of SD CD and WP pins (was reading the wrong register. AVR SPI now appears to be functional. * arch/avr/src/at90usb/at90usb_usbdev.c: Correct USB initialization. Interrupts were being enabled BEFORE the interrupt handler was attached. * configs/sure-pic32mx: Add a configuration for the Sure Electronics, "Advanced USB Storage Demo Board," Model DB-DP11215 (http://www.sureelectronics.net/goods.php?id=1168). This board features the MicroChip PIC32MX440F512H MCU. (Untested on initial check-in). * configs/stm3210e-eval/nsh2: Add another NSH configuration for the STM32 with some different properties. * CONFIG_NSH_CONDEV: Add a configuration option to allow using a different character device (such a a different UART) for the NSH interface. This allows, for example, debug output to come from the console device while using another device for NSH. There are some issues on initial check-in: NuttX doesn't have termios and the console device has special properties that make using NSH awkward. Examples: No CR-LF expansion, no character echoing, no command line editting. * arch/arm/src/stm32/stm32_lowputc.c and stm32_serial.c. Correct seversl bugs involving serial port configuration. These bugs are only critical if you are trying to using multiple UARTs on STM32. * configs/stm3210e-eval/src/up_lcd.c: Add a driver for the STM3210E-EVAL's LCD. * configs/stm3210e-eval/nx: Add NX configuration for the STM3210E-EVAL. * configs/nuttx/arch.h (and arch/arm/src/stm32, configs/*/src/up_buttons.c): Standardize interfaces exported for button support and button interrupts. * configs/stm3210e-eval/src/up_buttons.c: Add interrupting button support. Also fixes a few errors in STM3210E-EVAL button decoding. * configs/stm3210e-eval/buttons: Add a configuration to exercise STM3210E-EVAL buttons. * arch/arm/src/stm32/stm32_gpio.c: GPIO interrupt handling for pin numbers were being aliased: 5-9 together and 10-15 together. Extended the logic to peform decoding of GPIO interrupts and unique dispatching for all 16 pins. * configs/stm3210e-eval/nxtext: Add a configuration for the apps/examples/nxtext example. This example focuses on placing text on the background while pop-up windows occur. Text should continue to update normally with or without the popup windows present. * arch/arm/src/common/up_checkstack.c: ARM stack overflow checking submitted by Hal Glenn. * arch/arm/src/lpc17xx: Changes to compile successfully with no serial console (also submitted by Hal Glenn). * graphics/nxfonts/nxfonts_convert.c: Fixed a critical bug that caused when renderer some fonts with bits-per-pixel > 8 * graphics/nxbe/nxbe_move.c: Fixed an error in the graphics move logic (This was a previously untested interface). Basically, there is some confusion between use of (x,y) as a relative offset or as an absolute position. * graphics/nxbe/nxbe_close.c: Fixed an important graphics system bug: When a window is closed, the display was not being updated. The old window graphic was left on the display for a time. 6.7 2011-08-02 Gregory Nutt * Makefile: Added a export target that will bundle up all of the NuttX libraries, header files, and the startup object into an export-able tarball. * arch/arm/src/lpc17xx/lpc17_can.h: Correct some typos in the CAN register definitions. * drivers/serial/serialirq.c: Correct an error that can occur if the serial RX buffer becomes full. Data is now discarded in that case; before, leaving data in the hardware would cause infinite interrupts one most MCUs since you must read the data in order to clear the interrupt. * arch/arm/src/lpc17xx/lpc17_can.c: Added a CAN driver contributed by Li Zhuoyi (Lzyy). * include/stddefs.h and sys/types: Added type wchar_t. * fs/fat/fat_fat32dirent.c: Move all FAT directory operations to this new file; Implement VFAT long file name support. * fs/fat/fat_fat32dirent.c: The configuration CONFIG_FAT_LCNAMES has been around for some time but never tested until now. This setting will mimic the NT 8.3 file name behavior: File names or extensions may be all upper or all lower case (but not mixed). If CONFIG_FAT_LCNAMES is not selected, all filenames are strictly upper case. * configs/stm3210e-eval/nsh2: Console is back on UART1; Added examples/nx as an NSH "built-in" command as a demonstration. * fs/fat/fs_fat32dirent.c: Fix an important bug in the directory allocation (fat_allocatedirentry()). I looks like it could be initializing the wrong sectors! NOTE: This function was in fs_fat32utils.c in earlier releases. * arch/arm/src/stm32_sdio.c: Correct an important DMA-related bug; SDIO transfer completion events and DMA completion eventes were not being coordinated correctly. * configs/stm3210e-eval/nsh2: Enable FAT long file name support * sched/sem_timedwait.c: Add the standard sem_timedwait() interface. * graphics/nxfonts/nxfonts_getfont.c, nxfonts_bitmap.c, Makefile.source, and include/nuttx/nxfonts.h: Support for multiple fonts included. A new interface, nxf_getfonthandle() takes a font ID and returns a handle that is now used at all other font interfaces to specify which of the multiple fonts to use. * arch/arm/src/lpc17xx/lpc17_syscon.h: Fix typo (reported by Li Zhuoyi). * configs/stm3210e-eval/nsh2: Extended to support two new commands: 'msconn' will connect the USB mass storage device; 'msdis' will disconnect the USB storage device. * tools/bdf-converter.c. This C file is used to build the bdf-converter program. The bdf-converter program be used to convert fonts in Bitmap Distribution Format (BDF) into fonts that can be used in the NX graphics system. * include/nuttx/nx: Move all NX header files from include/nuttx to include/nuttx/nx. * drivers/usbdev/usbdev_usbstorage.c and arch/arm/src/stm32/stm32_usbdev.c: Correct a memory leak when the USB mass storage driver is connected and then disconnected from the target. The write requests were not being freed. NOTE that the unregister logic in the STM32 needed to call stm32_reset() in order to return the write requests to the USB mass storage driver; it is possible that a similar but could exist for other architectures. * graphics/nxfonts/nxfonts_*.h: Add serveral more new fonts * arch/z80/src/ez80/ez80_serial.c: Fix some errors in serial driver setup for UART1 (submitted by Paul Osmialowski). * drivers/input/tsc2007.c and include/nuttx/input/*: Add a generic NuttX touchscreen interface. Add a driver for the TI TSC2007 touchscreen controller. * graphics/nxglib/lcd and fb: Add low level routines to set single pixels. * lib/math/lib_b16atan2.c: Add a fixed precision atan2() function * graphics/nxglib/nxglib_splitline.c: Add logic to divide a wide line into trapezoidal components. * graphics/nxmu/nx_drawline.c, graphics/nxsu/nx_drawline.c, graphics/nxtk/nxtk_drawlinewindow.c, graphics/nxtk/nxtk_drawlinetoolbar.c: Add new line drawing interfaces (untested). 6.8 2011-08-19 Gregory Nutt * arch/arm/src/lpc17xx/chip.h: Fix some chip memory configuration errors for the LPC1764, LPC1756, and LPC1754 (submitted by Li Zhuoy (Lzyy)) * arch/arm/src/lpc17xx/lpc17_can.h: Revised CAN driver submitted by Li Zhuoy (Lzyy). The driver now supports both CAN1 and CAN2. * arch/arm/sim/up_lcd.c: Add a simulated LCD driver. * configs/stm3210e-eval/nxlines: Added a configuration to build examples/nxlines. * arch/graphics: Used apps/examples/nxlines to (finally) verify the NX trapezoid drawing functions and (wide) line drawing functions. * arch/rgmp and configs/rgmp. Yu Qiang has ported RGMP to the OMAP4430 (arm) pandaboard and release the new RGMP 0.3 version. The main changes are: (1) Separate configs/rgmp/x86 and configs/rgmp/arm configuration directory, and (2) Extract architecture dependent code in arch/rgmp/include and arch/rgmp/src into corresponding x86/ and arm/ directories. * arch/arm/src/kinetis, arch/arm/include/kinetis, configs/kwikstick-k40: Add a directory structure to support the port to the Kinetis KwikStik-K40. There is no real substance in the initial check-in; only the directory structure and skeleton files (Code complete on 8/15/11). * arch/arm/include/armv7-m, arch/arm/src/armv7-m, etc.: Rename all cortexm3 directories and files to armv7-m; Change name of of all CORTEXM3 constants to ARMV7M. This is a major namespace change needed to cleanly support the ARM Cortex-M4 which is also in the ARMv7 M Series (specifically, ARMv7E-M). * sched/sig_initialize.c, sig_received.c, and mq_waitirq.c. Fixed several critical bugs related to signal handling initialization and for signals the wake up tasks that are waiting to send or receive message queues. In the first two files, errors would prevent proper allocation of signal-related structures from interrupt handlers. In the second, there was missing "clean-up" logic after a signal occurred, leaving the message queue in a bad state and resulting in PANICs. All are important. (submitted by hkwilton). * arch/arm/src/kinetis: Added header files defining all Kinetis registers and bit fields within all Kinetis registers. * configs/twr-k60n512: Add support for the Kinetis K60 Tower board (TWR-K60N512). * drivers/can.c: Fixed a semaphore overflow problem in the CAN driver (reported by Li Zhouy (Lzyy)). * 8/18/2011: The basic port to the FreeScale Kinetics TWR-K60N512 board is now functional. * confgs/twr-k60n512: Add Kinetics TWR-K60N512 NSH configuration. * drivers/analog and include/nuttx/analog: Add ADC driver infrastructure and TI ADS1255 driver developed and submitted by Li Zhouy (Lzyy)). * arch/arm/stm32/stm32_sdio.h and drivers/mmcsd/mmcsd.c: Add logic to multiplex usage of the GPIO pins (contributed by Uros Platise). * configs/twr-k60n512/nsh: Added and verified a NuttShell (NSH) configuration for the Freescale, Kinetis TWR-K60N512 board. 6.9 2011-09-11 Gregory Nutt * arch/arm/src/kinetis/kinetis_sdhc.c: SDHC driver for Kinetis parts. Initially check-in is just a crude port of the STM32 SDIO driver. Much more work is needed. * graphics/, include/nuttx/nx: Add new NX interfaces for drawing circles -- both circular outlines and filled circles. * graphic/nxglib/nxglib_spitline.c: Add a "fudge factor" that eliminates some problems for rendering nearly horizontal, wide lines. Hmm... but I suspect this fudge factor also leads to new problems rendering very thin, nearly horizontal lines. More tuning is needed. * drivers/analog, include/nuttx/analog, arch/arch/src/lpcxx: (1) Add updates to the ADS1255 driver, (2) fix errors from my last merge (sorry), (3) Add DAC infrastructure, (4) add AD5410 DAC driver, and (5) add LPC17xx ADC and DAC drivers. All contributed by Li Zhuoyi (Lzyy). * tools/mkexport.sh: Extended the script that implements the top-level 'make export' logic. The script now also finds and bundles up all of the architecture-specific header files as well. * drivers/arch/arm/src/stm32/stm32_i2c.c: Add a reset to the I2C initialization logic to prevent spurious interrupts when the I2C interrupts are enabled (submitted by Uros Platise). * Scripts/makefiles/documents. Several adjustments, corrections and typo fixes so that NuttX will build correctly on FreeBSD using the ASH shell (submitted by Kurt Lidl). * drivers/mtd/flash_eraseall.c: Add a callable function that accepts the path to a block driver and then erases the underlying FLASH memory (assuming that the block driver is an MTD driver wrapped in the FTL layer). Hmmm... this is probably not the best long term solution; flash_eraseall() should be a user-callable function that operates one driver interfaces; not an internal, OS function that operates on directly on block drivers. * drivers/bch: Fixed some important bugs in the BCH driver (noted by Li Zhuoyi (Lzyy)). This would have effected any large reads or writes (larger than the hardware sector size). * arch/*/src/Makefile: Use of -print-libgcc-file-name to get path to libgcc.a may select the wrong libgcc.a if a multilib toolchain (like CodeSourcery) is used. This can be a serious problem and can cause crashes on Cortex-M3 if the ARM libgcc is used, for example. The fix is to include ARCHCPUFLAGS on the gcc command line when asking it to -print-libgcc-file-name. * lib/time/lib_gmtimer.c: Correct several calculations that could lead to errors in dates. * drivers/pm: Add the beginnings of a NuttX power management sub-system. * arch/arm/src/stm32/stm32_irq.c: Fix a error introduced in 6.8. Timeout calculation uses clock_settime() instead of clock_gettime(). Pretty gross error, but actually it works with the side effect of setting a bad time. * drivers/mtd/at24xx.c: Driver for I2C-based at24cxx EEPROM submitted by Li Zhuoyi (Lzyy). * arch/arm/src/lpc17xx/lpc17_i2c.c: I2C driver for the NXP LPC17xx family submitted by Li Zhuoyi (Lzyy) * arch/arm/src/stm32_i2c.c: Correct two issues with the STM32 I2C driver: (1) Clocking needs to be based on PCLK1, not HCLK and fast speed settings need some additional bits; and (2) Correct a hang that will occur on I2C1 if FSMC is also enabled. * drivers/sensors/lm75.c and include/nuttx/sensors/lm75.h: Add an LM-75 temperature sensor driver. * configs/stm3210e-eval/src/up_lm75.c: Add support for the LM-75 on the STMicro STM3210E-EVAL board. * sched/clock_gettime.c: Correct an error in the tv_nsec calculation that happens only config CONFIG_RTC is enabled. * arch/arm/src/stm32/stm32_i2c.c: Correct some bugs related to waiting for the I2C STOP condition to be cleared. 6.10 2011-10-06 Gregory Nutt * lib/stdio/lib_fopen.c: Fix an error in fopen(); the file pointer was not being positioned at the end of the file when the "a" and "a+" modes are used. There are other issues with the "a+" modes (see the top-level TODO list). * drivers/usbdev/cdc_serial.c and include/nuttx/usb/cdc.h and cdc_serial.h: Add support for the CDC ACM serial device class. * fs/fat/fs_fat32.c: Fix a critical bug in the write logic: It a tiny write cross a sector boundary, then two sector writes will occur. The first part in the first sector may be written to the wrong sector number. * fs/fat/fs_fat32util.c: Fix a stray write into the FAT (always sector 964 on FAT32). This bug will cause some lost chains. I'm sure this bug could corrupt files but at present, the only thing I have seen is that before fixing this bug, the Windows chkdsk utility would report these lost chains. * arch/arm/src/stm32/stm32_i2c.c: Driver can now operate in a faster polled mode (at the expense of using more cpu cycles). * arch/arm/src/stm32/stm32_i2c.c: Add trace debug capability. Enabled with CONFIG_I2C_TRACE. * arch/arm/src/stm32/stm32_i2c.c: Fix another bug where I2C conflicts with FSMC being enabled. That time at the tail end of the transaction where there is an unfinished stop condition. * sched/mq_timedreceive.c and sched/mq_timedsend.c: The count of threads waiting on the message queues was not being decremented after a timeout. This would cause the accounting logic to become out of sync and the, perhaps, an assertion to be triggered. This is an important bug and fixes a potential crash when using mq_timedreceived() and mq_timedsend(). * sched/mq_sndinternal.c: Related to the above, the send logic was incrementing the wrong counter when it waited as part of the mq_timedsend.c logic. * fs/fat: Fix an error in the long file name logic: If the long file name is an even multiple of 13 bytes in length, then it should not include a NULL terminating character. Fix contributed by Kaushal Parikh. * configs/sim/nx11: Created a separate configuration to build the NX example using the a simulated framebuffer driver on an X11 window. This example has been verified on Ubuntu 9.09 (it does not work on Cygwin). * arch/sim/src/up_touchscreen.c and up_x11eventloop.c: Adds support for a simulated NuttX touchscreen device using mouse/pointer feedback from an x11 window. * configs/sim/touchscreen: Adds a configuration to verify the simulated touchscreen driver (Does not work on Cygwin). * configs/sam3u/touchscreen: This is the configuration that I plan to use to verify the SAM3U-EK touchscreen driver. However, as of this writing, there is no touchscreen driver for the board. * CONFIG_RTC_HIRES: Add an option to support either a high-resolution RTC that completely replaces the system timer tick but may overflow and lose time when the MCU is off and also for a low-resolution (1 sec/tick) RTC that can run until 2106 with no overflow. But in this latter case, higher resolution time must come from the system timer. * CONFIG_SYSTEM_UTC: Removed support for the UTC system timer. It just doesn't do enough to be worth the CPU cycles or the complexity. * CONFIG_SYSTEM_TIME16: Added support for an optional 64-bit system timer. * fs/fat/fs_fat32util.c: Add support for FAT date/time stamps; Enabled via CONFIG_FS_FATTIME. * arch/arm/src/sam3u/sam3u_spi.c: Add an SPI driver for the AT91SAM3U. * drivers/input/ads7843e.c and include/nuttx/input/ads7843e.h: Add a driver for the TI ADS7843E touchscreen controller. * fs/nxffs/nxffs_open.c: Fix an error when a file is open for writing; since the file will get deleted it is already exists, there must be a check if there are other open references to the file. * arch/arm/src/stm32/stm32_sdio.c: Fixed an error where during SDHC initialization interrupts were not being re-enabled. Caused more subtle errors than you would think. * arch/arm/src/stm32/stm32_i2c.c: Fixed an error where I2C timeouts appeared to be successful transfers. * configs/sim/nsh2: Add another simulated NSH configuration. This one supports X11 graphics, C++, and exercises graphic functions as built-in commands. 6.11 2011-11-12 Gregory Nutt * arch/arm/stm32/Make.defs: Don't build stm32_rtc.c if CONFIG_RTC is not selected. Doing so will cause errors if other configuration dependencies are not met. * configs/stm3210e-eval/src/up_lcd.c: Color corrections for SPFD5408B LCD do not work with R61580 LCD. * configs/pic32-starterkit: Beginning of a configuration for the Microchip PIC32 Ethernet Starter Kit. Hmmm.. I don't have a clue how to test this with no serial port?! * lib/stdio/lib_fclose.c: fclose() always returns an error (EOF) when it closes a read-only file. This is because it calls flush() which will fail on read-only files. No harm is done other that a bad value is returned. * arch/sim/src/Makefile: Correct build issue for sim/nsh2 target. Old libboard.a was not being cleaned. * arch/mips/src/pic32mx/pic32mx-gpio*.c: Add GPIO support for the PIC32MX. * configs/sure-pic32mx/src/up_leds.c and up_buttons.c: Add button and LED support for the Sure Electronics PIC32MX board. * configs/ea3152: Add a configuration for the Embedded Artists LPC3152 daughter board (with the same base-board used with configs/ea3131) * graphics/nxmu/nx_getrectangle.c, graphics/nxsu/nx_getrectangle.c, graphics/mxtk/nx_getwindow.c, graphics/nxmu/nx_gettoobar.c: New interfaces to read from graphics memory * graphics/nxbe/nxbe_bitmap.c: Fix an error in the error handling that can cause valid bitmaps to fail to render. * include/nuttx/video/rgbcolors.h: Fix errors in some 16- and 8-bit color conversion macros. * tools/incdir.sh: Fix issues when g++ is used as the compiler. It was not being recognized and handled properly. * graphics/nxsu/nx_releasebkgd.c: Fix a bad cast that was causing problems with the background window was released. * fs/nxffs/nxffs_pack.c: Correct a critical bug in the NXFFS file system: When repacking the filesystem, there was a missing check to see if an inode structure would fit at the end of a block. This is a rare case if the block size is large, but can be common for tiny block sizes and results in a crash and file system corruption. * fs/nxffs/nxffs_initialize.c: Fix an initialize error. If the FLASH is full on power-up, NXFFS will fail to initialize correctly. * fs/nxffs/nxffs_write.c and nxffs_pack.c: Fix an error that can occur when attempt to write to FLASH volume that is completely full but has no value inodes on it. * drivers/mtd/at24xx.c: Now supports a configurable block size that supports using "clusters" of AT24 pages as blocks. This allows bigger block sizes and more efficient use of EEPROM when the AT24 is used to support a file system (such as NXFFS). (Contributed by Hal Glenn). * include/nuttx/video/rgbcolors.h: More fixes to RGB color conversion macros. * arch/arm/src/common/up_createstack.c and up_usestack.c: For ARM EABI the stack must be aligned to 8-byte boundaries. This is necessary for passing aligned floating point values under EABI. Fix contributed by David Sidrane. * Numerous changes and fixes to the PIC32 interrupt handing logic. The PIC32 port is almost complete but still not ready for prime time. 6.12 2011-12-06 Gregory Nutt * fs/fat/fs_fat32util.c and fs_fat32.h: Logic extended to look in up to four partitions for a valid FAT file system. * drivers/input/tsc2007.c: Add support for 8-bit conversions; make sure that A/D converters are active before requesting conversions. * drivers/mmcsd0/mmcsd_sdio.c: Increase capacity variable from size_t to uin64_t (if available) so that SD cards with capacities greater than 4Gb can be supported. * fs/fat/fs_fat32dirent.c: The root directory structure is different from other directories. When formatted by Windows, it is not initialized at all. Some additional special handling is required to initialize the root directory entry to interoperate correctly with windows. * fs/fat/fs_fat32util.c: In fat_systime2fattime(void) should be clock_gettime() and not clock_gettime(). Also, there is a place where FAT date is used instead of FAT time. (Thanks to David Sidrane). * arch/arm/src/stm32 and arch/arm/include/stm32: Add support for the STM32F40xxx family of MCUs. * configs/stm3240g-eval: Add framework for the STMicro STM3240G-EVAL board. * include/sys/types.h: wchar_t is a builtin type in C++ and its declaration can cause errors with certain C++ compilers. * sched/sig_timedwait.c: Fix signal handling when the returned info is NULL. Before this change, it would derefence a NULL pointer in this case. * graphics/nxfonts/nxfonts_sans17x22.h and nxfonts_sans20x26.h: Add some very small sans serif fonts. * graphics/nxfonts/nxfonts_sans17x23b.h and nxfonts_sans20x27b.h: Add corresponding sans serif bold fonts. * drivers/input/ads7843e.c and tsc2007.c: Fix some errors in the poll setup error checking that was cloned into both drivers. * sched/mq_notify.c: Set errno appropriately on failures. There are still several message queue functions that do not set errno! * arch/arm/src/stm32: Fixes to several STM32F40xxx files (contributed by Mikhail Bychek). * configs/stm3210e-eval/src/up_lcd.c: Fix banding problem on the R61580 LCD * configs/stm3240g-eval/ostest: The basic STM32F40xx bringup is functional (11/12/06) for the STM3240G-EVAL board and passes the OS test. * configs/stm3240g-eval/nsh: Adds a NuttShell (NSH) configure for the STM3240G-EVAL board. 6.13 2011-12-26 Gregory Nutt * arch/arm/src/stm32/stm32f40xxx_dma.c: Add DMA support for the STM32 F4 family (untested on initial check-in) * arch/arm/src/armv7-m/up_fpu.c: Add logic for saving an restoring VFP floating point registers on context switches (but also disable the FPU because CodeSourcery doesn't support hard flowing point!) * arch/arm/src/stm32/chip/stm32_eth.h: Add Ethernet register definitions for the STM32 F4. * arch/arm/srcm/stm32/stm32_eth.c: Adds an Ethernet driver for the STM32 F4. * arch/arm/srcm/stm32/stm32_dac.c and stm32_adc.c: "Skeleton" files for STM32 DAC and ADC drivers. The actual logic will come later. * arch/arm/srcm/stm32/stm32_eth.c: There may be a few more lurking bugs, but the STM32 Ethernet driver appears to be fully functional on the STM3240G-EVAL. * arch/arm/srcm/stm32/stm32_eth.c: Fix an error in clearing abnormal interrupt events. * configs/stm3240g-eval/dhcpd: Add a DCHP daemon configuration for the STM3240G-EVAL board. * configs/stm3240g-eval/nettest: Add a network test configuration for the STM3240G-EVAL board. * arch/arm/srcm/stm32/stm32_rtc.c, stm32f10xxx_rtc.c, and stm32f40xxx_rtc: Broke out separate drivers to handle the very different RTC implementations in the STM32 F1 and F4 family. * arch/arm/srcm/stm32/stm32f10xxx_rtc.c: STM32 F4 RTC is functional (12/14/2011) * net/uip-arp.c: Fix compilation issue with CONFIG_NET_ARP_IPIN * include/nuttx/pwm.h and drivers/pwm.c: Add an interface definition and a "upper half" driver for PWM output. * arch/arm/src/stm32/stm32_pwm.c: Added a PWM "lower half" driver for the STM32. The initial check-in is little more than a framework for the driver. * arch/arm/src/stm32/stm32_usbdev.c: Corrected two CRITICAL errors in the USB device-side driver: (1) Handling of data overrun condition was wrong. When there was no further memory to accept further OUT endpoint data, the driver would hang with infinite interrupts; (2) the logic in setting toggle bits was not correct. However, this driver has functioned for a long time until the particular condition that revealed the bug occurred. My impression is that this latter bugfix also fixes some STM32 USB performance problems. * configs/hymini-stm32v: A configuration for the HY-Mini STM32v board contributed by Laurent Latil. These changes also include support for the STM32F103VCT6. * arch/configs/stm3240g-eval/src/up_pwm.c: Add hooks needed to use the new apps/examples/pwm test of the STM32 PWM driver. * drivers/mtd/mp25x.c: Add ability to use different SPI modes and different manufacturers codes. Fix a error in the wait for not busy (submitted by Mohammad Elwakeel. * arch/arm/src/stm32/stm32_can.c: Add a low-level STM32 CAN driver. (Initial check is incomplete). Add loopback support to the driver. * arch/arm/src/stm32/stm32_adc.c: The ADC is now functional. A more complete driver would require DMA support. I have some questions still about the accuracy of the timer-driven sampling. * configs/sure-pic32mx/nsh: The PIC32 port is (finally) functional. Add an NSH configuration for the Sure PIC32MX board. * configs/sure-pic32mx/*/defconfig. Calibrated all PIC32 delay loops. * configs/pcblogic-pic32mx/nsh: Add an NSH configuration for the PCBLogic PIC32 board. * Both PIC32 OS test and NSH configurations have now been verified. 6.14 2012-01-15 Gregory Nutt * tools/Makefile.export, mkexport.sh, and configure.sh: Changes submitted by Mike Smith to support configuration and 'make export' on MAC OS. * arch/arm/src/stm32/stm32_gpio.c: Disabled interrupts while configuring GPIO pins so that we have exclusive access to the GPIO configuration registers. * arch/mips/src/pic32mx/pic32mx_usbdev.c: Add a USB device-side driver for the PIC32MX family. * arch/arm/src/stm32/stm32_gpio.c: Correct an error in some of the GPIO initialization logic. Fix submitted by Mike Smith. * configs/olimex-lpc1766stk/src/up_leds.c: Add new interfaces so that is CONFIG_ARCH_LEDS are not set, the LEDs may be controlled from application logic. * configs/olimex-lpc1766stk/src/up_buttons.c: Add support for the buttons on the Olimex LPC1766-STK board. * Makefile: Added 'apps_clean' and 'apps_distclean' target to simplify managing the state of the application directory while in the NuttX directory * Documentation/NuttXGettingStarted.html: Added a "Getting Started" Guide for NuttX. At present, this is just a stub and it refers to the NuttX top-level README.txt file which is the only, real "Getting Started" Guide that exists at the time being. * arch/arm/src/lpc17xx/lpc17_gpioint.c: Correct an value used as the lower end of an IRQ number range test. * arch/arm/src/lpc17xx/lpc17_gpio.c: Fix a integer flow problem in shift. This error would prevent pins > 15 from being used as interrupt sources. * arch/arm/src/stm32/stm32_can.c: The CAN driver has been verified in loopback mode on the STM3240G-EVAL board. * configs/stm3240g-eval/src/up_adc.c: Complete coding of ADC support for the potentiometer on board the STM3240G-EVAL. * arch/arm/src/lpc17_can.c: Several CAN driver improvements. Adds support for testing in loopback mode. now uses all three transmit buffers for better performance. * confgs/olimex-lpc1766stk/nsh: Now supports the CAN loopback test as an optional "built-in" application. * sched/irq_attach.c: Fix an issue with disabling interrupts when they are detached. For the PIC32, this can't be done because there is a 1-to-many relationship between vector numbers and interrupt numbers or different. Added a new configuration option CONFIG_ARCH_VECNOTIRQ to at least flag the architectures that have this issue and to (at least) avoid doing something too wrong. * drivers/can.c: Fix a test for buffer full in the generic, "upper half", can driver. * arch/arm/src/lm3s: Add support for the LM3S6432S2E (Contributed by Mike Smith) * configs/lm3s6432-s2: Add support for the TI RDK-S2E (LM3S6432S2E) board (Contributed by Mike Smith) * configs/stm3240g-eval/src: Add APIs support to support user access to the LEDs * arch/arm/src/lpc17xx/lpc17_can.c: Add logic to change the CAN bit rate based on the NuttX configuration. * arch/arm/src/lpc17xx/lpc17_can.c: PCLK divisor is now a configuration option. * arch/arm/src/stm32/stm32_serial.c and stm32_lowputc.c: Support for UART4-5 and USART6 added by Mike Smith. Also includes a more flexible way of managing UART pin configurations. * include/nuttx/pwm.h, drivers/pwm.c, arch/arm/src/stm32/stm32_pwm.c: Add support for pulse count in order to better support stepper motors. * arch/arm/src/stm32/stm32_dumpgpio.c: Checking wrong register to see if GPIO is enabled. Also not adding the GPIO base address to several offsets. * configs/stm32f4discovery: Port to the STMicro STM32F4Discovery board (Contributed by Mike Smith). * fs/fat/fs_fat32util.c: On a failure to recognize a FAT file system, the mount logic should return -EINVAL, not -ENODEV. * arch/arm/src/stm32/stm32_tim.c: Support for STM32 F4 32-bit timers (Contributed by Mikhail Bychek) * lib/stdio/lib_vsprintf.c: Add support for fixed-size fields with floating point numbers (Contributed by Mikhail Bychek) 6.15 2012-02-12 Gregory Nutt * arch/arm/src/stm32/stm32_pwm.c: Pulse count was limited to 128; now is (essentially) unlimited. * configs/stm3240g-eval/include/board.h: Input frequencies wrong for all but one APB2 timer. * arch/mips/src/pic32mx/pic32mx-ethernet.c: The PIC32 Ethernet driver is code complete, but still untested. * confgs/sim/*/Make.defs and arch/sim/src/Makefile: Add support for building a 32-bit executable on a 64-bit Linux target. * configs/sure-pic32mx/src/up_leds.c: Correct GPIOs used for LEDs. The wrong pins were being used. * arch/arm/src/stm32/chip/stm32f10xxx_gpio.h: Correct offset to one AFIO EXICR register. * arch/arm/src/lpc17xx/lpc17_can.c: Added "advanced" configuration options to specify the CAN TSEG1 and TSEG2 clock counts specifically. * include/nuttx/can.h and drivers/can.c: Add support for extended (29-bit) CAN IDs. * arch/arm/src/lpc17xx/lpc17_can.c: Add support for extended (29-bit) CAN IDs. * arch/arm/src/stm32/stm32_can.c: Add support for extended (29-bit) CAN IDs. * include/nuttx/power/pm.h: Move include/nuttx/pm.h into a sub-directory named power. * drivers/power: Rename the drivers/pm directory to power * include/power/battery.h and drivers/battery.c: Add the interface definitions for an upper and lower half battery driver. Add the implementation of the common upper half battery driver. * drivers/power/max1704x.c: Add a driver for MAX17040x battery "fuel gauge" * arch/arm/src/stm32/stm32_i2c.c: Add support for I2C3 * drivers/usbdev/: Lots of name changes: cdc_serial->cdcacm, usbstrg->usbmsc, usbser->pl2303 * drivers/usbdev/composite: Fleshed out support for a composite USB device. * drivers/stm3210e-eval/composite and drivers/stm3210e-eval/src/up_composite.c: Add a configuration test the USB composite device. * include/nuttx/usb/usb.h, drivers/usbdev/composite_descriptors.c, and drivers/usbdev/cdcacm_descriptors.c: Add support for the USB Interface Association Descriptor (IAD) * arch/arm/src/stm32/stm32_i2c.c: Correct a typo in STM32 I2C3 support (submitted by Mike Smith) * arch/*/src/Makefile: Candidate solution for dependency issue in the board sub-directory: By making libboard.a a "phony" target, libboard.a should always rebuilt (the end result is worth the small increase in build time) (submitted by Mike Smith). * include/net/psock.h: Added a new low level socket interface that allows the OS to use the socket interface without having a socket descriptor. * include/net/psock.h: Removed psock.h. The new interfaces are moved into nuttx/net.h which already has similar logic. * include/nuttx/usb/usb.h: Can't use 'class' as a field name in USB structures. This upsets C++ if usb.h is included. 'class' -> 'classid' in this header file and all places that referenced 'class' * drivers/usbdev/usbmsc.c: Fixed some backward conditional compilation. * sched/on_exit.c: Add support for the on_exit() function., * sched/exit.c, task_exithook.c, task_delete.c, sched_releasetcb.c: Move the logic that closes file descriptors sooner in the task shutdown sequence. When drivers are closed, they may need to do things that require a fully up-and-running task. Some things cannot be done later when the task is crippled. * lib/dirent: Moved readdir_r() and telldir() from lib/misc to this new directory where they belong. * lib/termios. Implemented tcsetattr() and tcgetattr(). * lib/stdio/lib_fgets.c: The old fgets includes some terminal related functionality: It handles VT-100 commands, includes a command line editor and echo characters back to the terminal. This old, overloaded fgets() was renamed readline() and moved to apps/system/readline. The version of fgets() in lib/stdio was them simplified and stripped down so that it *only* gets a string -- as its description implies. * arch/arm/src/lpc214x/lpc214x_usbdev.c: Add corrections suggested by David Hewson many, many months ago. * configs/mcu123-lpc214x/composite and configs/mcu123-lpc214x/src/up_composite.c: Add a configuration to test the USB composite device. * configs/stm3240g-eval/Telnetd: Add a configuration for testing the Telnet daemon. * configs/stm3240g-eval/nsh2: This is another NSH configuration. It differs from the original nsh configuration because it does not have an RS-232 console (only a Telnet console) and SDIO is enabled. This configuration is required because the STM3240G-EVAL board cannot simultaneously support RS-232 and SDIO due to pin conflicts. * lib/string/lib_strcasestr.c: Add strcasestr(). * lib/stdio/lib_avsprintf.c: Add avsprintf(). * lib/net/lib_inetntop.c: Add inet_ntop(). * lib/net/lib_inetpton.c: Add inet_pton(). * include/pthread.h: Correct PTHREAD_MUTEX_INITIALIZER. * fs/fat/fs_fatfs.c: Fix an error in the FAT statfs() implementation that was causing some block counts to be reported incorrectly (reported by David Sidrane). * drivers/ramlog.c: Add a character driver that can substitute for /dev/console and or be used for logging debug output when there is no serial port available (such as when a Telnet console is used). * lib/stdio/lib_syslogstream: Add a stream object that will be used to re-direct all debug output to the RAM log if CONFIG_SYSLOG and CONFIG_RAMLOG_SYSLOG are defined. * lib/misc/lib_dbg.c: Add an interface enabled with CONFIG_DEBUG_ENABLE that can be used to turn debug output on and off. 6.16 2012-03-10 Gregory Nutt * drivers/sensors/qencoder.c and include/nuttx/sensors/qencoder.h: Add an implementation for a quadrature encoder upper half driver. * arch/arm/src/stm32/stm32_qencoder.c/.h: Add a initial implementation of a lower-half quadrature encoder driver for the STM32. On initial check-in, this is little more than a "skeleton" file. * Various files: CAN ISO-11783 support contributed by Gary Teravskis. * net/recv.c and net/recvfrom.c: Correct a bug in return value: The the peer gracefully closes the connections, needs to return zero and not ENOTCONN. * arch/arm/src/stm32/stm32_eth.c: Fix an error in the STM32 ethernet driver. The received buffer size must be two bytes larger to account for the two byte checksum that is appended to the packet. Otherwise, the last two bytes of real data in the packet will get clobbered. * arch/arm/src/stm32f40xx_dma.c: The STM32 F4 DMA has (finally) been verified * arch/arm/src/stm32_sdio.c: STM32 F4 SDIO DMA is now supported * configs/stm3240g-eval/nsh/defconfig: This configuration now supports SDIO with DMA (see configs/stm3240g-eval/README.txt for some issues). * arch/arm/src/armv7-m/up_vectors.S and arch/arm/src/armv7-m/up_vectors.S: New, streamlined Cortex-M exception handling (with FPU supported). Contributed byh Mike Smith * net/accept.c, connect.c,and net_monitor.c: Correct an error in the accept logic. After a new connection is made via accept(), monitoring for losses of TCP connection must be set up (just as with connect()). The new file net_monitor.c holds the common TCP connection monitoring logic used by both the accecpt() and connect() logic. Contributed by Max Nekludov. * net/recvfrom.c and net/uip/uip_tcpcallback.c: Fix a leak in the TCP read-ahead logic. This is a *critical* bug fix! * net/uip/uip_tcpinput.c: Correct an error in the TCP stack. It was incrementing the received sequence number BEFORE determining if the incoming data could be handled. If the data was dropped (usually because there is insufficient buffering space), then no ACK will be sent and the sequence number will be wrong. The end consequence of the bad sequence number was that the when the dropped packet was re-transmitted, it was was ignored because its sequence number looked wrong. Fix was, obviously, to only increment the recevied sequence number if the TCP data was accepted. * configs/stm3240g-eval, configs/stm32f40discovery, and arch/*/src/Makefile: Add changes to support building with the Atollic "Lite" toolchain. * fs/fs_select.c: Correct select(), in the case of loss of network connection (POLLHUP), select() must report a read-ready event. This is how the standard select() interface is supposed to work: In the case of loss-of-connection, select() reports read-ready. The next time you read from the socket, you detect the end-of-connection event. Change submitted by Max Nekludov. * arch/arm/src/armv7-m/up_fpu.S and arch/arm/src/stm32/stm32_vectors.S: Fix lazy FPU register saving with CONFIG_ARCH_FPU is set in the configuration. * arch/arm/src/armv7-m: Lazy saving of floating point registers on context switches now seems to be functional. * net/uip/uip_tcpinput.c: Fix a TCP protocol error reported by Max Nekludov. * configs/stm3240g-eval, configs/stm32f40discovery: Add changes to support building with the Atollic "Pro" toolchain. * Makefile: Use the more common .hex extension for Intel hex files instead of more precise .ihx extension. This change has ripple effects to many build- related scripts and programs and could cause some short-term problems. * configs/stm3240g-eval/, arch/arm/src/stm32/up_allocateheap.c: Add support for the 16-mbit SRAM on-board the STM3240G-EVAL board. * drivers/usbdev/cdcacm.c and include/nuttx/usbdev/cdcacm.h: The CDC/ACM driver can now be dynamically connected and disconnected from the host under software control. * include/nuttx/arch.h, configs/stm3240g-eval/src/up_cxxinitialize.c, and configs/stm3240g-eval/src/up_cxxinitialize.c: Add support for C++ static initializers. * net/setsockopt.c, net/getsockopt.c, net/bind.c, net/socket.c: Add more low level, thread-independent socket interfaces for use within the OS. Some of these are currently used by the FTP controlling terminal. More will be used to support the NFS file system currenly underwork. * include/nuttx/net/: Major re-organization of networking headerf files. Moved all non-standard, NuttX-specific header files from include/net and include/nuttx into include/nuttx/net. * arch/mips/src/pic32mx/pic32mx_usbdev.c: The PIC32 USB driver now appears to be fully functional. * configs/sure-pic32mx/usbnsh and configs/sure-pic32mx/src: Add support for NSH using only USB serial I/O to support the console. This is useful on devices that have USB, but no serial port. * arch/mips/src/pic32mx/pic32mx_spi.c: Add a PIC32 SPI driver. Initial checkin is primitive, incomplete (lacks interrupt logic), and untested. * configs/pic32-startkit/nsh: Completed verification of the PIC32 Ethernet Starter Kit port. Added and verified the NuttShell (NSH) on the PIC32 Ethernet Starter Kit. I can now (finally) claim to have complete the basic port to this board. * configs/pic32-startkit/nsh/up_usbdev, up_nsh.c, and up_usbterm.c: Verified the USB (device) driver on the PIC32 Ethernet Starter Kit. * arch/mips/src/pic32mx/pic32mx_ethernet.c: Verified the PIC32 Ethernet driver on the PIC32 Starter Kit. Status: It is occasionally functional but not stable enough for use. * arch/arm/include/stm32, arch/arm/src/stm32: Add general support for the STM32 F2 family. Contributed by Gary Teravskis, * configs/stm3220g-eval: Add support for the STMicro STM3220G-EVAL board. Contributed by Gary Teravskis, 6.17 2012-04-14 Gregory Nutt * configs/sure-pic32mx: Add support for the Sure DB-DP11212 PIC32 General Purpose Demo Board * arch/arm/src/stm32/stm32_usbhost.c/.h: Add files that will (eventually) hold an STM32 USB host driver (the initial check-in is the NuttX LPC17 USB host driver with name changes only). * arch/arm/src/stm32/chip/stm32_otgfs.h: STM32 USB OTG FS register definitions (not complete on initial check-in). * net/connect.c: Add another low level, thread-independent socket interface for use within the OS. * arch/mips/src/pic32mx/pic32mx_ethernet.c: The PIC32 Ethernet driver is now stable on the PIC32 Starter Kit. * configs/pic32-starterkit/nsh2: Add a PIC32 Ethernet Starter Kit NSH configuration that has no serial console; all interaction is done via Telnet. * net/netdev_sem.c: Correct a deadlock condition by making a seamphore recursive. To my knowledge this deadlock only occurs when running the NSH command ifconfig over Telnet. In that case the function netdev_foreach takes the network device semaphore, but so does the telnet logic causing the deadlock. * arch/arm/src/stm32/stm32_pm*.c: Add basic STM32 power management logic that will eventually be used to implement low power states. * arch/arm/src/stm32/stm32f*0xx_rcc.c: In order to use CAN2, both CAN1 and CAN2 clocking must be enabled. * arch/mips/src/pic32mx/picm32mx-usbdev.c: Several stall-related fixes so that the USB device driver can used the mass storage class (which does a LOT of stalling as part of its normal protocol). The PIC32 USB Mass Storage device is, however, still non-functional when debug is OFF. * include/nuttx/fs: Move all file-system related files from include/nuttx to include/nuttx/fs. * include/nuttx/serial: Move all serial-driver related files from include/nuttx to include/nuttx/serial. * include/nuttx/clock.h and sched/clock_initialize.c: Add a new OS interface called clock_sychronize() that can be used to re-synchronize the NuttX system time with a hardware RTC. This function is called normally at power up but may also need to be called when recovering from certain low-power usage states where the system time is no longer accurate. * arch/arm/src/calypso and arch/arm/include/calypso: Support for the TI "Calypso" phone processor. Contributed by Denis Carilki and includes the work of Denis, Alan Carvalho de Assis, and Stefan Richter. * configs/compal_e88 and configs/compal_e99: Support for Compal e88 and e99 phones Contributed by Denis Carilki and includes the work of Denis, Alan Carvalho de Assis, and Stefan Richter. * arch/arm/src/lpc17xx: Several fixes for error that have crept in for the LPC17xx DAC. Contributed by by Lzyy. * graphics/nxconsole: Add a character driver that can be used as a console output device for text output (still under development on initial check-in). * graphics/nxmu: Fix several compilation errors that have crept into the multi- user NX server because of lack of use. * graphics/nxconsole: The NX text console is basically function (in multi- user NX mode only). * arch/arm/src/stm32/stm32_i2c.c: Correct a bug in the STM32 I2C driver. The behavior of I2C status bits seems to be different between F1 and F4. * configs/stm3210e-eval/nxconsole: New STM32 F1 configuration that runs the NuttShell (NSH) within an NX window. * graphics/nxconsole/nxcon_sem.c: Add protection from re-entrance with debug is enabled. * include/nuttx/ascii.h and vt100.h: Header files to centralize ASCII and VT100 escape sequence definitions. * graphics/nxconsole/nxcon_vt100.c: Add add framework to support VT100 escape sequences in NxConsole. * fs/fs_read.c: Fix read() return value for attempt to read from write-only file or device. Was returning EBADF, should return EACCES. * graphics/nxconsole.c: NxConsole now supports backspace and a cursor. * Kconfig and arch/sim/Kconfig: Beginnings of support for a NuttX configuration tool. Currently using the kconfig parser 'kconfig-frontend' available at http://ymorin.is-a-geek.org/projects/kconfig-frontends (version 3.3.0-1 is also available in the NuttX SVN at trunk/misc/tools/kconfig-frontends-3.3.0-1.tar.gz). Contributed by Lzyy. * */Kconfig: Added skeleton Kconfig files to all directories that may need them. * include/nuttx/math.h: Moved include/math.h to include/nuttx/math.h because it conflicts too often with the system math.h (and people aren't inclined to read the documentation on how to handle this). Now, if CONFIG_ARCH_MATH_H=y is defined, the top-level makefile will copy the redirecting math.h header file from include/nuttx/math.h to include/math.h. So for the architectures that define CONFIG_ARCH_MATH_H=y, include/math.h will be in place as it was before; for the architectures that don't select CONFIG_ARCH_MATH_H, the redirecting math.h header file will stay out-of-the-way in include/nuttx/. * Kconfig, sched/Kconfig, lib/Kconfig, libxx/Kconfig, arch/sim/Kconfig, drivers/Kconfig, drivers/mtd/Kconfig, drivers/input/Kconfig drivers/analog/Kconfig, drivers/lcd/Kconfig: Updated kernel configuration support provided by Lzyy. * Kconfig: Many more Kconfig updates (no longer tracking in the ChangeLog) * arch/arm/src/Makefile, arch/x86/src/Makefile, arch/avr/src/Makefile, arch/mips/src/Makefile, arch/sim/src/Makefile, arch/hc/src/Makefile, arch/sh/src/Makefile: The libgcc.a in newer versions of GCC now have an dependency on an external implementation of abort(). This required modification to the Makefiles that do the final link: Now libgcc.a must be included within the group of libraries that are search recursively. * arch/arm/srm/stm32/stm32_otgfsdev.c: A USB OTG FS device-side driver for the STM32 F4 (and maybe F2 and F1 connectivity line). * tools/cmpconfig.c: A tool for comparing two configuration files. * include/nuttx/usb/usbdev.h, drivers/usbdev/*, arch/*/src/*/*usb*.c: Extend the USB device side interface so that EP0 OUT data can be passed with OUT SETUP requests. * include/nuttx/watchdog.h: Add the definition of a standard watchdog driver interface. * drivers/watchdog.c: The "upper half" watchdog timer driver. 6.18 2012-05-19 Gregory Nutt * Kconfig: Continued Kconfig file updates (no longer tracking on a per-file basis in the ChangeLog) * arch/arm/src/stm32/stm32_iwdog.c and stm32_wwdog.c: Add the STM32 IWDG and WWDIG watchdog timer driver. * configs/stm3240g-eval/src/up_lcd.c: Add LCD from for the STM3240G-EVAL (the initial check-in is just a stm3210e-eval driver with renaming). * sched/sched_setscheduler.c: Correct successful return value (Contributed by Richard Cochran). * include/fcntl.h and lib/stdio: Ignore CONFIG_STDIO_LINEBUFFER is the file was opened in binary mode. * lib/stdio/lib_fopen.c: Correct an error in parsing open mode string. The plus sign may not appear right after the basic mode. For example, "r+", "rb+", and "r+b" are all valid open strings and mean the same thing. * lib/stdio/lib_fopen.c: Correct return errno value from f_open() and f_fdopen() if the open mode string is invalid. * drivers/serial/serial.c: Do not disable Rx interrupts on each byte. Rather, only disable Rx interrupts when the Rx ring buffer may be empty. * include/nuttx/usb/audio.h: USB Audio 1.0 definitions (in progress). * arch/arm/src/stm32/stm32fxx_dma.c: STM32 F4 DMA now supports circular buffer mode (contributed by Mike Smith) * arch/arm/src/stm32/stm32_serial.c: The serial driver can now support Rx DMA into a circular buffer (contributed by Mike Smith) * configs/pic32mx7mmb: Beginning of a configuration for the Mikroelektronka PIC32MX7 Multimedia Board (MMB). * net/recvfrom.c: Fix a compilation problem. Some UDP logic was conditioned on TCP, not UDP. * drivers/usbdev/cdcacm.c: Fix an infinite loop that occurs when the serial device is unregisters. * arch/arm/src/stm32/stm32_otgfs.c: The driver needs to reset the software (in order to flush the requests) and to disable the software connection when the device is unregistered. * include/sys/prctl.h, sched/prctl.c, include/pthread.h: Add interfaces to support getting and setting of the thread or task name. * configs/ubw32: Added a configuration to support the Sparkfun UBW32 PIC32 board. * configs/ubw32/nsh: Added an NSH configuration for the Sparkfun UBW32 PIC32 board. * configs/ubw32/up_buttons.c: Added button support for Bit Whacker board. * configs/stm3240g-eval/nxconsole: Added a configuration to run the NSH shell in an NX window for the STM3240G-EVAL board. * include/cxx/cunistd: C++ header file to make sure that everything in unistd.h is in the std:: namespace. * configs/sim/nxwm: Added a configuration for testing the NuttX Window Manager (NxWM) * fs/fs_fcntl.h: On success, always returned OK. However, some fcntl commands require returning other values on success. * Various files. Fix warnings about variables that were initialized by not used. * configs/sim/*/defconfig: Changes to build a 32-bit simulation on a 32-bit platform did not make into all of the Make.defs files. * graphics/nxmu/nx_move.c: Wrong opcode was being used in the server message; Also there was an error in the offset calculation. * graphics/nxglib/fb/nxglib_moverectangle.c: Offset argument is really a position, not an offset. * graphics/nxtk/nxtk_drawframe.c: Framed windows are now drawn in three colors (instead of just two). * drivers/input/stmpe811_*: Added a driver to support the STMicro STMPE811 IO Expander and touchscreen driver. * configs/stm3240g-eval/nxwm: Added to configuration for testing the NxWM window manager on the STM3240G-EVAL board. * graphics/nxtk/nxtk_toolbarbounds.c: Added an interface to get the toolbar bounding box. * graphics/nxtk/nxtk_drawframe.c: Fix an error in drawing the window frame. * NX, NxConsole: Replace CONFIG_NXCONSOLE_NOGETRUN to CONFIG_LCD_GETRUN. The inability to read from the LCD is a property of the LCD, not of NxConsole. Then add CONFIG_NX_WRITEONLY which is the more generic way of saying that no NX component should try to read from the underlying graphic device (LCD or other). * configs/stm3240g-eval/src/up_stmpe811.c: Add board-specific support for the the STMPE811 I/O expander on the STM3240G-EVAL board. Verfied that the STM3240G-EVAL touchscreen is now fully functional. * include/cxx/cfcntl: Added std:: header file. * graphics/nxbe/nxbe_filltrapezoid.c and graphics/nxglib/fb/nxglib_filltrapezoid.c: Fix several errors in the trapezoid fill logic. * include/nuttx/input/touchscreen.h, configs/hymini-stm32, configs/stm3240g-evel, * configs/sam3u-ek, configs/sim, arch/sim/src/up_touchscreen.c, and apps/examples/touchscreen: Standardize the board-specific, touchscreen initialization interfaces. * drivers/input/stmpe811_base.c and configs/stm3240g-eval: The STMPE811-based touchscreen seems to work better with edge (vs. level) interrupts * drivers/input/stmpe811_tsc.c: Fix some status checks so that the touchscreen interrupt handling logic does not read data if the fifo is not at the threshold level. * include/nuttx/wqueue.h: Add macro work_available() to determine if the previously scheduled work has completed. * drivers/stmpe811_tsc.c: Correct errors: (1) Since all interrupt logic is done on the worker thread, disabling interrupts does not provide protected; Need to disable pre-emption. (2) Fix handling of touch ID and (2) add some logic to prevent certain kinds of data overrun. * include/nx/nxtk.h and graphics/nx/nxtk/nxtk_internal.h: Move setting of configuration defaults from the internal header file to a place where other logic can use the defaults. * graphics/nxtk/nxtk_events.c: Fixed an important but in the logic that translates the mouse/touchscreen position data for framed windows and toolbars. * drivers/input/stmpe811_tsc.c, tsc2007.c, and ads7843e.c: Need to keep track of when if positional data is valid. When the touch is released, the X/Y position of the release must be the same as the X/Y position of the last touch (se that the release occurs in the same window as the last touch). * graphics/nxtk/nxtk_events.c: Fix an error in mouse/touchscreen input logic: Was autoraising the window AFTER processing the mouse press. This raises havoc if the result of processing the mouse click was to raise some other window! * graphics/nxtk/nxtk_events.c: I had to disable the whole autoraise feature for multi-user case because it does not work correctly. In a scenario where (1) there are multiple queued touchscreen events for the same window and (2) the result of the first input was to switch windows, then the autoraise implementation will cause the window to revert to the previous window. Not good behavior. * sched/sched_mergepending.c: Add task switching instrumentation. There is a case here where instrumentation was missing. Contributed by Petri Tanskanen. * CONFIG_STMPE811_THRESHX, CONFIG_STMPE811_THRESHX, and drivers/stmpe811_tsc.c: Add some thresholding controls to all slow down processing of touchscreen samples. This is a problem with NX in multi-user mode: touchscreen data gets sent via a message and when the message queue gets full the sender blocks and touch events are lost. Basic data overrun. The badly effects touchscreen human factors. * include/sched.h: Fix a typo (missing semicolon) in prototype of on_exit(); * sched/on_exit.c and include/nuttx/sched.h: Fix some old typos that caused compilation errors when CONFIG_SCHED_ONEXIT is defined. * configs/stm3240g-eval/nxwm/defconfig: The default NxWM now uses the STMPE811 touchscreen. * include/cxx/csched: Added * graphic/nxmu/nxmu_sendserver.c, nxmu_sendwindow.c, and nxmu_sendclient.c: Refactor NX messaging logic in preparation for a new message control feature. * graphics/nxtk, graphics/nxmu, include/nuttx/nx: Add a new window communication to support blocking and flushing of client window messages. If there are stale, queue window messages at the time that a window is destroyed, very bad things happen. 6.19 2012-06-15 Gregory Nutt * graphics/nxconsole/nxcon_kbdin.c: If selected, the NxConsole will take input from the NX keyboard input callback. If this option is set, then the interface nxcon_kdbin() is enabled. That interface may be driven by window callback functions so that keyboard input *only* goes to the top window. If CONFIG_NXCONSOLE_NXKBDIN is not selected, then the NxConsole will receive its input from stdin (/dev/console). This works great but cannot be shared between different windows. Chaos will ensue if you try to support multiple NxConsole windows without CONFIG_NXCONSOLE_NXKBDIN * graphics/nxmu/nx_kbdin.c: Fix pointer argument. This is a error introduced in changes leading up to the 6.18 release. This error will cause crashes or perhaps simply not work when you try to handle window keyboard data in multi-user mode. * graphics/nxconsole/nxcon_kdbind.c: Fixed unmatched sem_wait and sem_post. Fix some conditional compilation that included a few too many lines of code. * drivers/input/stmpe811_tsc.c and stmpe811.h: Add a timeout to catch missed pen up events. Now the STM3240G-EVAL touchscreen works very smoothly. * configs/stm3240g-eval/nxwm/defconfig: Enable support for NxConsole keyboard input. Increasing spacing of icons. * configs/stm3240g-eval/nxwm/defconfig: Use a larger font for the calculator. * include/nuttx/lcd/ssd1289.h, drivers/lcd/ssd1289.c and .h: Generic LCD driver for LCDs based on the Solomon Systech SSD1289 LCD driver. This of this as a template for an LCD driver that will have to be cusomized for your particular LCD hardware. * configs/stm32f4discovery/src/up_extmem.c and up_ssd1289.c: Add support to STM32F4Discovery for than an external, SSD1289-based LCD. * configs/stm32f4discovery/nxlines: Add an STM32F4Discovery configuration to thest the SSD1289-based LCD. * configs/stm3240g-eval/src: Add USB GPIO initialization logic needed in board-specific boot logic. * configs/stm32f4discovery/src: Add USB GPIO initialization logic needed in board-specific boot logic. * drivers/usbdev/pl2303.c and cdcacm.c: Fix the request size used for sending packets. It was not using the maximum request size, but instead the previous request size. As a result, packets get smaller, and smaller, and ... This is an important USB serial fix. * arch/arc/src/stm32_otgfsdev.c: Bug fix: Don't process TXFE if we have already processed an XFRC interrupt. We have already done what needs to done in that case. * arch/arc/src/stm32_otgfsdev.c: Fixed some status settings in queuing of write messages. Added a "hack" to work around missing TxFIFO empty interrupts. The hack is basically to poll for space in the TxFIFO instead of of setting up the interrupt. * arch/arm/src/stm32/stm32f2* and chip/stm32f2*: Update all STM32 F2 file so that they are equivalent to F4 files. This is kind of a maintenance nightmare. * configs/stm3220g-eval/: Update existing configurations to the same level as the corresponding STM3240G-EVAL configurations. This adds FSMC SRAM, touchscreen, and LCD support. * configs/stm3220g-eval/: Add a NxWM configuration for the STM3220G-EVAL. * stmpe11*: Fix a massive naming problem. All references to STMPE11 should be STMPE812. * arch/arm/src/stm32/stm32_otgfsdev.c: Need to enabled USB reset interrupt (contributed by Erik Van Der Zalm). * sched/sleep.c: Fix the return value from sleep(). The correct behavior is to return the number of unwaited seconds; the implementation was always returning zero. * sched/usleep.c and include/unistd.h: Was a void function, but should return 0 on success. usleep() needs to check the return value from sigtimedwait(). sigtimewait() returns the signal number that awakened it and an error (EAGAIN) if the timeout expired (normal case). * sched/sig_timedwait.c: Fix sigtimedwait() return value. On a timeout, it was setting the 8-bit si_signo field to -1 and eded up reported successfully awakened by signal 255! Now detects the timeout and errors -1 with errno == EGAIN. If sigtimedwait() is awakened by an unblocked signal, but it is not one of the signals in the waited-for set, it will return -1 with errno == EINTR. * arch/arm/src/stm32_i2c.c: Fix STM32 F2 I2C. It is apparently bug-for-bug compatible with the F4 and needs the same work-around for the missing BTF signal that was needed for the F4. * drivers/lcd/ssd1289.*: Fix some of the initial register settings. * configs/stm32f4discovery/src/up_ssd1289.c: FSMC address bit 16 is used to distinguish command and data. But FSMC address bits 0-24 correspond to ARM address bits 1-25, se we need to set bit 17 in order generate output on FSMC_A16. * arch/arm/src/lm3s/lm3s_epi.h and lm3s_timer.h: LM3S header files (contributed by Max Neklyudov). * arch/arm/src/stm32/stm32_irq.c: Some of the interrupt priorities were not be initialized (F2 and F4 only). Thus, the very high numbered interrupts (like UART6) and cause nested interrupts. This leads to some very difficult to debug crashes. Fix contributed by Mike Smith. * arch/mips/src/pic32/pic32_head.S and pic32_config.h and configs/pic32mx7mmb/include/board.h: Extended PIC32 device configuration capabilities and change board.h to support unique clocking requirements of the Mikroelektronika PIC32MX7 MMB. That board now works! * configs/pic32mx7mmb/nsh: Added and verify a NuttShell configuration for the Mikroelektronika PIC32MX7 MMB board. * arch/mips/pic32/pic32mx-ethernet.c: Fix logic that guesses PHY address; the search loop missed the PHY address needed by the Mikroelektronika PIC32MX7 MMB board. * configs/pic32mx7mmb/nsh: Configuration now supports a network by default. * configs/pic32mx7mmb/src: Add support for the MMC/SD slot on board the Mikroelektronika PIC32MX7 MMB board (not working on initial check-in). * arch/mips/src/pic32/pic32mx-spi.c: Add support for very low-level, register access debug output. * configs//pic32mx7mmb/include/board.h: Reduced peripheral clock to 4MHz to match other PIC32 configurations. * configs/pic32mx7mmb/src/up_nsh.c: SD card needs to operate in SPI mode 2. * configs/pic32mx7mmb/nsh/defconfig: MMC/SD card support is now enabled by default in the PIC32MX7 MMB board configuration. * configs/pic32mx7mmb/nsh/defconfig: Verified the USB Mass Storage Class (MSC) using MMC/SD card as the logical unit. Updated the default PIC32MX7 MMB board configuration so that USB and the mass storage class are enabled by default. * drivers/lcd/mio283qt2.c and include/nuttx/lcd/mio283qt2.h: Add generic support for the MIO283QT2 LCD. * configs/pic32mx7mmb/src/up_mio283qt2.c: Add support for the MIO283QT2 LCD on the PIC32MX7 MMB board. * configs/pic32mx7mmb/src/up_touchscreen.c: Add an ADC-based touchscreen driver for the PIC32MX7 MMB board. Kind of works, but needs more verification and tuning. * arch/mips/src/common/up_idle.c: Strange but important fix. For some still- unknown reason, interrupts are left in an unhealthy state in the IDLE when the work queue is enabled. This is partially because some interrupt related logic is not built in that case. Simply disabling then re- enabling interrupts restores the proper state. * graphics/nxglib/lcd/nxglib_filltrapezoid.c and fb/nxglib_filltrapezoid.c: Fix an error when the trapezoid is only 1 line high. In this case, a divide by zero error would occur. The fix is to draw the 1 line high trapezoid as a run. * drivers/usbdev/pl2303.c: Fix a cut'n'paste error that snuck into the PL2303 emulation driver several months back. 6.20 2012-07-12 Gregory Nutt * configs/stm3210e-eval/src and arch/arm/src/stm32/: Add beginnings of power management support for the STM32 and the STM3210E-EVAL board, in particular. * Documentation/NfsHowTo.html: Add a How-To document for the new NFS client feature. * arch/mips/include/pic32mx and arch/mips/src/pic32mx: Add support for the PIC32MX1 and PIC32MX2 families. * configs/mirtoo: Add a board configuration to support the DTX1-4000L "Mirtoo" module from http://www.dimitech.com/ * tools/pic32mx: All of the duplicate directories containing the same same PIC32 tools were move to this single location. * configs/mirtoo: The basic Mirtoo port is now functional. * configs/mirtoo/ostest: Added support for the microchipOpen toolchain (see http://sourceforge.net/projects/microchipopen/). * configs/mirtoo/nsh: Added a NuttShell (NSH) configuration for the Mirtoo module. * configs/mirtoo/scripts: Move all Mirtoo linker scripts to a common directory. * arch/mips/src/pic32mx/pic32mx-gpio.c: All digital inputs were being configured as outputs. This is a *critical* bug fix and needs to be incorporated by any PIC32 users. * drivers/mtd/sst25.c: Added a driver for the SST 25 SPI-based FLASH parts. * configs/mirtoo/src/up_nsh.c: The Mirtoo NSH configuration can now mount the SST 25 devices so that it can be used for a FAT file system. There are are, however, some NSH memory usage issues if this configuration enabled now. Some tuning is still needed. * configs/mirtoo/nxffs: Add an alternative NSH configure for the Mirtoo module for testing the on-module SST 25 chip using the NXFFS file system. * arch/arm/src/lpc43xx and arch/arm/include/lpc43xx: The NXP LPC43xx port is slowly evolving in these directories. * configs/stm3210e-eval/pm: Add a new configuration for testing STM32 power management. * configs/stm3210e-eval/scripts: Moved all of the duplicate ST3210-EVAL linker scripts into one set of linker scripts at this location. * configs/stm3210e-eval/src/up_buttons.c, up_lcd.c, and up_pm.c: New logic for testing STM32 power management. * configs/lincoln60: Add a configuration to support the Micromint Lincoln60 board. * configs/ekk-lm3s3b96: Add a configuration to support the TI/Stellaris EKK-LM3S3B96 development board. Contributed by Jose Pablo Rojas V. * arch/arm/src/lpc43xx/chip: Created header files for *all* (really) lpc43xx registers and all bit-fields. * configs/lpc4330-xplorer: Added a configuration for the NXP LPC43XX Xplorer board. This is just to facilitate testing of the LPC43xx port but will, with any luck, become proper board support for that board. * arch/arm/src/lm3s/lm3s_syscontrol.c: Fix an optimization related problem by adding a volatile qualifier to a timing loop. Oddly, the consequence of the bug is that when debug was off, the LM3S platform too a long time to boot. It now boots rapidly whether debug is on or off. * arch/*/include/limits.h: Change all values in all limits.h for all architectures to signed decimal; the hex values were not sign extending appropriate in most uses (reported by Lorenz Meier). * arch/arm/src/stm32/chip/stm32f103/7vc_pinmap: Fix typographical error in two pinmap definition files. * lib/net/lib_inetntoa.c: Fix typographical error that cause compilation failure on platforms that do not support passing of structures as parameters. * arch/arm/*/lpc43xx and configs/lpc4330-xplorer and code complete and ready for testing. Hopefully, verified LPC43xx support will appear in NuttX-6.20. * include/nuttx/stdarg.h: If CONFIG_ARCH_STDARG_H=y is defined, the top-level makefile will copy the generic (GCC-only) stdarg.h header file from include/nuttx/stdarg.h to include/stdarg.h. So for the architectures that cannot use their GCC toolchain's stdarg.h file, they can use this alternative by defining CONFIG_ARCH_STDARG_H=y. If CONFIG_ARCH_STDARG_H, is not defined, then the redirecting stdarg.h header file will stay out-of-the-way in include/nuttx/. * configs/lpc4330-xplorer/nsh: Add an NSH configuration for the LPC4330 Xplorer board. 6.21 2012-08-25 Gregory Nutt * configs/lpc4330-xplorer/up_nsh.c: Add support for a basic SPIFI block driver for use by NSH. Does not work! Crashes on first SPIFI write. * configs/lpc4330-xplorer/*/defconfig: Calibrate delay loops (this is based on the current "slow" 72MHz M4 clock and will need to be re-calibrated when this is increased). * configs/stm3220g-eval/include/board.h and configs/stm3240g-eval/include/board.h: The SDIOCLK frequency in the F2 and F4 derives for PLL48CLK and not HCLK so that the SDIOCLK input frequency should always be 48MHz. * sched/os_internal.h, sched_setupidlefiles.c, sched_setuptaskfiles.c, and sched_setupidlefiles.c: Detangle some conditional compilation. Allow for a perverse configuration that has socket descriptors and streams but no file descriptors (sure, why not?). * sched/: Stylistic clean-up of all files. Some of these files are pretty old and do not follow current NuttX coding standards in detail. * fs/: More stylistic file clean-up. * mm/: More stylistic file clean-up. * drivers/ and drivers/serial/: More stylistic file clean-up. * arch/arm/src/lpc43xx/lpc43_clockconfig.c: Fix PLL1 bit manipulation logic. Critical bugfix! This would often cause the LPC43xx to fail to boot. * arch/arm/src/lpc43xx/lpc43_rgu.c: The soft reset logic called from the beginning of __start seems cause problems. A magic delay seems to improve the logic some. But I suspect that real fix is to get rid of all of the soft reset logic. This would also be a critical bugfix if I believed that it really fixed all of the issues. * arch/arm/src/lpc43xx/chip/lpc43_cgu.h: Fix a bit mask in the PLL1 control register. Critical bugfix. * arch/arm/src/lpc43xx/lpc43_clockconfig.c and configs/lpc4330-xplorer/include/board.h: Implement PLL1 ramp-up logic; Now the LPC43xx is running at 204MHz. * configs/lpc4330-xplorer/*/defconfig: Re-calibrated delay loops using the 204MHz clock. The LPC43xx ripping rips! This calibration was performed with symbols enabled and all optimization disabled. It will need to be better recalibrated again down the road. * arch/arm/src/stm32/stm32_exti.c: Renamed to rch/arm/src/stm32/stm32_exti_gpio.c to make a little room in the file name space. * arch/arm/src/stm32/stm32_exti_alarm.c: Add initial logic to attached the RTC alarm EXTI interrupt. This is work be performed mostly by Diego Sanchez. * include/: More stylistic file clean-up. * arch/arm/src/lpc43xx/lpc43_spifi.c, lpc43_spifi.h, and chip/lpc43_spifi.h: Add logic to configure and initialize the SPIFI device (does not yet work). * configs/lpc4330-xplorer/include/board.h: Reduce SPI SCLK value. * arch/arm/src/lpc43xx/lpc43_spifi.c, lpc43_spifi.h, and chip/lpc43_spifi.h: Logic completely redesigned. It now creates an MTD driver to access SPIFI... but the driver still does not work. * arch/arm/src/stm32 and arch/arm/include/stm32: Make name of RTC ALARM interrupt common on STM32 F1,2,4 * arch/arm/src/stm32 and arch/arm/include/stm32: Add support for the STM32F100x "Value Line" devices. This includes changes to stm32F10xx_rcc.c that add the ability to run the chip off the internal oscillator. There is no open board configuration for this part yet (the STM32VLDiscovery would be a candidate). Contributed by Mike Smith. * arch/arm/src/stm32: Fixed typos in conditional compilation in the CAN and DMA and some pin configuration. This would have caused problems for STM32 F107xx. Typos noted by Mike Smith. * arch/arm/src/lpc43xx/lpc43_serial.c: Add support for certain RS-485 features * lib/termios/lib_cfsetispeed.c, lib_cfsetospeed.c, lib_tcflush.c: Add simple implementations of cfsetispeed(), cfsetospeed(), and tcflush(). * include/sys/str_tty.h, lib/lib_setspeed.c, lib_getspeed.c, and lib_resetspeed.c: Add APIs to support setting non-standard BAUD values not supported by POSIX termios. These are non-standard interfaces but have a precedence: There are similar interfaces in AIX. * include/sys/str_tty.h, lib/lib_setspeed.c, lib_getspeed.c, and lib_resetspeed.c: Sigh... removed. We don't need any more almost standard interfaces! (SVN revision 4968 if you want the short-lived code). * include/termios.h and lib/termios/*: Open the existing, standard termios interfaces to permit some non-standard baud settings. The new termios definitions still supports the POSIX standard except that it does not strictly enforce baud rate settings, permitting some non-portable, but useful baud rate settings (this is what the short-lived AIX-like interfaces would have accomplished as well). * include/termios.h and lib/termios/*: Redesigned yet again (this is getting painful. NuttX now supports the BOTHER baud setting just as Linux does. termios Bxxx definitions are again encoded; cf[set|get][o|i]speed now deal with only the encoded values. If the encoded baud is set to BOTHER, then the values in the (non- standard) c_ispeed and c_ospeed baud values may be accessed directly. * arch/arm/src/stm32/stm32_serial.c: Add minimal termios support for the STM32 (BOTHER style baud settings only). Contributed by Mike Smith. * configs/lpc4343-xplorer/src: Clean up SPIFI-library based build to that it actually works. * arch/arm/src/lpc43xx/lpc43_spifi.c: Add support for verification to writes. Add debug option to dump buffers. Several bugfixes... almost works. * include/termios.h, lib/termios/*, and arch/arm/src/stm32/stm32_serial.c: : BOTHER is gone again. * arch/arm/src/stm32/stm32_sdio.c and chip/stm32f20xx_pinmap.h: STM32 F2 SDIO fixes from Gary Teravskis and Scott Rondestvedt. * include/termios.h and lib/termios/*: Replace cfsetispeed and cfsetospeed with cfsetspeed (with definitions for the input/outputs in termios.h). * configs/stm32f4discovery/src and configs/stm32f4discovery/pm: Add a power management configuration for the STM32F4Discovery and supporting logic. This check-in also includes some fixes for the F4 RTC alarm logic. * drivers/input/pga11x.c and include/nuttx/input/pga11x.h: Add support for the TI PGA112/3/6/7 amplifier/multiplexer parts. * configs/mirtoo/README.txt, nsh/defconfig, and nxffs/defconfig: Add support for the PGA117 on the Mirtoo module. * drivers/analog/pga11x.c and include/nuttx/analog/pga11x.h: These belong in the analog subdirectories, not input. * configs/compal_e99/src/ssd1783.c and /ssd1783.h: Drivers for the SSD1783 LCD found in the Motorola C155 telephone. The driver is specific to the C155 because it uses the uwire transport. Contributed by Denis Carilki and Alan Carvalho de Assis. * drivers/power/pm_changestate.c. Correct a case where interrupts were not being re-enabled. Found by Diego Sanchez. * configs/mirtoo/nxffs/defconfig: This Mirtoo NXFFS configuration now uses the open Pinguino toolchain by default. This is necessary because the free C32 toolchain does not support any optimization and the unoptimized NXFFS image hits the PIC32MX2 FLASH size (128K). There is plenty of room to grow using the Pinguino toolchain with -O2 optimization. * configs/mirtoo/src/up_adc.c. This is just a stub for now, but this is where Mirtoo ADC logic will eventually need to go. * arch/mips/src/pic32mx/pic32mx-gpio.c: Now supports the PIC32MX1/2 ANSEL IOPORT register. * lib/string/lib_memchr.c: Add support for memchr() (contributed by Mike Smith) * lib/string/lib_memccpy.c: Add support for memccpy() * arch/arm/src/lpc17xx/lpc17_serial.c: Now supports ioctl commands to change the baud using tcsetattr() (contributed by Chris Taglia). * arch/*/src/*_serial.c: Fix ioctl method return values. These methods should return a negated errno value; they should not set the errno variable. * sched/on_exit.c, sched/task_exithook.c, and include/nuttx/sched.c: Add support for multiple registered on_exit() functions if CONFIG_SCHED_ONEXIT_MAX is defined. * drivers/syslog/ramlog.c: Move the RAM SYSLOG device into drivers/syslog so that it will be in the same directory as some new SYSLOGing devices in the works. * include/nuttx/syslog.h and drivers/syslog/ramlog.c: The SYSLOG putc function now has a common name that is independent of the device that provides the SYSLOG. * include/nuttx/syslog.h and drivers/syslog/syslog.c: This is a new, generic SYSLOG device that can redirect debug output to any character device or file. So you can log debug output to a file or you can put the console on /dev/ttyS0 and the debug output on /dev/ttyS1. * arch/arm/src/lpc43xxl/lpc43_spifi.c: Correct an addressing error in the LPC43 SPIFI MTD driver * drivers/syslog/syslog.c and fs/fs_syslog.c: Moved the generic syslog logic from drivers/syslog to fs/ where is belongs. Especially after realizing that the syslog logic is going to have to some internal FS operations in order to realize a totally thread-independent SYSLOG interface. * arch/arm/src/stm32/stm32*_rcc.c and .h: If CONFIG_PM is defined, add a function called stm32_clockenable() that can be used by PM logic to re-start the PLL after re-awakening from deep sleep modes. * fs/fs_foreachinode.c and fs/fs_foreachmountpoint.c: Add logic to traverse inodes and mountpoints in the NuttX pseudo-file system. * fs/fat/fs_fat32.c: Max. filename length reported by statfs() was wrong if FAT long file names were enabled. * lib/stdio/lib_libvsprintf.c: Fieldwidth and justification were not supported for the %s format. As a result, %s, %12s, and %-12s all produced the same output. * lib/stdio/lib_libdtoa.c: Fix several issues with presenting floating point numbers (conversions are fine, but presentation was bad). This is a critical bug fix if you use printf or sprintf to deal with floating point numbers. * lib/stdio/lib_libdtoa.c and lib_libvsprintf.c: Correct some floating point options. * arch/arm/lpc43xx/lpc32_usb0dev.c: Add framework for development of an USB0, device-side driver for the LPC43XX. The initial check-in, however, is simply for the LPC31xx driver with name changes. The LPC31xx has the same USB IP, but will require some additional initialization (and lots of testing) before it can be used with the LPC43xx. * nuttx/Documentation/NuttShell.html: Added a section covering ways to customize the behavior of NSH. * arch/arm/src/stm32/chip/stm32f1*_pinmap.h: STM32 CAN TX/RX pins reversed; inconsistent conditional compilation. Reported by Max Holtzberg. * arch/arm/*/stm32: Add support for STM32 F107 "Connectivity Line" Ethernet (contributed by Max Holtzberg). * configs/olimex-stm32-p107: Add board support for the Olimiex STM32-P107 board (contributed by Max Holtzberg). * arch/arm/src/stm32/stm32f2xx_dma.c, stm32f4xx_dma.c, stm32_serial.c, and stm32_spic.c: DMA priority was getting zeroed by STM32 F2/F4 DMA drivers so that all DMAs ran at the lowest priority. * configs/stm3240g-eval/include/board.h and configs/stm3220: Drop SD card frequency from 24 to 16 MHz. Apparently 24 MHz is too fast for the board. This (plus the change to the STM32 DMA (above) fixes SDIO DMA on the STM3240G-EVAL (and probably STM3220G-EVAL -- untested). * arch/arm/src/stm32/stm32f2xx_dma.c and stm32f4xx_dma.c: Backed out the DMA priority change just above. The reduced SD card frequency was necessary and sufficient to resolve the problem. * drivers/serial/serial.c: open, read, write, and poll methods may now abort return EINTR (or a short transfer size) if a signal is received while waiting to receive or send serial data. This behavior is required by POSIX. * include/sys/types.h: Define NULL to be (0) if __cplusplus is defined. (contributed by Mike Smith) * include/ctype.h: Remove a stray semi-colon in a definitions (Thanks Mike Smith). * configs/.../Make.defs. Fix C++ include path set-up in Make.defs file for all 8-bit AVR platforms (Thanks Richard Cochran). * lib/stdio/lib_*stream.c: Revised to handle new error return values from serial.c. * arch/arm/src/stm32/stm32_spi.c: SPI driver can now service re- initialization (Mike Smith). * tools/mkconfig.c: If CONFIG_DRAM_END is not specified, this tool will provide default definition of (CONFIG_DRAM_START + CONFIG_DRAM_SIZE) * arch/arm/src/stm32/stm32_otgfshost.c: Renamed from stm32_usbhost.c. This is nearly code complete and, with any luck, will be available in NuttX-6.21. * configs/*/defconfig: Update all defconfig files to remove syntax that is incompatible with the mconf configuration tool. * arch/arm/src/stm32/stm32_otgfshost.c: This driver now appears to be functional (although more testing is necesary). 6.22 2012-09-29 Gregory Nutt * include/semaphore.h, sched/sem_holders.c, and lib/semaphore/sem_init.c: Fix some strange (and probably wrong) list handling when CONFIG_PRIORITY_INHERITANCE and CONFIG_SEM_PREALLOCHOLDERS are defined. This list handling was probably causing errors reported by Mike Smith * sched/sched_waitpid.c: Fix a possible issue with logic logic that should be brought into a critical section (suggested by Mike Smith) * sched/sched_setuptaskfiles.c: Should be 'struct socket' not 'struct sockets'. How did this compile before? (found by Kate) * syscall/syscall.csv: Fix prototype for usleep() and prctl() (also from Kate). * arch/arm/src/lpc17xx/lpc17_ethernet.c: Conditionally elide setting PHY speed/duplex. This does not work for certain PHYs. Still some unresolved issues (also from Kate). * tools/Config.mk, Makefile, configs/*/Make.defs: Add a new Makefile fragment to de-quote certain strings from the Kconfig logic that need to be used at path segments (Richard Cochran). * arch/arm/src/stm32/stm32_usbotghost.c: The STM32 USB host driver only works with debug turned on. The problem appears to be that with debug OFF, there are more NAKs occuring in more places than before and this reveals a variety of errors. This check in improves NAK robustness for control transfers but does not resolve all of the issues. * configs/stm3220g-eval/*/defconfig: Calibrated delay loop. It had never been calibrated was way off. * sched/sem_holder.c: Add logic to handler some priority inheritance cases when sem_post() is called from an interrupt handler. The logic is clearly wrong, but it is not known if this is the cause of any known bugs. * lib/stdio/lib_perror(): Add perror(). Contributed by Kate. * lib/string/lib_strerror(): Add option CONFIG_LIBC_STRERROR that is now required to enabled strerror(). Add an option CONFIG_LIBC_STRERROR_SHORT that can be used to output shortened strings by strerror(). * arch/arm/src/stm32/stm32_usbotghost.c: Finally... the USB OTG FS appears to handle NAKing correctly. * configs/stm32f4discovery/*: Added and verifed support for USB OTG FS host on the STM32F4Discovery board. * configs/*/defconfig: Remove configuration documentation from config files. It is redundant, error-prone, and difficult to maintain. Configuration documentation is available in configs/README.txt for common configurations and in configs/*/README.txt for board and MCU- specific configurations. * configs/stm3240g-eval: Add USB host support. * sched/os_bring.c, configs/*/defconfig, tools/mkconfig.c, and others: Added configuration variable CONFIG_USER_ENTRYPOINT that may be used to change the default entry from user_start to some other symbol. Contributed by Kate. NOTE: This change does introduce a minor backward incompatibility. For example, if your application uses NSH as its start-up program, then your build will now fail because it will be unable to find "user_start". The fix for this link failure is to add the following to your configuration file: CONFIG_USER_ENTRYPOINT="nsh_main". * libs/stdio/lib_libfread.c and lib_*flush*.c: Correct a couple of error cases where the lib semaphore was not be released on error exits (thanks Ronen Vainish). Also, improved some error reporting: the generic ERROR was being used instead of the specific errno value; the errno variable was not always set correctly. * tools/mkfsdata.pl: The uIP web server CGI image making perl script was moved from apps/netutils/webserver/makefsdata to nuttx/tools/mkfsdata.pl (Part of a larger change submitted by Max Holtzberg). * configs/stm3240g-eval/script/ld.script: All of the identical ld.script files for the STM3240G-EVAL were replaced by one version in this directory. * configs/stm3240g-eval/webserver: Configuration submitted by Max Holtzberg for testing the changes to the uIP web server (see apps/ChangeLog.txt). * lib/stdio/lib_perror.c: Remove CONFIG_LIBC_PERROR_DEVNAME. What was I thinking? Arbitrary streams cannot be shared by different tasks. * tools/mksyscall.c, csvparser.c, and csvparser.h: Separate CSV parsing logic from mksyscall.c into files where it can be shared. * tools/mksymtab.c: Add a tool that can be used to convert a CSV file into a NuttX-style symbol table. * sched/work_cancel.c: Fix a bad assertion (reported by Mike Smith) * configs/stm3210e-eval/src/up_idle.c: Correct some power management compilation errors (reported by Diego Sanchez). * include/nuttx/wqueue.h, sched/work*, and others: Added logic to support a second, lower priority work queue (CONFIG_SCHED_LPWORK). * arch/arm/src/stm32/stm32_dma.c, chip/stm32*_memorymap.h: FSMC SRAM is only 16-bits wide and the SDIO DMA must be set up differently. * arch/arm/src/stm32/stm32_dma.c: Back out the 16-bit DMA change. It is incorrect. * configs/: Make use of UART4/5 vs USART4/5 consistent in all places. * Kconfig: Serial 2STOP setting must be integer 0/1, not a boolean. * lib/misc/sendfile.c and include/sys/sendfile.h: Add a Linux style sendfile() (non-standard!) * Kconfig: Refactor serial settings (moved from chip to drivers/serial). AVR "teensy" now builds with Kconfig (contributed by Richard Cochran). * Kconfig: Add configuration settings for the LPC17xx * Kconfig: Add configuration settings for the LM3S (from Richard Cochran). * Kconfig: Verify configuration settings for the STM32. This includes changes in the way that the external SRAM is configured: Define CONFIG_HEAP2_SIZE (decimal) instead of CONFIG_HEAP2_END (hex). * tools/configure.sh: Don't append the apps directory path setting if the correct setting is already in defined in the defconfig file. * fs/fat/fs_utils.c: Improperly constructed bool expression. This would cause many unnecessary writes to FLASH (Thanks Ronen Vainish). * Kconfig: Verify configuration settings for the LPC43xx. This includes some corrections to configuration variable names and defconfig settings. * Kconfig: Add and verify configuration settings for the LPC31xx. * arch/arm/src/stm32/stm32_uart.h and stm32_serial.c: Add logic to re-initialize the console UART as needed to enable DMA on the console UART (contributed by Mike Smith). * net/recvfrom.c, net/Kconfig, include/nuttx/net/uipopt.h: Remove delay after receiving data. That has historical reasons to be there (it was needed before read-ahead buffering was added), but kills performance. (Noted by Max Holtzberg). * configs/shenzhou: Add beginnings of a board configuration for the Shenzhou STM32107 board (see www.armjishu.com). Very little is in place as of this initial check-in. * QEMU: Fixes from Richard Cochran to build QEMU with Kconfig files. * arch/*/src/Makefile: Remove some old logic that was kicked off when CONFIG_BOOT_RUNFROMFLASH=y. The old logic used to use objcopy to move sections. Newer logic changes the load position of sections in the linker script. As far as I can tell, there is nothing in the source tree now that depends on the old way of doing things (if I am wrong, they will need a change to the linker script). * configs/fire-stm32v2: Configuration for the M3 Wildfire board. I don't know very much about this board other than is has an STM32F103VET6 chip, LCD, touchscreen, and ENC28J60 network. Very little is in place on the initial check-in. * configs/shenzhou: Coding for the Shenzhou board port is complete, but tested has been deferred until I get the right tools. * arch/arc/include/stm32/chip.h and arch/arm/src/stm32/chip.h: Add support for the STM32F103VET6. * fs/fs_fdopen.c: Bad check for failure to allocate memory. (Noted by Ronen Vainish). * drivers/mmcsd/mmcsd_sdio.c: If the MMC/SD driver were ever uninitialized then there would be a double release of memory (Noted by Ronen Vainish). * fs/mmap/fs_rammap.c: Fix logic error and errno check (contributed by Kate). * arch/avr/src: Fixes from AVR32 build errors that have crept in over the time; incorporated Kconfig for AVR3 (Richard Cochran). * fs/fat and include/nuttx/fs/fat.h: The FAT file system allocates memory for sector I/O buffers used to exchange data with the configured block driver. In some contexts, the block driver may require DMA-capable memory. If CONFIG_FAT_DMAMEMORY is defined, then the FAT FS will use platform-provided DMA memory allocators to allocate the block driver I/O buffers. * CONFIG_NET_ENC28J60 renamed CONFIG_ENC28J60 to be consistent in all places. * drivers/enc28j60.c, include/nuttx/net/enc28j60.h, and olimex-strp711/src/up_enc28j60.c: No longer passes IRQ number as a parameter. Instead now passes a call table to manage ENC28J60 GPIO interrupts. That is because GPIO interrupts are handled in different ways by different MCUs and some do not support IRQ numbers for GPIO interrupts. * mm/mm_gran* and include/nuttx/gran.h: Add a simple granule- based allocator. The intent of this allocator is to support simple allocation of DMA I/O buffers. The initial check-in is code complete but untested (not event built into the mm/Makefile yet. * confgs/fire-stm32v2: The board port is basically functional. Not all features have been verified. The ENC28J60 network is not yet functional. * configs/stm3240g-eval/discover: A configuration for testing the UDP discovery utility. Contributed by Max Holtzberg. * mm/README.txt: Add a new README file. * include/nuttx/usb/usb.h, arch/*/src/*usb.c, and arch/*/src/*otg*.c: Add hooks to to use common, external DMA buffer allocation implementation. * net/recvfrom.c: Don't block in recvfrom if (1) read-ahead buffering is enabled and (2) some data was obtained from read-ahead buffers. Blocking is a bad idea in that case because there is no timeout! (submitted by Max Holtzberg). * configs/stm3240g-eval/xmlrpc: An example configuration for the Embeddable Lightweight XML-RPC Server at apps/examples/xmlrpc. See http://www.drdobbs.com/web-development/ an-embeddable-lightweight-xml-rpc-server/184405364 for more info. Contributed by Max Holtzberg. * configs/*/nxwm/defconfig and sched/task_exithook.c: Fixes for bugs that crept in during recent changes. (Submitted by Max Holtzberg). * arch/arm/include/armv7-m/irq.h: Fix a critical bug in irqsave(). It looks like sometimes the compile will re-order some instructions inapproapriately. This end result is that interrupts will get stuck off. * drivers/mtd/w25.c: Beginning of a driver for the Windbond SPI FLASH family (W25x16, W25x32, and W25x64). The initial check-in is basically just the SST25 driver with some name changes. * arch/arm/include/armv7-m/irq.h and arch/arm/src/stm32/stm32_spi.c: Back out the last change in irq.h. It is (most likely) fine the way it was. The really interrupt related problem was in stm32_spi.c: When SPI3 is not enabled, then the irqrestore() falls in the else clause. * include/nuttx/compiler.h and other files: Moved always_inline and noinline __attributes__ here. Also replaced all occurrences of explicit __atributes__ in other files with definitions from this header file. * drivers/mtd/w25.c: The Windbond SPI FLASH W25 FLASH driver is code complete (but still untested). * arch/arm/src/stm32/stm32_i2c.c: I2C improvements from Mike Smith. Unified configuration logic; dynamic timeout calculations; I2C reset logic to recover from locked devices on the bus. * configs/*/*/Make.defs, tools/Config.mk, Makefile: Refactor all common make definitions from the various Make.defs files into the common tools/Config.mk. Add support for a verbosity options: Specify V=1 on the make command line in order to see the exact commands used in the build (Contributed by Richard Cochran). * drivers/net/enc28j60.c: The ENC28J60 Ethernet driver is now functional. * configs/fire-stm32v2: Add support or the fire-stm32v3 board as well (untested because I do not have a v3 board). * lib/stdio/lib_sscanf.c: Add %n psuedo-format (from Kate). * lib/stdio/lib_sscanf.c: There is an issue of handling input when (1) no fieldwidth is provided and (2) there is no space seperating the input values. No solutions is in place for this case now (either space or a fieldwidth must be provided). But at least some of the bad logic that attempted to handle this case has been removed (noted by Kate). * arch/arm/src/stm32/stm32_eth.c: DMA buffer sizes must be an even multiple of 4, 8, or 16 bytes. * arch/arm/src/stm32/stm32_idle.c: Fixes STM32F107 DMA issues: We cannot go into sleep mode while Ethernet is actively DMAing. * configs/shenzhou/src/up_ssd1289.c: Add infrastructure to support SSD1289 LCD. Initial checkin is just a clone of the STM32F4Discovery's FSMC-based LCD interface. The Shenzhou will need a completely need bit-banging interface; this initial check-in is only for the framework. * configs/shenzhou/src/up_ssd1289.c: Bit-banging driver is code complete. * configs/shenzhou/src/up_lcd.c: Oops. Shenzhou LCD does not have an SSD1289 controller. Its an ILI93xx. Ported the STM3240G-EVAL ILI93xx driver to work on the Shenzhou board. * configs/shenzhou/nxwm: Added an NxWM configuration for the Shenzhou board. This is untested on initial check-in. It will be used to verify the Shenzhou LCD driver (and eventually the touchscreen driver). * configs/shenzhou/src/up_touchscreen.c: Add ADS7843E touchscreen support for the Shenzhou board. The initial check-in is untested and basically a clone of the touchscreen support for the SAM-3U. * tools/cfgparser.c: There are some NxWidget configuration settings that must be de-quoted. * arch/arm/src/stm32/Kconfig: There is no SPI4. Some platforms support SPI3 and some do not (still not clear). * nuttx/configs/shenzhou: Various fixes to build new NxWM configuration. * configs/shenzhou: Oops. The Shenzhou LCD is and SSD1289, not an ILI93xx. * configs/shenzhou/src/up_ssd1289.c: The LCD is basically functional on the Shenzhou board. * graphics/nxmu: Correct some bad parameter checking that caused failures when DEBUG was enabled. * arch/arm/src/armv7-m/nvic.h: Add bit definitions for the AIRCR register. * drivers/input/ads7843.c: Need semaphore protection in logic that samples the position. * drivers/lcd/ssd1289.c: On some platforms we are unable to read the device ID -- reason unknown; workaround in place. * drivers/input/ads7843.c: Add thresholding options and an option to swap X and Y positions. Fix some logic errors in the SPI locking/selecting logic. * arch/arm/src/armv7-m/up_systemreset.c: Add logic to reset the Cortex-Mx using the AIRCR register. Contributed by Darcy Gong. * arch/arm/src/stm32/up_eth.c: Add logic specifically for the DM9161 PHY. If the DM9161 failed to initialize, then use the up_sysemreset() logic to reset the MCU. Contributed by Darcy Gong. * arch/arm/src/stm32/stm32_gpio.c: Add missing logic to set bit for SPI3 remap. This fixes the XPT2046 touchscreen driver using drivers/input/ads7843.c * configs/shenzhou/src/up_ssd1289.c: Fix naming error in conditional compilation. * configs/shenzhou/nxwm/defconfig: Disable reading from the LCD. This does not work. The hardware and the driver support the capability, but there is some bug that causes memory corruption. The work around for now: Just disable reading from the LCD. * drivers/lcd/ssd1289.c: Add some logic to reduce the amount of output when CONFIG_DEBUG_LCD is enabled. * configs/shenzhou/nxwm/defconfig: Bug found and fixed... The original configuration had too much stuff turned on. Reducing stack sizes, some features, and buffer sizes made the configuration reliable (Reading from the LCD is still disabled). * net/uip/uip_icmpping.c: Fix problem that prevented ping from going outside of local network. Submitted by Darcy Gong 6.23 2012-11-05 Gregory Nutt * arch/arm/src/stm32/stm32_rng.c, chip/stm32_rng.h, and other files: Implementation of /dev/random using the STM32 Random Number Generator (RNG). * board.h file for shenzhou, fire-stm32v2, and olimex-stm32-p107: Add frequencies for HSE, HSI, LSE, and LSI. These are needed by the STM32 watchdog driver. * CONFIG_EXAMPLES_*: To make things consistent, changed all occurrences of CONFIG_EXAMPLE_* to CONFIG_EXAMPLES_*. * drivers/mtd/w25.c and configs/*/src/up_w25.c: Several fixes for the W25 SPI FLASH. * configs/*/Make.defs: All buildroot tools now use the extension xxx-nuttx-elf- vs. xxx-elf- * configs/shenzhou/*/Make.defs: Now uses the new buildroot 4.6.3 EABI toolchain. * lib/stdio/lib_libdtoa.c: Another dtoa() fix from Mike Smith. * configs/shenzhou/src/up_adc.c: Add ADC support for the Shenzhou board (Darcy Gong). * configs/shenzhou/thttpd: Add a THTTPD configuration for the Shenzhou board (Darcy Gong). * include/termios.h and lib/termios/libcf*speed.c: The non-standard, "hidden" c_speed cannot be type const or else static instantiations of termios will be required to initialize it (Mike Smith). * drivers/input/max11802.c/h, and include/nuttx/input max11802.h: Adds support for the Maxim MAX11802 touchscreen controller (contributed by Petteri Aimonen). * graphics/nxtk/nxtk_events.c: Missing implementation of the blocked method. This is a critical bugfix for graphics support (contributed by Petteri Aimonen). * drivers/usbdev/pl2303.c, drivers/usbdev/usbmsc.h, and include/nuttx/usb/cdcacm.h: USB_CONFIG_ATTR_SELFPOWER vs. USB_CONFIG_ATT_SELFPOWER (contributed by Petteri Aimonen). * arch/arm/src/armv7-m/up_memcpy.S: An optimized memcpy() function for the ARMv7-M family contributed by Mike Smith. * lib/strings/lib_vikmemcpy.c: As an option, the larger but faster implemementation of memcpy from Daniel Vik is now available (this is from http://www.danielvik.com/2010/02/fast-memcpy-in-c.html). * lib/strings/lib_memset.c: CONFIG_MEMSET_OPTSPEED will select a version of memset() optimized for speed. By default, memset() is optimized for size. * lib/strings/lib_memset.c: CONFIG_MEMSET_64BIT will perform 64-bit aligned memset() operations. * arch/arm/src/stm32/stm32_adc.c: Need to put the ADC back into the initial reset in the open/setup logic. Opening the ADC driver works the first time, but not the second because the device is left in a powered down state on the last close. * configs/olimex-lpc1766stck/scripts: Replace all of the identical ld.script files with the common one in this directory. * configs/stm3220g-eval/scripts: Replace all of the identical ld.script files with the common one in this directory. * configs/hymini-stm32v/scripts: Replace all of the identical ld.script files with the common one in this directory. * configs/lpcxpresso-lpc1768/scripts: Replace all of the identical ld.script files with the common one in this directory. * binfmt/elf.c, binfmt/libelf, include/elf.h, include/nuttx/elf.h: Add basic framework for loadable ELF module support. The initial check- in is non-functional and is simply the framework for ELF support. * include/nuttx/binfmt.h, nxflat.h, elf.h, and symtab.h: Moved to include/nuttx/binfmt/. * arch/sim/src/up_elf.c and arch/x86/src/common/up_elf.c: Add for ELF modules. * arch/arm/include/elf.h: Added ARM ELF header file. * include/elf32.h: Renamed elf.h to elf32.h. * configs/stm32f4discovery/ostest: Converted to use the new Kconfig-based configuration system. * configs/stm32f4discovery/elf and configs/stm32f4discovery/scripts/gnu-elf.ld Add a configuration for testing the ARM ELF loader. * binfmt/libelf: Can't use fstat(). NuttX does not yet support it. Damn! * binfmt/libelf: The basic ELF module execution appears fully functional. * configs/shenzhou/src/up_relays.c: Add support for relays from the Shenzhou board. Contributed by Darcy Gong. * lib/fixedmath: Moved the old lib/math to lib/fixedmath to make room for the math library from the Rhombus OS * lib/math: Now contains the math library from the Rhombus OS by Nick Johnson (submitted by Darcy Gong). * include/float.h: Add a first cut at the float.h header file. This really should be an architecture/toolchain-specific header file. It is only used if CONFIG_ARCH_FLOAT_H is defined. * lib/math: Files now conform to coding standards. Separated float, double, and long double versions of code into separate files so that they don't draw in so much un-necessary code when doing a dumb link. * binfmt/libelf: The ELF loader is working correctly with C++ static constructors and destructors and all. * Documentation/NuttXBinfmt.html: Add documentation of the binary loader. * configs/sim/ostest: Converted to use the mconf configuration tool. * configs/sim/cxxtest: New test that will be used to verify the uClibc++ port (eventually). * include/nuttx/fs/fs.h, lib/stdio/lib_libfread.c, lib_ferror.c, lib_feof.c, and lib_clearerr.c: Add support for ferror(), feof(), and clearerror(). ferror() support is bogus at the moment (it is equivalent to !feof()); the others should be good. * configs/stm32f4discovery/include/board.h: Correct timer 2-7 base frequency (provided by Freddie Chopin). * include/nuttx/sched.h, sched/atexit.c, and sched/task_deletehook.c: If both atexit() and on_exit() are enabled, then implement atexit() as just a special caseof on_exit(). This assumes that the ABI can handle receipt of more call parameters than the receiving function expects. That is usually the case if parameters are passed in registers. * libxx/libxx_cxa_atexit(): Implements __cxa_atexit() * configs/stm32f4discovery/cxxtest: New test that will be used to verify the uClibc++ port (eventually). The sim platform turned not to be a good platform for testing uClibc++. The sim example will not run because the simulator will attempt to execute the static constructors before main() starts. BUT... NuttX is not initialized and this results in a crash. On the STM324Discovery, I will have better control over when the static constructors run. * RGMP 4.0 updated from Qiany Yu. * configs/*/Make.defs and configs/*/ld.script: Massive clean-up and standardization of linker scripts from Freddie Chopin. * net/netdev_ioctl.c: Add interface state flags and ioctl calls to bring network interfaces up and down (from Darcy Gong). * config/stm32f4discovery: Enable C++ exceptions. Now the entire apps/examples/cxxtest works -- meaning that the uClibc++ is complete and verified for the STM32 platform. 6.24 2012-12-20 Gregory Nutt * arch/arm/src/stm32: Support for STM32F100 high density chips added by Freddie Chopin. * configs/stm32f100_generic: Support for generic STM32F100RC board contributed by Freddie Chopin. * arch/arm/src/stm32_otgfsdev.c: Partial fix from Petteri Aimonen. * drivers/lcd/ug-2864ambag01.c and include/nuttx/lcd/ug_2864ambag01.h: LCD driver for the Univision OLED of the same name (untested on initial check-in). * configs/stm32f4discovery/nxlines: Configure to use mconf/Kconfig tool. * configs/stm32f4discovery/src/up_ug2864ambag01.c: Board-specific initialization for UG-2864AMBAG01 OLED connecte to STM32F4Disovery. * libxx/libxx_stdthrow.cxx: Exception stubs from Petteri Aimonen. * configs/stm32f4discovery/src/up_ug2864ambag01.c: Driver has been verified on the STM32F4Discovery platform. Some tuning of the configuration could improve the presentation. Lower resolution displays are also more subject to the "fat, flat line bug" that I need to fix someday. See http://www.nuttx.org/doku.php?id=wiki:graphics:nxgraphics for a description of the fat, flat line bug. * libc: Renamed nuttx/lib to nuttx/libc to make space for a true lib/ directory that will be forthcoming. Also rename libraries: liblib.a -> libc.a, libulib.a -> libuc.a, libklib.a -> libkc.a, liblibxx.a ->libcxx.a. (I will probably, eventually rename libxx to libcxx for consistency) * Makefile, lib/: A new, empty directory that will hold generated libraries. This simplifies the library patch calculations and lets me get rid of some bash logic. The change is functional, but only partially complete; additional logic is needed in the arch/*/src/Makefile's as well. Right now that logic generate multiple library paths, all pointing to the lib/ directory. * arch/*/src/Makefile: Now uses only the libraries in lib/ Replace bash fragments that test for board/Makefile. * Makefile.win: The beginnings of a Windows-native build. This is just the beginning and not yet ready for prime time use. * configs/stm32f4discovery/winbuild: This is a version of the standard NuttX OS test, but configured to build natively on Windows. Its only real purpose is to very the native Windows build logic. * tools/mkdeps.bat and tools/mkdeps.c: mkdeps.bat is a failed attempt to leverage mkdeps.sh to CMD.exe. It fails because the are certain critical CFLAG values that cannot be passed on the CMD.exe command line (like '='). mkdeps.c is a work in progress that will, hopefully, replace both mkdeps.sh and mkdeps.bat. * tools/Config.mk: Centralize the definition of the script that will be used to generated header file include paths for the compiler. This needs to be centralized in order to support the Windows native build. * tools/incdir.bat: A replacement for tools/incdir.sh for use with the the Windows native build. * Makefile.unix: The existing top-level Makefile has been renamed Makefile.unix. * Makefile: This is a new top-level Makefile that just includes either Makefile.unix or Makefile.win * configs/stm3240g-eval/src: Qencoder fixes from Ryan Sundberg. * arch/arm/src/stm32/stm32_qencoder.c: TIM3 bug fix from Ryan Sundberg. * tools/mkromfsimg.sh: Correct typo in an error message (Ryan Sundberg) * arch/*/src/Makefile: Remove tftboot install and creation of System.map for Windows native build. The first is a necessary change, the second just needs re-implemented. * configs/mirtoo: Update Mirtoo pin definitions for Release 2. Provided by Konstantin Dimitrov. * Fixed an uninitialized variable in the file system that can cause assertions if DEBUG on (contributed by Lorenz Meier). * Config.mk: Defined DELIM to be either / or \, depending upon CONFIG_WINDOWS_NATIVE. This will allow me to eliminate a lot of conditional logic elsewhere. * nuttx/graphics: One a mouse button is pressed, continue to report all mouse button events to the first window that received the initial button down event, even if the mouse attempts to drag outside the window. From Petteri Aimonen. * nuttx/graphics/nxmu/nx_block.c: One more fix to the NX block message logic from Petteri Aimonen. * include/nuttx/wqueue.h: Some basic definitions to support a user- space work queue (someday in the future). * graphics/nxmu: Add semaphores so buffers messages that send buffers will block until the buffer data has been acted upon. * graphics/nxmw: Extended the blocked messages to cover mouse movement and redraw events. These will also cause problems if sent to a window while it is closing. * arch/several: Change UARTs are enabled for i.MX, LM3S, ez80, and M16C to match how they are enabled for other architectures. * configs/ez80f910200kitg: Convert to use mconf configuration. * sched/pause.c: Implements the POSIX pause() function. * ez80: Lots of changes to ez80 configurations and build logic as I struggle to get a clean Windows build (still not working). * configs/cloudctrl: Darcy Gong's CloudController board. This is a small network relay development board. Based on the Shenzhou IV development board design. It is based on the STM32F107VC MCU. * arch/arm/src/stm32_serial.c and stm32_lowputc.c: Added optional RS-485 direction bit control. From Freddie Chopin. * Lots of build files: ARMv7-M and MIPS32 Make.defs now include a common Toolchain.defs file that can be used to manage toolchains in a more configurable way. Contributed by Mike Smith * configs/stm32f4discovery/winbuild and configs/cloudctrl: Adapted to use Mike's Toolchain.defs. * tools/configure.sh: Adapted to handle paths and setenv.bat files correctly for native Windows builds. * More of build files: AVR and AVR32 Make.defs now include a common Toolchain.defs file that can be used to manage toolchains in a more configurable way. Contributed by Mike Smith * tools/incdir.sh and incdir.bat: Add -s option to generate system header file paths. * nuttx/arch/arm/src/arm/Toolchain.defs: Add support for more ARM toolchains (from Mike Smith). * arch/arm/src/stm32/stm32f40xxx_rcc.c: Enabled FLASH prefetch (from Petteri Aimonen). * graphics/nxtk/nxtk_filltrapwindow.c: Correct an offset problem (from Peterri Aimonen). * graphics/nxglib/nxglib_splitline.c: Fix error in drawing of near horizontal lines (from Peterri Aimonen). * sched/task_exithook.c: Missing right bracket with certain conditional compilation (thanks James Goppert). * arch/arm/srch/stm32/stm32_otgfshost.c: Replace timeout handling; use system tick instead of frame counter. The frame counter gets reset to zero at 0x3fff making it error prone. * arch/arm/src/stm32/stm32f20xx_rcc.c and stm32f40xx_rcc.c: Added option CONFIG_STM32_FLASH_PREFETCH. FLASH prefetch will now only be enabled if this option is selected. * confgs/ez80f910200zco/ostest: Now uses Kconfig/mconf configuration tool. Updated to build in native Windows environment. Other ez80f910200zco build scripts also updated. * configs/z8f64200100kit/ostest: Update to same level as ez80 configurations. * nuttx/configs/z8f64200100kit/scripts/setenv.bat: Add support for native Windows build. * nuttx/arch/arm/src/lpc17xx/lpc17_i2c.c: Resources not being released when I2C is uninitialized. * cloudctrl/src/up_chipid.c and shenzhou/src/up_chipid.c: Add functions to get chip ID. Contributed by Darcy Gong. These should not be board-dependent, but should be in arch/arm/src/stm32 where they can be used from any board. * sched/work_thread.c: Fix backward conditional compilation. This might has caused a memory leak. From Freddie Chopin. * configs//Make.defs: Fix typo -wstrict-prototypes should be -Wstrict-prototypes (From Denis Carilki). * arch/arm/src/calapyso/calypso_keypad.c: Add Calypso keypad driver. From Denis Carilki. * z8encore000zco/ostest and z8f64200100kit/ostest: Converted to use Kconfig/ mconf configuration tool. * arch/arm/src/armv7-m/up_exception.S: missing curly braces for push/pop From Freddie Chopin. * z8encore000zco/ostest and z8f64200100kit/ostest: Can now be modified to support the Windows native builds (see corresponding README.txt files). * configs/z16f2800100zcog - All configurations updated to use the ZDS-II 5.0.1 toolchain. * configs/z16f2800100zcog - All configurations updated to use Kconfig/mconf configuration tools. * configs/z16f2800100zcog/ostest - Now supports a native Windows build (other ZNEO configs may also support the native build, but this has not been verfiied). * include/nuttx/input/keypad.h, arch/arm/src/calypso/calypso_keypad.c, and configs/compal_e99/nsh_highram: First cut at a standard keypad interface definition. Contributed by Denis Carikli. * libc/stdlib/lib_rand.c: Always add one to result congruential generators to avoid the value zero. Suggested by Freddie Chopin. * tools/b16.c: Fixed precision math conversion utility. * graphics/nxglib/nxglib_splitline.c: Fix the "fat, flat line bug" * arch/z80/src/*/Toolchain.defs: Add dummy Toolchain.defs files for the z80 family. * configs/z80sim/ostest: Converted to build with the Kconfig/mconf tool. Current configuration failed to build for me (Ubuntu 12.10, SDCC 3.2.0 pre-built for Linux) due to a glibc memory corruptionerror in SDCC. * configs/z80sim/ostest: Default is now the Windows native build. See configs/z80sim/README.txt for instructions to convert back to a Linux or or Cygwin build. * arch/z80/src/Makefile.sdccw: Renamed makefiles with extensions zdiil, zdiiw, sdccl, and sdccw for the ZDS-II vs SDCC compilers and for the POSIX vs Windows native builds. * nuttx/drivers/mtd/ftl.c: Fix for the flash translation layer. Short unaligned writes were buggy. From Petteri Aimonen. * nuttx/libc/math/lib_round*.c: Add rounding functions to the math library. Contributed by Petteri Aimonen. * include/cxx/cstdlib: Add stroul(). From Petteri Aimonen. * arch/*/include/limits.h: Change signed minimum values from, for example, (-128) to (-127 - 1) to avoid overflows under certain conditions. From Peterri Aimonen. * graphics/nxtk/nxtk_subwindowmove.c: Previously it was very difficult to do e.g. "scroll by dx, dy". When given the full window area, nxtk_subwindowmove would clip the offset always to 0,0. It makes more sense for it to clip the source area and not modify the offset. From Petteri Aimonen. * graphics/nxtk/nxtk_getwindow.c: Clipping would change the offset of returned data, and caller has no way to know what the new offset would be. This messes up font drawing when the text is partially out of window, e.g. when scrolling. Also from Petteri Aimonen. * include/stdbool.h: Can now be disabled for C++ files if CONFIG_C99_BOOL8 is defined. CONFIG_C99_BOOL8 indicates (1) that the sizeof(_Bool) is one in both C and C++, and (2) the C compiler is C99 and supports the _Bool intrinsic type. Requested by Freddie Chopin. * include/stdlib/lib_rand.c: Various additional changes so that the integer value zero can be returned. Requested by Freddie Chopin. * arch/z80/src/Makefile.sdcc*, z80/up_mem.h: Redesign Z80 build so that it no longer depends on Bash scripts. * configs/z80sim/nsh and pashello: Converted to (1) use the kconfig-frontends configuration tool, and (2) to build natively under Windows. The NSH configuration is verified; the pashello configuration needs a more TLC. * tools/copydir.sh: Rename tools/winlink.sh to tools/copydir.sh * tools/link.bat, unlink.bat, and copydir.bat: Add Windows counterparts to the link.sh, unlink.sh, and copydir.sh Bash scripts. * configs/z80sim/pashello: Now builds correctly. * configs/xtrs/ostest, nsh, and pashello: Converted to (1) use the kconfig- frontends configuration tool, and (2) to build natively under Windows. * drivers/serial/Kconfig and sched/Kconfig: Two names for same configuration: CONFIG_LOWLEVEL_CONSOLE is bogus and CONFIG_DEV_LOWCONSOLE is in the wrong Kconfig file. Moved to drivers/serial/Kconfig replacing CONFIG_LOWLEVEL_CONSOLE. * arch/z80/include/z180: Add header files for z180 chips. Initial versions are just clones of z80 header files. * arch/z80/src/z180: Add source files for z180 chips. Initial versions are just clones of z80 source files. * include/nuttx/arch.h: Add address environment control interfaces (for use with CPUs the provide MCUs and support process-like address environments). * arch/z80/src/z180/z180_mmu.*: Add MMU support for z180 tasks. * configs/p112: Add very basic board support and an examples/ostest configuration for the venerable P112 board. * sched/os_bringup.c: If CONFIG_PATH_INITIAL is defined, then the initial environment of the task started by os_bringup() will have the PATH environment variable defined to be that string. * binfmt/binfmt_exepath.c: If CONFIG_BINFMT_EXEPATH is defined, then this file will be built. It contains logic to search for regular files at the absolutes paths found in the current PATH environment variable setting. This is untested and not yet hooked into the binfmt exec() logic on initial check-in * binfmt/binfmt_loadmodule.c: load_module() will now traverse the PATH variable to locate files from their relative path. * include/nuttx/arch.h and arch/z80/src/z180/z180_mmu.c: Restructure the address environment interfaces so that they will better integrate with binfmt/. * binfmt/libelf/*, binfmt/libnxflat/* and other files: Integrate the address environment interfaces. If CONFIG_ADDRENV=y, then binfmt/ will now create an address environment for new tasks (instead of just malloc'ing the task memory). * configs/stm32f4discovery/elf: Enable support/test of the PATH to find executables using a relative path. 6.25 2013-02-01 Gregory Nutt * graphics/: Adds 5x8 monospace font. This tiny font is useful for graph labels and for small bitmapped display. Contributed by Petteri Aimonen. * configs/stm3220g-eval/nxwm: Converted to use the kconfig-frontends configuration tool. * configs/sim/nxwm: Converted to use the kconfig-frontends configuration tool. * include/pthread.h: In sys/prctl.h because it is needed by pthread_[set|get]name_np() * tools/kconfig.bat: Kludge to run kconfig-frontends from a DOS shell. * sched/sig_timedwait.c: Should always move the time up to the next largest number of system ticks. The logic was rounding. Noted by Petteri Aimonen. * arch/arm/src/up_head.S: Fix backward conditional compilation. NOTE there is a issue of ARM9 systems with low vectors and large memories that will have to be addressed in the future. * libc/misc/lib_kbdencode.c and lib_kbddecode.c: Add logic to marshal and serialize speical keyboard commands intermixed with normal ASCII data (not yet hooked into anything). * drivers/usbhost/usbhost_hidkbd.c: If CONFIG_HIDKBD_ENCODED is defined, this driver will now use libc/misc/lib_kbdencode.c to encode special function keys. * configs/olimex-lpc1766stk/hidkbd: This configuration has been converted to use the kconfig-frontends configuration tool. * drivers/lcd/ug-2864hsweg01.c and include/nuttx/lcd/ug-2864hsweg01.h: Driver for UG-2864HSWEG01 OLED contributed by Darcy Gong. * configs/stm32f4discovery/src/up_ug2864hsweg01.c: Support for the UG-2864HSWEG01 OLED for the STM32F4Discovery board. * drivers/usbhost/usbhost_hidkbd.c: Correct a logic error in how tasks waiting for read data are awakened. * libc/misc/lib_kbdencode.c and lib_kbddecode.c: Now handles keypress events too. However, the USB HID keyboard driver has not yet been updated to detect key release events. That is kind of tricky in the USB HID keyboard report data. * configs/mcu123-214x/nsh: Converted to use the kconfig-frontends configuration tool. * configs/zp214xpa: Add basic support for the The0.net ZP213x/4xPA board (with the LPC2148 and the UG_2864AMBAG01). * configs/sim/nxlines: Add an nxlines configuration for the simulator. * configs/zp214xpa/nxlines: Add an nxlines configuration for the ZP213x/4xPA (with the LPC2148 and the UG_2864AMBAG01). Working as of 2012-12-30. * configs/olimex-lpc1766stk/wlan: Remove non-functional configuration. * configs/stm32f4discovery/src and nuttx/drivers/lcd/ug-2864hsweg01.c: Updates and corrections for the UG-2864HSWEG01 from Darcy Gong. * configs/lm326965-ek: All configurations converted to use the kconfig-frontends configuration tool. * configs/Kconfig: NSH_MMCSDSPIPORTNO should depend on MMCSD_SPI, not just SPI (from Jose Pablo Carballo). * arch/arm/src/arm/Kconfig and armv7m/Kconfig: Add an option for buildroot toolchains: They may be EABI or OABI. * include/nuttx/progmem and arch/arm/src/stm32/stm32_flash.c: Fix a counting bug plus change interface to use either relative or absolute FLASH addressing (from Freddie Chopin). * libc/misc/Make.defs: Fix error in conditional for KBD CODEC. * libc/Kconfig and configs/*/defconfig (several): The default setting should be CONFIG_LIB_KBDCODEC=n * tools/configure.c: configure.c can be used to build a work-alike program as a replacement for configure.sh. This work-alike program would be used in environments that do not support Bash scripting (such as the Windows native environment). * tools/configure.bat: configure.bat is a small Windows batch file that can be used as a replacement for configure.sh in a Windows native environment. configure.bat is actually just a thin layer that executes configure.exe if it is available. If configure.exe is not available, then configure.bat will attempt to build it first. * arch/arm/src/lpc17xx/lpc17_syscon.h: Correct some typos in bit definitions (from Rommel Marcelo). * libc/string/lib_strndup.c: strndup() should use strnlen(), not strlen(), to determine the size of the string. * sched/os_bringup.c: Remove support for CONFIG_BUILTIN_APP_START. This is not really a useful feature and creates a violation of the OS layered architecture. * include/unistd.h, arch/arch/src/*: Implement a simple vfork(). On initial checkin, this API is available only for ARM platforms. * binfmt/binfmt_exec.c: exec() now sets the priority of the new task to the same priority as the current task (instead of the arbirtrary value of 50). * libc/unisted/lib_execv.c and lib_execl.c: New, somewhat flawed, implementations of execv() and execl(). * tools/cfgdefine.c: Strips quotes from CONFIG_EXECFUNCS_SYMTAB value. * arch/arm/include/lm3s/chip.h: Move chip definitions into public include area for compatibility with other architectures. * arch/arm/src/lm3s/chip: Move register definition header files into a new chip/ sub-directory. * arch/arm/src/lm3s/lm3s_internal.h: Broke up into several smaller header files. * arch/arm/src/lm: Rename the arch/arm/src/lm3s directory to arch/arm/src/lm so that is can support other members of the Stellaris family. * libc/spawn: Add file action interfaces needed by posix_spawn(). * sched/clock_time2ticks.c: Another case where time was being rounded down instead of up (from Mike Smith). * libc/spawn: Implementation of posix_spawn() is complete but untested and undocumented. * drivers/usbdev/pl2303.c: Fix typols in the PL2303 driver (from Max Holtzberg). * configs/stm32f4discovery/posix_spawn: Added a configuration that can be used for testing posix_spawn(). * arch/arm/src/stm32: Bring F1 support for general DMA and serial DMA in paricular up to parity with F2/F4 (from Mike Smith). * libc/stdio/lib_libfread.c: Correct some error handling when lib_fread() was passed a bad stream. Needed to move the releasing of a semaphore inside of some conditional logic (cosmetic). * include/nuttx/sched.h, sched/task_setup.c, and sched/task_exithook.c: Add support for remembering the parent task and sending SIGCHLD to the parent when the task exists. * sched/task_exithook.c: Fixed a *critical* bug. Here is the scenario: (1) sched_lock() is called increments the lockcount on the current TCB (i.e., the one at the head of the ready to run list), (2) sched_mergepending is called which may change the task at the head of the ready-to-run list, then (3) sched_unlock() is called which decrements the lockcount on the wrong TCB. The failure case that I saw was that pre-emption got disabled in the IDLE thread, locking up the whole system. * sched/sched_waitpid.c: Use SIGCHLD instead of a semaphore. This is a much more spec-compliant implementation. However, there are some issues with overruning signals because NuttX does not support queueing of signals (POSIX does not require it). I think it may need to. * sched/sched_waitid.c and sched_wait.c: Add support for waitid() and wait(). See issues with waitpid() above. * include/nuttx/fs/fs.h and fs/fs_files.c: Add a dup() method to the struct mountpt_operations. When dup'ing a file that resides on a mounted volume, let the file system's dup() method do the work. * fs/romfs/fs_romfs.c: Implemented the dup() method for the ROMFS file system. * fs/fat/fs_fat32.c, fs/nxffs/nxffs_initialize, and fs/nfs/nfs_vfsops.c: Add hooks for dup() method (not yet implemented). * fs/romfs: Remove the rf_open flag. It looks good, but actually does nothing. * fs/fat: Remove the ff_open flag. Same story as for the ROMFS rf_open flag. * fs/fat/fs_fat32.c, fs/nxffs/nxffs_initialize, and fs/nfs/nfs_vfsops.c: Completed implementation of the dup() methods. There is still no good test available. * sched/sig_timedwait.c: sigtimedwait() would return a bad signal number if the signal was already pending when the function was called. * configs/ubw32/scripts: All common linker scripts moved to this scripts sub-directory * configs/ubw32/ostest: Configuration configured to use the kconfig-frontends tools. * arch/mips/src/mips32/up_vfork.c, up_vfork.h, and vfork.S: Implement vfork() for MIPS32 (no floating point support) * configs/ubw32/ostest: Enable the vfork() test. * fs/binfs: Move apps/builtin/binfs.c to fs/binfs/fs_binfs.c CONFIG_APPS_BINDIR rename CONFIG_FS_BINFS * include/nuttx/binfmt/builtin.h: Some of the content of apps/include/apps.h moved to include/nuttx/binfmt/builtin.h * binfmt/libbuiltin/libbuiltin_utils.c: Move builtin utility functions from apps/builtin/exec_builtins.c to binfmt/libbuiltin/libbuiltin_utils.c * binfmt/builtin.c and binfmt/libbuiltin: Add a binary "loader" that can be used to execute builtin programs from the BINFS file system. * configs/sim/nsh: Convert to use kconfig-frontends configuration tool. * binfmt/binfmt_schedunload.c: Add logic based on SIGCHLD to automatically unload and clean-up after running a task that was loaded into memory. * binfmt/libbuiltin: Extensions from Mike Smith * sched/task_reparent.c: Add internal interface to change the parent task. * sched/task_posixspawn(): Move libc/spawn/lib_ps.c to sched/task_posixspawn() now it requires internal, reparenting interfaces * include/nuttx/spawn(): Move libc/spawn.h to include/nuttx/spawn.h * arch/arm/include/lpc17xx/chip.h, irq178x.h: Integrate Marcelo Rommel's LPC1788 definitions into the base LPC17xx. * configs/olimex-lpc1766stk/nsh: Convert configuration to use the kconfig-frontends tools. * sched/task_reparent.c: Simplify reparenting interface. * arch/arm/src/[many]: More LPC1788 definitions from Rommel Marcelo incorporated. * configs/open1788: Board configuration for the Wave Share Open1788 board. Still fragmentary (contributed by Rommel Marcelo, adapted to use kconfig-frontends. * net/send(): Add logic to work around delayed ACKs by splitting packets (contributed by Yan T.). * net/recvfrom(): Fix a bug. When the host closes a connection (gracefully). recv[from]() returned success and the closure was never detected. Hmmm.. I don't know why the network monitor did not catch this event. This is an important bug fix. * net/recvfrom(): Fix a introduced with the last bugfix. If the peer does an orderly closure of the socket, report 0 not -ENOTCONN * configs/lm3s6965-ek/README.txt and tools/: Add an OpenOCD configuration for the LM3S (from Jose Pablo Carballo). * nuttx/lcd/hd4478ou.h and configs/pcblogic-pic32mx/src/up_lcd1602: Start of support of LCD1602 alphanumeric LCD. I need a few more parts before I can finish integrating this one. * arch/arm/src/*/chip.h and arch/arm/include/*/chip.h: Move all priority ranges from the src to the include chip.h header file. * arch/arm/include/armv7-m/irq.h: Add inline functions to enable and disable interrupts via the BASEPRI register. * arch/arm/Kconfig: Add new option CONFIG_ARM7VM_USEBASEI * arch/arm/src/*/*_irq.c: Set the priority of the SVCALL exception to the highest possible value. * arch/armv7-m/up_hardfault.c: Fail if a hardfault occurs while CONFIG_ARM7VM_USEBASEPRI=y. * arch/arm/src/stm32/stm32_serial.c: Add support for USART single wire mode (Contributed by the PX4 team). * sched/: Implement support for retaining child task status after the child task exists. This is behavior required by POSIX. But in NuttX is only enabled with CONFIG_SCHED_HAVE_PARENT and CONFIG_SCHED_CHILD_STATUS * Add support for keyboard encode to the keypad test (from Denis Carikli). * configs/olimex-lpc1766stk/nettest: Configuration converted to use the kconfig-frontends tools. * net/net_poll.c: Split net_poll() to create psock_poll() too. * net/net_poll.c: Fix poll/select issure reported by Qiang: poll_interrupt() must call net_lostconnection() when a loss of connection is reported. Otherwise, the system will not know that the connection has been lost. * sched/group_create.c, group_join.c, and group_leave.c: Add support for task groups. * sched/group_signal.c and task_exithook.c: Send signal to all members for the parent task group. * include/nuttx/sched.h and sched/env_*.c: Move environment variables into task group structure. * sched/: Lots of file changed. Don't keep the parent task's task ID in the child task's TCB. Instead, keep the parent task group IN the child task's task group. * fs/, sched/, include/nuttx/sched.h, and include/nutts/fs/fs.h: Move file data from the TCB to the task group structure. * libc/stdio/, sched/, include/nuttx/lib.h, and include/nutts/fs/fs.h: Move stream data from the TCB to the task group structure. * net/, sched/, and include/nuttx/net/net.h: Move socket data from the TCB to the task group structure. * sched/task_starthook.c, sched/task_start.c, and include/nuttx/sched.h: Add a task start hook that will be called before the task main is started. This can be used to schedule C++ constructors to run automatically in the context of the new task. * binfmt/binfmt_execmodule: Execute constructors as a start hook. * sched/os_start.c: Fix ordering of group initialization. * configs/stm32f4discovery/usbnsh: Add an NSH STM32F4Discovery configuration that uses USB CDC/ACM for the NSH console. * configs/stm32f4discovery/nsh: Converted to use the kconfig-frontends tools. * configs/*/src/up_userleds.c: Fix a error that was cloned into all STM32 user LED code. The wrong definitions were being used to set LEDs on or off. * arch/*/common/up_internal.h and arch/*/common/up_initialize.c: Serial was driver was not being built if there is no console device. Obviously, the serial driver may be needed even in this case. * arch/arm/src/stm32/stm32_serial.c: If there is a serial console, it would be ttyS0 and the others would be ttyS1-5. If there is not serial console, was labeling them ttyS1-6; now labels them ttyS0-5. * fs/fs_syslog.c: Can't handle SYSLOG output to character device from the IDLE task (because it can't block). syslog_putc now returns EOF on failure and sets errno. Fixed some errors in error handling. * libc/stdio/lib_syslogstream.c: Checking of return value from syslog_putc was bogus. Switching to EOF for all errors solves this. * arch/arm/src/lm/chip/lm4f_memorymap.h: More LM4F changes from Jose Pablo Carballo. * drivers/serial/serial.c, include/nuttx/serial/serial.h, drivers/usbdev/cdcacm.c, and drivers/pl2303.c: Add support for removable serial devices (like USB serial). This support is enabled by CONFIG_SERIAL_REMOVABLE. * arch/*/src/*/Toolchain.defs: Change assignment so that we can override CROSSDEV with a make command line argument. * include/assert.h: Mark assertion functions as non-returning. * arch/*/src/*/up_assert.h: Mark _up_assert() as non-returning. * drivers/mtd/at25.c: When the AT25 device was not available the initialization did not fail like it should. From Petteri Aimonen. * fs/fat/fs_configfat.c: Fix some errors in FAT formatting logic for large devices and for FAT32. From Petteri Aimonen. * fs/fat/fs_fat32util.c: Fix an initialization error found by Petteri Aimonen. freecount and next freecount initialization were reversed. * drivers/mmcsd/mmcsd_spi.c: Some SD cards will appear busy until switched to SPI mode for first time. Having a pull-up resistor on MISO may avoid this problem, but this patch makes it work also without pull-up. From Petteri Aimonen. * fs/fat/fs_fat32.c: Fix a compilation error when FAT_DMAMEMORY=y. From Petteri Aimonen. * arch/arm/src/stm32/chip/stm32_spi.h: STM32F4 max SPI clock freq is 37.5 MHz. Patch from Petteri Aimonen. * arch/arm/src/stm32/stm32_spi.c: Fixes for SPI DMA work on the STM32F4. Includes untested additions for the F1 implementation as well. From Petteri Aimonen. 6.26 2013-03-15 Gregory Nutt * drivers/serial/serial.c: Correct some race conditions when checking for disconnection of a removable serial device. * sched/task_posixspawn.c, task_spawn.c, task_spawnparms.c and spawn_internal.h: Create new interface task_spawn() that is like posix_spawn(), but uses entry point addresses like task_create(). * Corrected all argv[] arguments. Should be char * const *, not const char **. * sched/pthread* and include/nuttx/sched: Move pthread join data and pthread key calculation data into the "task group" structure. * sched/atexit.c, on_exit.c, task_exithook.c and include/nuttx/sched.h: Move atexit and on_exit data structures to task group. These callbacks are only issued now when the final member of the task group exits. * sched/waitpid.c, task_exithook.c and include/nuttx/sched.h: Move waitpid data data structures to task group. Callers of of waitpid() are now only awakened whent he final thread of the task group exits. * sched/mq_descreate.c, mq_open.c, mq_remove.c, group_leave.c, and include/nuttx/sched.h: Move list of opened message queues to the task group structures. Now all message queues opened by members of the group are closed when the last member of the group exits. * includes/nuttx/sched.h and Lots of files: Change name of _TCB to struct tcb_s so that (1) it is consitent with other NuttX naming and so that (2) the naming can handle some upcoming changes. * includes/nuttx/sched.h and sched/: There are three TCB structures: struct tcb_s is a generic common version, struct task_tcb_s is a version for tasks and kernel threads and pthread_tcb_s is a version for pthreads. By dividing the TCB structure into these variants, pthreads do not have to be burdened by task-specific data structures (and vice versa). * sched/task_exithook.c adn group_create.c: Fix an error, the task within the task group may exit early leaving a pthread to exit the task group last. In this case, we need to remember the the PID of the main task in the task group and use that PID for signalling SIGCHILD to the parent task group. * included/nuttx/sched.h and sched/sig*.c: Numerous changes to the signal deliver logic so that the delivery of signals to threads within a task group will be compliant with delivery of signals to threads within a POSIX process. * sched/mq_recover.c and task_exithook.c: Add logic to handle the case where a task is deleted (or pthread canceled) while it is waiting on a message queue. task_delete() and pthread_cancel() are dangerous interfaces. This is only one feeble recover measure of *many* that would be needed to do this safely. * sched/group_killchildren.c, task_recover.c, group_foreachchild.c, sched/restart.c, sched/task_delete.c, and others: Beef up logic to better support task deletion and pthread cancellation. Needed to pass need OS test case for task_restart(). * sched/include/sched.h and all timed functions in sched/: Move timer from local variables to TCB. This is needed so that if a task is canceled or restarted while it is waiting for a timed event, we can gracefully recover. We can't let the timer expire after the task has been deleted. * arch/arm/include/stm32 and arch/arm/src/stm32: Add support for the STM32 F3 family (still missing some things). * configs/stm32f3discovery: This will (eventually) be support for the STM32F3Discovery board. * STM32 F3 and STM32F3Discovery port is complete a ready for test. * arch/arm/src/lpc17xx: Add support for the Cortex-M4 FPU and Mikes "common vector" logic. The LPC1788 is going to need these things. * arch/arm/src/stm32/stm32_spi.c: Fix SPI DMA logic that does not work if sem_wait() is interrupt by a signal. From Petteri Aimonen. * drivers/input/max11802.c: MAX11802: Fix a timing bug that corrupted coordinates. From Petteri Aimonen. * drivers/mmcsd/mmcsd_spi.c: Use SPI locking so that MMC/SD can exist on the same bus as other SPI devices. From Petteri Aimonen. * graphics/nxfonts/nxfonts_sans17x22.h: Small mod to hyphen in sans17x22 font. The hyphen did not have any space on its sides. This caused it to run together with other characters so that for example "+-" would look weird. From Petteri Aimonen. * mm/mm_mallinfo.c: Take MM semaphore in mm_mallinfo. From Petteri Aimonen. * configs/stm32f3discovery/nsh/defconfig: Disable SPI. It is not used. * drivers/mtd/sst39vf: Add a driver for the SST29VF NOR FLASH parts. * sched/os_start.c: Add an additional call-out to support board- specific driver initialization during the start phase: If CONFIG_BOARD_INITIALIZE is defined, then an additioinal initialization function called board_initialize() will be called just after up_initialize() is called and just before the initial application is started. * arch/arm/src/stm32/stm32_otgfsdev.c, drivers/usbdev/usbdev_trprintf.c, and include/nuttx/usb/usbdev_trace.h: Add logic to support decoding of device-specific trace events to make the trace ouput more readable. From Petteri Aimonen. * arch/arm/src/stm32/stm32_otgfsdev.c: Need to manually set CNAK in the case where we are waiting for a SETUP command with DATA. Otherwise, the core may NAK further transactions. From Petteri Aimonen. * arch/arm/src/stm32/stm32_otgfsdev.c: Add logic to prevent premature to IDLE state. This change (plus the previous) was necessary to get the CDC/ACM driver working the certain STM32 F4 hardware (but not others). These changes appear to prevent certain race conditions that may or may not cause USB problems. From Petteri Aimonen. * arch/arm/include/armv6-m and arch/arm/src/armv6-m: First cut at support for the Cortex-M0 * configs/nutiny-nuc120, arch/arm/include/nu1xx, and arch/arm/src/nuc1xx: Support for Nuvoton NuTiny NUC120. * 2013-02-22: the Cortex-M0, NuvoTron NUC1xx, and NuTiny-SDK-NUC120 port is code complete and ready for testing. * configs/ekk-lm3s9b96/ostest and nsh: All EKK-LM3S9B96 configurations converted to use the mconf configuration tool. * configs/zkit-arm-1769: Add support for Zilogic System's ARM development Kit, ZKIT-ARM-1769. From Rashid. * configs/zkit-arm-1769/hello: Add a "Hello, World!" configuration for the KBIT-ARM-1769 board. From Rashid. * configs/zkit-arm-1769/thttpd: Add a THTTPD configuration for the KBIT-ARM-1769 board. From Rashid. * 2013-02-27: All configurations for the Cortex-M0 NuTINY-SDK-NUC120 appear to be functional and stable. * configs/zkit-arm-1769/nsh: Add an NSH configuration for the KBIT-ARM-1769 board. From Rashid. * arch/arm/src/stm32/stm32_otgfsdev.c: Fixes from Petterri Aimonen related to corner cases that can cause infinite interrupts. * drivers/usbdev/usbmsc_scsi.c: Change to allow the full name in the USB descriptor but a truncated, 8-byte name in the SCSI field. From Petteri Aimonen. * arch/arm/src/stm32/stm32_spi.c: Need to clear error flags to prevent corruption of subsequent transfers. Also, bit count should not be changed while the SPI peripheral is enabled. From Petteri Aimonen. * drivers/mmcsd/mmcsd_spi.c: When bus is shared, the speed has to be set every time. Also SD cards require a few dummy clocks to react into CS release. From Petteri Aimonen. * configs/lm4f120-launchpad: In initial configuration for testing the LM4F120 LaunchPad port. This is to support testing only and is not yet a functional board port (as of 2013-03-01). * arch/arm/include/lm/lm4f_irq.h and arch/arm/src/lm/chip/lm4f_vector.h: Add interrupt vector/IRQ number definitions for the LM4F120. * arch/arm/src/stm32f20xxx_dma.c and stm32f40xxx_dma.c: Fix a typo in assigned base register addresses for each DMA channel. From Yan T. * Several build fixes from Mike Smith were incorporated. These were mostly compilation errors introduced into the system because of the large number of recent changes with broad scope (2013-03-04). * configs/zkit-arm-17969/src/up_can.c: Add CAN support to the Zilogics Technologies ZKIT-ARM-1769 board (From Rashid Fatah, (2013-03-04)). * arch/arm/src/lpc17/lpc17*_clockconfig.c: The WaveShare Open1788 board now boots and passes the OS test. This is the work of Rommel Marcelo (2013-03-04). * arch/arm/src/lm/lm_gpio.c, lm_gpio.h, and chip/lm4f_pinconfig.h Extend GPIO logic to handle LM4F. Add LM4F pin configuration header file (2013-03-04). * configs/open1788: Enable LED support in all configurations. (2013-03-04) * configs/open1788/nsh: NSH configuration verified function. By Rommel Marcelo (2013-03-05). * configs/open1788/src/lpc17_nsh.c: Use the SD card interface, not SPI to interface with SD cards (2013-03-05. * arch/arm/src/lpc17xx/lpc17_sdcard.c and header files: Clone the STM32 SD card interface to the LPC1788. It appears to be the same IP. (2013-03-05) * libc/wqueue: Work queue logic moved from sched/ to libc/wqueue. It is not really core OS functionality and this move helps prepare for user-space work queues. (2013-03-05) * libc/wqueue: Implemented user-space work queues. These will not get tested until the next time I attempt a NuttX kernel build. (2013-03-05). * arch/arm: Correct some bad syscall dispatching logic. This change cannot be fully tested until there is a fielded NuttX kernel build. (2013-03-06). * net/net_poll.c: Correct logic that checks if the socket is disconnected when the poll is setup. That is bad logic: Listen sockets, for example, are not connected. In that case, the purpose of the poll is to wait for connection events. As a result of this, poll/select would return immediately with POLLHUP with it was used to detect connection events. This fix for now was to check instead if the socket is closed (meaning that it was connected at one time but was closed by the remote peer). That excludes the listen socket which was never connected. This does introduce a new problem, however. If the socket was not closed, but lost the connection through an abnormal event, then poll/select will hang. That needs to be revisited. (2013-03-07) * fs/fs_select.c: Was not checking if the timeout parameter was NULL but would, instead, setup a bogus timeout based on whatever it found at address zero. Also, improved some of the memory allocation logic so that it will not use so much memory. (2013-03-07) * net/net_poll.c: Handle the missing case. Now tests for not connected AND not listening. I think that now covers all of the cases including the missing case noted above. (2013-03-07) * mm/: Move all memory manager globals into a structure. A reference to this structure is now passed internally between mm APIs. This change will (eventually) support multiple heaps and heap allocators. (2013-03-08). * mm/ and include/nuttx/mm.h: Implement support for multiple heaps. (2013-03-08). * arch/*/src: xyz_addregion() needs to call kmm_addregion, not mm_addregion. (2013-03-08). * sched/kmm*.c: Move this garbage kmm*.c file to mm/. until I decide what to do with them (which is probably to just delete them). (2013-03-08). * mm/mm_test.c and Makefile.test: Deleted the memory test. This was a good test and helped me a lot when I wrote the memory manager, but now it is in the way and paralyzing other efforts. So the memory unit test was deleted. (2013-03-08) * sched/sched_free.c: Rename sched_free() to sched_ufree(); Add sched_kfree() to handler deferred kernel heap allocations. (2013-03-10) * arch/: User user-accessible heap to allocate all stacks. (2013-03-10) * arch/arm/src/sam3u: The AT91SAM3U will now support a kernel heap if so configured. (2013-03-10) * configs/sam3u-ek/knsh: This configuration was converted to use the kconfigs-frontends build tool. (2013-03-10) * configs/*/include/user_map.h and include/nuttx/userspace.h: Remove the very kludgy user_map.h file and replace it with a header that is expected at the beginning of the user-space blob. (2013-03-10) * configs/sam3u-ek/kernel/up_userspace.c: This is the header for the SAM3U-EK's user space. (2013-03-10) * sched/os_bringup.c: In the kernel build, os_bringup() now uses the user-space header to automatically start the user-space work queue, if so configured. (2013-03-10) * arch/arm/src/lpc17xx/lpc17_mpuinit.c and lpc17_userpace.c: Add support for the MPU and kernel build for the LPC17xx family. (2013-03-11) * configs/open1788/kernel and knsh: Add kernel build support and a kernel NSH configuration for the WaveShare Open1788 board. (2013-03-11) * configs/sam3u_ek/kernel, knsh, and scripts: Move some files around for better supportability. (2013-03-11) * configs/open1788/kernel, knsh, and scripts: Add a kernel mode build configuration for the WaveShare Open1788 board. (2013-03-11) * arch/arm/src/armv7-m/up_mpu.c: Several fixes to MPU logic. (2013-03-12). * arch/arm, configs/sam3u-ek, configs/open1788: Fix memory map for kernel mode build; Some regions were overlapping. (2013-03-13). * arch/: Rename g_heapbase to g_idle_topstack. This is the same value however: The top of the IDLE stack is the same as the base of the heap in the flat build. But not in the kernel build: The base of the heap is elsewhere so the naming was wrong. (2013-03-13). * libc/stdlib/lib_itoa.c: Implementation of itoa() contributed by Ryan Sundberg. (2013-03-14). 6.27 2013-04-28 Gregory Nutt * arch/arm/src/armv7-m/up_mpu.c: Correct MPU sub-region settings for unaligned regions (2013-03-15). * arch/arm/src/armv6-m/up_svcall.c: Bring up to equivalent to the ARMv7-M version (2013-03-15). * configs/lm4f120-launchpad/tools: Add scripts and instructions to simplify use of OpenOCD with ICDI (from JP Carballo, 2013-03-15). * tools/mkconfig.c: Logic that attempts to suppress buffered I/O within the kernel is wrong. sizeof(struct file_struct) must be the same in both kernel- and user-spaces (2013-03-16). * arch/arm/src/common/up_pthread_start.c, libc/pthread/pthread_startup.c, and related files: Implement switch to user-space and user-space pthread start-up function (2013-03-16). * arch/arm/src/common/up_signal_handler.c, libc/pthread/pthread_startup.c, and related files: Implement switch to user-space and user-space pthread start-up function (2013-03-16). * arch/arm/src/common/up_signal_handler.c, libc/signal/signal_handler.c, arch/arm/src/armv[6|7]-m/up_svcall.c, arch/arm/include/armv[6|7]-m/svcall.h, include/nuttx/userspace.h, and sched/sig_deliver.c: Implement switch to user-space from kernel signal delivery trampoline before calling user- space signal handler. Return from user-space signal handler using a system call (2013-03-16). * arch/arm/src/armv[6|7]-m/up_schedulesigaction.c: Need make sure we are in kernel mode before switching to kernel-mode signal handler trampoline (2013-03-16). * arch/arm/include/armv[6|7]-m/irq.h, and arch/arm/src/armv[6|7]-m/up_svcall.c: Add support for nested system calls. In the current design, this can happen only under one condition: When the kernel system call logic calls back into user space in order to allocate user space memory. So it is expected that the maximum nesting level will be only 2 (2013-03-17). * libc/stdio/lib_sccanf.c: Correct an error in sscanf. If %n occurs in the format statement after the input data stream has been fully parsed, the %n format specifier will not be handled. Reported by Lorenz Meier (and also earlier by Kate) (2013-03-17). * drivers/serial/serial.c: Support for O_NONBLOCK was not supported in the "upper half" serial driver. This is normally not an issue because UART TX is almost always available, but it does become an if the UART uses hardware flow control or if the a "lower half" is something like the USB CDC/ACM driver that may need to block for significant amounts of time (2013-03-18). * arch/arm/src/armv7-h/ram_vectors.h, up_ramvec_*.c, arch/arm/src/*/*_irq.c, and Make.defs: Add support for modifiable interrupt vectors in RAM (2013-03-18). * arch/arm/src/armv7-m/up_exception.S, sam3u/sam3u_vectors.S, and lpc17xx/lpc17_vectors.S: In exception handling with CONFIG_NUTTX_KERNEL, need to explicity set and clear the privilege bit in the CONTROL register on return. I assumed this would be handled automatically by the EXC_RETURN. Silly me (2013-03-18). * arch/arm/src/lpc17_adc.c: Add a work-around for an ADC errata. From Chris Taglia (2013-3-19). * arch/arm/src/armv7-m/up_hardfault.c: If the PRIMASK is used to disable interrupts, then additional logic is required in the hard fault handler (2013-3-19). * libc/ and mm/: Directories where the same sources files are used to build different objects in the first and second pass kernel builds need to keep those objects in separate directories so that they are not constantly rebuilt (2013-3-19). * fs/fat: Create an error in FAT file creation. The FAT logic was not making a distinction between directory non-existence and file non-existence so when it you try to create a file in a non-existent directory, it would create a file with the name of the missing directory. Reported by Andrew Tridgell (2013-03-30). * Numerous files: Changed the protoypes of up_create_stack() and up_release_stack() so that is includes a task type. Normally you can get this type from the TCB parameter, but there are certain conditions when the task type is not valid in the TCB when these functions are called. Only the prototypes were changed on this big, initial checkin. The next step will be to add logic to allocate stacks for kernel threads from protected kernel memory and all other task types from unprotected user memory (2013-03-20). * arch/*/src/common/up_createstack.c, up_use_stack.c, and up_release_stack.c: If creating or releasing the stack for a kernel thread, use the kernel allocator so that the kernel thread stacks are protected from user application meddling (2013-03-20). * arch/arm/src/armv[6|7]-m/up_scall.c: Fix parameter passing for all system call inline functions with > 3 parameters (2013-03-20) * arch/*/src/common/up_stackframe.c and include/nuttx/arch.h: Add and new interface to set aside memory on the stack. This will be used at least in the kernel build to hold task arguments (2013-03-21). * sched/sig_deliver.c: When dispatching signals to user threads, copy the siginfo_t from the sigq to the stack. The signal queue is allocated from kernel memory; however, the current stack is the user's stack and the user code will be able to access the signinfo_t data from the stack copy (2013-03-21). * arch/arm/src/stm32: Added support for the kernel mode build (cloned from the lpc17xx). (2013-03-21). * configs/stme32f4discovery/kernel and scripts: Add support for the kernel mode build on the STM32F4Discovery (2013-03-21). * drivers/st7567.c/h and include/nuttx/lcd/st7567.h: Driver for the ST7567 LCD Display Module from Univision Technology Inc. contributed by Manikandan.S (2013-03-22). * configs/zkit-arm-1769: Now supports the ST7567 LCD display module. Added an nxhello configuration for testing (Manikandan.S, 2013-03-22). * configs/stm32f4discovery/kostest: Add a kernel mode version of the OS test for the STM32F4Discovery board (2013-03-22). * nuttx/include/nuttx, nuttx/configs/sam3u-ek, nuttx/configs/open1788, nuttx/configs/stm32f4discovery, and nuttx/arch/arm: Complete re-archtecting of how signals are dispatched to user-space code in the kernel build. The original implementation was C-based and simpler. However, the C code intermixed with SVC calls was not properly preserving registers. The more complex, assembly language version does not suffer from these issues. I believe the kernel build can now be called "feature complete" (2013-03-23). * binfmt/binfmt_execmodule.c: Here is a place where I forget to update the call to sched_releasetcb() to pass the thread type as the second parameter (2013-03-23). * arch/arm/src/lm, kinetis, lpc32, and nuc1xx: Add kernel build support to all ARMv7-M and ARMv6-M chips. There are no configurations in place to to verify these additions! (2013-03-24). * arch/arm/src/lm/lm_gpio.h: Correct typos in alternate function definitions (2013-03-24). * arch/arm/src/lm/lm_lowputc.c and lm_serial.c: Add support for the 7 UARTs on the LM4F120 (2013-03-24). * configs/lm4f120-launchpad/ostest/defconfig: Fix the configured RAM size. This appears to be the last show-stopper bug: The LaunchPad now runs NuttX! (2013-03-24). * configs/lm4f120-launchpad/nsh: Add an NSH configuration for the LaunchPad (2013-03-24). * configs/kwikstik-k40: Converted configurations to use the konfig-frontends tool (2013-03-25). * configs/twr-k60n512: Converted configurations to use the konfig-frontends tool (2013-03-25). * arch/arm/src/lpc17xx/lpc17_lcd.c: Add an LCD framebuffer driver for the LPC177x/8x family (2103-3-26). * arch/arm/src/lpc17xx/lpc17_emc.c and configs/open1788/src/lpc17_sdraminitialize.c: Began testing the Open1788 SDRAM. The SDRAM is basically functional, but there are failures with the SDRAM is stressed by the memory test at apps/example/ramtest (SDRAM support and the RAM test can be configured into the base configs/open1788/nsh configuration as described in configs/open1788/READMT.txt (2103-3-27). * configs/open1788/nxlines: Add a configuration to test both the Open1788 LCD and SDRAM which is used as a framebuffer (2013-3-27). * arch/arm/src/lpc17xx/lpc17_gdma.c and lpc17_sdcard.c: Began implementation of the LPC17 DMA and integration into the SDCARD driver (2013-3-29). * arch/arm/src/lpc17xx/lpc17_gdma.c: LPC17 DMA is code complete and under test. Does not yet work (2013-3-30). * fs/fat/fs_fat32dirent.c and fs_fat32util.c: Several fixes to the FAT file system from Ronen Vainish. These fixes mostly involve the logic to extend directory clusters for the case of long file names but also include a few important general fixes (such as for storing 32 bit FAT values) (2013-03-31). * arch/arm/src/lpc17xx/lpc17_gdma.c and lpc17_sdcard.c: SD card DMA is now functional. Thre may be some issues with DMA from CPU SRAM which is apparently disabled in sleep mode; up_idle() always enters sleep mode (2013-03-31). * arch/arm/src/stm32: Add architecure support for the STM32 F427/F437 chips. Contributed by Mike Smith (2013-4-01). * configs/zkit-arm-1769/src/up_can.c: Add support for both CAN1 and CAN2. Contributed by M.Kannan (2013-4-01). * arch/arm/src/lpc17xx/lpc17_spi.c and lpc17_ssp.c and configs/olimex-lpc1766stk, nucleus2g, zkit-arm-1769, and lpcxpresso-lpc1768: The initialization function for both the LPC17xx SPI and SSP blocks was called up_spinitialize() which is the common API definition of include/nuttx/spi.h. But this raises a problem when the MCU has multiple blocks for differ SPI implementations as does the LPC17xx (and also as does other architectures like STM32 that have USARTs that can serve as SPI interfaces as well). These were renamed to lpc17_spiinitialize() and lpc17_sspinitialize() in this case. Problem reported by M. Kannan (2013-4-01). * arch/arm/src/lpc17xx/lpc17_gpdma.c and lpc17_idle.c: In sleep mode, DMA can only be performed from peripheral SRAM. CPU SRAM is shutdown in sleep mode. In order to simplify DMA memory allocation, the LPC17xx IDLE will now hold off going to sleep mode if there is a DMA in progress (2013-4-01). * configs/open1788/src/lpc17_autoleds.c: Reversed sense of the IDLE LCD. It is now off when the LPC17 is sleeping and on when awake. That is much more useful because it provides a good visual indication of the dynamic CPU load (2013-4-01). * configs/open1788/src/lpc17_touchscreen.c and lpc17_ssp.c: Add support for the touschscreen on the WaveShare LCD (2013-4-01). * configs/several: There were already some functions called lpc17_sspinitialize(). So they had to be renamed (2013-4-01). * arch/arm/src/lpc17xx/lpc17_ssp.c: Adapted to work with the LPC178x family (2013-4-01). * arch/arm/src/lpc17xx/lpc17_gpio.c/.h: Separate LPC176x and LPC178x logic into separate files. The logic is diverging to much to try to retain common code (2013-4-03). * net/net_clone.c: Fix compilation error when socket options are are disabled. Reported by Daniel O'Connor (2013-4-05). * configs/zkit-arm-1769/src/up_leds.c: Fix a typo introduced into the button interrupt logic (2013-4-05). * arch/arm/src/lpc17xx/lpc178x_gpio.c: Re-design of the GPIO logic for the LPC178x family by Rommel Marcelo (2013-4-05). * arch/arm/src/lpc17_gpiodbg.c: Updated so that it correctly reports LPC177x/8x GPIO registers when GPIO debug is enabled (2013-4-05). * arch/arm/src/Makefile: The variable NUTTX already includes the extension $(EXEEXT). So remove the second extension $(NUTTX)$(EXEEXT) in two places (2013-4-7). * arch/arm/src/lpc17xx/lpc17_gpioint.c: Disable interrrupts in lpc17_setintedge(). This logic must be atomic because it can be re-entered before it completes enabled interrupts, sometimes leaving the interrupts in a strange state (2013-4-7). * arch/arm/src/lpc17_lcd.c: Rommel Marcelo got the LPC1788 framebuffer-based LCD working. Very nice! (2013-4-08). * arch/arm/src/lm/lm_clockconfig.c and configs/lm4f120-launchpad: Fix handling of the RCC SYSDIV2 field whent the PLL output is 400MHz. Don't forget to set the USERCC2 bit in the register or all is for naught (2013-4-09). * configs/zkit-arm-1769/src/up_lcd.c, up_ssp.c, and up_spi.c: Use SSP0 to LCD and SPI to SD-Card on the Zkit-arm-1769 board. From Manikandan. S (2013-4-10) * configs/olimex-lpc1766stk/usbserial: Converted to use the kconfig-config frontends tools (2013-4-12). * drivers/usbdev/pl2303.c: Fix some compilation errors that crept in when fixes to the CDC/ACM driver where blindly incorporated in the PL2303 driver (2013-4-12). * configs/stm3210e-eval/usbserial: Converted to use the kconfig-config frontends tools (2013-4-12). * configs/nucleus2g/usbserial: Converted to use the kconfig-config frontends tools (2013-4-12). * arch/arm/src/kl and arch/arm/include/kl: Add support for the Kinetis L family of Cortex-M0+ MCUs. Contributed by Alan Carvalho de Assis. NOTE: This is still very much a work in progress as of this initial commit (2013-04-16). * configs/freedom-kl25z: Support for the Freedom KL25Z board contributed by Alan Carvalho de Assis. NOTE: This is still very much a work inprogress as of this initial commit (2013-04-16). * arm/arm/src/armv6-m and arch/arm/include/armv6-m: Ooops. Fix a major screw-up: The Cortex-M0 has no BASEPRI register but the current logic was using it to manage interrupts. Switch to using the PRIMASK. This means that hardfaults will (again) occur when SVC instructions are executed (2013-4-16). * configs/stm3240g-eval/ostest: Converted to use the kconfig-frontends tools (2013-4-17). * sched/task_exithook.c: Don't flush the streams until the final thread of the group exits. Flushing may cause the thread to get suspended at a bad time and other threads in the group may run while the exiting thread is in an unhealthy state. This can cause crashes under certain circumstance. This is a critical bugfix (2013-4-18). * drivers/mtd/ramtron.c: Extended to support the FM25V01 device. Contributed by Lorenz Meier (2013-4-18). * sched/task_deletecurrent.c and task_exit.c, arch/*/up_exit.c: Renamed task_deletecurrent() and task_exit() since it really handles the architecture independent part of _exit(). _exit() is used internally, but if it is called from the user, it should unregister any atexit() or on_exit() functions (2013-4-18). * tools/kconfig2html.c: This is the beginning of a tool to replace the hand-generated documentation of the NuttX configuration variables with auto-generated documentation. The initial checkin is an incomplete, poorly structured prototype that I hope to evolve into a useful tool (2014-4-20). * libc/string/lib_strchr.c: strchr(str, '\0') should return a pointer to the end of the string, not NULL. From Petteri Aimonen (2014-4-22). * fs/fat/fs_writefat.c: mkfatfs was writing the boot code to the wrong location. From Petteri Aimonen (2014-4-22). * Documentation: The NuttX documentation now expects to find an auto-generated version of the configuration variable documentation at Documentation/NuttXConfigVariables.html (2014-4-22). * arch/arm/src/lpc17xx/lpc17_adc.c: Only one ADC pin was configured. Need to configure all that are in the ADC0 set. From MKannan (2014-4-23). * configs/zkit-arm-1769/src: ADC and SPI/USB MSC updates from MKannan (2014-4-23). * arm/src/armv7-m/ram_vectors.h and arm/src/armv7-m/up_ramvec_initialize.c: Fixes to RAM vector logic from Paul Y. Zhang (2014-4-23) * tools/kconfig2html.c: Improve behavior of Expand/Collapse Table of Contents; Handle errors in parsing of strings and in some uninitialized variables. Add an option to use jQuery. * tools/mkconfigvar.sh: Fix make target (2014-4-23). * sched/exit.c, pthread_exit.c, task_exit.c, task_delete,c and task_exithook.c: For pthread_exit(), move some logic to an early point in the exit sequence where the task may need to block. Add conditional logic in the lower end of the eixt logic kicked off by _exit() to prohibit blocking after the task has been torn down and is no longer cabable of blocking (2014-4-23). * arch/arm/src/common/up_initialize.c: Add missing registration of /dev/zero. Registration of /dev/null should depend upon conditional compilation. From Ken Pettit (2014-4-24). * arch/*/src/common/up_initialize.c: Same change required to other architectures (2014-4-24). * arch/arm/src/kl/kl_clockconfig.c and configs/freedom-kl25z/include/board.h: Modify out PLL configuration so that it uses the values in board.h; Fix PLL settings in board.h so that the correct core and bus clock frequencies are generated. (2014-4-24). * arm/src/kl/chip/kl_memorymap.h, kl_sim.h, andkl_uart.h: Correct some register definitions (2014-4-25). * arch/arm/src/kl/Kconfig, kl_lowputc.c, kl_serial.c, and kl_config.h: No UART3-5 (2014-4-25). * arch/arm/src/kl/kl_serial.c: Various fixes to various files in the KL architecture directory as need to get the interrupt-driven serial driver to work. The Freedom KL25Z NSH configuration now works (2014-4-25). * include/nuttx/assert.h, arch/*/src/*/up_assert.c, and other file: Remove up_assert_code(). While asserting with an encoded value could be a good feature, the codes have not be well utilized nor documented. Give that situation it is better to remove the API and reduce the footprint a little (2014-4-25). * drivers/serial/Kconfig and arch/*/src/*/*_serial.c: Add compilation so that the useless TIOCSERGSTRUCT ioctl logic is not build unless CONFIG_DEBUG and CONFIG_SERIAL_TIOCSERGSTRUCT are defined. * sched/task_delete.c and task_terminate.c: Most task_terminate() out of task_delete.c into its own C file. This should prevent dragging task_delete() into the link when it is never called. 6.28 2013-06-14 Gregory Nutt * arch/arm/src/lpc17xx/lpc17_i2c.c: Interrupts were not being re-enabled in the I2C initializeation function (2013-4-30). * net/sendto.c: Added skeleton of implementation of send timeouts for UDP. However, this functionality really does not make sense, so it is disabled in the code (2013-4-30). * drivers/mtd/mtd_partition.c: Support capability to clone one MTD driver into several, MTD partition drivers, each of which can manage a sub-region of the FLASH (2013-4-30). * configs/sim/nxffs: Converted to use the kconfig-frontends tools (20130-4-30). * configs/sim/mtdpart: A new configuration to test MTD partitions (2013-4-30). * configs/sim/mkroe-stm32f4: Support for the MikroElektronika Mikromedia for STM32F4 development board (from Ken Pettit, 2013-4-30). * fs/smartfs: Add Ken Pettit SMART FS (2013-4-30). * include/nuttx/mtd.h and most MTD drivers: Add support for (optional) method to perform byte oriented writes if so configured (2013-5-1). * arch/arm/src/kl/chip/kl25z128_pinmux.h: Corrections fo the pin multiplexing definitions from Alan Carvalho de Assis (2013-5-2). * drivers/mtd/mtd_partition.c: Fix a few bugs and add support for the (option) byte write method (2013-5-3). * arch/arm/src/kl: Repartitioning of definitions in header files from Alan Carvalho de Assis (2013-5-3). * drivers/mtd/smart.c, fs/smart, and other files: SMART file system now makes use of the MTD byte write capabilities when present (from Ken Pettit, 2013-5-3). * drivers/mtd/m25px.c: Some rearchitecting to use the byte write capability (when possible) and to use 4KB sectors for the erase block size when the part supports it (Ken Pettit, 2013-5-3). * configs/pirelli_dpl10: Adds a configuration for the pirelli phone (from Craig Comstock via Alan Alan Carvalho de Assis, 2013-5-3). * arch/arm/src/calypso: Fix some compilation warnings (2013-5-5). * configs/pirelli_dpl10/nsh_highram: Converted to use the kconfig-frontends tools (2013-5-5). * drivers/lcd/mio283qt2.c: LCD was not being selected in setpower method (also not being deselected in hwinitialize function) (2013-5-6). * arch/arm/src/kl/kl_gpio.c and .h, configs/freedom-kl25z/src/freedom-kl25z.h, and configs/freedom-kl25z/src/kl_led.c: Fixes LEDs on the Freedom KL25Z board (2013-5-6). * arch/arm/src/kinetis/kinetis_pin.c and arch/arm/src/kinetis/kinetis_internal.h: The Kinetis GPIO logic had some of the same issues as did the Kinetis L (2013-5-6). * arch/arm/src/stm32/stm32_idle.c: Add an option to conditionally disable the "wfi" sleep mode. This is needed with certain JTAG debuggers to to prevent the debug session from begin disconnected. From Ken Pettit (2013-5-7). * configs/mikroe-stm32f4/fulldemo/, nx/, nxlines/, nxtext/: Add more configurations for the Mikroelektronika Multimedia STM32-M4 board. From Ken Pettit (2013-5-7). * configs/mikroe-stm32f4/src/up_mio283qt2.c and other files: Integrate the MIO283QT2 display on the Mikroelektronika Multimedia STM32-M4 board. From Ken Pettit (2013-5-7). * arch/arm/src/lpc17xx/lpc17_i2c.c: Fix for lpc17xx i2c single byte read timeout error problem from M.Kannan (2013-5-8). * arch/arm/src/stm32/stm32_adc.c: Typo in F2/F4 specific logic: ACD_ instead of ADC_. From Ken Pettit (2014-5-8). * configs/olimex-lpc1766stk/tools: Tweaks to support OpenOCD-0.70 (2013-5-10). * configs/mikroe-stm32f4: Changes to get the Mikroelektronika MultiMedia STM32 F4 touchsceen working. From Ken Pettit (2013-5-11). * configs/*/nxwm: Default priorities for NxWidget and NxWM threads should be 100, not 50, to be consistent with other default priorities. * configs/hymini-stm32v/buttons, nsh, and nsh2: Configurations converted to use the kconfig-frontends tools (Laurent Latil, 2013-5-14) * configs/hymini-stm32v/src: Converted to use the common SSD1289 driver (Laurent Latil, 2013-5-14) * configs/hymini-stm32v/ostest and usbnsh: Add OS test and USB/NSH configurations (Laurent Latil, 2013-5-14). * configs/hymini-stm32v/src/up_nsh.c: Add support for the card detect (CD) interrupt (Laurent Latil, 2013-5-14). * configs/hymini-stm32v/src/nx and nxlines: Removed these configurations (Laurent Latil, 2013-5-14). * arch/arm/src/stm32/chip/stm32f10xx_dma.h: Fix some bad DMA register definitions. From Laurent Latil (2013-5-15). * configs/hymini-stm32v: Enable SDIO in nsh2 configuration; remove warning from src/up_ssd1289.c. From Laurent Latil (2013-5-15). * configs/hymini-stm32v/src/up_r61505u.c: Support for the R65105- based LCD that comes with some HY-Mini STM32v board. From Christian Faure (2013-5-16). * syscall/syscall_lookup.h: Missing underscore character in SYS_onexit. Reported by Ken Pettit (2013-5-17). * nuttx/syscall/syscall.csv: Type of first parameter of on_exit() is wrong. Reported by Ken Pettit (2013-5-17). * configs/mikroe-stm32f4/kernel/, kostest/ and scripts/: Add kernel build support and kernel mode OS test example for the MikroElektronkia MultiMedia STM32 M4 board. From Ken Pettit (2013-5-17). * arch/arm/include/stm32/chip.h and arch/arm/src/stme32/chip/stm32l15xxx_pinmap.h: Beginning of support for the STM32L15X family (2013-5-18). * arch/arm/include/stm32/stm32l15xxx_irq.h and arch/arm/src/stm32/chip/stm32l15xxx_vectors.h: Support for STM32L15X interrupt vectors (2013-5-18). * arch/arm/src/stm32/chip/stm32l15xxx_gpio.h and related STM32 GPIO files: Add GPIO support for the STM32L215X (2013-5-18). * arch/arm/src/stm32/chip/stm32l15xxx_memorymap.h: STM32L215X memory map (2013-5-18). * arch/arm/src/stm32/chip/stm32_pwr.h, stm32fl15xxx_rcc.h, and stm32l15xxx_syscfg.h: More updates for the STM32L152 (2013-5-19). * configs/stm32ldiscovey: Configuration for the STM32L-Discovery board. Still does not build on initial check-in (2013-5-19) * STM32L15X: Add DMA and UART start. Correctly initialize the heap (2013-5-19). * arch/arm/src/stm32/stm32l15xxx_rcc.c chip/stm32_flash.h: Add RCC PLL and FLASH configuration logic for the STM32L152X (2013-5-19). * include/nuttx/usb/audio.h: Typo- and bug-fixes from Ken Pettit (2013-5-19) * audio/, drivers/audio, include/nuttx/audio.h: Add a new audio subsystem and VS1053 driver to NuttX. Contributed by Ken Pettit (2013-5-19). * configs/miroe-stm32f4/: Add audio logic to NSH configuration. From Ken Petty (2013-5-19). * nuttx/arch/arm/src/lm/chip/lm_flash.h and nuttx/arch/arm/src/lm/lm_flash.c: Add support for TI/Stellaris internal FLASH MTD driver. From Max Holtzberg (2013-5-20). * arm/src/stm32/chip/stm32l15xxx_vectors.h: After correcting errors in the vector definition file, the STM32L-Discovery NSH port now seems to be fully functional. Also fixed an error that was causing the LEDs to be controlled incorrectly (2013-5-21). * arch/arm/src/stm32/chip/stm32_lcd.h: Add definitions for STM32L15X segment LCD (2013-5-21). * configs/lm3s6965-ek/discover: Add an example configuration for UDP discovery tool on the lm3s6965-ek board. From Max Holtzberg (2013-5-21). * audio/, drivers/audio, include/nuttx/audio: Added a callback interface to the Audio upperhalf driver for dequeueing, reporting async events, etc. Also included is some initial work for the VS1053 driver. From Ken Pettit (2013-5-21). * include/nuttx/audio/audio.h: Moved from include/nuttx/ to include/nuttx/audio. (2013-5-21). * configs/lm3s6965-ek/tcpecho: This configuration builds the simple TCP echo example based on W.Richard Steven UNIX Programming book to ensure correct usage of the socket API. Contributed by Max Holtzberg (2013-5-22). * configs/stm32ldiscovery/src/stm32_lcd.c: Framework for support of the STM32L-Discovery's segment LCD (2013-5-22). * fs/fs_poll.c: Poll setup/teardown logic should ignore invalid (i.e., negative) file descriptors. Max Holtzberg (2013-5-23). * net/net_poll.c: When readahead data is available, the network poll logic should set POLLIN (or POLLRDNORM), not POLLOUT. Max Holtzberg (2013-5-23) * fs/fs_poll.c: Actually, it should also set revents == 0. (2013-5-23). * libc/misc/lib_slcdencode.c and lib_slcddecode.c: Add logic to marshal and serialize special SLCD intermixed with normal ASCII data (2013-5-23) * configs/stm32ldiscovery/src/stm32_lcd.c: STM32L-Discovery's segment LCD is code complete but completely untested (2013-5-23). * include/nuttx/fs/ioctl.h, include/nuttx/lcd/slcd_codec.h, and configs/stm32ldiscovery/src/stm32_lcd.c: Add SLCD ioctl commands to get SLCD geometry, set bars, and manage contrast (2013-5-23). * configs/stm32ldiscovery/src/stm32_usb.c: This file and all references to USB removed for the STM32L-Discovery. While the chip supports a USB device, the board does not (2013-5-24). * arch/arm/src/stm32/stm32_lse.c: Add support for the STM32L CSR register and for the LSE LCD clock source (2013-5-24). * The STM32L-Discovery segment LCD is now functional and the README file includes instructions for adding the apps/examples/slcd segment LCD test as an NSH "built-in" command (2013-5-24). * configs/pcblogic-pic32mx: Converted all configurations to use the kconfig-frontends tool (2013-5-25). * configs/pcblogic-pic32mx/src: Renamed files using pic32mx_ vs up_ prefix. Enable building of LCD1602 LCD (2013-5-25). * configs/pcblogic-pic32mx/src/pic32mx_lcd1602.c: Now uses SLCD CODEC (2013-5-25) * configs/stm32ldiscovery/src/stm32_lcd.c: Now supports ioctl to get cursor position (2013-5-25). * include/nuttx/lcd/slcd_ioctl.h: Moved ioctls commands and structures from slcd_codec.h (2013-5-25) * libc/misc/lib_slcdencode.c and lib_slcddecode.c: Several encoding and decoding bug fixes (2013-5-26) * configs/sure-pic32mx: Converted all configurations to use the kconfig-frontends tools, cleaned up the directory structure and naming to match some of the more recent configurations, and added a segment LCD driver for the board. The initial checkin of the LCD driver is just a clone of configs/pcblogic-pic32mx/src/pic32mx_lcd1602 and it not yet expected to be functional (2013-5-26). * include/nuttx/lcd/slcd_ioctl.h and all SLCD drivers: Rename geometry structure to attributes; Move MAX contrast to attributes. Add attribute and ioctl commands to get and set LCD brightness (2013-5-27). * configs/sure-pic32mx/pic32mx_lcd1602.c: This driver appears to fully functional (at least to the extent that it has been tested) (2013-5-27). * arch/mips/src/pic32mx/pic32mx-usbdev.c: Fix NULL packet handling in the PIC32 USB device driver. Without this fix the CDC/ACM driver cannot be used reliably with the PIC32 USB. With this change the configs/sure-pic32mx/usbnsh configuration works great (2013-5-28). * configs/sure-pic32mx/src/pic32mx_nsh.c: The NSH configurations will support the USB monitor applications (2013-5-28). nuttx/arch/arm/include/stm32/chip.h, src/stm32/Kconfig, src/stm32/chip.h, and src/stm32/chip/stm32f103c_pinmap.h: STM32F103C4 and F103C8 chip support from Laurent Latil (2013-5-28) * configs/stm32_tiny: Add support for the STM32 Tiny development board based on the STM32 F103C8T6 MCU (2013-5-28). * arch/arm/src/stm32/stm32_usbdev.c: Fix an error in NULL packet handling: If the NULL-packet needed flag ever gets set, then it is not cleared and inifinite NULL packets result. This only effects the CDC/ACM class and was the cause of the failure of configs/stm32f3discovery/usbnsh configureation which works great after this change (2013-5-29). * drivers/usbdev/cdcacm.c and pl2303.c and include/nuttx/usb/cdcacm.h: Change the default IN request buffer size from 64 to 96. This will avoid requests of exactly MAXPACKET size and, hence, avoid so many NULL packets. Also, fix the OUT request buffers size to exactly the max packet size. It cannot be any other size (2013-5-29). * .gitignore: Clean-up of most all .gitignore files: Make scope of ignore to be only the current directory; Ignore .dSYM files in directories where .exe's may be build. Also, in Makefiles, clean .dSYM files in directories where .exe may be built (2013-5-30). * drivers/wireless/nrf24101.c/.h and include/nuttx/wireless/nrf24101.h: Add new driver for the wireless nRF24L01+ transceiver. From Laurent Latil (2013-6-1). * drivers/wireless/cc1101: Move files in the cc1101 up one directory. From Laurent Latil (2013-6-1). * configs/stm32_tiny: Fix nRF24L01+ driver integration for the STM32 Tiny. From Laurent Latil (2013-6-01). * configs/sam3u-ek: All remaining configurations changed to use the kconfig-frontends tools (2013-6-2). * arch/arm/src/sam3u/chip: All SAM3U register definition files moved to this subdirectory. Naming of registers changed from SAM3U_ to just SAM_. This is in preparation for a SAM4L port (2013-6-2). * arch/arm/src/sam3u: Renamed files to sam_* vs. sam3u_*. Eliminated sam3u_internal.h; instead uses individual header files for each SAM interface block (2013-6-2). * arch/arm/src/stm32/stm32f20xxx_rcc.c and stm32f40xxx_rcc.c, and configs/mikroe-stm32f4/src/up_clockconfig.c. Correct some bad conditional compilation (CONFIG_ missing from setting name). This affects some STM32 FLASH pre-fetch settings. From Lorenz Meier (2013-6-2). * arch/arm/include/sam34 and arch/arm/src/sam34: The old sam3u/ directories were renamed sam34/ to make room in the namespace for the SAM4L (2013-6-2). * libc/stdio/lib_dprintd.c and lib_vdprintf.c: Add dprintf() and vdprintf() (the latter from Andrew Tridgell, 2013-6-2). * sched/sem_holder.c: Modify assertion that is reported to cause false alarm assertions (2013-6-2). * arch/arm/include/sam34/sam4l_irq.h and arch/arm/src/sam34/chip/sam4l_memorymap.h: Add interrupt and memory map definitions for the AT91SAM4L (2013-6-3). * arch/arm/src/sam34/chip/sam4l_vectors.h and arm/src/sam34/sam_vectors.S: Add interrupt vector support for the SAM4L family (2013-6-3). * arch/include/sam34/chip.h: Add chip definitions for the SAM4L family (2013-6-3). * configs/sam4l-xplained: A partial configuration that will (eventually) support the SAM4L Xplained Pro developement board (2013-6-3). * arch/arm/src/sam34/chip/sam4l_pinmap.h: Initial cut as SAM4L pin mapping (2013-6-3). * arch/arm/src/stm32/stm32*_dma.*: Add a new interface function, stm32_dmacapable() that can be used to determine if DMA is possible from the specified memory address. From Petteri Aimonen (2013-6-4). * arch/arm/src/stm32/stm32_spi.c: If CONFIG_STM32_DMACAPABLE is defined, use stm32_dmacapable() to determine if it is possible to perform DMA from the specified address. This change is important for the STM32 F4 which may have SPI data buffers allocated on the stack in CCM memory which cannot support the DMA. From Petteri Aimonen (2013-6-4). * nuttx/arch/arm/src/sam34/sam4l_gpio.h: Created GPIO driver header file for the SAM4L. Also renamed the SAM3U header file to sam3u_gpio.h (2013-6-4). * nuttx/arch/arm/src/sam34/sam4l_gpio.c: Created GPIO driver for the SAM4L (2013-6-4). * nuttx/configs/sam4l-xplained/src/sam_userleds.c: Added. (2013-6-4). * configs/sam4l-xplained/src/sam_userleds.c: Add application LED interfaces (2013-6-5). * arch/arm/src/sam34/sam4l_gpio.c and arch/arm/src/sam34/chip/sam4l_gpio.h: Fix GPIO port address; fix compilation errors (2013-6-5). * arch/arm/src/sam34/chip/sam4l_flashcalw.h: Add header file for SAM4L FLASH and PICOCACHE definitions (2013-6-5). * arch/arm/src/sam34/chip/sam4l_pm.h: Add header file for SAM4L Power Management. Leveraged from AVR32 (2013-6-5). * arch/arm/src/sam34/sarm4l_clockconfig.c: SAM4L clock configuration logic (leveraged from AVR32). * nuttx/arch/arm/src/sam34/sam4l_periphclks.c/h: Add common logic to enabled/disable SAM4L peripheral clocking (2013-6-5). * nuttx/arch/arm/src/sam34/chip/sam4l_bpm.h and sam4l_scif.h: Add register definitions for the SAM4L BMP and SCIF blocks (2013-6-6). * nuttx/arch/arm/src/sam34/sam4l_clockconfig.c: Now selects an optimal power scaling mode (2013-6-6). * nuttx/arch/arm/src/stm32/stm32_serial.c and nuttx/include/termios.h: Change for hardware flow control support for STM32. It also fixes incorrect operation of USART2 and UART5 in current master. Submitted by Lorenz Meier but includes changes by Mike Smith (2013-6-6). * nuttx/arch/arm/src/stm32/stm32_otgfshost.c: A backward conditional prevent detection of disonnection events. Reported by Scott (2013-6-6). * nuttx/arch/arm/src/sam34/chip/sam4l_bscif.h: Add registers definitions for the SAM4L BSCIF module (2013-6-6). * nuttx/arch/arm/src/sam34/sam4l_clockconfig.c and chip/sam4l_wdt.h: Finally finished the SAM4L clock configuration logic; Added a WDT register definition header file (2013-6-8). * nuttx/arch/arm/src/sam34/chip/sam4l_usart.h and sam4l_picouart.h: Add UART/USART register defintion files for the SAM4L (2013-6-8). * arm/src/sam34/chip/sam3u_periphclks.h: More macros and definitions to generalize peripheral clocking and to hide differences between the SAM3U and the SAM4L (2013-6-8). * configs/sam4l-xplained/ostest: The SAM4L now passed the OS test (2013-6-9). * configs/sam4l-xplained/nsh: Added an NSH configuration for the SAM4L Xplained Pro board (2013-6-9). * configs/sam4l-xplained/src/sam_cxxinitialize.c: Added C++ support to the SAM4L Xplained Pro board configuration (2013-6-9). * arm/src/sam34/chip/sam_irq.c: Extend IRQ support to handle the larger number of NVIC interrupts used by the SAM4L (2013-6-9). * arch/arm/src/sam45/chip: Beginning updates of SAM3U header files to include support for the SAM4S: WDT, SUPC, EEFC, MATRIX, PMC, UARTs, USARTs, HSMCI, SPI (2013-6-10). * arch/arm/src/chip/sam4s_memorymap.h, sam4s_irq.h, and sam4s_vectors.h: Add SAM4S memory map and interrupt definitions (2013-6-10) * configs/sam4s-xplained: Add framework for the SAM4S Xplained board. There is not much there on initial checkin (2013-6-10). * arch/arm/src/sam34: SAM3S support: GPIO, chip characteristics, peripheral Kconfig (2013-6-11). * arch/arm/src/sam34/chip/sam4s_pinmap.h: Add SAM4S pin configuration definitions (2013-6-11). * arch/arm/src/sam34/sam4s_periphclks.h: Add macros to manage SAM4S peripheral clocks (2013-6-11). * configs/sam4s-xplained: Configuration builds error-free (2013-6-11). * configs/sam4s-xplained/nsh: Added an NSH configuration for the SAM4S Xplained board. Both the OS test and the NSH configurations no execute error-free. Delay loops calibrated for both the SAM4L and SAM4S boards (2013-6-12). * Standardize on CONFIG_NSH_BUILTIN_APPS. Remove all other variants of the build-as-an-NSH-application configuration settings (2013-6-12). * arch/arm/src/sam34/sam_periphclks.h: A header file that just includes the right header file. This cleans up the messy logic in all of the C files and puts the mess in one place (2013-6-12). * arch/arm/src/arm*/Toolchain.mk, Kconfig (and lots of configuration files): Add support for a generic Windows EABI toolchain (2013-6-13). 6.29 2013-07-31 Gregory Nutt * arch/arm/src/sam34/chip/sam4l_pinmap.h: Change naming of some pin configurations to match names used with other SAM part (2013-6-15). * arch/arm/src/sam34/sam4l_clockconfig.c: Corrected some typos (2013-6-15). * configs/sam4l-xplained/src/sam_buttons.c: Eliminate a warning (2013-6-15). * configs/sam4l-xplained/src/sam_mmcsd.c, sam_nsh.c, sam_spi.c, sam3u-ek.h, Kconfig, Makefile, sam4l-xplained.h, configs/sam4l-xplained/README.txt, and configs/sam4l-xplained/include/board.h: Add support for the SPI- based SD card on the I/O1 module (2013-6-15). * arch/arm/src/sam34/sam_spi.c: Re-architect the SAM3/4 SPI driver so that is it compatible with the SPI drivers of other MCUs (2013-6-16). * configs/sam3u-ek/src/up_touchscreen.c and configs/sam4l-xplained/src/sam_mmcsd.c: Changed needed because of the above change to the SAM3/4 SPI interface (2013-6-16). * drivers/input/ads7843e.c: Remove the wait for the touchscreen busy bit. I don't see the busy bit changing on the SAM3U-EK board. But maybe it is not supposed to. From my reading of the ADS7843 spec, it would not be appropriate to wait for the BUSY bit to de-asserted anyway (since it is only de-asserted when we read the data) (2013-6-16). * configs/sam3u-ek/src/up_touchscreen.c: Fix polarity of the /PENIRQ signal (it is active low) (2013-6-16). * configs/sam3u-ek/include/board.h: The SAM3U-EK board now runs at 96MHz. This might have broken some things? (2013-6-17). * drivers/mmcsd/mmcsd-spi.c: Driver need to make sure that the SPI mode and data width are correct (2013-6-17). * arch/arm/src/kinetis/kinetis_tsi.h: Corrections to the Kinetis (2013-6-18) * arch/arm/src/sam34/sam_spi.c: Fix SPI mode setting. In the SAM3/4 family, the clock phase control (CPHA) is inverted (NPHA) (2013-6-18). * arch/arm/src/kl/chip/kl_tsi.h: Freescale KL25Z TSI register definitions from Alan Carvalho de Assis (2013-6-18). * configs/freedom-kl25z/src/kl_tsi.c: Example TSI driver for the Freedom KL25Z board from Alan Carvalho de Assis (2013-6-18). * arch/arm/src/sam34/sam_spi.c: Correct an incorrect pointer test. Was checking if the wrong pointer was NULL (2013-6-18). * arch/arm/src/kl/kl_spi.c and chip/kl_spi.h: Add SPI driver and register definitions for the Freescale KL25Z (2013-6-19). * arm/src/sam34/chip/sam4l_lcdca.h: Register definition file for the SAM4L LCD peripheral (2013-6-19). * arm/src/sam34/chip/sam_spi.h: SPI register definition file updated to include a few differences for the SAM4L (2013-6-19) * arm/src/sam34/chip/sam4l_pdca.h: Add SAM4L PDCA register definition file; also renamed sam_dmac.* files to sam3u_dmac.* to identify them as SAM4U/4S only files (2013-6-19). * configs/freedom-lk25z/src/kl_spi.c: Add the framework for controlling SPI-related discrete inputs and outputs. Taken from work by Alan Carvalho de Assis (2013-6-20). * arch/arm/src/kl/kl_dumpgpio.c: Now compiles (2013-6-20). * configs/: Several defconfig files were changed that had CONFIG_HAVE_CXXINITIALIZE=y. Because of recent changes to apps/examples, these configurations may need to have CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y so that they behave as they did before, i.e., so that C++ initializers will be called when NSH starts up (2013-6-21). * configs/sam4l-xplained/src/sam_slcd.c: Beginning of a driver for the LED1 segment LCD module. This driver is incomplete on initial check- in (2013-6-21). * drivers/net/enc28j60.c: Change buffer ordering to work around Errata #5. From Dave (ziggurat29, 2013-6-22). * configs/sam4l-xplained/src/sam_slcd.c: LED1 segment LCD module is now functional (2013-6-23). * drivers/lcd/ssd1306.c and include/nuttx/lcd/ssd1306.h. Renamed ug-2864hsweg01.c and .h to ssd1306.c and .h. Extended to support the UG-2832HSWEG04 which is very similar and also based on the SSD1306 controller (2013-6-23). * configs/sam4l-xplained/src/sam_ug2832hsweg04.c: Add support for the UG-2832HSWEG04 OLED on the SAM4L Xplained Pro's OLED1 module (2013-6-23). * include/debug.h: Added macro DEBUGPANIC for forces crashes when debug is enabled. * drivers/lcd/ssd1306.c: Driver now appears to be function for the UG-2832HSWEG04 in landscape mode (2013-6-24). * drivers/lcd/ug-2864ambag01.c and ug-9664hswag01.c: Add/updated support for reverse portrait mode from lessons learned with the UG-2832HSWEG04. Untested changes! (2013-6-24). * arch/arm/src/stm32/stm32_ccm.c and .h: Add support for a seperate CCM heap. This may be useful for segregating allocations for CCM (which cannot be used for DMA) from other allocations (that may be used used for DMA) (2013-6-25). * arch/arm/src/sam32/sam3u_gpio.h: Correct configuration of PIO pins for SAM4S B and C peripherals (2013-6-26) * configs/sam4s-xplained/src/sam_sram.c: Added support for on-board 1MB SRAM (2013-6-26). * arch/arm/include/sam34/chip.h and sam3x_irq.h: Add support for SAM3X and SAM3A chips (2013-6-26). * arch/arm/src/sam34/chip/sam3x_vectors.h: Add support for SAM3X/3A interrupt vectors (2013-6-26). * arch/arm/src/sam34/sam3x_periphclks.h: Add peripheral clock controls for the SAM3X/3A (2013-6-26). * arch/arm/src/sam34/chip/sam3x_memorymap.h: Add SAM3X/3A memory map (2013-6-26). * arch/arm/src/sam34/chip/sam3x_pinmap.h: Add SAM3X/3A pin multi-plexing definitions (2013-6-26). * arch/arm/src/sam34/sam3x_gpio.h: Add SAM3X/3A gpio encoding macros. These differ from the SAM3U only in because of the 6 PIOs: PIOA-PIOF (2013-6-26). * configs/arduino-due: This is an empty directory now with only a README file in it but this directory will eventually hold a port for the Arduino Due (2013-6-26). * arch/arm/src/sam34/Kconfig: Add SAM3X/3A peripherals to the SAM3/4 configuration logic (2013-6-26). * arch/arm/src and include/ and configs/sam*/: Large rename of all references to SPI with SPI0. This is because all other SAMs have only SPI but the 3X/3A have SPI0 and SPI1 (2013-6-26). * configs/arduino-due: Complete the basic board configuration and integrate this into the configuration and build system. The Arduino Due is now ready to begin test (2013-6-17). * configs/arduino-due/nsh: Add an NSH configuration for the Arduino Due. Both the OS test and NSH configuration are now functional (2013-6-28). * configs/arduino-due/src: Add support for the "L" LED (2013-6-28). * arch/arm/src/sam34/sam_allocateheap.c: Clocking must be applied to the SMC module for the 3X and 3A family in order for the NFC SRAM to be functional (2013-6-28). * arch/arm/src/sam34/sam3u_gpio.c: Need to disable write protection before configuring PIO pins. * configs/sam3u-ek/nsh: The touchscreen is now functional. The above fix to the sam3u_gpio.c write protection also fixed the touchscreen problem (2013-6-28). * confgis/sam3u_ek/nxwm: Created a configuration for the NxWM window manager for the SAM3U-EK board (2013-6-29). * drivers/spi and include/nuttx/spi: New sub-directories to hold SPI-related files. includes/nuttx/spi.h moved to include/nuttx/spi/.; SPI-related Kconfig info moved from drivers/Kconfig to drivers/spi/kconfig (2013-7-1). * drivers/spi/spi_bitbang.c and include/nuttx/spi/spi_bitbang.h: Add support for a generic bit-bang SPI driver. This checkout is the common upper-half logic. Still missing the lower half (2013-7-1). * include/nuttx/spi/spi_bitbang.c: This is the common lower-half bit- bang SPI logic (2013-7-1). * configs/arduino-due/src/sam_nsh.c and sam_mmcsd.c: Add NSH customize initialization. If so configured, initialize the SPI bit bang interface to the MMC/SD slot on the ITEAD shield (2013-7-1). * fs/fs_mount.c: Fix compilation error if no file systems are enabled: Change error to ERROR (2013-7-3). * arch/arm/src/sam34/sam_gpioirq.c: Fix some errors for interrupts on ports D-F (2013-7-3). * /drivers/usbdev/composite.c: Fix a typo in the composite device driver unitialization logic. DEV1 should be DEV2 in one case (2013-7-4). * arch/arm/src/sam34/sam3u_gpio.c: sam_configgpio() must protect against re-entrancy (2013-7-5). * libc/misc/lib_crc16.c and include/crc16.h: Add CRC16 support (2013-7-7). * arch/arm/src/stm32/stm32_otgfsdev.c: SourceForge bug #16: Fix to the endpoint allocation logic. Apparently the same endpoint can be allocated as both an IN or an OUT endpoint. The existing implementation only supported one allocation, either IN or OUT. This resulted in failures to allocate enpoints when used with the CDC/ACM + MSC composite driver (From Chia Cheng Tsao, 2013-7-8). * arch/arm/src/stm32/stm32_sdio.c: SourceForge bug #17: Add support for the data block end (DBCKEND) interrupt to terminate transfers (From Chia Cheng Tsao, 2013-7-8) * drivers/rwbuffer.c: SourceForge bug #17: Correct typos that can cause failures in some configurations (From Chia Cheng Tsao, 2013-7-8). * include/nuttx/usb/usbdev.h: Fix some typos that cause compiler errors when CONFIG_USBDEV_DMA and CONFIG_USBDEV_DMAMEMORY are selected (From Chia Cheng Tsao, 2013-7-12). * nuttx/configs/olimex-lpc1766stk/zmodem: Add a new configuration to test the Zmodem sz and rz commands (which don't actually exist yet, but will). (2013-7-12). * arch/arm/include/armv7-a and src/armv7-a: Beginning to add support for the ARMv7-A, the Cortex-A5 in particular. The initial checkin is only fragmentary: A few header files and some copied ARM9 assembly files. More to come (2013-7-18). * arch/arm/include/sama5, arch/arm/src/sama5, and configs/sama5d3x-e: Add a directory framework to support the Atmel AT91SAMA5D3 family and the SAMA5D3x-EK board(s) in particular. There is very little here on the first check-in, this structure is being used now primarily to create the Cortex-A5 support (2013-7-19). * arch/arm/src/armv7-a/arm_cache.S: Cortex-A5 cache operations (2013-7-20). * /arch/arm/src/armv7-a/arm_fpuconfig.S and fpu.h: A few more files for the ARMv7-A/Cortex-A5 port (2013-7-21). * arch/arm/src/sama5/sam_boot.c, sam_clockconfig.h, sam_lowputc.h, and sam_timerisr.c: A few more files for the SAMA5D3 port (2013-7-21). * configs/sama5d3x-ek/src/sam_autoleds.c: A few more files for the port to the SAMA5D3x-EK board (2013-7-21). * arch/arm/src/sama5/sam_irq.c: SAMA5 interrupt handling logic (2013-7-22). * arch/arm/src/sama5/sam_clockconfig.c: Add SAMA5 PLL configuration logic (plus associated header files). Initiali checkin is for the SAM3U which is very similar but needs to be verified (2013-7-22). * arch/arm/src/sama5/sam_periphclks.h: Add macros to enable and disable SAMA5 peripheral clocks (2013-7-22). * arch/arm/src/sama5/sam_lowputc.c and sam_serial.c: Add support for SAMA5 UARTs. Does not even compile as of initial checkin. (2013-7-22). * arch/arm/src/sama5/sam_gpio.c: Add GPIO configuration support for the SAMA5. Still compilation issues. (2013-7-22). * arch/arm/src/sama5/chip/sama5d3x_pinmap.h: Add pin multiplexing definitions for the SAMA5D3 (2013-7-23). * arch/arm/src/sama5/chip/: New header files for SAMA5 AXI Matrix SFR, and BSC blocks (2013-7-23). * arch/arm/src/armv7-a/arm_vectors.S: Force 8-byte stack alignment in interrupt handlers before calling C code. Other ARM architectures need to do this as well (2013-7-23). * arm/src/armv7-m/up_copyarmstate.c and armv7-a/up_copyarmstate.c: Added a new form of the register copy function that should save quit a bit of time for armv7-m (without common vectors) and with armv7-a (2013-7-23). * arch/arm/src/armv7-a/arm_restorefpu.S, arm_savefpu.S, arm_doirq.c, arm_fullcontextrestore.S, arm_saveusercontext.S: Add hardware floating point register save/restore logic for the Cortex-A5 (2013-7-23). * arch/Kconfig: Attempt at generic external memory configuration is not flexible enough, especially for the SAMA5. Move external memory configuration options from arch/Kconfig to arch/arm/src/lpc17xx/Kconfig, lpc31xx/Kconfig, sam34/Kconfig, and sama5/Kconfig and renamed each from CONFIG_ARCH_ to, for example, CONFIG_LPC31_. This renaming also affect many defconfig files (2013-7-24). * arch/arm/src/sama5/Kconfig and sam_allocateheap.c: Set up configuration options for SAMA5 external memory regions; add a custom sam_allocateheap.c to add the various configured memory regions to the heap (2013-7-24). * configs/sama5d3x-ek/src/sam_buttons.c, sam_userleds.c, and sam_autoleds.c: Add support for the buttons and LEDs on-board the SAMA5D3x-EK (2013-7-24). * configs/sama5d3x-ek/ostest/defconfig: Switch console to USART1 (2013-7-4). * arch/arm/src/sam34/Kconfig and drivers/serial/Kconfig: All serial configuration logic for USARTs needs to depend on if the USART is configured as a UART or not. And this is for all CPUS, not just SAM3/4 (2013-7-24). * arch/arm/src/arm/up_head.S and arch/arm/src/armv7-a/arm_head.S: Fix a bug (uninitialized register error) that crept in the ARM9 boot-up code several years ago and was cloned into the Cortex-A5 code. Obviously no one has used the ARM9 NuttX port for years! * Many files: Finally... I changed the naming of configuration variables like CONFIG_DRAM_ to CONFIG_RAM_. This has bothered me for a long time since most boards don't have DRAM. The more generic RAM naming should not produce so much cognitive dissonance (2013-7-26). * configs/sama5d3x-ek/hello: Added a tiny hello world configuration to simplify bring up of the SAMA5 (it will probably be removed later) (2013-7-26). * The sama5d3x-ek/hello now runs correctly (2013-7-28). * configs/sama5d3x-ek/ostest/: This configuration has been modified to run out NOR flash. More work is still needed to reconfigure the SMC so that the NOR flash can work with the high clock (2013-7-28). * arch/arm/src/sama5/sam_clockconfig.c/h and configs/sama5d3x-ek/src/sam_norflash.c: Add a file structure that will (eventually) support reconfiguration of NOR flash when NuttX boots from NOR FLASH (2013-7-29). * arch/arm/src/sama5/chip/sam_hsmc/h: SAMA5 HSMC register defintion file (2013-7-29) * configs/sama5d3x-ek/src/sam_norflash.c: Add board specific logic to re-configure the SAMA5D3x-EK NOR FLASH before while running out of NOR FLASH. We need to change the NOR FLASH timing BEFORE increasing the main clock (2013-7-29). * configs/sama5d3-ek/norboot and src/nor_main.c: The norboot configuration to help debug NuttX in NOR flash. It runs out of ISRAM, configures NOR FLASH, then waits for you to break in with a debugger to start the program in NOR FLASH (2013-7-29). * arch/arm/src/armv7-a/arm_cache.S: Separate the bigger cache operations into separater files (2013-7-29). * arch/arm/src/stm32/stm32_dac.c: Fixed numerous DAC driver errors and added support for DAC DMA (contributed by John Wharington, 2013-7-30). * arch/arm/src/stm32/stm32f30xx_i2c.c: An I2C driver for the STM32 F3 family from John Wharington (2013-7-30). * arch/arm/include/armv7-m: Add irqdisable() (2013-7-30); * configs/sama5d3-ek/src/nor_main.c: Now disables interrupts before jumping to NOR flash (2013-7-30). * configs/sama5d3-ek/nsh: Add an NSH configuration for the SAMA5D3x-EK (2013-7-31) * configs/sama5d3-ek/src/sam_cxxinitialize.c: Add C++ support (2013-7-31). 6.30 2013-09-14 Gregory Nutt * arch/arm/src/sama5/arm_pghead.S: Separate the logic that is enabled by CONFIG_PAGING out of arm_head.S. That was just too much conditional compilation to be supportable (2013-8-1). * arch/arm/src/sama5/arm_head.S: Setup page table mappings for all of .text, .bss, .data, stacks and heap before enabling the MMU and caching. This is safer because it avoids the caching issues (and much less redundant) (2013-8-1) * arch/arm/src/sama5/chip/sam_mpddrc.h: Add DDR controller registers definitions for the SAMA5 (2013-8-1). * nuttx/configs/sama5d3x-ek/src/sam_sdram.c: Add logic which will (eventually) support the SDRAM on the SAMA5D3x-EK board. Initial commit is untested and incomplete (2013-8-1). * arch/arm/src/armv7-a/arm_mmu.c: Move some generic MMU logic out of SAMA5-specific code into this share-able file (2013-8-2) * arch/arm/src/armv7-a/mmu.h: Add inline functions to invalidate a single TLB. * arch/arm/src/sama5/sam_allocateheap.c and chip/sama5d3x_memorymap.h: Add logic to handle signed overflow when a memory region is greater than or equal to 2GB (2013-8-2). * arch/arm/src/sama5/sam_boot.c: Boot logic now initially configures DRAM as strongly ordered so that it can be initialized. After initialization, the page table entries are modified so that DRAM is fully cache-able (2018-8-2). * arch/arm/src/sama5/chip/sam_mpddrc.h: Correct typos in the SAMA5 DDR controller register definitions (2013-8-2). * arch/arm/src/sama5/sam_irq.c: Correct handling of spurious interrupts (2013-8-3). * arch/*/src/*/*_irq.c: Standardize configuration variables used to enable interrupt controller debug output (2013-8-3). * arch/arm/src/sama5/chip/sam_dmac.h: Add register definitions for the SAMA5 DMA controller (2013-8-3). * arch/arm/src/sama5/sam_dmac.c and sam_dmac.h: Add support for the SAMA5 DMAC controllers. Initial check-in is untested and is a straight leverage from the SAM3/4 (2013-8-4). * arch/arm/src/sama5/sam_spi.c, sam_spi.h, and chip/sam_spi.h: Leverage SPI support from SAM/3/4. Initial check-in is untested and have several limitations: No DMA, no SPI1 support (2013-8-4). * arch/arm/src/sama5/sam_spi.c and sam_spi.h: Now supports SPI1 and a register access debug option (2013-8-4). * configs/sama5d3x-ek/src/sam_spi.c: Add board support for the AT25 serial flash (2013-8-4). * configs/sama5d3x-ek/nsh/defconfig: FAT file system support is now enabled by default (2013-8-5) * configs/sama5d3x-ek/src/sam_nsh.c: Automatically mount AT25 file system for NSH if so configured (2013-8-5). * configs/sama5d3x-ek/src/sam_nsh.c: Verified that the AT25 FLASH works on the SAMA5D3x-EK boards and can support a FAT file system (2013-8-5). * arch/arm/src/sam34/sam_spi.c: Corrected an error in the SAM3/4 SPI driver while testing the SAMA5 SPI driver: If CONFIG_SPI_OWNBUS is not set, the driver will not configure the SPI mode correctly (2013-8-5). * configs/sama5d3x-ek/src/sam_at25.c: Move AT25 initialization logic out of sam_nsh.c and into a separate file where it can be better shared (2013-8-5). * arch/arm/src/sama5/sam_hsmci.c, sam_hsmci.h, and chip.sam_hsmci.h: Add register definitions and a driver for the (3) HSMCI memory card interfaces provided by the SAMA5. Leveraged from the SAM3/4 and untested on initial commit (2013-8-5). * nuttx/configs/sama5d3x-ek/src/sam_hsmci.c and sam_nsh.c: Add support for the (2) SD card slots provided on the SAMA5D3x-EK boards. Untested on initial commit (2013-8-5). * arch/arm/src/sama5 and nuttx/configs/sama5d3x-ek: Massive renaming to get consistent once and for in the usage of PIO vs GPIO. Other platforms use the term GPIO more, but Atmel prefers PIO. I prefer consistency. Also fixed CONFIG_PIO vs CONFIG_SAMA5_PIO and renamed files sam_gpio.* to sam_pio.* (2013-8-6). * arch/arm/src/sama5/sam_pioirq.c: Add support for SAMA5 PIO interrupts (2013-8-6). * configs/sama5d3x-ek/src/sam_hsmci.c: Add support for SD slot card detection PIO interrupts (2013-8-6). * arch/arm/src/sam34/sam_hsmci.c and sama5/sam_hsmci.c: Fix handling of some masked status conditions that can cause false-alarm errors (2013-8-6). * arch/arm/src/sama5/sam_dmac.c and sam34/sam34_dmac.c: For SAMA5, correct some bad register address and some bad assertions that caused false alarms. These latter were backported to the SAM34 DMAC driver as well (2013-8-6). * arch/arm/src/sama5/sam_dmac.c and sam34/sam34_dmac.c: Correct some parameters reversed in function call (2013-8-6). * arch/arm/src/sama5/sam_spi.c: The SAMA5 SPI driver now supports DMA transfers (2013-8-9). * arch/arm/src/sama5/sam_dmac.c: Finally after many bugfixes (the last being caching issues), the SAMA5 DMA support has been verified (with SPI) (2013-8-9). * arch/arm/src/sama5/sam_memories.c and .h: Centralize logic for conversions between physical and virtual addresses (2013-8-9). * arch/arm/src/sama5/sam_hsmci.c and sam34/sam_hsmci.c: Correct a race condition in the SAMA5 HSCMI driver: The tranfer done interrupt was firing before the wait was started. Fix this and also backported the changes to SAM3/4 (untested). Now HSCMI is functional on the SAMA5 with DMA! (2013-8-10). * arch/arm/src/sam34/sam3u_periphclks.h: Correct a typo in a register name (2013-8-10). * drivers/mmcsd/mmcsd_sdio.c: Correction for a bad return value when multiple block SDIO transfers are suppressed. By Andrew Tridgell via Lorenz Meier (2013-8-10). * drivers/serial/serial.c, drivers/usbdev/cdcacm.c, and include/nuttx/fs/ioctl.h: Added support for FIONREAD and FIONWRITE, added TERMIOS input / output processing support for UART and CDCACM serial ports. Implemented by Mike Smith, Andrew Tridgell and Lorenz Meier (2013-8-10). * drivers/usbdev/cdcacm.c: Added FIONREAD and FIONWRITE to CDC/ACM driver based on serial.c implementation. From Lorenz Meier (2013-8-10). * arch/arm/src/stm32/Kconfig and stm32_serial.c: Added option to disable serial port reordering. From Lorenz Meier (2013-8-10). * arch/arm/src/sama5/Kconfig, sam_ohci.c, and arch/arm/src/sama5/sam_clockconfig.c: Add a OHCI driver for the SAMA5. Untested on initial check-in (2013-8-11). * include/nuttx/usb/usbhost.h, arch/arm/src/stm32, arch/arm/src/lpc17xx, and include/nuttx/usb/usbhost.h, and nuttx/configs/: Move prototype of usbhost_initialize() of usbhost.h and into architecture specific files. This is necessary because some chips (like the SAMA5) have multiple, different USB host interfaces (2013-8-11). * drivers/usbhost/usbhost_hidkbd.c and usbhost_storage.c: Correct some compilation errors when pre-allocated class structures are used. Also eliminate some warnings about uninitialized variables (2013-8-11). * configs/sama5d3x-ek/src/sam_usb.c and related files: Add support for initialization of the USB host and mass storage class device (2013-8-11). * arch/arm/src/sama5/sam_ohci.c and sam_usbhost.h (was sam_ohci.h), and configs/sama5d3x-ek/src/sam_usb.c, and sama5d3x-ek.h: Add controls to enable VBUS power in OHCI host most (2013-8-12). * includes/nuttx/usb/usbhost.h, all USB host drivers in arch/, and all USB host-side connection monitoring threads in configs/*/src: The SAMA5 has three downstream ports; all of the other USB host implementations have only one. This will require significant changes to the USB host interfaces starting with these chnages to monitor connections on a port-by-port basis. This effects a lot of files and more changes are coming for this issues. Changes are being blindly incorporated into other architrectures. I am being careful to avoid breakage, but I expect some (2013-8-12). * configs/olimex-stm32-p107/nsh/defconfig and appconfig: Converted to use the kconfig-frontends tool. From Max Holtzberg (2013-8-12). * includes/nuttx/usb/usbhost.h, et al: Continued changes to the USB host interface to support multiple downstream ports. When a class is disconnected, it needs to provide the FunctionAddress to the USB HCD disconnect method so that the HCD will know which port is being disconnected (2013-8-12). * nuttx/arch/arm/src/stm32/Kconfig, Make.defs, and /stm32f30xxx_i2c.c: STM32 F3 I2C fixes from John Wharington (2013-8-13). * nuttx/arch/arm/src/sama5/sam_serial.c: Fix a re-entrancy problem in up_putc(). I think all architectures have this re-entrancy than can result in serial interrupt being disabled, but I have only seen the symptom on SAMA5 (2013-8-13). * includes/nuttx/usb/usbhost.h and many other affected files: Separate wait() and enumerate() methods from struct usbhost_driver_s and move to new interface, struct usbhost_connection_s. This is part of the necessary restructuring of the USB host interface to support multiple root hub ports (2013-8-13). * arch/arm/src/sama5/sam_ohci.c: Major restructuring of the driver due in order to handle multiple root hub ports. Basically instead of one driver structure with an arrayof root hub port structures, there is no one container structure with an array of driver structures, one for each root hub port. The advantage is that each class->driver call not passes information associated with the RHport implicitly. The klugey, procedural alternative was to add the function address to every interface method (which I started to do but backed above) (2013-8-13). * arch/arm/src/sama5/sam_memories.c and .h: Extended logic so do conversions from physical to virtual addresses (2013-8-14). * arch/arm/src/sama5/sam_ohci.c: Add D cache contols and conversion between physical and virtual address (2013-8-14). * arch/arm/src/stm32/stm32_spi.c: nbits() interface extended to control bit order as well as bit width (from Teemu Pirinen) (2013-8-16) * arch/arm/src/sama5/sam_ohci.c: More to be tested, but the SAMA5 OHCI driver is now basically funtional (2013-8-16). * include/nuttx/usb/ehci.h: EHCI header file (2013-8-17). * arch/arm/src/stm32/stm32_i2c.c: Correct an error that crept into the STM32 F1 I2C driver with some recent changes. From Yiran Liao (2013-8-18). * drivers/usbhost/usbhost_devaddr.c and include/nuttx/usb/usbhost_devaddr.h: Add logic for management of device addresses. This logic does not currently hook into into anything. It will someday be a part of the NuttX USB hub implementation (2013-8-18). * nuttx/arch/arm/src/sama5/sam_ehci.c and other files: Create a skeleton environment for development of an EHCI driver. Not much in place yet (2013-8-20). * nuttx/arch/arm/src/sama5/sam_ehci.c: Now code complete for all asynchronous endpoints (control and bulk); nothing yet in place for periodic endponts (interrupt and isochronous) (2013-8-22). * include/nuttx/serial/serial.h and arch/arm/src/stm32/chip/stm32f40xxx_pinmap.h: SourceForge bug #16 Fix IO pin map. Add CONFIG_SERIAL_TERMIOS support. Also fixes some STM32 F4 Timer 8 pin configurations. From CCTSAO (2013-8-23). * arch/arm/src/lpc17xx/lpc17_usbhost.h: Fix #endif with missing #if condition. Reported by Andrew Bradford (2013-8-23). * nuttx/arch/arm/src/sama5/sam_ehci.c: Now handles low- and full-speed connections by giving the port to the OHCI driver (2013-8-24). * nuttx/arch/arm/src/sama5/sam_ohci.c: Now uses the work queue to defer interrupt processing (2013-8-24). * nuttx/arch/arm/src/sama5/sam_ohci.c and nuttx/arch/arm/src/sama5/sam_ehci.c: EHCI is now the common interrupt "master." It will receive all UHPHS interrupts and route the interrupt event to both the OHCI and EHCI logic (2013-8-24). * net/uip/uip_arp.c: Correct backward condition in netmask task. From Max Holtzberg (2013-8-25). * arch/arm/src/sama5/sam_ohci.c: SAMA5 OHCI is again functional by itself after all of the changes to integrate with EHCI. (2013-8-25). * drivers/net/encx24j600.c/.h and include/nuttx/net/encx24j600.h: Support the Microchip ENCX24J600 Ethernet driver from Max Holtzberg (2013-8-25). * configs/olimex-stm32-p107: Incorporate ENCX24J600 support for the Olimex STM32 P107 board. From Max Holtzberg (2013-8-25). * fs/romfs/fs_romfsutil.c: Fix an error where long (>15) file names were read incorrectly from a ROMFS file system. From Mike Smith (2013-8-25). * arch/arm/src/stm32/stm32_sdio.c: SourceForge bug #17 Fix if CONFIG_SDIO_BLOCKSETUP defined, OS will crash". Generate an error if CONFIG_SDIO_BLOCKSETUP is defined; that option is not yet supported by the STM32 SDIO driver. From CCTSAO (2013-6-26) * drivers/net/encx24j600.c and .h: Use the ENC's SRAM for multiple TX packets. From Max Holtzberg (2013-6-26). * include/nuttx/usb/usbhost.h, drivers/usbhost/usbhost_enumerate.c, and all USB host drivers: Added a new driver method: getdevinfo. This method is intended to get various information about the connected device, but currently returns only the device speed. The device speed is necessary by usbhost_enumerate in order to set a credible initial EP0 max packetsize. High speed needs 64 bytes, low speed needs 8 bytes, and full speed can handle almost any size (2013-8-26). * arch/arm: Add hooks for Cortex-A8. Not much more yet (2013-8-27). * Lots of files: Fix all occurrents of "the the" in documentation and comments (2013-8-27). * arch/arm/src/sama5/sam_allocateheap.c: Correct the logic that determines which memory regions get added to the heap. When CONFIG_MM_NREGIONS > 1, the logic was adding the ISRAM region to the heap twice! (2013-6-27). * nuttx/arch/arm/src/sama5/sam_ehci.c: Add (untested) support for interrupt endpoints (2013-8-28). * arch/arm/src/sama5/chip/sam_udphs.h: High-speed USB device register definitions for the SAMA5 (2013-8-28) * arch/arm/src/sama5/sam-udphs.c: A framework for the USB device driver taken from another architecture. There is very little useful in this initial check-in (2013-8-29). * Remove all empty and most useless README.txt files (2013-8-31) * configs/freedom-kl25z/src/kl_spi.c: Correct typo in name of a function. From Alan Carvalho de Assis (2013-8-31). * drivers/usbdev/cdcacm_desc.c: Fixed some compilation errors that only occur when dual speed support is enabled (2013-9-1). * arch/arm/src/sama5/sam_clockconfig.c and configs/sama5d3x-ek/include/board_*mhz.h: Add logic to support UDPHS clocking (2013-9-13). * arm/src/stm32/chip/stm32_tim.h: Some CCER bit settings changed per SourceForge bug #18 submitted by CCCTSAO (2013-9-2). * apps/examples/cc3000, configs/freedom-kl25z, drivers/wireless/cc3000, and nuttx/include/nuttx/cc3000. Initial support for the TI CC3000 network module on the Freescale Freedom-KL25Z board from Alan Carvalho de Assis. This is still very much a work in progress (2013-9-3). * configs/*/usbmsc: Renamed from config/*/usbstorage to match the change in naming in apps/examples submitted by CCTSAO (2013-9-5). * drivers/usbdev/cdcacm.c and pl2303.c: Don't use max packetsize assigned to the endpoint when allocating request buffers; The default value of the endpoint max packetsize may be incorrect because the endpoint has not yet been configured. Verified on CDC/ACM. Corresponding changes made to pl2303, but untested (2013-9-5). * arch/arm/src/sama5/sam_udphs.c: The high-speed device side driver is now functional (although more testing is always needed) (2013-9-5). * net/net_monitor.c: Fixes a race condition where a loss of connection may not be detected when the connection is lost before it has been accepted (from Max Holtzberg) (2013-9-6). * configs/sama5d3x-ek/demo: Add a new NSH configuration. The original NSH configuration will be a simple platform for testing individual features; the demo configuration will be a more complex platform for demonstrating multiple interacting features (2013-9-6). * net/uip/uip_tcpbacklog.c: Fix a major bug in the TCP/IP backlog initialization: Only the first backlog buffer was getting added to the free list. From Max Holtzberg (2013-9-6). * configs/sama5d3x-ek/demo: Add support for USB MSC device on the AT25 serial FLASH (untested) (2013-9-6). * drivers/net/enc28j60.c: Changes back-ported from the ENCX24J600 to the ENC28J60 by Max Holtzberg. These seem like reasonable and correct changes, but have yet to be verified on an ENC28J60 (2013-9-6). * drivers/usbdev/usbdev_strings.c: Extended decoding and stringifying of USB trace output to include trace output from class drivers. (2013-9-6). * drivers/usbdev/usbmsc_desc.c: Fix a warning when USB MSC is compiled for a high-speed device (2013-9-7). * drivers/usbhost/usbhost_storage.c: If device is returning fatal transfer errors while attempt to initialize, don't bother with the startup retries; abort immediately so that the device will be reset and we can try again (2013-9-9). * drivers/usbhost/usbhost_storage.c: Correct a reference counting error: When an MSC device transfer fails while waiting for UnitTestReady (see 2013-9-9), the reference count was not being decremented. The end result is a memory leak (2013-9-10). * arch/arm/src/sama5/chip/sam_twi.h: Added SAMA5 TWI register definition file (2013-9-11). * arch/arm/src/sama5/sam_twi.c and .h: Framework for a SAMA5 TWI driver (not much present in initial checkin) (2013-9-11). * fs/nxffs: Clean up some compilation warnings (2013-9-12) * drivers/mtd/at24xx.c: Add support for the AT 24C512 part (2013-9-12). * arch/arm/src/sama5/sama5_twi.c: Clean up some errors that only occur with CONFIG_DEBUG_I2C (2013-9-12). * arch/arm/src/sama5/chip/sam_emac.h and sam_gmac.h: Register definition files for the SAMA5 EMAC and GMAC peripherals (incomplete on the initial commit) (2013-9-12). * arch/arm/src/stm32/stm32_can.c: Make filter register accessible for CAN1 and CAN2. Patch provided by Lorenz Meier (2013-9-13). * nuttx/include/nuttx/usb/cdcacm.h: Fix backward conditional compilation in the CDC/ACM driver with regard to remote wakeup and self-powered capabilites. Provided by Lorenz Meier (2013-9-13) * fs/romfs/fs_romfsutil.c: Fix for filenames > 15 characters. Provided by Lorenz Meier (2013-9-13). * arch/arm/src/stm32/Kconfig: Fix STM32 UART7/8 kconfig names and UART DMA. Provided by Lorenz Meier (2013-9-13). * configs/maple: Board configuration for the LeafLabs Maple and Maple Mini boards. From Librae (2013-9-13). * arch/arm/src/sama5/sam_emac.c and .h: Skeleton files for a SAMA5 EMAC driver. Not much in the initial files; these are just hacked out and gutted versions of the corresponding STM32 files (2013-9-13). 6.31 2013-10-28 Gregory Nutt * nuttx/fs/romfs/fs_romfsutil.c: Back out part of a recent ROMFS change (2013-9-14). * configs/sama5d3x-ek/src/sam_ethernet.c: Add support for PHY interrupts (2013-9-15). * arch/arm/src/kl/chip/kl_pit.h and kp_tpm.h: Add register definitions for the Freescale Kinetis KL25Z from Alan Carvalho de Assis (2013-9-15). * configs/ and a few Ethernet drivers: Add the prefix ETH0 to all PHY configuration selections. This will allow us to support to Ethernet MAC drivers with two different PHYs (identified with ETH0 and ETH1) (2013-9-17). * net/Kconfig and drivers/net/Kconfig: Move PHY selections from net/Kconfig to drivers/net/Kconfig where they belong. Add the previx ETH0_ to each PHY selection. And a new configuration CONFIG_NETDEV_MULTINIC that can be set to enable support for multiple Ethernet MAC drivers (not fully implemented yet). When Enabled, another set of PHY selections are enabled for ETH1_ (2013-9-17). * include/nuttx/net/mii.h: Add definitions for the Micrel KSZ8051 PHY (2013-9-17). * configs/zkit-arm-1768: MMC/SD is on SPI, not SSP0. From Rashid Fatah (2013-9-17). * configs/: Lots of defconfig files changes. A consequence of the above renaming and moving of the PHY configuration settings is that the you now also have to set CONFIG_NETDEVICES=y if you need to set a PHY configuration (2013-9-17). * arch/arm/src/lpc17xx/lpc17_spi.c: Remove undefined spi_select() prototype. This was causing compile time warnings (2013-9-17). * configs/sama5d3x-ek/src/sam_ostest.c: Add OS test support for the FPU test (2013-9-18). * arch/arm/src/sama5/sam_usbhost.h and include/nuttx/usb/usbhost_trace.h Correct some inconsistencies in the way that USB configuration settings are used. This caused compilation errors in SAMA5 OHCI when USB debug was ON but USB host tracing was off (2013-9-19). * nuttx/arch/arm/src/sama5/sam_clockconfig.c: When 480MHz UPLL is used to drive OHCI, it should have a divider of 10. However, that does not work. A divider of 5 does. Why? (2013-9-19). * Several USB device driver files: Change naming of SELFPOWERED and REMOTEWAKEUP to avoid name collisions. Prepend the name of the driver (for example CDCACM_SELFPOWERED) (201309-20). * configs/sama5d3x-ek/nsh and demo: Increase the number of pre-allocated watchdog timers. The default number of 4 was easily being exhausted in the more complex configurations. Enable the task name feature to provide prettier ps command output. src/sam_usb.c: Use more descriptive task names when starting the EHCI and OHCI monitor tasks (2013-9-20). * arch/arm/src/sama5/sam_ohci.c: Fix a place where DMA-related data needed to be flushed to data cache; Fix another where a virtual address was being used in a register where a physical address was required (2013-9-20). * arch/arm/src/armv7-a/cp15_clean_dcache.S and cp15_flush_dcache.S: fix an error in the alignment of addresses to cache line boundaries (2013-9-21). * drivers/usbdev/cdcacm_desc.c: Change the interval for the interrupt endpoint from 0xff (invalid) to 10. This is not a critical change but will avoid a complaint from the Linux driver when it overrides the 0xff value (2013-9-22). * configs/zkit-arm-1769: LED1 is now user controllable after booting. From Rashid Fatah (2013-9-23). * arch/arm/src/sama5/sam_hsmci.c: TX DMA disabled. It is just not reliable. No idea why. RX DMA is still used (2013-9-23). * driver/net/encx24j600.c: UDP/RXAVAIL backlog support from Max Holtzberg (2013-9-24). * Standardized stack checking logic so the interfaces can be used by common stack monitoring logic (2013-9-24). * drivers/net/Kconfig: Move CONFIG_NET_DUMPPACKET out of LPC17 and STM32 Kconfigs into the common network driver Kconfig (2013-9-25). * arch/arm/src/sam_emac.c: EMAC driver is basically functional. More testing is needed (as always) (2013-9-25). * configs: Changes to many defconfig files resulting from moving apps/examples/usbmsc to apps/system/usbmsc (2013-9-25). * configs: Changes to many defconfig files resulting from moving apps/examples/cdcacm to apps/system/cdcacm (2013-9-25). * configs: Changes to many defconfig files resulting from moving apps/examples/composite to apps/system/composite (2013-9-25). * configs/stm3210e-eval/composite: Converted to use the kconfig- frontends tool (2013-9-25). * arch/arm/src/sama5/sam_gmac.c: Initial GMAC driver is really just the EMAC driver forced to compile with the GMAC register definitions (2013-9-26). * arch/arm/src/sama5/sam_gmac.c and include/nuttx/net/gmii.h: Beginning of support for GMII/RGMII PHY support (2013-9-26) * net/netdev_txnotify.c: Look up of device using subnet will fail if the packet is being sent out of our subnet (via a router). The fallback here is just to use "eth0" if the subnet lookup fails. This will, of course, will have to be revisited if/when multiple NICs are supported. From Max Holtzberg (2013-9-27). * net/send.c: Fix some backward conditional logic in check to see if we should check if the ARP address in the table. From Max Holtzberg (2013-9-27). * drivers/net/encx24j600.c: Removed logic that polls for the next outgoing packet from the TX done interrupt handling. From Max Holtzberg (2013-9-27) * sched/os_start.c: Should not call group_setupidlefiles() if there are no file descriptors (and, hence, no file system) (2013-9-27). * arch/arm/src/sama5/sam_gmac.c: GMAC driver and GMII logic is code complete and ready for test (2013-9-27) * configs/compal_e86: Basic board support for the Motorola C139 (Compal E86) phone. From Craig Comstock (2013-9-27). * configs/compal_e86: Converted to use the kconfig-frontends tools (2013-9-27). * drivers/net/encx24j500.c: Use separate pools for RX and TX descriptors. From Max Holtzberg (2013-9-28). * nuttx/fs/fs_sendfile.c, nuttx/net/net_sendfile.c, and other file: Integrate an optimized sendfile() operation from Max Holtzberg (2013-9-28). * tools/mkdeps.*, nuttx/mm/Makefile, nuttx/libc/Makefile: Dependency generation generation was broken for directories that keep objects in a sub-directory. Fixed by adding a object path to the mkdeps.c, mkdeps.bat, mkdeps.sh tools (2013-0-29). * arch/arm/src/sama5/chip/sam_adc.h: ADC register definition file. Incomplete on initial check-in (2013-9-29). * arch/arm/src/sama5/sam_adc.c and .h: Framework for an ADC driver to come (just empty "skeleton" files on initial commit) (2013-9-30). * arch/arm/src/sama5/sam_touchscreen.h and .h: Framework for a touchscreen driver (also an empty "skeleton" file on the initial commit) (2013-9-30). * arch/arm/src/kl/kl_lowgetc.c and .h: First cut at low-level getc() function for operation with no file system (and, hence, no serial driver) (from Alan Carvalho de Assis, 2013-9-30). * configs/freedom-kl25z/minnsh: A new configuration that is an experiement to see how small we can get the NuttX footprint. From Alan Carvalho de Assis. (2013-9-30). * net/net_sendfile: The high performance sendfile logic is now functional. From Max Holtzberg (2013-9-30). * tools/define.sh: 'cut' no longer works as it once did. Script adapted to observed behavior (2013-9-30). * include/nuttx/net/route.h and net/net_*route.c: Partial implementation of a routing table. Not yet hooked into the build system (2013-10-1) * include/net/route.h: Defines the application interface to the routing table (2013-10-2). * configs/spark: Add configuration for the Spark Core. The initial check-in is basically the Maple Mini board (2013-10-2). * include/net/route.h and libc/net/lib_addroute.c and delroute.c: Add an application interface to manage the routing table (2013-10-2). * arch/arm/src/sama5/sam_adc.c and sam_tsc.c: The SAMA5 touschscreen drive is basically functional) (2013-10-3) * arch/arm/src/sama5/chip/sam_lcdc.h: Add SAMA5 LCD register definition header file (2013-10-4). * net/netdev_findbyaddr.c: Now (1) uses the routing table if available to look up the router to get to a remote network, and (2) if there is only a single network device and no route, then it will simply return that single device. The ARP logic will use the default router address associated with the interface in this case (2013-10-5). * net/netdev_router.c and net/uip/uip-arp.c: When the target IP address does not lie on the device's networker when we have a routing table, looking the correct router IP address to use in the ARP request. In that case, we want the MAC address of the router, not of the target endpoint (2013-10-5). * net/netdev_rxnotify.c and others: Use the new signature of rxnotify caused by the routing table. From Max Holtzberg (2013-10-6). * arch/arm/src/sama5/sam_lcdc.c and .h: Empty "skeleton" file that will eventually become an LCDC driver for the SAMA5 (2013-10-6). * net/net_close.c, net/uip/uip_tcpcon, and include/nuttx/net/uip/uip-tcp.h: Make net_close() nonblocking and free unestablished connections if no free connections available. From Max Holtzberg (2013-10-6). * net/net_close.c and other: Update of change of 2013-10-6 from Max Holtzberg (2013-10-8). * arch/arm/src/sama5/sam_lcd.c: LCDC driver is code complete and incorporated into the build system (but still untested (2013-10-8). * configs/sama5d3x-ek/nx: Add an examples/nx configuration that will be used for the SAMA5 LCD bring-up (2013-10-8). * configs/arduino-due/Kconfig and include/board.h: Add configuration to select revision 3 of the Arduino Due which has some small but important differences. Suggested by gdi@embedders.org. * arch/arm/src/sama5/sam_allocateheap.c, Kconfig, chip/sama5d3_memorymap.h: Add support so that subsets of the total DRAM (and other external memory) can be added to the heap, leaving other memory reserved for other purposes (like LCDC framebuffers) (2013-10-10). * arch/arm/src/sama5/sam_lcd.c: Change how DMA descriptors are allocated. My reading of the SAMA5 MATRIX is that the LCDC will be unable to DMA from internal SRAM (2012-10-10). * arch/arm/src/sama5/Kconfig and configs/sama5d3x-ek/nx/defconfig: The default LCD resolution is now RGB565. Added output resolution selection which can be different from the software resolution (2013-10-10. * arch/arm/src/sama5/sam_lcd.c wait before modifying register if the LCDC is re-synchronizing (SIF). Use start-up configuration settings from Barebox. They still don't work (2013-10-10). * net/net_monitor.c: Notify the socket layer if a connection is lost before the monitoring callback has been registered. From Max Holtzberg (2013-10-11). * net/recvfrom.c, sendto.c, uip/uip_input.c, uip/uip_udpcallback.c, uip/uip_udpconn.c, uip/uip_udpinput.c: Changed the meaning of the uip_*input functions. They now return success when a packet is dropped; This is needed for the ENCX24J600 driver that must make a decision to return the packet or not: It should not retry dropped packets. From Max Holtzberg (2013-10-11). * drivers/net/encx24j600.c and Kconfig: ENCX24J600: Improved descriptor handling, free packets on rx abort interrupt. From Max Holtzberg (2013-10-11). * arch/arm/src/sama4/sam_lcd.c and configs/sama5d3x-ek/include/board.h: Fix PWM precealler divider. This eliminiates the backlight flicker (2013-10-11). * arch/arm/src/sama5/sam_boot.c: Correct how framebuffer memory was being mapped. The mapping was getting overrwritten and the framebuffer memory was ending up cacheable (2013-10-13). * arch/arm/src/sama5/Kconfig, sam_lcdc.c, defconfig, and related files: Remove options for obtaining framebuffer memory in other ways. That option just really cannot work (2013-10-13). * configs/sama5d3x-ek/nxwm: Add NxWM configuration for SAMA5D3x-EK (2013-10-13). * configs/sama5d3x-ek/nxwm/defconfig: Now uses scaled icons in the the NxWM taskbar (2013-10-15). * configs/sama5d3x-ek/nxwm/defconfig: Use the 320x320 NuttX logo as the NxWM background (2013-10-15). * arch/arm/src/stm32/chip/stm32f103c_pinmap.h: Pinmapping corrections from David Sidrane (2013-10-16). * configs/spark: The Spark device configuration is receiving some TLC from David Sidrane (2013-10-16). * drivers/mtd/sst25.c: Add support for the SST25VF016B. From David Sidrane (2013-10-16). * net/net_close.c: Changed net_close debug output to verbose. From Max Holtzberg (2013-10-17). * net/send.c and net_sendfile.c: Reset the send timeout when the data is ACKed, not when the data is sent. Remove conditions on checking for timeout. From Max Holtzberg (2013-10-17). * net/net_sendfile.c: Correct paramter passed to netdev_txnotify() from Max Holtzberg (2013-10-17). * include/nuttx/net/uip/uip-tcp.h, net/send.c, uip/uip_tcpconn.c, and uip/uip_tcpinput.c: Change how the initial minimum MSS is calculated. Max Holtzberg (2013-10-17). * net/uip/uip_tcpinput.c: Move tcp connection into SYN_RCVD state after aception instead of bypassing and moving directly into ESTABLISHED. From Max Holtzberg (2013-10-17). * net/net_sendfile.c: Let the ACK callback handle the REXMIT flag and don't return until all data has been ACK'd. From Max Holtzberg (2013-10-17). * arch/arm/src/stm32/chip/stm32f40xxx_dma.h: Typo fixes for UART7 and UART8 DMA configs. From Mike Smith (2013-10-18). * arch/arm/src/stm32/Kconfig: DMA priority corrections from Mike Smith (2013-10-18). * arch/arm/src/stm32/stm32*_dma.c, stm32_sdio.c, and stm32_dma.h: Changes to the stm32_dmacapable API. In order to correctly verify that a buffer can be transferred, the transfer count and the CCR value are required. Implemented stm32_dmacapable for stm32f1xx devices. Enhanced stm32_dmacapable for stm32f2xx and stm32f4xx devices to check for additional conditions that will cause DMA to fail or lose data (2013-10-18). * include/nuttx/sdio.h: Add a preflight method to the SDIO interface. From Mike Smith (2013-10-18). * drivers/mmcsd/mmscd_sdio.c: Enhanced the mmcdd_sdio driver to perform DMA preflight operations and fail DMA read/write requests that fail preflighting. From Mike Smith (2013-10-18). * fs/fat/fs_fat32.c: Enhanced the FAT32 filesystem code to understand DMA preflight failures, and to use the file sector buffer as a bounce buffer when a user-supplied buffer is not suitable for DMA. From Mike Smith (2013-10-18). * arch/arm/src/sama5/chip/sam_rtc.h and sam_wdt.h: Add WDT and RTC register definition header files (2013-10-18). * arch/arm/src/sama5/chip/sam_rtc.c and sam_rtc.h: Basic RTC driver. Support for RTC alarms is fragmentary and this has not yet been hooked into the build system (2013-10-18). * Various Spark and CC3000 files: Update by David Sidrane (2013-10-18). * arch/arm/src/sama5/chip/sam_gpbr.h: Add SAMA5 GPBR register definitions (2013-10-19). * Kconfig: Add support for CONFIG_DEBUG_RTC (2013-10-19). * configs/sama5d3x-ek/README.txt, demo/defconfig: Describe how to enable RTC support for the nsh/ configuration; RTC is now enabled by default in the demo configuration (2013-10-19). * arch/arm/src/sama5/sam_rtc.h and other files: Hook the SAMA5 RTC driver into the build system; Verify the correct operation of the SAMA5 RTC driver (2013-10-19). * arch/arm/src/sama5/sam_wdt.c and .h: Add a SAMA5 watchdog timer driver. Untested on initial check-in (2013-10-19). * arch/arm/src/sama5/sam_trng.c, sam_trng.h, and chip/sam_trng.h: Add a /dev/random driver based on the SAMA5D3 TRNG peripheral (2013-10-20). * configs/sama5d3x-3k/demo: The TRNG and /dev/random are now enabled by default in the demo configuration (2013-10-20). * arch/arm/src/sama5/chip/sam_tc.h: SAMA5D3 timer/counter register definition header file (2013-10-20). * libc/stdio/lib_sscanf.c: scanf() fixes from kfrolov: 1) sscanf() function hangs in the following example: sscanf("2", "%u,%u,%u,%u", ...), 2) sscanf() returns incorrect number of parsed numbers if some arguments can't be parsed: sscanf("=2", "%u,%u,%u,%u",...)==1 instead of 0, and 3) using of char* instead of const char* in vsscanf function leads to warnings from GCC (2013-10-21). * arch/arm/src/sama5/chip/sam_can.h: SAMA5D3X CAN register definition header file (2013-10-21) * arch/arm/src/sama5/sam_can.c and .h: Framework for a SAMA5 CAN driver. Initial checkin is the STM32 CAN driver with name changes (2013-10-21). * arch/arm/src/sama5/sam_can.c and .h: SAMA5 CAN driver is code complete but still untested (2013-10-22). * configs/spark: Spark configuration updated by David Sidrane (2013-10-23). * drivers/wireless/cc3000: CC3000 driver updates from David Sidrane (2013-10-23). * include/nuttx/wireless/cc3000: More CC3000 driver updates from David Sidrane (2013-10-23). * net/Kconfig, drivers/net/wireless/cc3000/Kconfig, and Kconfig: Add ARCH_HAVE_NET that determines if a network is present or not. This currently can happen if CONFIG_NET is set or if CONFIG_WL_CC3000 is is set (23013-10-23). * arch/arm/src/stm32/stm32f10xxx_dma.c: DMA fix from David Sidrane: The DMA_CNDTRx register cannot be modified if the DMA channel is disabled (2013-10-23). * arch/arm/src/sama5/sam_tc.c and .h: First cut at a timer/counter library for the SAMA5D3 (2013-10-23). * configs/spark/nsh/defconfig: Spark configuration update from David Sidrane (2013-10-24). * drivers/wireless/cc3000/cc3000.c: CC3000 driver update from David Sidrane (2013-10-24). * arch/arm/include/stm32/chip.h and arch/arm/src/stm32/Kconfig: Add support for the STM32F207ZE chip. From Martin Lederhilger (2013-10-24). * arch/arm/src/stm32/stm32_adc.c and stm32_pwm.c: Fix some bits that should have been cleared in a register. From Martin Lederhilger (2013-10-24). * configs/olimex-stm32-p207 and other files: Support for the Olimex STM32 P207 board added by Martin Lederhilger (2013-10-24). * arch/arm/src/sama5/sam_adc.c, sam_tc.c and sam_tc.h: Hook in the timer/counter logic so that it can driver periodic ADC sampling (2013-10-24). * configs/freedom-kl25z/src/Makefile: Only build kl_wifi.c if CONFIG_WL_CC3000 is selected. From Alan Carvalho de Assis (2013-10-24). * configs/sama5d3x-ek/src/sam_adc.c: Integrate support for the apps/examples/adc into the SAMA5D3x-EK configuration (2013-10-24). * include/nuttx/fs/ioctl.h and arch/arm/src/sama5/sam_adc.c: Add and ioctl command that can be used to trigger ADC/DAC conversion (2015-10-25). * configs/spark: Spark configuration updated by David Sidrane (2013-10-25). * drivers/wireless/cc3000 and include/nuttx/wireless/cc3000: CC3000 driver update from David Sidrane (2013-10-25). * arch/arm/src/sama5/chip/sam_isi.h: Camera interface register definitions added (2013-10-26). * audio/ and include/nuttx/audio/audio.h: Updated audio subsystem from Ken Pettit (2013-10-27). * drivers/audio/ and include/nuttx/audio/vs1053.h: Updated VS1053 driver from ken Pettit (2013-10-27). * configs/mikroe-stm32f4/: Updated configuration for the Mikroe STM32F4 board from Ken Pettit (2013-10-27). * arch/arm/src/stm32/stm32_spi.c: DMA-related fixes from Ken Pettit (2013-10-27). * sched/sched_releasetcb.c: Fix a cornercase: If sched_releasetcb() is called as part of a failed pthread startup before the flags field in the TCB has been initialized, then a crash occurs. Pointed out by David Sidrane (2013-10-27) * arch/arm/src/sama5/sam_adc.c: ADC now works in all implemented modes: single channel or multiple channel with sequencer support. software trigger or timer trigger; ADC channel interrupts or DMA (2013-10-28). * nuttx/drivers/audio/vs1053.c and nuttx/include/nuttx/audio/audio.h: Add logic to verify the audio sub-format. From Ken Pettit (2013-10-28). 6.32 2013-12-07 Gregory Nutt * configs/spark: Spark configuration updated by David Sidrane (2013-10-30). * drivers/wireless/cc3000 and include/nuttx/wireless/cc3000: CC3000 driver updates from David Sidrane (2013-10-13). * arch/arm/src/sama5/chip/sam_ssc.h: SSC register definition header file (2013-10-30). * arch/arm/src/sama5/chip/sam_pwm.h: PWM register definition header file (2013-10-31). * drivers/mtd/mtd_partition.c: Fix erase block vs page block confusion. From Ken Pettit (2013-10-31). * arch/arm/src/stm32/stm32_usbdev.c: On a failure to bind the class driver, the driver reference was being nullified too soon. This caused an exception in usbdev_reset() later. The driver reference will be nullified later usbdev_unregister when the caller gets the error. From David Sidrane (2013-10-31). * drivers/mtd/mtd_config.c and include/nuttx/configdata.h: Add a container for an MTD device that can be used to provide a simple, lightweight interface to configuration data storage that resides on some storage media that is wrapped as an MTD device. From Ken Pettit (2013-11-1). * configs/mikroe-stm32f4: Now uses /dev/config for configuration data storage. From Ken Pettit (2013-11-1). * arch/ stack management functions: Extension and standardization of stack debug logic. Now includes coloration of the IDLE and interrupt stacks as well as the heap. Suggested by David Sidrane (2013-11-1). * configs/spark/usbmsc: Add spark USB MSC configuration. From David Sidrane (2013-11-1). * fs/fat/fs_fat32util.c: In one error return case, the error return value was not being set, making the failure look like success. From David Sidrane (2011-10-1). * drivers/usbdev/usbmsc.c and usbmsc_scsi.c: pthread_join() does not work if called from a different task group than the pthread. This is correct behavior, but a problem. The correct solution would be configure the USB MSC thread to a task, however, this workaround from David Sidrane plugs the hole for now (2013-11-1). * drivers/mtd/mtd_config.c: Reduce configuration header size. From Ken Pettit (2013-11-1). * drivers/mtd/sst25.c: Improved write performance by fixing a bug that prevented operation in the faster write mode. The code did not wait on the last write complete before issuing the WRDI The loop in general failed to wait on the fist 2 bytes after the SST25_AAI if the next 2 were FF FF, then it would reissue the address but not cancel the write. Reorganized to always wait for completion after and address with data write and on any data write so that the device is complete before WRDI is sent. From David Sidrane (2013-11-2). * configs/sama5/src/sam_can.c: Add CAN initialization logic and fix a data alignment problem (2013-11-3). * drivers/mtd/mtd_config.c: Updated configuration driver from Ken Pettit (2013-11-4). * configs/sim/configdata: MTD configuration driver unit test for the simulation platform. From Ken Pettit (2013-11-4). * configs/mikroe-stm32f4/fulldemo: Configuration updated by Ken Pettit (2013-11-4). * arch/arm/src/stm32/stm32_usbdev.c: Correct EP0 state handling logic when buffers larger than the EP0 packet size are sent. Also add support for decoded USB trace strings. From David Sidrane (2013-11-5). * drivers/usbdev/cdcacm.c, composite.c, usbmsc.c: uninitialization logic cause re-use of a stale pointer. Changed to a two pass uninitialization for the case of the composite driver: Memory resources are not freed until the second uninitialization pass. From David Sidrane (2011-11-5). * arch/arm/src/sama5/sam_pwm.c and .h: Add PWM driver for SAMA5 untested on initial checkout (not even incorporated in to build system) (2013-11-6). * arch/arm/src/sama5/Make.defs and Kconfig: SAMA5 PWM driver now incorporated into build and configuration system. Builds with no errors (2013-11-6). * configs/sama5d3x-ek: Add support for the PWM test for the SAMA5D3x-EK board (2013-11-6). * arch/arm/src/sama5/sam_pwm.c and .h: SAMA5 PWM driver is now functional (2013-11-7). * include/nuttx/audio/i2s.h: First cut at an I2S interface definition. This initial definition is sparse will will probably evolve significantly (2011-11-7). * arch/arm/src/sama5/sam_ssc.c and .h: Skeleton and build setup for a forthcoming SSC (aka I2S) driver for the SAMA5. The initial check-in is just the SAMA5 SPI driver gutted and hacked to use the I2S interface. More coming (2013-11-7). * arch/arm/src/stm32 and arch/arm/include/stm32: Added support for the STM32F429. From Ken Pettit (2013-11-7). * configs/stm32f429i-disco: Support for the STM32F429I-Discovery board from Ken Pettit (2013-11-7). * arch/arm/src/stm32/stm32_usbdev.c: The long outstanding bug involving the handling of OUT SETUP commands has been fixed in the STM32 F1 USB device driver by David Sidrane (2013-11-7). * configs/spark/composite/cdc-acm.inf: Windows CDC/ACM driver provided by David Sidrane (2013-11-7). * configs/spark/usbserial.c: Add an apps/examples/usbserial configuration for the Spark. From David Sidran (2013-11-7). * arch/arm/src/sama5/sam_ssc.c and .h: First cut of SAMA5 SSC/I2S driver is code complete (2013-11-9). * arch/arm/src/stm32 (numerous files): OTG FS device and host drivers extended so that they can support either the OTG FS peripheral or the OTG HS peripheral (in FS mode). This was done as a quick way to get USB support on the STM32F429 which has only OTG HS. From Ken Pettit (2013-11-10). * configs/stm32f429i-disco: Add support for the usbnsh and usbmsc configurations using the OTG HS peripheral in FS mode. From Ken Pettit (2013-11-10) * drivers/audio/i2schar.c: A simple character driver to support I2S accesses. This driver in its current state is intended only to support I2C testing and would not be appropriate to used for any real driver application. (2013-11-10). * arch/arm/src/kl/kl_pwm.c and .h: PWM driver for the Freescale Kinetis KL family from Alan Carvalho de Assis (2013-11-10). * configs/freedom-kl25z: Add PWM support. From Alan Carvalho de Assis (2013-11-10). * drivers/audio/vs1053: VS1053 worker thread stack size is now configurable and assigned a name via pthread_setname_np(). From Ken Pettit (2013-11-10). * libc/audio/lib_buffer.c: Moved audio/buffer/c to libc/audio/lib_buffer.c. This file was moved because it contains buffer management functions that must be available to audio applications. If it was left in the audio/ directory then it would not be available to applications in the NuttX Kernel build (2013-11-10). * arch/arm/src/sama5/sam_ssc.c and Kconfig: Add configurable support for SSC loopback mode (2013-11-10). * include/nuttx/audio/i2s.h, arch/arm/src/sama5/sam_ssc.c, and drivers/audio/i2schar.c: Improved I2S interface design: Simplified audio buffer queuing (2013-11-10). * arch/arm/src/sam34 and arch/arm/include/sam34: Basic support for the Atmel SAM4E family. From Mitko (2013-11-11). * libc/audio/lib_buffer.c: Remove unused apb_prepare() function (2013-11-11). * arch/arm/src/stm32: Added header files and driver framework for the STM32F429 LTDC framebuffer driver. From Ken Pettit (2013-11-11). * configs/sama5d3x-ek/src/sam_i2schar.c: Add support for the apps/examples/i2schar test (2011-11-11). * arch/arm/src/sama5/sam_ssc.c: I2S loopback test finally works (2013-11-11). * fs/procfs: Add a little, primitive procfs file system. (2013-11-13). * fs/binfs/README.txt: Add a README file for binfs (2013-11-13). * arch/arm/src/stm32/Kconfig: Add missing setup of CAN TSEG1 and TSEG2 values. From Martin Lederhilger (2013-11-14). * arch/arm/src/sama5/sam_pck.c and .h: Add support for programmable clock outputs (2013-11-14). * configs/ea3131/nsh: Converted to use kconfig-frontend tools (2013-11-14). * arch/arm/src/lpc31: Create configuration and build support for a forthcoming USB host controller driver (2013-11-14). * arch/arm/src/lpc31/lpc31_ehci.c: First cut at an EHCI driver tailed for the LPC31 (2013-11-14). * fs/fs_mount.c: SMART FS must be included in the conditional compilation for the set of file systems that require block drivers. From Daniel Palmer (2013-11-15). * tools/mkconfig.c: SMART FS must be included in the conditional compilation for the set of writable file systems. Noted by Daniel Palmer (2013-11-15). * arch/arm/src/sama5/sam_nand.c and .h: Framework for an MTD driver that will provide raw access to NAND (2013-11-15). * configs/sama5d3x-ek/src/sam_nandflash.c: Provides board-specific memory controller initialize for NAND flash (2013-11-15). * include/nuttx/mtd/mtd.h: Move include/nuttx/mtd.h to include/nuttx/mtd/mtd.h where it will, hopefully, soon be joined by other MTD-related header files (2013-11-15). * drivers/mtd/mtd_onfi.c and include/nuttx/mtd/onfi.h: Add shared NAND routines for use with ONFI compatible NAND FLASH devices (2013-11-15). * configs/ea3131/src/up_usbhost.c: Board-specific USB host support for the EA3131 board (2013-11-15). * drivers/mtd/mtd_nand.c, include/nuttx/mtd/nand.h, nand_config.h, and nand_scheme.h: Further NAND support (still incomplete). (2013-11-16). * drivers/mtd/mtd_modeltab.c: Further NAND support (still incomplete). (2013-11-16). * drivers/mtd/mtd_nandmodel.c: More NAND support (same story). (2013-11-16). * drivers/mtd/mtd_rawnand.c and include/nuttx/mtd/nand_raw.h: More NAND support (2013-11-17). * drivers/mtd/mtd_nandscheme.c: More NAND support (2013-11-17). * include/nuttx/mtd/nand_ecc.h: More NAND (2013-11-17). * drivers/mtd/hamming.c and mtd_nandecc.c and include/nuttx/mtd/hamming.h: Beginning of NAND software ECC calculations. (2013-11-18). * configs/olimex-lpc-h3131: Add support for the Olimex LPC-H3131 * board. Does not yet boot (2013-11-18). * arch/arm/src/lpc31xx/lpc31_ehci.c: Add USB host trace support (2013-11-19). * configs/olimex-lpc-h3131/include/board.h, src/lpc31_boot.c, lpc31_leds.c, lpc31_usbhost.c, and lpc_h3131.h: Add GPIO support for LED1/2 and for USB power enable and overcurrent detection (2013-11-19). * configs/olimex-lpc-h3131/nsh/defconfig: Drop loops-per-msec count for the Olimex-LPC-H3131. It seems to be about 25% as fast as the Embedded Artists EA3131 at the same clocking. (2013-11-19). * arch/arm/src/arm/up_cache.S and cache.h: More cache management functions (2013-11-20). * configs/olimex-lpc-h3131/src/Makefile: Add SDRAM support. Untested and probably needs some fine tuining (2013-11-21) * fs/smartfs/README.txt: Add README for SMARTFS file system. From Ken Pettit (2013-11-23) * tools/mkctags.sh: A script for creating ctags from Ken Pettit (2013-11-23) * configs/sama5d3x-ek/src/sam_nand.c: Add support for "auto-mounting" NAND MTD block driver or NXFFS file system (2013-11-25). * include/mtd/mtd.h: Packed the geometry structure so that it can support larger erase block sizes without increasing the size of the geometry structure (2013-11-27). * drivers/mtd/sst25xx.c: Add another SST25 SerialFlash driver. This one differs from sst25.c because it supports larger SST25 parts: In the larger parts support page write instead of byte/word writes like the smaller parts. From Ken Pettit (2013-11-28). * drivers/mtd/smart.c: Fixes a minor bug with SMART partition number reporting (that would only be seen if both partition support and multi-root directory support are enabled at the same time). From Ken Pettit (2013-11-28). * arch/arm/src/stm32/chip/stm32f40xxx_gpio.h: Add support for GPIOK and GPIOJ. From Ken Pettit (2013-11-28). * configs/stm32f429i-disco/extflash, Kconfig, include/board.h, src/stm32f429i-disco-internal.h, up_nsh.c, and up_spi.h: Add a configuration and board support for an external SST25 FLASH. From Ken Pettit (2013-11-28). * fs/fs_inode.c: The inode semaphore must be re-entrant. Here is the re-entering path that I found: (1) USB host connects to FLASH drive and creates /dev/sda, (2) /dev/sda is mounted, (3) FLASH drive is removed but /dev/sda is not destroyed because there is still a reference on the device because of the mount, (4) umount() is called, taking the inode semaphore, now the driver tries to destroy the block driver by calling unregister_blockdriver(). But (5) unregister_blockdriver() also takes the inode semaphore causing a deadlock if the inode semaphore is not re-entrant. (2013-11-28). * configs/viewtool-stm32f107: Add board support for the ViewTool STM32F103/F107 board with the STM32F107VCT6 installed. Initial check-in is the unverified board-support framework only (2013-11-30). * configs/viewtool-stm32f107/src/stm32_buttons.c and stm32_leds.c: Add support for LEDs an buttons on the ViewTools STM32F107 board (2013-11-30). * fs/nxffs/nxffs_initialize.c: First of probably several changes for NAND FLASH. NAND can report read errors because of bad ECC. Logic in NXFFS must account for it and not just throw in the towel every time a read fails (2013-11-30). * drivers/mtd/mtd_nand* and arch/arm/src/sama5/sam_nand.c: NAND accesses now work (at least with software ECC and now DMA). Still lots of testing to be done (2013-11-30). * fs/nxffs/nxffs_dump.c: Do not abort on a read error. Just not the error and continue. Otherwise, we would not be able to dump NAND FLASH (2013-11-30). * fs/nxffs: All read error logic has been revisited and modified in most places. If we are using NAND, then read errors probably mean that the block that was read contains uncorrectable bit errors. In this case, we cannot just give up and abort the operations. Rather, we need to treat read error like normal bad blocks in order to work with NAND (2013-12-2). * fs/nxffs/Kconfig and nxffs_initialize.c: Make the start up scan of the media option. It just takes to long! (2013-12-02). * drivers/mtd/mtd_nand.c: Fix a typo in calculation of page number (2013-12-02). * drivers/mtd/README.txt: New README file (2013-12-04). * arch/arm/src/lm/lm_start.c: Don't initialize .data if not running from FLASH (2013-12-05). * fs/fat/fs_configfat.c: Fix a typo in the FAT16 formatting logic. Was this ever able to format a FAT16 volume? (2013-12-05). * drivers/mtd/mtd_nand.c: Check if block number is within range at the top of the loop not the bottom. Otherwise, we will do a bogus transfer with the out-of-range block before we test it (2013-12-05). 6.33 2014-01-30 Gregory Nutt * arch/arm/include/a1x and src/a1x: Directory structure to support the Allwinner A10. Not much there on the initial check-in (2013-12-7). * configs/pcduino-a10: Directory structure for the pcDuino board. This board is based on the Allwinner A10 (2013-12-7). * arch/arm/src/a1x/a1x_boot.c and chip/a1x_intc.h: More A10 logic (2013-12-8). * arch/arm/src/a1x/a1x_irq.c: A10 interrupt handling logic (partial) (2013-12-8). * drivers/video/ov2640.c: An OV2640 camera driver that will be used to verify the SAMA5D3x-EK ISI peripheral (2013-1209). * sama5d3x-ek/ov2640 and src/sam_ov2640.c. Board logic to test the SAMA5D3 ISI peripheral usign the OV2640 camera (2013-12-9). * arch/arm/src/a1x/chip/a1x_uart.h: A10 UART register definition header file (2013-12-9). * include/nuttx/video/fb.h: Move fb.h to include/nuttx/video/ (2013-12-10). * include/nuttx/video/rgbcolors.h: Move rgbcolors.h to include/nuttx/video. (2013-12-10). * include/nuttx/fs/smart.h: Move smart.h to include/fs/smart.h (2013-12-10). * include/nuttx/fs/ramdisk.h: Move ramdisk.h to include/fs/ramdisk.h (2013-12-10). * arch/arm/src/a1x/chip/a1x_pio.h and a10_piocfg.h: PIO register defintion header files (2013-12-10). * arch/arm/src/a1x/a1x_pio.c and .h: Support for PIO configuration (2013-12-11). * libc/misc/lib_match.c: Pattern matching logic extended to handle matches to sets of characters and ranges of character values. From Ken Pettit (2013-12-12). * fs/procfs, drivers/mtd, fs/smartfs, includes/nuttx/fs, .. to many files to list: Extensive changes by Ken Pettit to extend procfs/ functionality. Includes some incomplete changes related to SmartFS (2013-12-12). * configs/stm32f429i-disco: Add support for procfs/ MTD part names. From Ken Pettit (2013-12-12) * arch/arm/src/a1x/chip/a1x_timer.h: Timer register bit definitions (incomplete on initial check-in) (2013-12-12). * lbc/time/lib_strftime.c: Need null-termination on the string generated by strftime(). From Max Holtzberg (2013-12-12). * sched/nanosleep.c and include/time.h: Add nanosleep() (2013-12-12). * libc/unistd/lib_sleep.c and lib_usleep.c. Move sleep() and usleep() from sched/sleep.c and usleep.c to libc/unistd. These functions now just call nanosleep(). (2013-12-13). * syscall/ and include/sys/syscall.h: Remove sleep and usleep system calls. Add nanosleep system call (2013-12-13). * arch/arm/src/a1x/a1x_timerisr.c: Timer interrupt handler for the A10 (2013-12-13). * arch/arm/src/a1x/a1x_config.h: Header file to keep track of A10 configuration decisions (2013-12-13). * arch/arm/src/a1x/a1x_lowputc.c, a1x_serial.c, and a1x_serila.h: Beginning of an A10 serial driver. From Alan Carvalho de Assis (2013-12-13). * fs/procfs/procfs_utils.c: Move some re-usable functions out of fs_procfsproc.c into a utility file (2013-12-14). * fs/procfs/fs_procfsuptime.c: Supports /proc/uptime (2013-12-14). * graphics/nxconsole/nxcon_font.c: Fix a typo that causes a compile error when CONFIG_NXCONSOLE_BPP < 8. From Librae (2013-12-15). * fs/procfs/fs_procfsproc.c: procfs now shows information about the group that each thread belongs: Like parents, group member, open file, and open sockets (2013-12-15). * fs/procfs/fs_procfsproc.c: Now shows task stack information (2013-12-15). * arch/arm/src/armv7-a/cp15.h: Review A9 TRM and updated CP15 register definitions accordinglyg (2013-12-16). * Makefile.unix: Now has supports qconfig and gconfig targets. These tools will use the Qt and GTK versions of the kconfig- frontends configuration tools (if you built them) (2013-12-16) * arch/arm/src/armv7-a/arm_head.h: Fix some errors in the cache invalidation logic (only seem to matter for Cortex-A8) (21-3-12-19). * Kconfig and all Make.defs files: Add CONFIG_DEBUG_NOOPT. Now you can independently enable/disable debug symbols and optimization (2013-12-20). * configs/README.txt and Documentation/NuttxPortingGuide.html: Remove documentation of NuttX configuration variables. Since converting to the kconfig-frontend tools, the NuttX configuration is now documented in the Kconfig files and summarized in the autogenerated Documentation/NuttXConfigVariables.html file. This old configuration variable documentation is now a liability and, hence, was removed (2013-12-20). * arch/Kconfig, arch/arm/Kconfig, arch/arm/include/x/chip.h, and and arch/arm/src/x/x_irq.c where x={kinetis, lm, lpc17xx, lpc43xx, sam34, or stm32}: Beginning of support for nested, high priority interrupts. Lots more still needs to be done (2013-12-21). * arch/arm/src/armv7-m/up_exception.S and arch/arm/src/x/x_vectors.S: where x={kinetis, lm, lpc17xx, lpc43xx, sam34, or stm32}: completes the basic implementation of nested, high priority interreupts. Still untested and need documentation (2013-12-21). * configs/stm3210e-eval/buttons: Converted to use kconfig-frontends tools (untested) (2013-12-22). * configs/Kconfig, configs/viewtool-stm32f107/include/board-stm32f103vct6.h, and /board-stm32f107vct6.h: The viewtool board can now be configured to support either the STM32F103VCT6 or the STM32F107VCT6 (2013-12-22). * configs/Kconfig, README.txt, viewtool-stm32f107/highpri, Kconfig, README.txt, and src/stm32_highpri.c: This is the initial framework for a test of the high priority, nested interrupt logic. Still incomplete and does not yet run (2013-12-22). * arch/arm/src/armv7-m/ram_vectors.h and up_ramvec_initialize.c: Correct alignment of the RAM vector table (2013-12-22). * Kconfig: Support configuration of interrupt controller debug output (2013-12-22). * configs/viewtool-stm32f107/scripts: Need to do some special things in linking of the common vectors are used (2013-12-22). * arch/arm/include/*/irq*.h: Add definition NR_VECTORS so that the RAM vector logic can know how many vectors there are. NR_IRQS is often not equal to NR_VECTORS (2013-12-23). * arch/arm/src/*_vectors.S: Standardize the name of the vector table and the name of the common vector handling logic so that the MCU- independent logic and work with these (2013-12-23). * configs/viewtool-stm32f107/scripts: Move the RAM vector tables to the beginning of SRAM. It seems to require this alignment. Also, we don't need different scripts for the CMNVECTOR case now that the vector table has a common name. * arch/arm/src: armv-7/up_exception.S and xxx/xxx_vectors.S where xxx={kinetis, lm, lpc17xx, sam34, and stm32}: Modified register usage when saving the context on the stack: In order to handler nested interrupts, the stack pointer must be used so that when it is decremented, the contents on the stack are protected from the nested interrupt handling (2013-12-23). * arch/Kconfig: The CONFIG_ARCH_INT_DISABLEALL feature is disabled (i.e., depends on EXPERIMENTAL). That is because the current implementation will not work because interrupts get disabled in the interrupt handler too, defeating the nesting of interrupts. The fix is easy: It just needs more levels of priority of disabling interrupts vs interrupt handling (2013-12-23). * configs/viewtool-stm32f107/src/stm32_highpri.c: Improved debug output (2013-12-23). * drivers/lcd/memlcd.c and include/nuttx/lcd/memlcd.h: Support for the Sharp Memory LCD from Librae (2013-12-23). * configs/maple/nx and src/: Add support for a custom Sharp Memory LCD on the Maple board. From Librae (2013-12-23). * configs/viewtool-stm32f107/netnsh: Add a NSH configuration that supports networking with the DP83848C module installed (2013-12-25). * configs/viewtool-stm32f107/src/stm32_nsh.c, stm32_mmcsd.c, stm32_usb.c, and stm32_usbmsc.c: Lay out basic framework for USB and SD card support. Code is incomplete and has been neither built nor tested (2013-12-25). * nuttx/arch/arm/src/stm32/Kconfig, chip/stm32f103vc_pinmap.h, stm32f105vb_pinmap.h, and stm32f107vc_pinmap.h: Fix configuration and pin definition that would prevent building USB for the connectivity and performance lines (2013-12-25). * stm32l15xxx_pinmap.h: Fix a typo in USB pin definitions (2013-12-25). * configs/viewtool-stm32f107: Fix building of USB for F103 and F107. F103 has device only; F107 has OTG FS (2013-12-25). * arch/arm/src/stm32/stm32f10xxx_rcc.c and chip/stm32f10xxx_rcc.h: Add clocking support for STM32F107 USB OTG FS (which does not work) (2013-12-26). * configs/viewtool-stm32f107: Updates to USB for F103 and USB OTG FS for F107 (2013-12-16). * arch/arm/src/stm32/chip/stm32f3xxxx_pinmap.h: Fix pin definition names for SPI2 MOSI and MISO. Noted by Brian Webb (2013-12-27). * graphics/nxmu, nxsu, and nxglib and libc/nx, nxmu, and nxglib: Massive reshuffling of files with (hopefully) no logic changes. This reshuffling is necessary if we ever want to build graphics applications as kernel builds. There is still more today (NXTK and NXFONTS need to be moved to libc as well) (2013-12-27). * Move libc/nx, nxmu, and nxglib to a new library, libnx. The NX graphics is not properly a part of libc (2013-12-28). * Move graphics/nxfonts to libnx/nxfonts (2013-12-28). * Move graphics/nxtk to libnx/nxtk (2013-12-28). * syscalls: Need to add sem_timedwait() (2013-12-28) * Move more files from graphics/nxmu to libnx/nxmu (2013-12-29). * graphics/nxmu/nx_start.c: NX server start-up wrapper function to simplify starting the NX server from within the RTOS (2013-12-29). * configs/stm3240g-eval/kernel and configs/stm3240g-eval/scripts: Port kernel build logic from the STM32F4Discovery to the STM3240G-EVAL. This will eventually support testing of the kernel mode NX server (2013-12-29). * configs/stm3240g-eval/nxwm: Converted to use the kconfig-frontend tools (2013-12-29). * configs/stm3240g-eval/knxwm: Add a kernel mode NxWM build configuration (not yet verified) (2013-12-29). * Moved configs/stm3240g-eval/src/up_cxxinitialize.c to apps/platform/stm3240g-eval/up_cxxinitialize.c: Now it is available in user-space in the kernel mode build (2013-12-29). * graphics/nxbe, nxsu, libnx/nxmu, and nxtk: Need to be consistent with which allocator is used in the different configurations. Always uses the user-space allocator because that one is required in certain configurations (2013-12-30). * include/nuttx/kthread.h: Move kernel thread definitions out of os_internal.h so that the rest of the OS can start kernel threads as well (2013-12-30). * configs/sim/mount/defconfig: Converted to use kconfig-frontends tools (2013-21-31). * configs/z16f2800100zcog/nsh: Add a Z16F NSH configuration. Does not yet work (2014-1-1). * arch/arm/src/stm32/stm32_serial.c: Single-wire UART support from Thomas Grubler (2014-1-2). * tools/configure.c and mkdeps.c: Fixes for Windows build issues from Max Holtzberg (2014-1-4). * configs/olimex-stm32-p107/nsh/Make.defs: Add native Windows build support for the Olimex STM32 P107. From Max Holtzberg (2014-1-4). * Makefile.win: Changes for native Windows build: fix creation of a .version file if one does not exist. Make sure that the APPDIR environment variable is set before configuring. From Max Holtzberg (2014-1-4). * configs/viewtool-stm32f107/src/stm32_ssd1289.c: Add support for Viewtool SSD1289-based LCD (untested on initial checkin) (2013-1-5). * arch/arm/include/syscall.h and armv7-a/syscall.h: Add the syscall.h header file needed for the Cortex-A architecture (2014-1-5). * arch/arm/src/a1x/a1x_serial.c: Remove bad flow control logic. Add missing interrupt handling logic for UART4-7 (2014-1-6). * nuttx/tools/mkconfig.c: Cast size to unsigned in calculation of CONFIG_RAM_END to avoid complains about integer overflow (2013-1-6). * nuttx/tools/mkconfig.c: Back out the last change, this causes problems for assembly language. How to prevent the integer over- flow warnings? (2014-1-6). * arch/arm/src/a1x/a1x_serial.c: Handle BUSY interrupt (2014-1-6). * arch/arm/src/armv7-a/arm_head.S and arm_pghead.S: Add more nop's after enabling the MMU. The cortex-a8 seems to need these (2014-1-7). * arch/arm/src/a1x/a1x_serial.c: Correct handling of the BUSY interrupt (2014-1-7). * include/sys/types.h: Add a bogus rsize_t type (2014-1-7). * libc/stdio/lib_gets_s.c: Add a quick'n'dirty implementation of gets_s() which replaces gets() in C11 (2014-1-7). * libc/stdio/lib_fopen.c: Add support for new C11 exclusive open ("x") (2014-1-7) * include/threads.h: First crude cut at a C11 threads.h header file (just maps to pthreads) (2014-1-7). * libc/stdio/lib_libfgets.c: Common implementation supports all of the slightly different requirements of gets(), gets_s(), and fgets() (2014-1-7). * arch/arm/include/stm32/chip.h and chip/stm32f103ze_pinmap.h: various fixes for STM32F103ZE SPI3. From Steve Redler IV (2014-1-7). * graphics/nxsu/Make.defs: Typo that crept into build in recent NX reorganization. Found by Steve Redler IV (2014-1-7). * graphics/nxsu/: Another typo from the recent NX reorganization from Steve Redler IV (2014-1-7). * graphics/nxbe/nxbe_closewindow.c, nx_close.c, nx_constructwindow.c, nx_open.c, and nx_openwindow.c: Needs to use kuzalloc and kufree, not umm_zalloc and umm_free. Additional typo in nx_constructwindow.c (wnd should be hwnd). Also noted by Steve Redler IV (2014-1-7). * configs/viewtool-stm32f107/src/stm32_touchscreen.c (and other files): Add support for the XPT2046 touchscreen controller on the Viewtool LCD module connected to the Viewtool STM32F103 board (2014-1-9). * libc/strings/lib_stpcpy.c: Add stpcpy() (2014-1-9). * arch/arm/src/a1x/a1x_lowputc.c and a1x_serial.c: Mystery finally solved: The A10 serial clock is the OSC24M clock. Thanks to Alan Carvalho de Assis (2014-1-10) * binfmt/binfmt_loadmodule.c: Fix a memory leak (2013-1-11). * configs/stm3vldiscovery: Support for the STM32VL-Discovery board. Contributed by Alan Carvalho de Assis (2014-1-12). * net/net_close.c, net/Kconfig, include/nuttx/net/net.h, and include/sys/socket.h: Add support for the SO_LINGER socket option. Extended from logic provided by Jason Jiang. Enabled with CONFIG_NET_SOLINGER. At this point, it has only been verified that the changes does not seem to do any harm (2014-1-13). * net/connect.c and net/uip/uip_callback.c: prevent tcp_connect callback from being double freed. From Max Holtzberg (2014-1-13). * net/Kconfig and include/nuttx/net/uip/uipopt.h: Add configuration support for forthcoming TCP write buffering (2014-1-13). * net/net_send_buffered.c, net_send_unbuffered.c, and uip/uip_tcpwrbuffer.c: First set of changes to bring in Jason Jiang's TCP write buffering logic. Still not complete but apparently harmless if not selected. (2014-1-13). * All of Jason Jiang's TCP write buffering logic is checked in. Unfortunately, it does not yet work (2013-1-14). * configs/px4fmu-v2_upstream: Configuration for testing simple configurations on the PX4FMU v2. This version is incomplete for the PX4 application and is not a replacement for the version in the PX4 GIT repository. * fs/fat/fs_fat32.c: A correction to FAT cluster allocation from Tridge via Lorenz Meier (2014-1-14). * net/net_clone.c: If CONFIG_NET_TCP_WRITE_BUFFERS is selected, then the socket-related write buffering information must copied with the other cloned socket data (2014-1-14). * net/net_close.c: If CONFIG_NET_TCP_WRITE_BUFFERS is selected, then it is necessary to free the write buffer callback structure when the socket is closed (2014-1-14). * fs/fat/fs_fat32.c: Fix some root directory logic that was conditionally done only for FAT 32. Apparently this needs to done for all FAT types. From Tridge via Lorenz Meier (2014-1-14). * arch/arm/src/armv6-m/up_doirq.c and armv7-m/up_doirq.c and all implementations of up_maskack_irq() for all Cortex-M architectures: Do not disable and enable the IRQ on each interrupt. Because (1) interrupts are already disabled on interrupt entry, (2) this interferes with controlling the IRQ interrupt setting from interrupt handlers, and (3) up_disable_irq() does not work anyway so that this has never done anything (2014-1-15). * All implementations of up_disable_irq() for all Cortex-M3 and M4 architectures: To enable an interrupt on the Cortex-M3/4 CPU, you need to set a bit in the ISER register. To disable the interrupt, you need to set a bit in the ICER register. Existing logic was trying to disable interrupts by clearing the bit in the ISER register. That will not work; writing a '0' to the ISER register has no effect. That means that up_disable_irq() was doing nothing! It turns out that that is not really important because up_disable_irq() is not really used for that purpose. But some spurious STM32 ADC interrupts have been reported to me and this turned out to be the cause in that case. My concern now that up_disable_irq() works is that there may now be unmasked bugs that leave devices in the disabled state? Thanks to Manuel Stühn for the tip(2014-1-15). * libc: Move strtol(), strtoll, strtoul(), strtoull(), and strtod() from libc/string to libc/stdlib where they belong (2014-1-16). * configs/Kconfig: Board configuration sub-directory can now be specified. The default need not be used. This is really only useful when CONFIG_ARCH_BOARD_CUSTOM is selected and there is no meaningful default sub-directory (2014-1-16). * configs/Kconfig: Backed out the previous change for two reasons: (1) it has a bad side effect in that the sub-directory setting no longer tracks the board setting, and (2) you still can't source the Kconfig file from the custom board directory (2014-1-16). * Makefile.unix, Makefile.win, and configs/Kconfig: After thinking a little harder, I re-implemented the backed-out custom configuration feature. The new version does not have bad side-effect (1) (but still has bad side-effect (2)) (2014-1-16). * arch/x86/Kconfig and configs/qemu-i486/nsh/Make.defs and ostest/Make.defs: Add a configuration option to select the -m32 compiler option when building for a 32-bit target on a native 64-bit compiler (2014-1-18). * include/ctype.h: Typo in macro name: iscntrl, not iscontrol (2104-1-17) * libc/unistd/lib_getopt.c: If there are no arguments (argc == 1), then getopt() will leave the optind variable in an undefined state (2014-1-20). * configs/olimex-stm32-p107: Fails to build if SPI3 for UEXT is not remapped. From Max Holtzberg (2014-1-21). * Several network related files: Changes from Max Holtzberg to improve how network status is reported. New controls to manage carrier detect. (2014-1-21). * configs/16z: Add basic support for the 16z board. The 16z board is based on the ZiLOG ZNEOZ16F2811AL20EG part. See https://github.com/toyaga/16z for further information (2014-1-22), * tools/Config.mk: 'cypath' must be called if we are using a Windows native toolchain with the Cygwin 'make' to convert paths to proper Windows paths. From Richard Cochran (2014-1-23). * /arch/arm/src/Makefile: dependency directory list is now computed from the VPATH. From Richard Cochran (2014-1-23). * arch/arm/src/efm32 and include/efm32: Basic support for the EFM3 processor family from Richard Cochran (2014-1-23). * configs/efm32-dk3650: This is Energy Micro's development kit for the Leopard Gecko MCU, which is an ARM Cortex-M3 device. From Richard Cochran (2014-1-23). * arch/arm/src/armv7-m/up_memcpy.S: Assembler changes with the gcc-47 distribution from ARM mean that we need to be explicit about branch sizes; one or more of the wide branch opcodes results in bad table branching. From Mike Smith (2014-1-23). * Many files: renamed up_buttoninit() to board_button_initialize to better conform to the naming standard. Now ONLY prototypes in include/nuttx/arch.h (2014-1024). * Rename up_buttons() to board_buttons() for the same reason (2014- 1-14). * Rename up_irqbutton() to board_button_irq() (2014-1-24). * Rename up_ledinit() to board_led_intialize() (2014-1-24). * Rename up_ledon() to board_led_on() and up_ledoff() to board_led_off() (2014-1-24). * arch/x86/src/qemu-i486/gemu_head.S: Patch from Matt Campbell to fix 'Error: .size expression for idle_stack does not evaluate to a constant" (2014-1-25). * arch/arm/include/efm32, arch/arm/src/efm32, and configs/efm32-dk360: Removed all EFM32 support. Not yet ready to be fielded (2014-1-27). * arch/arm/src/armv7-a/arm_head.S, sama5/sam_boot.c, and several other files: Now supports execution from NOR FLASH with .data and .bss in SDRAM. This was not possible prior to this because .bss and .data were initialized before SDRAM was configured. This logic is still kind buggy. (2014-1-28). * arch/arm/src/armv7-a/arm_head.S and arm_pghead.S: Back off to a somewhat less efficient loop for initializing .data and .bss. The original, efficient logic violated the ARM C ABI. It was okay when called from boot logic, but not when called from C logic. This fixes bugginess reported on 2014-1-28. (2014-1-29). 7.1 2014-03-15 Gregory Nutt * arch/arm/src/lm/lm_serial.c: Fix cut'n'paste error that prevented UARTS2-7 from being used with the LM4F120 Launchpad (2014-02-03). * configs/stm32f4discovery/src: Almost everything renamed to conform to the ever-evolving naming standard (2014-02-03). * arch/arm/src/a1x/a1x_serial.c: Had the same cut'n'paste error that the LM4f120 Launchpad had (2013-02-03). * Documentation/NuttXCCodingStandard.html: Add a coding standards document. Very boring stuff (2014-2-6). * Several changes to restore the native Windows build (2014-2-7). * arch/arm/src/lpc17xx/lpc17_usbhost.c: Fix an compilation error that crept into the LPC17xx USB host driver. What happened here? (2014-2-9). * drivers/usbhost/usbhost_hidmouse.c and other files: Add support for a HID boot mouse device. It compiles but is otherwise completely untested on initial check-in (2014-2-9). * configs/olimex-lpc1766stk/src/lpc17_hidmouse.c and hidmouse: Add support of a test of the USB HID mouse (2014-2-9). * drivers/usbhost/usbhost_hidmouse.c: The driver appears to be functional. But there are usability issues: How do you use the mouse with no cursor? The HID mouse currently emulates a touchscreen driver. That would work in the long run for several reasons (see the top-level TODO list for details) (2014-2-9). * include/nuttx/input/mouse.h and drivers/usbhost/usbhost_hidmouse.c: Defined a mouse interface that is very similar to a touchscreen interface, but allows reporting of all mouse buttons. Also, unlike touchscreen drivers, mouse drivers need to report positional data with no button is pressed so that the mouse position can drive a cursor (2014-2-10). * drivers/usbhost/usbhost_hidmouse.c, include/nuttx/input/mouse.h, and include/nuttx/usb/hid.h: Add support for a mouse wheel (2014-2-10). * drivers/lcd/mio283qt9a.c and include/nuttx/lcd/mio283qt9a.h: Support for the MIO283QT9A LCD. From Toby Duckworth (2014-2-10). * configs/mikroe-stm32f4/src/up_mio283qt9a.c: The Mikroe STM32F4 can now support the newer MIO283QT9A LCD. From Toby Duckworth (2014-2-10). * MANY files changes based on complaints from the tool CppCheck. Several latent bugs were fixed (and most likely some new typos were introduced) (2014-2-10). * arch/arm/include/samd and src/samd: Basic framework to support Atmel SAMD20 Cortex-M0+ chips. Initial check-in is incomplete; this is a work in progress (2014-2-12). * configs/samd20-xplained: Framework to support the Amtel SAMD20 Xplained Pro. Initial check is just an unverified, rough port of the SAM4L Xplained Pro configuration (2014-2-12). * arch/arm/src/stm32/stm32_serial.c: Fix cloned typo: FLOWCONTROL vs FLOWCONROL (2014-2-14). * net/uip/uip_tcptimer.c: Back out a small part of the 6.33 write buffering changed. David G says that this causes problems in connecting to a server (2014-2-15). * The basic SAMD20 Xplained Pro port is complete but still untested (2014-2-16). * sched/task_terminate.c: Always returns an error because the return value was not being set correctly. From Gosha (2014-2-18). * stm32f429i-disco/ostest-fpu: OS test for FPU-enabled system from David Alessio (2014-2-18). * Other misc changes to support FPU on STM32F429 Discovery from David Alessio (2014-2-18) * stm32f429i-disco/src: Files renamed to make more consistent with current board file naming conventions (2014-2-18). * stm32 SPI: Disable SPI before changing CR1 register. From David Sidrane (2014-2-18). * stm32 TIM: Set CCMR when selecting timer channel. From David Sidrane (2014-2-18). * configs/spark: Board configuration updated by David Sidrane (2014-2-19). * libc/stdio/lib_sscanf.c: Bug fixes from David Sidrane (2014-2-18). * nuttx/drivers/wireless/cc3000 and nuttx/include/nuttx/wireless/cc3000: Numerous updates to the CC3000 driver from David Sidrane (2014-2-18). * nuttx/configs/stm3240g-eval/webserver: Converted to use the kconfig-frontends tools by Alan Carvalho de Assis (2014-2-18). * configs/mbed: All mbed configurations have been converted to use the kconfig-frontends tools (unverified) (2014-2-18). * fs/fs_opendir.c, fs_readdir.c, et al: Modified so that errors will not be reported if you attempt to list a empty pseudo-directory (2014-2-19). * fs/fs_rmdir.c: 'rmdir' can now be used to remove empty directories in the pseudo-filesystem such as might be left after umounting a file system (2014-2-19). * fs/fs_mkdir.c: 'mkdir' can now be used to create empty directories in the pseudo-filesystem (2014-2-19). * drivers/lcd/mio283qt9a.c: Bug fix from Toby Duckwork (2014-2-19). * fs/fs_rename.c: 'rename' can now be used to rename nodes in the pseudo-filesystem (2014-2-19). * arch/arm/src/samd/sam_sercom.c: Move some common SERCOM logic from the USART-specific files to a share-able file where it can also be used by SPI and I2C drivers (2014-2-19). * arch/arm/src/samd/sam_spi.c: Add framework for a SAMD SPI driver. The initial check-in is a crude port of the SAMA5 SPI driver with a lot of missing logic (2014-2-19). * arch/arm/src/lm/lm_lowputc.c and lm_serial.c: Several errors are unmasked with UARTs > UART2 are enabled. From Gosha (2014-2-19). * arch/arm/src/samd/sam_spi.c: The SPI driver is code complete, but untested (2014-2-20). * configs/olimex-lpc1766stck/ftpc: Configuration convert to use the kconfig-frontends tools by Alan Carvalho de Assis (2014-2-20). * fs/fs_mkdir.c: 'unlink' can now be used to remove things from the pseudo-filesystem. A new configuration option as been added: CONFIG_DISABLE_PSEUDOFS_OPERATIONS that effectively can be set back out these recent changes in rmdir, mkdir, unlink, and rename for operations on the pseudo-filesystem (2014-2-20). * Kconfig: Add an option to select default values for configuration variables based upon whether you want a smaller footprint or more features. CONFIG_DEFAULT_SMALL is used in sched/Kconfig and fs/Kconfig and in apps/. It turns out this this is not very useful if you are modifying existing configurations because then the defaults do not apply (2014-2-20). * arch/arm/src/sam34/chip/sam4e_vectors.h: Add vector definitions for the SAM4E (2014-2-21). * arch/arm/src/sam34/chip/sam4e_memorymap.h: Add SAM4E memory map (2014-2-21). * arch/arm/src/sam34/sam4e_gpio.h, sam4e_periphclks.h, and chip/sam4e_pio.h: Add PIO support for the SAM4E (2014-2-21). * configs/stm3220g-eval/nsh/defconfig: Converted to use kconfig-frontends by Alan Carvalho de Assis (2014-2-10) * configs/*/defconfig: Comment out all CONFIG_APPS_DIR settings. These should not be set in the default configurations because we don't know where the apps/ directly will reside until configuration time (2014-2-21). * arch/arm/src/sam34/chip/sam4e_pinmap.h: SAM4E pin multiplexing definitions (2014-2-21). * sched/sched_processtimer.c and fs/procfs/fs_procfscpuload.c: Add logic to measure and calculate the CPU load percentage. From David Alessio (2014-2-22). * sched/sched_processtimer.c, sched_cpuload.c, fs/procfs/fs_procfscpuload.c, and fs_procfscpuload.c: CPU load logic extended to keep counts on each thread. The per-thread CPU is now reported in the procfs under /loadavg (2014-2-23). * include/stddef.h: ptrdiff_t is defined twice in stddef.h and also in sys/types.h. stdef.h is the correct location for the definition, but it includes sys/types.h so, at least for now, the definition will be retained in sys/types.h (2014-2-25). * net/net_close.c: Fix one place where the connection reference count was not being decremented. This is really a cosmetic change BUT when CONFIG_DEBUG_NET is enable, it will cause assertions (2014-2-25). * arch/arm/src/sama5/sam_adc.h: Fix typos in the SAMA5 ADC register definition header file (2014-2-26). * arch/arm/src/sam34: The port to the SAM4E is code complete (2014-2-16). * include/cxx: Fix some bad idempotence definitions in header files (2014-2-27). * sched/sched_cpuload.c: Change calculation of the total count when the time constant related delay elapsed. The total count is now always guaranteed to add up to 100% (excepting only truncation errors) (2014-2-27). * fs/procfs/fs_procfscpuload.c and fs_procfsproc.c: Remove the newline at the end of the percentage so that the returned strings can be printed on the same line as other values (2014-2-27). * sched/Kconfig, sched_cpuload.c, and nuttx/sched/sched_processtimer.c: An asynchronous, "external" clock may now be used to drive the CPU load calculations for more accurate load measurements when needed (2014-2-27). * configs/*/defconfig: If CONFIG_NSH_LIBRARY=y then set CONFIG_NSH_READLINE=y otherwise the CLE will be selected by default the next time that make menuconfig is used (2014-2-28). * include/cxx/cstdbool: Ignore _Bool8 if CONFIG_C99_BOOL8=y. (2014-2-28). * configs/*/defconfig: Set CONFIG_DEFAULT_SMALL on all tiny MCU configurations (2014-2-28). * configs/stm3240g-eval/nsh: Configuration converted to use the kconfig-frontends tools (2014-2-28). * configs/*/ostest: Removed most OS test configurations (except in a few cases where there wass some good argument to retain the ostest configuration) (2014-2-28). * configs/stm3240g-eval/nsh2: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/stm3220g-eval/nsh2: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/stm3210e-eval/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/stm3210e-eval/nsh2: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/lincoln60/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/lpcxpresso-lpc1768/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/nucleus2g/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/vsn/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/mirtoo/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/pic32-starterkit/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/pic32-starterkit/nsh2: Configuration converted to use the kconfig-frontends tools (2014-3-1) * configs/pic32mx7mmb/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/ubw32/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/sim/nsh2: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/lm3s6432-s2e/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1) * configs/lm3s8962-ek/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/eagle100/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/stm32f4discovery/src/Makefile: Fix typo: stm32_pwm.c not stm32_psm.c. Noted by Max Kriegleder (2014-3-1). * configs/lpc4330-xplorer/nsh Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/ea3152/ostest: Configuration converted to use the kconfig-frontends tools (2014-3-1). * configs/stm3210e-eval/RIDE, nxlines, and nxtext: Remove some old style configurations that are not worth converting to use the kconfig-frontends tools (2014-3-2). * configs/stm3210e-eval/nx: Configuration converted to use the kconfig-frontends tools (2014-3-2). * configs/mirtoo/nxffs: Configuration converted to use the kconfig-frontends tools (2014-3-2). * arch/arm/src/lpc2378/Kconfig: Create Kconfig file for the LPC2378. Change most configuration variable names to avoid collisions with other platforms (2014-3-2) * configs/olimex-lpc2378/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-2) * configs/olimex-lpc1766stk/nx: Configuration converted to use the kconfig-frontends tools (2014-3-2) * configs/lpcxpresso-lpc1768/nx: Configuration converted to use the kconfig-frontends tools (2014-3-2) * configs/lm3s8962-ek/nx: Configuration converted to use the kconfig-frontends tools (2014-3-2) * configs/sim/nx: Configuration converted to use the kconfig-frontends tools (2014-3-2) * configs/c5471evm/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/olimex-strp11/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/eagle100/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/ez80f910200zco/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/stm3220g-eval/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/stm3240g-eval/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/sim/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/ez80f910200zco/dhcpd: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/stm3220g-eval/dhcpd: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/stm3240g-eval/dhcpd: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/lpcxpresso-lpc1768/dhcpd: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/olimex-lpc1766stk/usbmsc: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/nucleus2g/usbmsc: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/lpcxpresso-lpc1768/usbmsc: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/stm3210e-eval/usbmsc: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/hymini-stm32v/usbmsc: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/ea3131/usbmsc: Configuration removed. It could not possible useful because there is no MCI driver for the EA3131 (2014-3-3) * configs/mcu123-lpc214x/usbmsc: Configuration converted to use the kconfig-frontends tools (2014-3-3) * configs/teensy/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-3). * configs/*/dhcpd: Add missing DHCPD configuration settings (2014-3-3). * configs/stm32f4discovery/pm: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/stm3210e-eval/pm: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/stm3240g-eval/nxconsole: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/stm3210e-eval/nxconsole: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/stm3240g-eval/telnetd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/stm3220g-eval/telnetd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * fs/fat/fs_fat32.c: Fix an error in the FAT logic that can cause file corruption. The error conditions are rare and only seen with very large files. From Andrew Tridgell. This replaces a previous, partial fix for the same problem (2014-3-4). * configs/hymini-stm32v/usbserial: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/ea3131/usbserial: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/mcu123-lpc214x/usbserial: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/olimex-lpc1766stk/thttpd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/lpcxpresso-lpc1768/thttpd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/eagle100/thttpd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/eagle100/httpd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/ez80f910200zco/httpd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/c5471evm/httpd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/eagle100/nxflat: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/sim/touchscreen: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/sim/pashello: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/sim/nx11: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/ez80f910200zco/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/ez80f910200zco/poll: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/olimex-lpc1766stk/slip-httpd: Configuration converted to use the kconfig-frontends tools (2014-3-4) * configs/c5471evm/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/compal_e99/nsh_compalram: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/compal_e99/nsh_highram: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/mcu123-lpc214x/composite: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/olimex-strp711/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/amber/hello: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/micropendous3/hello: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/teensy/hello: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/teensy/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-5) * arch/avr/Kconfig, avr32/Kconfig, at32uc3/Kconfig, atmega/Kconfig, and at90usb/Kconfig: Reshuffle lots of AVR-related configuration names to make space for AVR32. Populate AVR32 Kconfig file (2014-3-5). * configs/avr32dev1/ostest: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/avr32dev1/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/ntosd-dm320/nettest: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/ntosd-dm320/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/ntosd-dm320/poll: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/ntosd-dm320/thttpd: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/ntosd-dm320/udp: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/ntosd-dm320/uip: Configuration converted to use the kconfig-frontends tools (2014-3-5) * arch/Kconfig, arch/arm/Kconfig, configs/ea3131/Kconfig, configs/ea3131/pgnsh/defconfig, configs/ea3131/src/up_fillpage.c, configs/ea3152/Kconfig, nuttx/configs/ea3152/src/up_fillpage.c, include/nuttx/page.h, and tools/cfgdefine.c: Add configuration settings for the on-demand paging option (2014-3-5). * configs/ea3131/pgnsh: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/qemu-i486/ostest: Configuration converted to use the kconfig-frontends tools (2014-3-5) * configs/qemu-i486/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-5) * Many files: Use common naming for all buildroot toolchains (2014-3-5). * Many files: Use common naming for rest of the toolchains (2014-3-5). * configs/ne64badge/ostest and demo9s12nec64/ostest: Configurations converted to use the kconfig-frontends tools (2014-3-5) * fs/nxffs/nxffs_open.c: Missing call to nxffs_freeentry() causes memory leak. From Lzyy (2014-3-6). * fs/nxffs/nxffs_stat.c: Looks like stat() has the same problem as the one reported by Lzyy (2014-3-6). * configs/skp16c26/ostest: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/us7032evb1/ostest: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/us7032evb1/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/mx1ads/ostest: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/pjrc-8051: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/rgmp/arm/default: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/rgmp/arm/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/rgmp/x86/default: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/rgmp/x86/nsh: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/rgmp/x86/helloxx: Configuration converted to use the kconfig-frontends tools (2014-3-6) * configs/rgmp/x86/cxxtest: Configuration converted to use the kconfig-frontends tools. This completes the conversion of all configurations to the newer format (2014-3-6) * Removed the CONFIG_NUTTX_NEWCONFIG setting from every defconfig file (2014-3-6). * The legacy, manual configuration is no longer supported by the NuttX build system. Only the newer configurations generated by the kconfig-frontends tools will generate viable NuttX configurations. All board configurations in the NuttX source tree have been converted to use the newer configuration, but if you have some older style configurations for you board, you will need to convert those configurations to use the kconfig-frontends tools. See http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig for some guidelines (2014-3-6). * drivers/serial/Kconfig: Correct an error introduced in this file in very recent commits (2013-3-6). * configs/*sam*: Refresh all SAM* configurations with the latest Kconfig files (2014-3-6). * configs/stm32f4discovery: Refresh all configurations (except winbuild) with the latest Kconfig files (2014-3-6). * configs/viewtool-stm32f107: Refresh all configurations with the latest Kconfig files (2014-3-6). * configs/16z, mikroe-stm32f4, olimex-lpc1766stk, px4fmu-v2_upstream, sim, and stm32f429i-disco: Refresh all configurations (2014-3-6). * Documentation/NuttShell.html: Update per recommendations from Max Kriegleder (2014-3-6). * configs/pic32-starterkit, pic32mx7mmb, stm3210e-eval, stm3220g-eval, and stm3240g-eval: Refresh all configurations with the latest Kconfig files (2014-3-7). * configs/qemu-i486/src: Files renamed to correspond with current thinking about naming (2014-3-8). * arch/x86/src/qemu/qemu_keypad.c and qemu_vga.c: New QEMU keyboard and VGA drivers from Lizhuoyi (2014-3-8). * configs/olimex-lpc2378/src: Files renamed to correspond with current thinking about naming (2014-3-8). * arch/arm/src/lpc2378/lpc23xx_i2c.c and lpc23xx_spi.c: I2C and SPI drivers for the LPC23xx from Lizhuoyi (2014-3-8). * arch/arm/include/tiva and src/tiva: The old lm/ directories were renamed tiva/ to better support new products coming down the pipe from TI (2014-3-8). * arch/arm/include/tiva, src/tiva, and configs/: All files and all all functions beginning with the name lm_ changed to tiva_ (2014-3-8). * configs/: Refresh all LM3/4/Tiva configurations (2014-3-9). * arch/arm/src/tiva/chip/tm4c_pinmap.h: Add pin multiplex definitions for the TM4C123 (2014-3-9). * arch/arm/src/tiva/chip/tm4c_memorymap.h: Add memory map for the TM4C123 (2014-3-9). * arch/arm/src/tiva/: Add GPIO and SYCONTROL register bit definitions for the TM4C123 (2014-3-10). * configs/tm4c123g-launchpad: Add basic board support for the TM4C123G-Launchpad (2014-3-10). * configs/sam4e-ek: Add basic board support for the SAM4E-EK board. More work is needed. The initial commit is little more than the SAM3U-EK with name changes (2014-3-10). * configs/spark: Refresh all spark configurations (2014-3-11). * arch/arm/src/tiva/chip/tm4c_memorymap.h: Fix typos reported by Daniel Pereira de Carvalho (2014-2-12). * arch/arm/src/sam34/sam_emac.c: Add an Ethernet MAC driver for the SAM4E. The initial checkin is essentially the SAMA5D3 EMAC driver with naming changes as appropriate (2014-3-12). * arch/arm/src/sam34/sam_cmcc.c: Add logic to manage the Cortex-M Cache Control block. Untested on initial check-in (2014-3-12). * arch/arm/src/sam34/sam_emac.c: Fix EMAC pin configuration (was been set up for RMII instead of MII). Now the driver EMAC appears to be functional (2014-3-13). * configs/sam4e-ek/nsh: Networking support is now enabled by default in the NSH configuration (2014-3-13). * arch/arm/src/sam34/sam_spi.c: Backported the SAMA5 SPI driver to the SAM3/4 architecture. The SAMA5 version supports both multiple SPI peripherals as needed by the SAM3A and SAM3X and also supports DMAC (but not PDC). The initial commit is untested and may very well have (temporarily) broken SPI for the SAM3/4/ family (2014-3-13). * configs/sam4e-ek/src/sam_at25.c and sam_hsmci.c: Added support for the AT25 serial FLASH. Restructured the logic that registers the HSMCI block driver (2014-3-13). * arch/arm/src/sam34/sam_dmac.c and sam_spi.c: Fixes to DMA in general and to SPI in particular (2014-3-14). * configs/sam4e-ek/nsh: DMA-based SPI and a FAT file system on the AT25 Serial FLASH are now supported by default in the NSH configuration (2014-3-14). * sched/nanosleep.c: Fix a missing call to re-enable interrupts. From Jason Jiang (2014-3-15). 7.2 2014-04-29 Gregory Nutt * arch/arm/src/sam34/sam_udp.c and .h: Add a USB full speed device driver (UDP) for the SAM4E (2014-3-17). * Documentation/NuttxPortingGuide.html: Typo fixes from Vijay Kumar (2014-3-18). * arch/arm/Kconfig: Improved documentation of the use of the BASEPRI register from Vijay Kumar (2014-3-19). * include/nuttx/i2c.h: More typo fixes from Vijay Kumar (2014-3-19). * arch/Kconfig and *_assert.h: Add a configuration option to enable dumping of the USB trace buffer on assertion (2014-3-19). * drivers/usbdev/Kconfig, arch/arm/src/sam34/Kconfig, and drivers/usbdev/usbmsc_scsi.c: If DCD can support queuing of stall requests, then the USB MSC stall work around delays are not necessary (2014-3-20). * net/netdev_findbyaddr.c: Skip network devices that are in the "down" state. It does not make sense to consider an address match with a "down" device. From Brennan Ashton (2014-3-20). * configs/sam4e-ek/usbnsh: Add a NSH configuration that uses the NSH console (2014-3-22). * arch/arm/src/stm32/stm32_eth.c: Add IGMP hashing support. From Manuel Stühn (2014-3-24). * net/netdev_ioctl.c and uip/uip_input.c: IGMP-related bug fixes from Manuel Stühn (2014-3-24). * arch/arm/src/sam34: Add missing HSCMI configuration settings to Kconfig; update naming to include SAM34_ (2014-3-24). * configs/sam4e-ek/include/board.h: Update HSMCI timing to use the CLKODD bit (2014-3-24). * drivers/include/mtd/Kconfig, sector512.c, and include/nuttx/mtd/mtd.h: Add a new MTD driver that can be used to contain another driver and force its apparent sector size to be 512 bytes (2014-3-24). * arch/arm/src/sam34/sam_lowputc.c sam_serial.c: Fix a mysterious multithreading bug that can lock up the serial port (2014-3-14). * drivers/usbdev/Kconfig, usbmsc.c, usbmsc.h, and usbmsc_scsi.c: Redesign threading module used with the USB MSC driver. It was using pthreads before and these were changed to a kernel thread. The reason for this has to do with task grouping: A pthread is a memory of the group of the task that started it. A kernel thread is independent of the task that started in (other than knowing it as the parent). This allows me to remove so kludge logic to "deparent" the pthread on startup (2014-3-25). * tools/astyle.sh: A code formatting tool from Lorenz Meier. This tool should do a better job than the old tools/indent.sh tool (2014-3-26). * arch/arm/src/sam_hsmci.c and sam_spi.c: Add support to invalidate cached memory if the CMCC is enabled (not yet tested, 2014-3-26). * arch/arm/src/sam_spi.c: Add logic to handle SPI word widths > 8 (also untested on initial checkin, 2014-3-26). * configs/sam4e-ek: All configurations updated to run with 120MHz CPU speed and with the CMCC enabled. Calibrated delay loop (2014-3-26). * drivers/lcd/Kconfig: Add missing configuration for the MIO283QT-9A LCD. Reported by Toby Duckworth (2014-3-27). * arch/arm/include/sama5/chip.h and arch/arm/src/sama5/Kconfig: Add support for the SAMA5D36 (2014-3-28). * libc/strings/lib_strncpy.c: Change ordering of test and copy. Logic would have failed if n=0; one byte was always copying before testing for the end of the copy. * nuttx/configs/sama5d3-xplained/: Add a board support configuration for the Atmel SAMA5D3 Xplained board. The initial check in is not finished. For example, it still builds to run out of NOR FLASH but the SAMA5D Xlpained has no NOR FLASH (2013-4-28). * arch/arm/src/sama5/sam_pmc.c and .h: Add functions to calculate PLLACK, PCK, and MCK frequencies given the main clock frequency (2014-3-29). * configs/sama5d*/include/board.h, board_sdram.h, and other files: When booting from SDRAM, we need to query the PMC registers (using the functions in sam_pmc.c) to determine the MCK, PCK, etc. We assume that the MCK input clock is well known main crystal oscillator frequency (2014-3-29). * configs/sama5d3x-ek: Change all configuration names to board- specific names so that this are no name collisions with other boards that have similar configuration variables (2013-3-30). * configs/nuttx/compiler.h: Add macro UNUSED() that can be used to eliminate warnings about variables that are set to values that are not used (2014-3-30). * arch/arm/src/sama5/sam_hsmci_clkciv.c: Remove HSCMI-related functions that did not belong in sam_pmc.c and give them their own file (2014-3-30). * arch/arm/src/sama5/sam_boot.c: Fix some backward conditional compilation (2014-3-30). * libc/stdio/lib_sccanf.c: Fix a counting error in the return value from sscanf(). Noted by kfrolov. Also, sscanf() should return EOF if no values were converted (2014-3-30). * include/time.h and sched/clock_settime(): Add support for CLOCK_REALTIME. From Macs N (2014-3-31). * libc/stdio/lib_ferror.c, lib_fread.c, lib_libfflush.c, lib_libfread.c, and lib_libfwrite.c: Finish incomplete support for ferror(). From Macs N (2014-3-14). * libc/stdio/lib_ftell.c: Fix a logic error in ftell(). It was simply using the file offset and did not take into account data buffered in memory. From Macs N (2013-3-31). * Add CONFIG_CLOCK_MONOTONIC that case used to disable CLOCK_MONOTONIC for a smaller footprint (2013-3-31). * sched/Kconfig: Menu has gotten too long. And another layer of menuing in order to simplify this layer (2014-3-31). * arch/arm/src/sama5_boot.c: Fix double mapping of SDRAM when executing out of SDRAM. In this case, the SDRAM was already mapping in arm_head.S (2014-3-31). * arch/arm/src/sama5/chip/sam_dbgu.h: Add SAMA5D3 DBGU definition header file (2014-3031). * arch/arm/src/sama5/sam_dbgu.c and .h: Add support for the SAMA5D3 DBGU (2014-4-1). * configs/sama5d3-xplained/nsh: Configurations now use the DBGU for the serial console (instead of USART1) (2014-4-1). * libc/stdio/lib_sccanf.c: Use stroul() vs strol() with %u format otherwise, range of values is restricted because of sign bit from kfrolov (2014-4-2). * arch/arm/src/sama5/sam_boot.c, sam_irq.c, chip/sama5d3x_memorymap.h: When running from SDRAM, vectors must lie in SRAM (2014-4-2). * arch/arm/src/armv7-a/arm_head.S and cache.h: On start-up, make certain the the MMU and caches are disabled (probably un-necessary) (2014-4-2). * arch/arm/src/sama5/sam_boot.c: If we have to copy vectors, then make sure to clean the DCache to be sure that the copied vectors are in the physical RAM (2014-4-2). * arch/arm/src/sama5/sam_irq.c: After we modify the AXI MATRIX, make sure to invalidate all caches and TLBs (probably un-necessary) (2014-4-2). * arch/arm/src/sama5/sam_irq.c: Set the VBAR register to zero. If were started by a bootloader (vs. a RESET), then the VBAR register may not be in its reset state (zero, 2014-4-3). * arch/arm/src/sama5/sam_boot.c, sam_irq.c, and chip/sama5d3x_memorymap.h: When booting from SDRAM, don't relocated vectors to ISRAM. Instead, just set the VBAR register to address of the vectors in SDRAM. * arch/arm/src/sama5/sam_clockconfig.c: BMS Fixed to match what the HW does. From David Sidrane (2014-4-3). * arch/arm/src/sama5/Kconfig, sam_boot.c, andsam_clockconfig.c: On some hardware, reconfiguring the PLL while executing out of NOR FLASH causes crashes. This was fixed by David Sidrane by implementing RAM functions. The killer code is copied and executed from ISRAM and the crash is avoided (2014-4-3). * configs/sama5d3-xplained/Kconfig and include/board*.h; configs/sama5d3x-ek/Kconfig and include/board*.h: Add support for 528MHz CPU clock (2014-4-3). * arch/arm/src/sama5/Make.defs: Fix a build error that occurs when only USB device tracing is enabled (2014-4-4). * Documentation/UsbTrace.html: Add some discussion of the USB monitor (2014-4-4). * nuttx/arch/arm/src/armv7-a/mmu.h: Bufferable bit did not do what I thought it was going to do. Result was the NOR FLASH accesses were very slow (2014-4-3). * arch/arm/src/sama5/sam_udphs.c: Fix a case where received status was not being cleared, causing OUT SETUP commands to fail (2014-4-6). * arch/arm/src/tiva/tiva_syscontrol.c: Add logic for TM4C125GXL based on logic from Daniel Carvalho with modifications. I think the LM4F120 may have broken before as well(?). In any event, the LM4F120 also works well with this change (2014-4-7). * Back out part of 610e2aa0c224e2936fe8009ef4a2351ce607067a: Need to be able to select USB console devices when there is no /dev/console enabled. Noted by Librae (2014-4-8). * configs/*/defconfig: Increase the number of preallocated watchdogs in all configurations that use networking or USB (2014-3-9). * include/nuttx/syslog/syslog.h and ramlog.h: Move syslog.h and ramlog.h to include/nutt/syslog (2014-4-10). * sched/errno_getptr.c and getpid.c: Add some checks. If these functions are called early in initialization before the tasking structures are initialized, they will not behave properly (2014-4-10). * arch/arm/src/sama5/sam_twi.c: TWI data sending is fails to increment the number of byes transferred on first byte sent. from David Sidrane (2014-4-10). * configs/sama5d3x-ek/src: The red LED is controlled by PE24 which is also the camera/ISI interface reset line. So if the a camera is installed, then we must avoid controlling the red LED or we inadvertently also reset the camera module. Noted by David Sidrane (2014-4-11). * arch/arm/src/stm32/stm32_usbhost.c/.h and stm32_otgfshost.c: USB host tracing added by Leo (2014-4-12). * arch/arm/src/sama5/sam_adc.c, sam_can.c, sam_emac.c, sam_gmac.c, sam_ssc.c, and sam_twi.c: If running from SDRAM, then BOARD_MCK_FREQUENCY is not a constant and cannot be used in conditional compilation (2014-4-16). * drivers/lcd/mio283qt9a.c and include/nuttx/lcd/mio283qt9a.h: Update the MIO183QT-9A LCD driver to support reading from the LCD. From Toby Duckworth (2014-4-16). * arch/arm/src/stm32/chip/stm32f20xxx_pinmap.h: Correct a mapping for SPI MOSI pin. From dlsitzer (2014-4-26). * arm/src/sama5/sam_clockconfig.c and common/up_internal.h: Move the un-definitions of __ramfuncs__ from the .c file to the .h file or, otherwise, the attribute will be applied differently for the prototype and the function definition. Sourceforge patch 38 from Luciano Neri (2014-4-17). * arch/arm/src/sama5/sam_emac.c: Add missing right parentheses. This introduced in the above change and is Sourceforge patch 39 from Luciano Neri (2014-4-17). * configs/sama5dx-ek/include/board.h and sama5d3-xplained.h: These files reference type xcpt_t and so must include nuttx/irq.h. This is Sourceforge bug 25 submitted by Luciano Neri (2014-4-17). * arch/arm/src/stm32/stm32_otgfshost.c: Some fixes related to low-speed devices and interrupt endpoints from Leo (2014-4-17). * configs/stm32f4discovery/src/stm32_usb.c: Add support to register keyboard and mouse classes if so configured. From Leo (2014-4-17). * include/nuttx/usb/usbhost: Fix some USB HID-related conditional compilation. From Leo (2014-4-17). * drivers/usbhost/usbhost_hidmouse.c: Don't include NAKs from the device in the error count. From Leo (2014-4-17). * arch/arm/src/sam34/sam_irq.c: Fix initialization of the default priorities (2014-4-17). * arch/arm/src/kinetis/kinetis_irq.c, lpc17xx/lpc17_irq.c, and tiva/tiva_irq.c: Modify the logic to disables the interrupts and sets the default interrupt priority so that it uses the ICTR to get the number of interrupt lines/registers. This is instead of using some fixed number of initializations based a priori knowledge of the number of interrupt lines in the MCU. This logic is untested on some MCUs on initial check-in0 (2014-4-17). * arm/src/lpc17xx/Kconfig and lpc17_ethernet.c: The default interrupt priority should be default, not the highest priority (2014-4-19). * configs/lpcxpresso-lpc1768: Refreshed all defconfig files (2014-4-19). * configs/olimex-lpc1766stk: Refreshed all defconfig files (2014-4-19). * configs/zkit-arm-1769: Refreshed all defconfig files (2014-4-19). * include/nuttx/binfmt/ieee695.h: Beginning of header file for IEEE 695 OMF header file (2014-4-19). * arch/arm/include/stm32/chip.h and src/stm32/Kconfig: Add support for the STM401RE. From Frank Bennett (2014-4-20). * README.txt, Documentation/README.html, configs/Kconfig and README.txt, configs/nucleo-f401re: Add support for the Nucleo-F401RE board. From Frank Bennett (2014-4-20). * arch/arm/src/sam34/sam_rtc.c/.h: Port RTC driver from SAMA5 to SAM3/4. From Bob Doiron (2014-4-21) * arch/arm/src/sam34/sam4s_periphclks.h: Fix error in macros that disable peripheral clocking. From Bob Doiron (2014-4-21) * drivers/mmcsd/mmcsd_sdio.c/.h: Misc improvements from Bob Doiron (2014-4-21) * arch/arm/src/sam34/sam_hsmci.c and chip/sam_hsmci.h: Extensions from Bob Doiron needed to support PDC-based HSMCI DMA transfers (2014-4-21). * configs/sam4s-xplained-pro: Support for the SAM4S Xplained Pro board from Bob Doiron (2014-4-21). * configs/sam4s-xplained-pro: Added card detect (kind of broken still); added proc/vfat mounting during init to save some typing. From Bob Doiron (2014-4-21). * configs/sam4s-xplained-pro: Boost PLLA to 240MHz to allow USB. From Bob Doiron (2014-4-21). * arch/arm/src/sam34/sam_wdt.c/.h: Add watchdog driver. From Bob Doiron (2014-4-21). * nuttx/configs/sam4s-xplained-pro: Add board-specific watchdog timer support. From Bob Doiron (2014-4-21). * drivers/timer.c and include/nuttx/timer.h: Timer "upper half" driver and lower half interface definition from Bob Doiron (2014-40-22). * arch/z16/src/z16f/z16f_espi.c: Add ZNEO ESPI driver (2014-4-24). * arch/arm/src/stm32/stm32_sdio.c: The dmaflight method must be conditioned on CONFIG_SDIO_PREFLIGHT. Noted by Pelle Windestam (2014-4-25) * configs/nucleo-f401re: Removed bogus references to the MPU (2014-4-25). * arch/z16/src/z16f_timerisr.c: Fix calculation of timer reload and prescaler. The timer frequency was way too fast (2014-4-25). * arch/arm/src/stm32/stm32_otgfsdev.c and others: Sourceforge Ticket #26. up_prioritize_irq should not be called if CONFIG_ARCH_IRQPRIO is not defined (2014-4-25). 7.3 2014-xx-xx Gregory Nutt * arch/arm/src/sama5/sam_clockconfig.c: Needed function sam_pmcwait() is needed when UDPHS, EHCI, or OHCI is configured but may not be compiled in due to insufficient conditional logic. From Luciano Neri (SourceForge patch #40) (2014-4-29). * arch/arm/include/stm32/chip.h, src/stm32/Kconfig, stm32_allocateheap.c, configs/nucleo-f401re/nsh/defconfig, and scripts/ld.script: Numerous changes, most correcting memory usage on the Nucleo-F401RE (2014-4-30). * /drivers/mtd/w25.c: Extended by Mark Whitehorn to support the 8Mbit W25Q80BV part (2014-4-30). * configs/sam4s-xplained-pro: Update LED control logic from Bob Doiron (2014-4-30). * drivers/timer.c and include/nuttx/timer.h: Enhanced timer interface from Bob Doiron (2014-4-30). * arch/arm/src/sam34/Kconfig and sam_tc.c: Enhanced timer/counter driver from Bob Doiron (2014-4-30). * configs/sam4s-xplained-pro/Kconfig, nsh/defconfig, and src/sam_tc.c: The SAM4S Xplained Pro now uses the extended timer/counter features. From Bob Doiron (2014-4-30). * include/nuttx/arch.h and sched/os_internal.h: If the CPU load measurements are being driven by an external clock, then the prototype for sched_process_cpuload() must be available in include/nuttx/arch.h (2014-4-30). * Documentation/NuttShell.html and many defconfig files: The alternate console device CONFIG_NSH_CONDEV must not be defined unconditionally. This causes errors when using Telnet sessions. This was solved by adding CONFIG_NSH_ALTCONDEV: CONFIG_NSH_ALTCONDEV enables or disables the feature then, if enabled, CONFIG_NSH_CONDEV provides the alternative console device name (2014-5-5). * arch/arm/src/sam34/sam_rtt.c/.h: RTT driver from Bob Doiron. Also added high resolution RTC emulation using the RTT for the sub-second counter (2014-5-5). * configs/sam4s-xplained-pro: Clean-up of LED usage and also some integration of new timer features. From Bob Doiron (2014-5-5). * drivers/timer.c and include/nuttx/timer.h: Timer driver updates from Bob Doiron (2014-5-5). * binfmt/symtab_findorderedbyname.c: Fix an error in the symbol search function. Noted by Pelle Windestam (2014-5-6). * arch/arm/src/stm32/stm32f40xxx_rcc.c and configs/nucleo-f401re/include/board.h: The Nucleo-F401RE has no on-board crystals and, hence, needs to run with the PLL input from the on-chip HSI clock (2014-5-6). * arch/arm/src/armv7-a/arm_memcpy.S: This is the same optimized memcpy() function that Mike Smith brought in for the ARMv7-M with minor tweaks by David Sidrane to work with the ARMv7-A (2014-5-6). * binfmt/libpcode, pcode.c, include/nuttx/poff.h, and binfmt/pcode.h: Framework to support Pascal P-Code as a binary format. At present this logic is incomplete and really nothing more than a thought experiment to determine the feasibility of the P-code binary format (2014-5-7). * drivers/sensors/Make.defs: Correct build dependency. Sourceforge ticket #41 from Kosma Moczek (2014-5-8). * drivers/serial.c, include/nuttx/serial.h, arch/arm/src/stm32/stm32_serial.c and minor updates to all other drivers using the serial interface: Add an rxflowcontrol method to the serial interface to better support RX flow control. From Jussi Kivilinna (2014-5-8). * arch/arm/include/stm32 and src/stm32: Add support for the STM32152 and STM32162 Medium+ density parts (plus miscellaneous other improvements to the original STM32151 logic). From Jussi Kivilinna and Sami Pelkonen (2014-5-8). * binfmt/binfmt_dumpmodule.c, binfmt_loadmodule.c, binfmt_unloadmdoule.c, builtin.c, elf.c, nxflat.c, pcode.c, and include/nuttx/binfmt/binfmt.h: Extend the binfmt interface to handle error conditions where format-specific binfmt clean-up is needed in the event of error conditions. This is needed by the P-Code binfmt (2014-5-8). * binfmt/libpcode, pcode.c, include/nuttx/poff.h, and binfmt/pcode.h: Now uses apps/interpreters/prun and is basically functional. More work is needed because (1) it is too coupled with apps/ and (2) will not work with CONFIG_NUTTX_KERNEL (2014-5-9). * arch/arm/src/stm32/stm32_i2c.c: Bring in PX4 fix for I2C in very high noise environments or with rogue perpipherals. Taken from the PX4 commit 099b2017ccfa0fc7696f168db2a0c2e13fe5edbc by Tridge here: https://github.com/PX4/NuttX (2014-5-10). * include/nuttx/video/rgbcolors.h: Fix typo in several macros: RBG -> RGB. (2014-5-12). * drivers/mtd/ramtron.c: Add support for Fujitsu MB85RS1MT part. From Charles Ash (2014-5-12). * configs/sam4e-ek/src/sam_ili9325.c: Add an LCD driver for the SAM4E-EK board. Untested on initial check-in (2014-5-13). * configs/sam4e-ek/src/sam_ads7843e.c: Add a touchscreen driver for the SAM4E-EK board. Untested on initial check-in (2014-5-13). * arch/arm/src/stm32/stm32_i2c_alt.c: Add an alternative I2C implementation for the STM32 F03 that works around errata in that part. From Patrizio Simona (2014-5-14). * arch/arm/src/sam34/sam_gpio.c: Fix some SAM4E compiler errors when CONFIG_DEBUG_GPIO is enabled (2014-5-15). * sched/sig_mqnotempty.c: Test for a valid signal number is inverted; this function could not have been working correctly??? From eero.nurkkala (2014-5-20). * arch/arm/src/stm32/stm32_lowputc.c: Fix error in conditional compilation. From Sami PelKonen (2014-5-20). * arch/*/src/* (several files): Make sure that all references to up_prioritize_irq() are conditioned on CONFIG_ARCH_IRQPRIO. Problem noted by Mike Smith (2014-05-20). * drivers/wireless/cc3000/Kconfig: Correct SPI mode for CC3000 is CPOL=0 CHPA=1. See http://processors.wiki.ti.com/index.php/CC3000_Serial_Port_Interface_(SPI) From Jussi Kivilinna (2014-5-21). * drivers/wireless/cc3000/cc3000.c and include/nuttx/wireless/cc3000/include/cc3000_upif.h: Configuration has CC3000_SPI_MODE settings but source uses CONFIG_CC3000_SPIMODE. From Jussi Kivilinna (2014-5-21). * drivers/wireless/cc3000/cc3000drv.c: unsoliced_thread does initialization of message queue, but main thread might block that thread from running and use the uninitialized message queue. The main thread must wait until unsolice_thread initializes the required structures before proceeding. From Jussi Kivilinna (2014-5-21). * drivers/wireless/cc3000/cc3000.c: Fix build when POLL is enabled. From Jussi Kivilinna (2014-5-21). * arch/arm/include/armv7-m/irq.h: Change bne to bne.n in irqrestore() (2014-5-22). * Many files: Convert all old-style variadic macros to the C99 form. Recent GCC changes tightens up that behavior and can cause some problems (at least for the IAR compiler for some reason). See https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html#Variadic-Macros. Noted by Bob Grimes (2014-5-22). * configs/viewtool-stm32f107/nsh: Configuration refreshed (2014-5-23). * arch/arm/src/stm32/stm32_i2c_alt.c: Final driver from Max Kriegleder et al. Reduces footprint and fixes a bug. (2014-5-23). * tools/configure.sh: In-place SED edit an mess up permissions on windows. From Hannes Delago (2014-5-25). * include/nuttx/mtd/mtd.h: Needs forward reference to struct spi_dev_s. (2014-5-25). * arch/arm/src/stm32/stm32_i2c.c and stm32_i2c_alt.c: Back out PX4 fixes that were reverted in the PX4 repositories (2014-5-25). * sched/Kconfig: CONFIG_START_YEAR/MONTH/DAY are not required is the RTC is enabled (2014-5-26). * arch/arm/src/stm32/stm32_rtcc.c: Add retry logic to RTC initialization. It sometimes takes longer for the RTC to initialize, at least as noted on an F2 part. From dlsitzer (2014-5-27). * libc/stdio/lib_snprintf.c: If the size passed to snprintf() is zero, then snprintf() must write nothing, but instead return the size of the buffer needed to hold the entire string. From Sami Pelkonen (2014-5-30). * net/arp: Move arp related files from net/uip to net/arp. Files renamed with arp_ prefix (2014-5-30). * include/nuttx/net/arp.h and net/arp/arp_timer.c: Moved include/nuttx/net/uip/uip-arp.h to include/nuttx/net/arp.h; moved net/net_arptimer to arp/arp_timer.c. (2014-5-30). * net/igmp: Moved IGMP files from net/uip to net/igmp (2014-5-30). * net/icmp: Moved ICMP files from net/uip to net/icmp (2014-5-30). * net/uip/uip_tcptimer.c: NET: Notify upper layer when TIME_WAIT or FIN_WAIT_2 timeout occurs. Otherwise connections possibly won't get freed. From Max Holtzberg (2014-6-2). * TCP fallback allocation: Added all states in which the connections are about to be closed. Fallback mechanism is disabled when SO_LINGER is enabled to prevent deadlocks in netclos_disconnect(). From Max Holtzberg (2014-6-2). * configs/olimex-stm32_h405: Support for the Olimex STM32 H405 board contributed by Martin Lederhilger (2014-6-3). * net/arp/Make.defs: Fix an error introduced recently in the net/ build (2014-6-3). * net/iob: Add generic I/O buffering. Not currently used by anything. (2014-6-4). * arch/arm/include/sama5 and arch/arm/src/sama5: Basic framework to support the SAMA5D4 family. Incomplete on initial check-in (201406-3). * arch/arm/src/sama5/chip/sam_xdmac.h: Beginning of XDMAC register definition header file (incomplete) (2014-6-4). * arch/arm/src/sama5/chip/sam_l2cc.h: Add SAMA5D4 L2CC register definition header file (incomplete on initial check-in) (2014-6-5). * drivers/usbdev/cdcacm.c: Reset RX head to avoid resending last serial data when USB cable disconnected/re-connected. From Lizhuoyi (2014-6-6). * drivers/usbdev/pl2303.c: Same change cloned for PL2303 (2014-6-6). * arch/arm/src/lpc2378: Fix several typos. From Lizhuoyi (2014-6-6). * arch/arm/src/lpc17xx/lpb17_gpdma.c: Fix an error when DMA is started: The read-modify-write fails when the DMA is started. This is because the value read is not the same as the value set (on write it is the number of transfers to do; on read it is the number of transfers completed). From Lizhuoyi (2014-6-6). * configs/sama5d4-ek: Initial board support for the SAMA5D4-EK board. This initial check-in is basically the SAMA5D3-Xplained board support with appropriate name changes (2014-6-6). * stm32/arch/arm/src/stm32_serial.c: Handle configuration for the case of 8-bit data with parity. From Freddie Chopin (2014-6-11). * binfmt/libelf/elf.c: Fix a compilation error when CONFIG_ELF_DUMPBUFFER is defined. From Pelle Windestam (2014-6-12). * net/, include/nutt/net, and include/netpacket: Add support for "raw" sockets. From Lazlo Sitzer (2014-6-12). * arch/arm/src/sama5: Add SAMA5D4 XDMAC driver. Initial check-in is just the DMAC driver with a few naming changes (2014-6-12). * configs/sama5d4x-ek/ramtest: Add an SDRAM test configuration (2014-6-14). * libc/stdio/lib_libsnoflush.c, lib_memsistream.c, and lib_memsostream.c: Add support for seekable memory streams (2014-6-14). * libc/stdio/lib_rawsistream.c, and lib_rawsostream.c: Add support for seekable raw streams (2014-6-14). * libc/stdio/lib_stdsistream.c, and lib_stdsostream.c: Add support for seekable standard streams (2014-6-14). * configs/sam4x-xplained*/src/sam_buttons.c: Button interrupts not being disabled after being detached. (2014-6-15). * binfmt/binfmt_exec.c: Fix a critical error in exec(); argv was not being passed (2014-6-15). * arch/arm/src/sama5/sam_dmac.h: Fix some critical typos in the SAMA5D3 DMA definitions (2014-6-17). * nuttx/net/net_send_unbuffered.c: Notify the device driver of the availability of TX data. From Daniel Lazlo Sitzer (2014-6-18). * net/net_close.c, net_send_unbuffered.c, socket.c, and uip_poll.c: Various fixes for raw sockets from Daniel Lazlo Sitzer: (1) properly free the socket in psock_close(), (2) socket() returns failure when there is no free socket/connection, and (3) Set number of bytes to transmit is set in the uip_driver_s instance (2014-6-18).