Commit Graph

263 Commits

Author SHA1 Message Date
Gregory Nutt
3e9ba72441 net/sixlowpan: Fix typo uint16->uint16_t. Also picks up some cosmetic USB host changes. 2018-07-01 10:05:15 -06:00
Dmitriy Linikov
a8c58607e9 Merged in hardlulz/modem-3.0-nuttx/fix-sem-EINTR (pull request #603)
Added ECANCELED condition to DEBUGASSERT-s checking sem_wait result

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-02-20 18:24:53 +00:00
Gregory Nutt
7cf88d7dbd Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
Gregory Nutt
50ca32e254 Squashed commit of the following:
sched/:  Convert legitimate uses of task_create() to nxtask_create().  Review handling of returned values from all uses of kthread_create() (as well as nxtask_create()).
    graphics/:  Review return values for all calls to kthread_start() because it no longer returns an errno.
    drivers/:  threads started by drivers should be kernel threads, not user tasks.  Review return values for all calls to kthread_start() because it no longer returns an errno.
    configs/:  threads started by board bringup logic should be kernel threads, not user tasksi (part 2 of 2).
    sched/task:  Add nxtask_create().  Kthread_create() and nxtask_create() are internal OS functions and should not modify the errno variable.  configs/:  threads started by board bringup logic should be kernel threads, not user tasks.
2018-01-31 16:11:54 -06:00
Gregory Nutt
ac40630452 wireless/ieee802154: Fix a warning found in build testing. Mouse input: Cosmetic changes while reviewing logic. 2017-11-03 09:21:19 -06:00
Gregory Nutt
5b385f4d4d kthread_create(): Rename kernel_thread() to kthread_create() for better naming consistency with task_create() and kthread_delete(). 2017-10-16 11:38:00 -06:00
Gregory Nutt
9e25d89223 Squashed commit of the following:
Replace all usage kill() in the OS proper with nxsig_kill().

    sched/signal:  Add nxsig_kill() which is functionally equivalent to kill() except that it does not modify the errno variable.
2017-10-07 08:22:18 -06:00
Gregory Nutt
936df1bcb5 Adds new OS internal functions nxsig_sleep() and nxsig_usleep. These differ from the standard sleep() and usleep() in that (1) they don't cause cancellation points, and (2) don't set the errno variable (if applicable). All calls to sleep() and usleep() changed to calls to nxsig_sleep() and nxsig_usleep().
Squashed commit of the following:

    Change all calls to usleep() in the OS proper to calls to nxsig_usleep()

    sched/signal:  Add a new OS internal function nxsig_usleep() that is functionally equivalent to usleep() but does not cause a cancellaption point and does not modify the errno variable.

    sched/signal:  Add a new OS internal function nxsig_sleep() that is functionally equivalent to sleep() but does not cause a cancellaption point.
2017-10-06 10:15:01 -06:00
Gregory Nutt
9568600ab1 Squashed commit of the following:
This commit backs out most of commit b4747286b1.  That change was added because sem_wait() would sometimes cause cancellation points inappropriated.  But with these recent changes, nxsem_wait() is used instead and it is not a cancellation point.

    In the OS, all calls to sem_wait() changed to nxsem_wait().  nxsem_wait() does not return errors via errno so each place where nxsem_wait() is now called must not examine the errno variable.

    In all OS functions (not libraries), change sem_wait() to nxsem_wait().  This will prevent the OS from creating bogus cancellation points and from modifying the per-task errno variable.

    sched/semaphore:  Add the function nxsem_wait().  This is a new internal OS interface.  It is functionally equivalent to sem_wait() except that (1) it is not a cancellation point, and (2) it does not set the per-thread errno value on return.
2017-10-04 15:22:27 -06:00
Gregory Nutt
42a0796615 Squashed commit of the following:
sched/semaphore:  Add nxsem_post() which is identical to sem_post() except that it never modifies the errno variable.  Changed all references to sem_post in the OS to nxsem_post().

    sched/semaphore:  Add nxsem_destroy() which is identical to sem_destroy() except that it never modifies the errno variable.  Changed all references to sem_destroy() in the OS to nxsem_destroy().

    libc/semaphore and sched/semaphore:  Add nxsem_getprotocol() and nxsem_setprotocola which are identical to sem_getprotocol() and set_setprotocol() except that they never modifies the errno variable.  Changed all references to sem_setprotocol in the OS to nxsem_setprotocol().  sem_getprotocol() was not used in the OS
2017-10-03 15:35:24 -06:00
Gregory Nutt
83cdb0c552 Squashed commit of the following:
libc/semaphore:  Add nxsem_getvalue() which is identical to sem_getvalue() except that it never modifies the errno variable.  Changed all references to sem_getvalue in the OS to nxsem_getvalue().

    sched/semaphore:  Rename all internal private functions from sem_xyz to nxsem_xyz.  The sem_ prefix is (will be) reserved only for the application semaphore interfaces.

    libc/semaphore:  Add nxsem_init() which is identical to sem_init() except that it never modifies the errno variable.  Changed all references to sem_init in the OS to nxsem_init().

    sched/semaphore:  Rename sem_tickwait() to nxsem_tickwait() so that it is clear this is an internal OS function.

    sched/semaphoate:  Rename sem_reset() to nxsem_reset() so that it is clear this is an internal OS function.
2017-10-03 12:52:31 -06:00
Oleg Evseev
31bde601b6 Kconfig correction
edited online with Bitbucket
2017-06-16 14:43:11 +00:00
Gregory Nutt
0de294a586 Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
Gregory Nutt
175f8960cf Cosmetic changes from review of last PR 2017-03-18 06:47:34 -06:00
Brian Webb
0a95536b85 Adds driver support for the XBox One controller. Currently only the latest version (XBox One X) controller works. The older XBox One controllers do not enumerate correctly. 2017-03-17 20:48:21 -07:00
Janne Rosberg
ce2845c5c3 usbhost_cdcacm: fix tx outbuffer overflow and remove now invalid assert 2017-03-07 06:59:00 -06:00
Janne Rosberg
8442bf66b9 usbhost_cdcacm: add CDC_SUBCLASS_ACM and CDC_PROTO_ATM to supported class and proto 2016-11-30 12:20:23 -06:00
Janne Rosberg
4b282f219a usbhost_composite: fix end offset in usbhost_copyinterface() 2016-11-30 12:18:23 -06:00
Gregory Nutt
b0dffdc2ca Fix a number of header files with mismatched 'extern C {' and '}' 2016-11-05 07:25:05 -06:00
Gregory Nutt
4fcbe8e410 drivers: Disable priority inheritance on all semaphores used for signaling 2016-11-03 11:00:47 -06:00
Janne Rosberg
847d2b4218 usbhost/composite: fix compile; missing semicolons 2016-10-18 11:52:23 -06:00
Janne Rosberg
72f13db4bf usbhost/enumerate: fix possible buffer overwrite 2016-10-18 08:15:19 -06:00
Gregory Nutt
7f6a403b96 USB host composite is at least partially functional. No longer depends on CONFIG_EXPERIMENTAL 2016-09-02 07:26:29 -06:00
Gregory Nutt
e958c32e4d USB host composite: Using wrong interface number from interface descriptor. 2016-08-31 13:29:38 -06:00
Gregory Nutt
ebe829c4b9 USB host composite: A test should be <= not just < 2016-08-31 13:24:38 -06:00
Gregory Nutt
7ea9632592 Change the way that contactless IOCTL commands are defined. All IOCTL commands must be unique. 2016-08-31 11:30:22 -06:00
Gregory Nutt
7b75a32ca1 Improve some comments 2016-08-31 08:16:12 -06:00
Gregory Nutt
cb7c1c1f14 USB host composite: Add an option to permit support only a subset of the composite intefaces. 2016-08-31 07:56:27 -06:00
Gregory Nutt
aa0d1868f5 USB host composite: Fix places where the wrong pointer was used; Add a test for an error condition. 2016-08-30 13:58:01 -06:00
Gregory Nutt
ac623abc7d USB host composite: Reosolves last remaining REVISIT design issues. Compiles clean with no errors and warning and is fully ready for testing. 2016-08-30 10:52:41 -06:00
Gregory Nutt
ee83e49f75 Update a comment 2016-08-29 15:43:11 -06:00
Gregory Nutt
1ce4db8008 USB host composite: Save some information that will be needed to create a class-specific configuration. 2016-08-29 15:02:15 -06:00
Gregory Nutt
f4f807100b Update comment 2016-08-29 14:55:03 -06:00
Alpo Leinonen
7d5173ca09 USB host composite: Several syntactic errors fixed 2016-08-29 07:53:57 -06:00
Gregory Nutt
43abb7cb3a Mark USB host compsite feature EXPERMENTAL; update ChangeLog 2016-08-28 14:51:55 -06:00
Gregory Nutt
31c364457a CLASS_CONNECT needs to be called for each member of the composite. 2016-08-28 08:48:40 -06:00
Gregory Nutt
58b45d64d7 Fix composite connect method. 2016-08-28 08:33:38 -06:00
Gregory Nutt
5d4428be93 Add check of class ID in device scriptor header 2016-08-27 10:53:43 -06:00
Gregory Nutt
c973e0d3ba Add the logic necessary to abstract the register lookup information for each candiate class 2016-08-27 10:31:18 -06:00
Gregory Nutt
2460d41ae0 Add more logic to the USB host composite wrapper. 2016-08-26 17:03:16 -06:00
Gregory Nutt
0860621e60 Fill one more case of 'Missing logic' in the USB host composite wrapper. 2016-08-26 12:34:58 -06:00
Gregory Nutt
3c0b287fe9 Fill in a little of the 'Missing logic' in the USB host composite wrapper. 2016-08-26 12:24:35 -06:00
Gregory Nutt
ea8ce7acb6 Trivial rename 2016-08-26 11:05:50 -06:00
Gregory Nutt
a228b0cc36 Add a little more meat to the still very USB host composite skeleton. Not quite so boney now. 2016-08-26 10:33:41 -06:00
Gregory Nutt
fa4e9e3c1c Add a little more meat to the still very bony USB host composite skeleton. 2016-08-26 10:13:35 -06:00
Gregory Nutt
579e338cd3 Add a little more meat to the USB host composite skeleton. Still pretty bony. 2016-08-26 09:47:38 -06:00
Gregory Nutt
8a1d6c9ed8 Basic framework that might be used to add USB host support 2016-08-26 09:07:52 -06:00
Gregory Nutt
a897fd4ccf Eliminate use of apps/system/usbmonitor. Use drivers/usbmonitor instead. 2016-06-30 13:09:22 -06:00
Gregory Nutt
2a751068e6 Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err(). 2016-06-20 12:44:38 -06:00
Gregory Nutt
43eb04bb8f Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info(). 2016-06-20 11:59:15 -06:00