Commit Graph

5365 Commits

Author SHA1 Message Date
patacongo
b48009644f Rename _TCB to struct tcb_s
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5610 42af7a65-404d-4744-a932-0658087f49c3
2013-02-04 18:46:28 +00:00
patacongo
5475d02446 Move list of open message queues to task group. Now message queues opened by members of the group will be closed when the last member of the group exits.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5609 42af7a65-404d-4744-a932-0658087f49c3
2013-02-04 16:55:38 +00:00
patacongo
ce722fd1e3 Move waitpid() data structures to task group; The caller of waitpid() is now only awakened when the final thread of the task group exits
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5608 42af7a65-404d-4744-a932-0658087f49c3
2013-02-04 16:02:20 +00:00
patacongo
b1bf234bf3 Move atexit/on_exit data structures to task group; Now callbacks only occur when the final member of the task group exits
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5607 42af7a65-404d-4744-a932-0658087f49c3
2013-02-04 15:29:19 +00:00
patacongo
ad2cddb6e2 Updated LPC78x GPIO logic from Rommel Marcelo
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5606 42af7a65-404d-4744-a932-0658087f49c3
2013-02-03 19:22:48 +00:00
patacongo
2c81ddf0d3 Make the names of the execsem consistent; Need defaults for some CONFIG_ settings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5605 42af7a65-404d-4744-a932-0658087f49c3
2013-02-03 18:36:46 +00:00
patacongo
e0e0006bc9 Set stdio buffer sizes to 0 or 64. No need for 256 or 1024 stdio buffers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5604 42af7a65-404d-4744-a932-0658087f49c3
2013-02-03 17:47:03 +00:00
patacongo
d0003c1a00 Now that join info is in the task group, need to free when task group exits. Used to be stranded
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5603 42af7a65-404d-4744-a932-0658087f49c3
2013-02-03 17:39:54 +00:00
patacongo
46bb05696e Move pthread join and key creation data into the task group
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5602 42af7a65-404d-4744-a932-0658087f49c3
2013-02-03 16:43:58 +00:00
patacongo
30a0cdf33e Correct a memory leak in NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5600 42af7a65-404d-4744-a932-0658087f49c3
2013-02-02 23:56:54 +00:00
patacongo
329328e5df New interface task_spawn(); exec_builtin() now uses task_spawn(); All argv types should be char * const * not const char **
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5598 42af7a65-404d-4744-a932-0658087f49c3
2013-02-02 19:31:30 +00:00
patacongo
cf411bec51 A spurious checkin... I just want to improve some code structure
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5597 42af7a65-404d-4744-a932-0658087f49c3
2013-02-02 01:50:34 +00:00
patacongo
11aa231cf0 drivers/serial.c: Fix some race conditions. Some bad things code happen if we lost a USB connection at certain times.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5596 42af7a65-404d-4744-a932-0658087f49c3
2013-02-02 00:29:55 +00:00
patacongo
9a05ccdbbc Last minute 6.25 change
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5595 42af7a65-404d-4744-a932-0658087f49c3
2013-02-01 22:51:34 +00:00
patacongo
d51e81d34f Prep for 6.25 release
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5594 42af7a65-404d-4744-a932-0658087f49c3
2013-02-01 22:37:52 +00:00
patacongo
4587760eee Additional patches from Petteri Aimonen for FAT, STM32 SPI, and AT25
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5593 42af7a65-404d-4744-a932-0658087f49c3
2013-02-01 15:32:39 +00:00
patacongo
a3df67ef8a NxWidgets updates from Petteri Aimonen; buildroot GDB build fix from Ken Bannister
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5592 42af7a65-404d-4744-a932-0658087f49c3
2013-02-01 14:53:38 +00:00
patacongo
1b94639432 Misc clean; mark assertions as non-returning; allow toolchain prefix to be overriden from make command line
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5591 42af7a65-404d-4744-a932-0658087f49c3
2013-01-31 23:29:34 +00:00
patacongo
bca9260b06 Missing calls to class SUSPEND/RESUME methods in all USB drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5590 42af7a65-404d-4744-a932-0658087f49c3
2013-01-31 19:20:26 +00:00
patacongo
cdbbfaa464 Fix readline return value; Add support for removable serial devices
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5589 42af7a65-404d-4744-a932-0658087f49c3
2013-01-31 16:52:20 +00:00
patacongo
d512869b62 With the last fixes to the STM32 OTG FS driver, the old poll hack no longer seems necessary
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5588 42af7a65-404d-4744-a932-0658087f49c3
2013-01-30 23:22:51 +00:00
patacongo
097f0e372e The STM32 F2/4 OTG FS device driver seems to be functional
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5587 42af7a65-404d-4744-a932-0658087f49c3
2013-01-30 22:25:25 +00:00
patacongo
7f13b6edaf LM4F update from JP
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5586 42af7a65-404d-4744-a932-0658087f49c3
2013-01-30 18:48:13 +00:00
patacongo
51b20403c6 Add LM3S/4F family definitions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5585 42af7a65-404d-4744-a932-0658087f49c3
2013-01-30 16:44:26 +00:00
patacongo
ff98a2b830 Remove the g_iocon[] arrary
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5584 42af7a65-404d-4744-a932-0658087f49c3
2013-01-30 14:42:10 +00:00
patacongo
66ecae2f65 LPC1788 updated from Rommel Marcelo
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5583 42af7a65-404d-4744-a932-0658087f49c3
2013-01-30 13:24:45 +00:00
patacongo
54124ecc49 The USB monitor now works with configs/stm32f4discovery/usbnsh
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5581 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 18:32:04 +00:00
patacongo
10a3ef0995 The USB monitor now works with the stm32f4discover/nsh configuration (but not with the usbnsh configuration)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5580 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 17:42:58 +00:00
patacongo
9b5d4a7b46 USB monitor daemon updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5579 42af7a65-404d-4744-a932-0658087f49c3
2013-01-29 13:30:10 +00:00
patacongo
ad430fc198 Add syslog.h; rename lib_rawprintf() to syslog()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5578 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 21:55:16 +00:00
patacongo
6d6ca37571 Beginning of apps/system/usbmonitor (incomplete); more LM4F changes from JP
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5577 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 18:45:09 +00:00
patacongo
328b6d41a0 Misc SYSLOG and STM32 serial fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5576 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 17:43:55 +00:00
patacongo
40717da192 Serial driver needed even when no console; Fix user LED settings in all STM32 configurations
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5575 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 15:03:17 +00:00
patacongo
a502d50e1e Updates for stm32f4discovery/usbnsh configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5574 42af7a65-404d-4744-a932-0658087f49c3
2013-01-28 01:44:45 +00:00
patacongo
86788384d0 configs/stm32f4discovery/nsh converted to use kconfig-frontends
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5573 42af7a65-404d-4744-a932-0658087f49c3
2013-01-27 20:05:29 +00:00
patacongo
68b11dc1ee Add configs/stm32f4discovery/usbnsh
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5572 42af7a65-404d-4744-a932-0658087f49c3
2013-01-27 19:17:56 +00:00
patacongo
151dfee1f9 Add a start hook that can be setup to call a function in the context of a new thread before the new threads main() has been called.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5571 42af7a65-404d-4744-a932-0658087f49c3
2013-01-27 15:52:58 +00:00
patacongo
4c3b71131e Move socket data from TCB to task group structure.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5570 42af7a65-404d-4744-a932-0658087f49c3
2013-01-26 23:49:02 +00:00
patacongo
a71843ef91 Move stream data from TCB to task group structure.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5569 42af7a65-404d-4744-a932-0658087f49c3
2013-01-26 22:25:21 +00:00
patacongo
d5582f35af Fix a recently introduced memory leak
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5568 42af7a65-404d-4744-a932-0658087f49c3
2013-01-26 21:01:19 +00:00
patacongo
ff293217de Move file data from TCB to task group
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5567 42af7a65-404d-4744-a932-0658087f49c3
2013-01-26 20:17:29 +00:00
patacongo
fc8136d5d3 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.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5566 42af7a65-404d-4744-a932-0658087f49c3
2013-01-26 17:28:20 +00:00
patacongo
0cefbf4762 Move environment variables in the task group structure
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5565 42af7a65-404d-4744-a932-0658087f49c3
2013-01-25 23:21:27 +00:00
patacongo
c9752dfb87 Add logic to send SIGCHLD to all members of a task group
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5564 42af7a65-404d-4744-a932-0658087f49c3
2013-01-25 20:00:37 +00:00
patacongo
a35fcc5970 Add logic to keep track of members of a task group
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5563 42af7a65-404d-4744-a932-0658087f49c3
2013-01-25 19:15:05 +00:00
patacongo
03fd50017d Add framework to support task groups
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
2013-01-25 17:23:38 +00:00
patacongo
99603c9a02 Fix some compilation errors when child status disabled; new waitpid logic not encoding/decoding status properly
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5561 42af7a65-404d-4744-a932-0658087f49c3
2013-01-25 00:01:08 +00:00
patacongo
caf5fdf217 Fix some missing logic and inconsistencies in child status logic; Fix a bug introduced into sigaction()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5560 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 23:18:32 +00:00
patacongo
a59665cddc Fix poll/select issue reported by Qiang
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5559 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 19:19:38 +00:00
patacongo
eebf74006e Add psock_poll(); Fix some warnings reported by Lorenz Meier; lm4f logic from JP
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5558 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 18:41:46 +00:00