Commit Graph

28901 Commits

Author SHA1 Message Date
Gregory Nutt 755b05ff30 TCP/IPv6: Fix a compile issue when IPv6, but not IPv4 is enabled. 2017-03-31 10:45:39 -06:00
Jussi Kivilinna 41912ed98c STM32F7: add support for LSE RTC and enable RTC subseconds 2017-03-31 10:13:40 -06:00
Gregory Nutt 44f1326046 6loWPAN: Repartition device-specific vs. global data -- again. 2017-03-31 10:04:29 -06:00
Jussi Kivilinna cd3c9634c8 Add user-space networking stack API (usrsock)
User-space networking stack API allows user-space daemon to
provide TCP/IP stack implementation for NuttX network.

Main use for this is to allow use and seamless integration of
HW-provided TCP/IP stacks to NuttX.

For example, user-space daemon can translate /dev/usrsock
API requests to HW TCP/IP API requests while rest of the
user-space can access standard socket API, with socket
descriptors that can be used with NuttX system calls.
2017-03-31 08:58:14 -06:00
Gregory Nutt c999519bf2 6loWPAN: A little more IOB-related logic. 2017-03-31 08:27:39 -06:00
Gregory Nutt 0427d6c726 6loWPAN: Replace frame buffer with a list of IOBs. 2017-03-31 07:54:58 -06:00
Juha Niskanen 9d13a2463f drivers/usbmisc: Add driver for Fairchild FUSB301 USB type-C controller.
From Harri Luhtala <harri.luhtala@haltian.com>. Tested with earlier
version of NuttX; with current version checked that it compiles.
2017-03-31 06:35:36 -06:00
Jussi Kivilinna 5e8ed2dd4e crypto/random_pool: fix typo in debug print, change 'crypinfo' to 'cryptinfo' 2017-03-31 06:00:32 -06:00
Juha Niskanen b5b148fef8 drivers/sensors: Add driver for ST LPS25H pressure sensor 2017-03-31 05:53:43 -06:00
Gregory Nutt 916bd8a48f HTS221 driver: Modify to use new interrupt parameter passing hooks. 2017-03-31 05:31:35 -06:00
Gregory Nutt c5d55c62f4 6loWPAN: Pre-format frames in an IOB change before sending. 2017-03-30 20:13:59 -06:00
Gregory Nutt 1a12682f23 6loWPAN: Fix some MTU-related craziness. 2017-03-30 17:18:18 -06:00
Gregory Nutt 9aabb44118 6loWPAN: Add some comments, move a function 2017-03-30 16:30:04 -06:00
Gregory Nutt 2aca4d4ebd 6loWPAN: Add a little more send logic. 2017-03-30 15:38:56 -06:00
Gregory Nutt c3289afa9c Fix error in last update to a README 2017-03-30 12:29:19 -06:00
Gregory Nutt 7b789f57ac Review of previous commit 2017-03-30 12:28:40 -06:00
Juha Niskanen 9e2b3da3e8 drivers/sensors: Add driver for ST HTS221 humidity sensor 2017-03-30 12:17:23 -06:00
Konstantin Berezenko 332c747bca Merged in K-man23/nuttx/tickless (pull request #307)
Change STM32 tickless to use only one timer

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-30 18:11:40 +00:00
Konstantin Berezenko 95cbbf552b Change STM32 tickless to use only one timer 2017-03-30 10:40:05 -07:00
Gregory Nutt 0ded0f5866 Update README and comments 2017-03-30 08:43:07 -06:00
Jussi Kivilinna dffb8a67e3 Add entropy pool and strong random number generator
Entropy pool gathers environmental noise from device drivers, user-space, etc., and returns good random numbers, suitable for cryptographic use. Based on entropy pool design from *BSDs and uses BLAKE2Xs algorithm for CSPRNG output.

Patch also adds /dev/urandom support for using entropy pool RNG and new 'getrandom' system call for getting randomness without file-descriptor usage (thus avoiding file-descriptor exhaustion attacks). The 'getrandom' interface is similar as 'getentropy' and 'getrandom' available on OpenBSD and Linux respectively.
2017-03-30 07:38:37 -06:00
Juha Niskanen 21545ab643 net/local: connect: Fix warning with gcc-arm-none-eabi-5-2016q1. Using compiler from gcc-arm-none-eabi-5-2016q1 toolchain:
gcc version 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589] (GNU Tools for ARM Embedded Processors)

gives error:

  local/local_connect.c:188:7: error: '_local_semtake' is static but used in inline function 'local_stream_connect' which is not static [-Werror]

this is due to compiler enforcing ISO/IEC 9899:1999 6.7.4.3:  "An inline definition of a function with external linkage shall not contain a definition of a modifiable object with static storage duration, and shall not contain a reference to an identifier with internal linkage."

