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
b231379b3c
Merge remote-tracking branch 'origin/master' into ieee802154
2017-03-29 14:29:38 -06:00
Gregory Nutt
a6148cdb7c
6loWPAN: Adding more socket send-related logic.
2017-03-29 14:28:51 -06:00
Anthony Merlino
240a871af1
Merged in merlin17/nuttx/ieee802154 (pull request #306 )
...
configs/clicker2-stm32: Adds logic to create an 802.15.4 MAC and register a character driver
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-29 18:16:45 +00:00
Anthony Merlino
e7863aed73
configs/clicker2-stm32: Adds logic to create an 802.15.4 MAC and register a character driver
2017-03-29 14:09:27 -04:00
Gregory Nutt
68f2709078
Review from last PR
2017-03-29 11:03:10 -06:00
Gregory Nutt
3a4e8a5946
Merge remote-tracking branch 'origin/master' into ieee802154
2017-03-29 10:57:04 -06:00
Anthony Merlino
8befaa16ac
Merged in merlin17/nuttx/ieee802154 (pull request #305 )
...
wireless/ieee802154: Adds MAC character driver structure. Nonfunctional
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-29 16:55:50 +00:00
Anthony Merlino
8df78cc74b
wireless/ieee802154: Adds MAC character driver structure. Nonfunctional
2017-03-29 12:51:01 -04:00
Anthony Merlino
4836534894
Merged in merlin17/nuttx/ieee802154 (pull request #304 )
...
wireless/ieee802154: Removes ieee802154.h and makes other minor changes
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-29 16:48:16 +00:00
Anthony Merlino
8f67ec30a7
wireless/ieee802154: Removes ieee802154.h and makes other minor changes
2017-03-29 12:39:52 -04: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
e10e04728f
Merged in merlin17/nuttx/ieee802154 (pull request #303 )
...
wireless/ieee802154: Removes unnecessary define
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-28 21:40:33 +00:00
Anthony Merlino
3809f2cc97
wireless/ieee802154: Removes unnecessary define
2017-03-28 17:20:24 -04:00
Gregory Nutt
4472ed246a
Merge remote-tracking branch 'origin/master' into ieee802154
2017-03-28 15:12:19 -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
f6eea87c1e
Merged in merlin17/nuttx/ieee (pull request #301 )
...
wireless/ieee802154: Removes wireless path prefix from VPATH, DEPPATH
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-28 21:09:31 +00:00
Anthony Merlino
abab1e68a8
configs/clicker2-stm32: Fixes minor SPI configuration issues
2017-03-28 17:06:34 -04:00
Gregory Nutt
0fec3f9541
Merge remote-tracking branch 'origin/master' into ieee802154
2017-03-28 15:02:54 -06:00
Anthony Merlino
e360492f0c
wireless/ieee802154: Removes wireless path prefix from VPATH, DEPPATH
2017-03-28 16:58:18 -04:00
Gregory Nutt
95f7d4dca7
There should not be paths on C file names in wireless/ieee802154/Make.defs
2017-03-28 14:33:45 -06:00
Gregory Nutt
4c6e4b2344
Remove some garbage from wireless/Makefile
2017-03-28 14:30:46 -06: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