walnux/include/nuttx
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
..
analog More trailing whilespace removal 2014-04-13 14:32:20 -06:00
audio Rename kumalloc to kumm_malloc and kuzalloc to kumm_zalloc for consistency with other naming 2014-08-31 16:24:24 -06:00
binfmt Oops.. part of the last change will still in the editor 2014-11-12 18:33:07 -06:00
crypto Move crypto header files from include/crypto to include/nuttx/crypto 2014-07-03 18:35:08 -06:00
eeprom Add support for generic EEPROM access via a character driver. Add also the EEPROM driver itself. From Sebastien Lorquet 2014-11-26 13:55:34 -06:00
fs Add an interface definition and upper half driver for a discrete joystick device 2014-11-27 17:42:16 -06:00
input Some additional, minor improvements to djoystick interrupt controls 2014-11-27 20:20:10 -06:00
lcd Add driver for ST7565 that works with NHD‐C12864KGZ display. From Pierre-noel Bouteville. 2014-11-13 16:03:52 -06:00
mm MM: Minimum memory allocation must to up to 32 if sizeof pointer is 8-bytes 2014-11-02 12:11:20 -06:00
mtd Add prototype for MTD R/W buffering support 2014-09-25 09:31:03 -06:00
net Move IP header flags from tcp.h to ip.h and rename IP_FLAGS vs TCPFLAGS. The problem fixed here is that there IP flags were not available when TCP was disabled. The IP flags are used in ICMP and IGFMP 2014-11-17 17:16:46 -06:00
nx Two new fonts from Pierre-noel Bouteville 2014-11-26 14:15:34 -06:00
power LM: Don't initialize .data if running in SRAM. Global missing intialize type. SAMA5 NAND: Fix for read nand in smaller chunks 2013-12-05 10:37:55 -06:00
sensors More trailing whilespace removal 2014-04-13 14:32:20 -06:00
sercomm Move include/sercomm to include/nuttx/sercomm 2012-03-24 18:33:21 +00:00
serial Add serial method so that lower half driver can provide RX flow control information. From Jussi Kivilinna 2014-05-08 09:00:33 -06:00
spi Add support for generic EEPROM access via a character driver. Add also the EEPROM driver itself. From Sebastien Lorquet 2014-11-26 13:55:34 -06:00
syslog ARMv7: Add support to use ITM for SYSLOG debug output 2014-10-22 09:03:00 -06:00
usb Move include/nuttx/gran.h to include/nuttx/mm/gran.h 2014-09-24 06:55:26 -06:00
video Fix typo RBG -> RGB in several macros 2014-05-12 13:00:48 -06:00
wireless 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
.gitignore Mostly updates and corrections to .gitignore files 2013-04-04 15:39:50 -06:00
addrenv.h Move include/nuttx/mm.h to include/nuttx/mm/mm.h 2014-09-24 07:29:09 -06:00
arch.h Fixes to tickless operation code. From Brandon Warhurst 2014-10-23 06:41:31 -06:00
ascii.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
can.h More trailing whilespace removal 2014-04-13 14:32:20 -06:00
clock.h last change alters semantics of __HAVE_KERNEL_GLOBALS 2014-08-30 14:44:48 -06:00
compiler.h Defines inline functions as not instrumented - this is relevant for anyone using instrumentation. From Lorenz Meier. 2014-11-12 07:32:36 -06:00
configdata.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
float.h lib/math files not follow coding standard; float, double, and long double versions in separate files to reduce size of dumb link 2012-10-28 18:42:09 +00:00
i2c.h maXTouch: Check for successful memory allocation was backward 2014-07-07 09:55:39 -06:00
init.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
irq.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
kmalloc.h Move include/nuttx/mm.h to include/nuttx/mm/mm.h 2014-09-24 07:29:09 -06:00
kthread.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
lib.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
math.h Change double_t to double in rint. Add rintf and rintl while we are at it 2014-06-28 10:14:29 -06:00
mmcsd.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
mqueue.h Repartition some message queue logic: sched/mqueue should have all mqueue knowledge; fs/mqueue should deal only with inodes 2014-09-30 08:03:39 -06:00
page.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
pgalloc.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
poff.h Fix some cloned errors in SAM GPIO interrupt setup 2014-07-07 15:54:37 -06:00
progmem.h STM32 FLASH fixes: use size_t instead of uint16_t, make interface more generic. From Freddie Chopin 2014-08-28 09:11:20 -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
pwm.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
regex.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
rtc.h More trailing whilespace removal 2014-04-13 14:32:20 -06:00
rwbuffer.h Addition rwbuffer interfaces should not be enabled unless they are needed; if rwbuffer support is enabled, it should not be unconditionally enabled in SMART and FTL 2014-07-11 16:19:17 -06:00
sched.h Complete re-implementation of mq_close 2014-09-29 15:33:34 -06:00
scsi.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
sdio.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
semaphore.h Complete re-implementation of mq_close 2014-09-29 15:33:34 -06:00
spawn.h Add internal API task_reparent(), used in posix_spawn(). Move libc/spawn/lib_ps.c to sched/task_posixspawn.c; Move libc/spawn/spawn.h to include/nuttx/spawn.h 2013-01-18 01:52:42 +00:00
stdarg.h Add a generic GCC stdarg.h header file 2012-07-08 14:50:43 +00:00
streams.h Implement setlogmask(); move some syslog logic from libc/syslog to fs/syslog 2014-10-08 19:08:26 -06:00
time.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
timer.h Timer driver updates from Bob Doiron 2014-05-05 14:40:19 -06:00
tree.h Fix error in tree.h 2014-06-02 13:44:44 -06:00
userspace.h Rename CONFIG_SCHED_USRWORK to CONFIG_LIB_USRWORK 2014-10-11 15:59:40 -06:00
vt100.h Add ANSI/VT100 color codes 2014-11-10 15:10:57 -06:00
watchdog.h SAMA5 T/C: Can now handle non-constant BOARD_MCK_FREQUENCY. Also now supports methods to attach user interrupt handlers 2014-08-09 10:30:45 -06:00
wdog.h Add support for statically allocated watchdog timer structures 2014-08-22 08:46:34 -06:00
wqueue.h Add description of work queues to the porting guide. Update comments 2014-10-14 10:21:18 -06:00