nuttx/include
Gregory Nutt e42f7b552f This commit is a set of patches 02/11 through 03/11 correcting issues with the CC3000 networking (01/11 was committed separated). Among these 10 patches:
03/11: CC3000 driver was getting stuck at recv() when remote host closed connection and application tried to read data from remotely shutdown socket. This patch adds proper handling for remotely closed socket event.

07/11: Socket state initialization was done in 'register', while it should be initialized in 'open' and deinitialized in 'close'. Old way caused problems when device is closed, power-cycled and then reopened as old socket state was left enabled.

08/11: Select thread was getting stuck after 'close, power-cycle, reopen', since selectsem was not properly setup and cleaned up.

09/11 'maxFD' was not properly reset in select worker and not checked for before calling cc3000_select().

10/11: After wlan_stop()/cc3000_close(), irqsem was left with count '-1'. Therefore on next wlan_start()/cc3000_open(), initial value for irqsem was wrong. Additional repeated wlan_start()/wlan_stop() decreased irqsem value further. Obviously this causes driver not to function correctly and freeze.

Patch moves initialization and destruction of waitsem, irqsem and readysem to cc3000_open/cc3000_close.

All are: Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com>
2014-11-28 08:52:52 -06:00
..
arpa NET: emoved all includes of uip.h; added includes of ip.h wherever needed. Tried to fix problems of the now missing sneak inclusions because uip.h was removed. There are probably a few of these that were missed. 2014-07-04 19:13:08 -06:00
cxx Update csdtio too 2014-11-06 07:11:23 -06:00
net Add some helper macros to make the code a little more compac 2014-08-17 09:46:03 -06:00
netinet Move include/nuttx/net/uip/uip-arch.h to include/nuttx/net/arp.h; rename all uip_arp_ functions to arp_ 2014-05-30 12:13:06 -06:00
netpacket Correct contact information 2014-06-13 07:31:28 -06:00
nuttx This commit is a set of patches 02/11 through 03/11 correcting issues with the CC3000 networking (01/11 was committed separated). Among these 10 patches: 2014-11-28 08:52:52 -06:00
sys Backing out some logic: Remove syslog functions from syscalls 2014-10-09 06:58:23 -06:00
.gitignore
aio.h AIO now also supports socket transfers 2014-10-11 08:15:23 -06:00
assert.h Add support for the UG-2843HHSWEG04 OLED and for the SAM4L Xplained Pro OLED module that uses that OLED. 2013-06-23 14:39:56 -06:00
crc16.h Add CRC16 support 2013-07-07 17:35:35 -06:00
crc32.h Add CRC16 support 2013-07-07 17:35:35 -06:00
ctype.h ctypes.h: Fix typo in macro name iscontrol->iscntrl 2014-01-18 13:22:20 -06:00
debug.h Update everything under apps/ to use the corrected syslog interfaces 2014-10-08 11:34:22 -06:00
dirent.h Ongoing campaign to remove EXTERN storage class on function prototypes 2014-07-23 14:49:16 -06:00
elf32.h
errno.h Add ECANCELED 2014-10-06 15:05:35 -06:00
fcntl.h Initial implementation of aio_write() 2014-10-04 17:30:24 -06:00
fixedmath.h Back out an incorrect change 2014-10-12 11:01:57 -06:00
inttypes.h Various changes associated with symbol tables. Most from Pelle Windestam 2014-06-27 08:14:07 -06:00
libgen.h Ongoing campaign to remove EXTERN storage class on function prototypes 2014-07-23 14:49:16 -06:00
limits.h Adds support for localtime. From Max Neklyudov 2014-08-12 06:18:22 -06:00
mqueue.h Add basic data structures that will allow us to move named semaphore support out of the OS and into the VFS (not complete). 2014-09-28 10:15:33 -06:00
nxflat.h More trailing whilespace removal 2014-04-13 14:32:20 -06:00
poll.h apps/netutils/ntpclient: Add a primitive NTP client. Initial checkin is untested and probably incomplete 2014-04-10 18:15:06 -06:00
pthread.h Add basic data structures that will allow us to move named semaphore support out of the OS and into the VFS (not complete). 2014-09-28 10:15:33 -06:00
queue.h Add CONFIG_NET_ETHERNET (not used yet) 2014-06-01 09:40:23 -06:00
sched.h First round of changes to get the ELF configuration building again 2014-09-16 15:37:05 -06:00
semaphore.h Create a build structure that will (eventually) support using the VFS to manage named semaphores 2014-09-28 12:19:01 -06:00
signal.h Rename CONFIG_LIBC_AIO to CONFIG_FS_AIO since it is now an OS property 2014-10-05 15:44:43 -06:00
spawn.h First round of changes to get the ELF configuration building again 2014-09-16 15:37:05 -06:00
stdbool.h
stddef.h prtdiff_t: Defined in both stddef and sys/types 2014-02-25 12:40:49 -06:00
stdint.h Correct naming of [U]INT_LEASTn_{MAX|MIN} and [U]INT_FASTn{MAX|MIN}. From Kosma Moczek 2014-06-30 07:47:11 -06:00
stdio.h Add tmpnam() and tempnam() 2014-11-05 10:43:17 -06:00
stdlib.h Can't use formal parameter name 'template' in stdlib.h. Causes C++ compilation errors. Noted by Lorenz Meier 2014-11-06 07:00:23 -06:00
string.h Add stpcpy() 2014-01-09 14:08:48 -06:00
syscall.h include/sys/syscall.h: System definitions should depend on CONFIG_LIB_SYSCALL not CONFIG_NUTTX_KERNEL 2014-08-28 17:03:54 -06:00
syslog.h Update comments and function headers 2014-10-09 07:38:38 -06:00
termios.h Add isatty() function. From Alan Carvalho de Assis 2014-10-27 12:29:15 -06:00
threads.h Add a quick'n'dirty implementation of C11 threads.h 2014-01-07 18:09:35 -06:00
time.h When reading the system timer, don't read a struct timespec, convert it to a fake tick count, then back to a timespec. Remove CLOCK_ACTIVETIME.. it is non-standard, unused, and gets in the way of changes like this 2014-08-15 03:55:41 -06:00
unistd.h From Lorenz Meier: The implementation of access() as vararg macro has the issue that any function call with the same name (even in a C++ class) will match with it and result in a compile error. I have replaced it with a small function, and tried to have decent documentation as well. This resolves the compile issue, and shouldn’t have negative side effects for users of the function. 2014-11-11 11:52:24 -06:00
wchar.h Add include/wchar.h 2014-10-27 08:28:38 -06:00