Fix by making inlined caller to have internal linkage as well.
2017-03-30 06:54:59 -06:00
Gregory Nutt 2e48af78e7 6loWPAN: Repartition some logic 2017-03-29 18:07:52 -06:00
Gregory Nutt c8cb2009c8 6loWPAN: Forget to add a file before last commit. 2017-03-29 17:32:12 -06:00
Gregory Nutt 8083a0437e 6loWPAN: Add beginning of some compression hooks to send logic. 2017-03-29 15:44:24 -06:00
Gregory Nutt a6148cdb7c 6loWPAN: Adding more socket send-related logic. 2017-03-29 14:28:51 -06:00
Gregory Nutt 5fb222180c 6loWPAN: IEEE802.15.4 MAC driver will need a special form of the network device structure to manage fragmentation of the large packet into frames. 2017-03-29 10:17:34 -06:00
Gregory Nutt eb344d7260 Fix an assertion noted by Jussi Kivilinna.
This was a consequence of the recent robust mutex changes.  If robust mutexes are selected, then each mutex that a thread takes is retained in a list in threads TCB.  If the thread exits and that list is not empty, then we know that the thread exitted while holding mutexes.  And, in that case, each will be marked as inconsistent and the any waiter for the thread is awakened.

For the case of pthread_mutex_trywait(), the mutex was not being added to the list!  while not usually a fatal error, this was caught by an assertion when pthread_mutex_unlock() was called:  It tried to remove the mutex from the TCB list and it was not there when, of course, it shoule be.

The fix was to add pthread_mutex_trytake() which does sem_trywait() and if successful, does correctly add the mutext to the TCB list.  This should eliminated the assertion.
2017-03-29 07:50:40 -06:00
Sebastien Lorquet 28e74ec058 Nucleo L476RG: More naming fixes. 2017-03-29 07:16:27 -06:00
Juha Niskanen 5577f58458 STM32 RNG: Fix semaphore initial value and disable priority inheritance 2017-03-29 07:12:19 -06:00
Juha Niskanen 9f3b24a4a1 STM32 F7: add stm32 RNG support. This is copied from stm32l4. Tested on STM32F746ZG board. 2017-03-29 07:08:10 -06:00
Gregory Nutt ae5b5ae431 Add Rime address macros 2017-03-28 17:26:53 -06:00
Gregory Nutt c3c8f8ed31 6loWPAN: Simplify some logic in send() if there is only an IEEE802.15.4 MAC 2017-03-28 16:14:58 -06:00
Anthony Merlino abe7753e32 Merged in merlin17/nuttx (pull request #302)
configs/clicker2-stm32: Fixes minor SPI configuration issues

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-28 21:10:10 +00:00
Anthony Merlino abab1e68a8 configs/clicker2-stm32: Fixes minor SPI configuration issues 2017-03-28 17:06:34 -04:00
Gregory Nutt 64933246c3 6loWPAN: Tie 6loWPAN send into common socket send logic. 2017-03-28 14:08:54 -06:00
Gregory Nutt 75a8ad636c 6loWPAN: Framework to support commpress/uncompress operations. 2017-03-28 12:23:19 -06:00
Gregory Nutt 25496936cc 6loWPAN: Add dummy files to handle 6loWPAN formmatted input and output packets. 2017-03-28 11:35:46 -06:00
Gregory Nutt d9e32ee337 6loWPAN: More configurtion settings. 2017-03-28 11:16:28 -06:00
Gregory Nutt f32fe172d4 6loWPAN: Add HC06 initialization 2017-03-28 10:47:25 -06:00
Gregory Nutt 898b769910 6loWPAN: Add framework for initialization; move globals into a separate file. 2017-03-28 09:32:52 -06:00
Jussi Kivilinna 1879f5127b Fix PTHREAD_MUTEX_INITIALIZER which was not updated with last mutex changes. 2017-03-28 09:07:32 -06:00
Gregory Nutt 913daa908a 6loWPAN: Add some more configuration settings that will be needed. 2017-03-28 09:00:25 -06:00
Sebastien Lorquet db8b38f848 STM32 L4: More SPI clean-up. Lower case replacements. 2017-03-28 08:58:43 -06:00
Sebastien Lorquet 45a0af8c03 STM32 L4: More SPI clean-up. Lower case replacements. 2017-03-28 08:52:49 -06:00
Sebastien Lorquet 9221e15811 STM32 L4: Fix some bad naming in the SPI driver. 2017-03-28 07:28:55 -06:00
Gregory Nutt 0064dc52e5 realloc(): When realloc() has to fall back to calling malloc(), size including overhead was being provided to malloc(), causing a slightly larger allocation than needed. Noted by initialkjc@yahoo.com 2017-03-28 07:23:46 -06:00
Martin Lederhilger 91f96b6ecb drivers/analog: Add driver for the LTC1767L ADC. 2017-03-28 06:34:37 -06:00
Gregory Nutt 65e95b95f2 Add a little more 6loWPAN logic 2017-03-27 18:15:20 -06:00
Gregory Nutt dab2fb2eb3 Add a comment 2017-03-27 16:19:46 -06:00