1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

889 Commits

Author SHA1 Message Date
Dylan Laduranty
a64613e9b9 pkg/wolfssl: prevent name-colliding struct for AES 2019-09-26 11:06:00 +02:00
Martine Lenders
4c88cb5f0e lwip: sys_arch: replace sched_switch() with thread_yield_higher()
`sched_switch()` is supposed to be used in core only.

This fixes #6756.
2019-09-24 16:33:11 +02:00
Hauke Petersen
cf8f3125fc make/pkg: allow to set SOURCE_LOCAL per pkg 2019-09-23 11:44:17 +02:00
benpicco
f02095102f
Merge pull request #12031 from jcarrano/tlsf-malloc-fix-override
pkg/tlsf: Fix the way system functions are overriden.
2019-09-17 23:12:36 +02:00
Juan Carrano
cc907fa54e pkg/tlsf: Fix the way system functions are overriden.
The correct way to overrride the malloc family of functions in newlib-nano is
to provide the *_r (reentrant) variants. Newlib implements the "normal"
functions on top of these (see the newlib source code). Also, internally it calls
the *_r functions when allocating buffers.

If only the "normal" non-reentrant functions are provided this will mean that
some of the code will still use the vanilla newlib allocator. Furthermore, if
one uses the whole heap as a pool for TLSF then the system may in the best case
crash as there is no enough memory for its internall allocations or in the worst
case function eratically (this depends on how the heap reserved, there is an
upcomming series of commits in that direction).

This commit splits the handling between newlib and native. It also prepares the
ground for future work on the pool initialization.

Right now I could only test this in ARM and native and I cannot ensure it will
work on other platforms. Replacing the system's memory allocator is not something
that can be taken lightly and will inevitably require diving into the depths of
the libc. Therefore I would say that using TLSF as a system wide allocator is ATM
supported officially only on those plaftorms.

Testing:

Aside from reading the newlib sources, you can see the issue in a live system
using the debugger.

Compile any example (with or without tlsf-malloc), grab a debugger and place
a breakpoint in sbrk and _sbrk_r. Doing a backtrace will reveal it gets called
by _malloc_r.
2019-09-17 21:18:50 +02:00
ab8cdace12
Merge pull request #11996 from fjmolinas/pr_libcose_crypto_up
pkg/libcose: update crypto support
2019-09-13 10:10:49 +02:00
Martine Lenders
033f2865a9
Merge pull request #11936 from pokgak/tinydtls-add-docs
pkg/tinydtls: documents usage and configuration options
2019-09-12 17:16:34 +02:00
Aiman Ismail
b29d56781f pkg/tinydtls: add usage and compile configs docs 2019-09-12 16:53:08 +03:00
Aiman Ismail
5e195e82ca wolfssl: move to 'net' doxygen group 2019-09-12 14:55:52 +03:00
MichelRottleuthner
3d0e3b0117
Merge pull request #10308 from danielinux/master
wolfSSL pkg addition with examples
2019-09-11 09:12:57 +02:00
Daniele Lacamera
8bb1ee1cd5 wolfSSL pkg: new set of examples and tests 2019-09-11 08:12:50 +02:00
Juan I Carrano
56c7197734
Merge pull request #12184 from benpicco/oonf-fix_tests
pkg/oonf_api: fix generated test Makefiles
2019-09-10 18:06:33 +02:00
Marian Buschsieweke
b87ab96d17
Merge pull request #10661 from miri64/gnrc_netif_hdr/enh/netif_setter
gnrc_netif_hdr: add setter for netif
2019-09-10 16:14:28 +02:00
Benjamin Valentin
07099d99d8 pkg/oonf_api: deprecate package
- oonf_api has not been updated in 6 years, it's stil at 0.3.0
   from 2013.
 - tests were never integrated into CI
 - With NHDP the only upstream user of the package is deprecated.
 - Downstream users would rather prefer a less vintage version of the libraray.
2019-09-10 15:51:43 +02:00
3059e03c7c
Merge pull request #11620 from cladmi/pr/softdevice/ensure_memory_value
pkg/nordic_softdevice_ble: reset memory in the .hex file
2019-09-10 14:38:33 +02:00
benpicco
4e4414da61
Merge pull request #12155 from jcarrano/oonf-mri-combine-archives
pkg/oonf_api: Use MRI script to combine archives.
2019-09-09 19:48:43 +02:00
kaleb-himes
b3f32f83bb wolfSSL pkg with examples 2019-09-09 18:48:53 +02:00
Benjamin Valentin
f5920a1884 pkg/oonf_api: fix generated test Makefiles 2019-09-09 18:24:01 +02:00
benpicco
cf56f6a942
Merge pull request #12172 from bergzand/pr/pkg/cifra
Cifra: initial import of package
2019-09-07 16:37:29 +02:00
Hauke Petersen
7f4f323d78 pkg/nimble/scanlist: save and print adv pkt type 2019-09-05 17:04:32 +02:00
Hauke Petersen
825710e489 pkb/nimble/scanner: pass adv pkt type to callback 2019-09-05 17:04:21 +02:00
Francisco Molina
1357f46c47 pkg/semtech-loramac: add uplink_counter get/set functions 2019-09-05 16:01:32 +02:00
4100a1ee80
Cifra: Initial import of package 2019-09-05 10:10:02 +02:00
Benjamin Valentin
4707f6b749 pkg/libb2: rename config.h to libb2_config.h
This is to avoid conflics with other config.h files, e.g. when building
for esp8266 where $(NEWLIB)/xtensa-lx106-elf/include/config.h gets
included instead.
2019-09-04 14:15:52 +02:00
Benjamin Valentin
bf410c84f1 pkg/libb2: define HAVE_ALIGNED_ACCESS_REQUIRED based on CPU
Most architectures do not support unaligned memory access, so set the define accordingly.
2019-09-04 14:15:52 +02:00
Juan Carrano
55eccb689f pkg/oonf_api: Use MRI script to combine archives.
The OONF package is combining multiple ".a" file into a single archive. The
way it was being done involved creating and changing directories, unpacking
the original archives and repacking them into a combined one.

Theis has a couple of issues:

- It is untidy and wasteful.
- It breaks when thin archives are enabled, as a thin archive cannot be
  unpacked.

This commit uses a MRI script to do the combining step. It works both with
and without thin archives and is cleaner overall.

An issue that remains to be soved is that make is calling itself to create the
archive, as the PARTIAL_ARCHIVES are not known before hand. This is hacky. It
can be solved but it is a subject for another PR.
2019-09-02 16:50:35 +02:00
Martine Lenders
93fa48df71
Merge pull request #12124 from cgundogan/pr/ccnlite-bump
pkg: ccn-lite: version bump
2019-08-30 13:33:12 +02:00
Cenk Gündoğan
a4bd845c81 pkg: ccn-lite: version bump 2019-08-29 21:54:20 +02:00
Martine Lenders
e0945ad64e
pkg/nordic_softdevice_ble: use gnrc_netif_hdr_set_netif() 2019-08-29 14:51:45 +02:00
Kevin "Tristate Tom" Weiss
969e3b3e95
Merge pull request #12098 from cladmi/pr/export/remove_local_export_compilation_variables
make: do not locally export compilation variables
2019-08-29 14:32:22 +02:00
Gaëtan Harter
15e9812ffb
pkg/oonf_api: remove exporting CFLAGS and INCLUDES
CFLAGS and INCLUDES are already exported by `makefiles/vars.inc.mk`.
It is a prerequisite to allow handling compilation without global exports.
2019-08-29 10:35:36 +02:00
Hauke Petersen
eadc0e62f2 pkg/nimble: fix doxygen group name prefix 2019-08-29 10:04:08 +02:00
Hauke Petersen
891294d3b7 pkg/nimble: temporary LLVM workaround for NimBLE 2019-08-28 16:49:21 +02:00
Hauke Petersen
eb6673f769 pkg/nimble: add README on how to connect to Linux 2019-08-28 16:49:20 +02:00
Hauke Petersen
a3b8c87ab5 sys/shell: add 'ble' shell cmd for nimble_netif 2019-08-28 16:48:42 +02:00
Hauke Petersen
6bbe16601a pkg/nimble: add netif wrapper 2019-08-28 16:48:42 +02:00
Hauke Petersen
e1e62ffff7 pkg/nimble/scanlist: implement _get_by_pos() 2019-08-28 16:48:42 +02:00
Aiman Ismail
ede7edd313 sys/net pkg/: document DTLS support in net_dtls 2019-08-27 16:41:39 +02:00
Juan Carrano
5dc46eb03e pkg/ccn-lite: remove dependency on tlsf-malloc.
There is no reason why this package would need tlsf. Using tlsf as
system malloc is not known to work in all platforms.

With this patch CCN-Lite will use the default malloc provided by the
target's C library.
2019-08-20 17:47:25 +02:00
Juan Carrano
ad4d883c4f pkg/tlsf: fix double pointer.
A (void*) function was declared as (void**) because one of the void pointers
was hidden behind a typedef. Because of the way a void* works, this has no
consequences, but it is confusing.
2019-08-16 19:17:32 +02:00
Gaëtan Harter
f3e72009e8
pkg/nordic_softdevice_ble: reset memory in the .hex file
softdevice needs the memory at 0x2000 to be initialized to 0xffffffff
according to #5893 and testing. However, the addresses [0x8bc, 0x3000[ are not
set in softdevice.hex.

So use a modified hex file with all the memory set to 0xff as it is the rom
reset value anyway.

This change updates the `.hex` file instead on relying on erasing the
memory.
2019-08-12 15:54:45 +02:00
Francisco Molina
ae1c4f422c pkg/libcose: add monocypher and c25519 2019-08-12 14:51:54 +02:00
Francisco Molina
3b8fb0bd80 pkg/libcose: remove tweetnacl support 2019-08-12 14:22:04 +02:00
701ba9c608
pkg/nimble: adapt to nrf51 family 2019-08-07 09:53:55 +02:00
Martine Lenders
1dc6bded04
Merge pull request #11946 from gschorcht/cpu/esp32/lwip_netdev
cpu/esp32: lwIP netdev
2019-08-07 08:10:03 +02:00
Gunar Schorcht
f5af8ac2a4 pkg/lwip: override TPCIP_THREAD_PRIO for ESP32
To avoid priority conflicts with the WiFi hardware driver thread which has priority of 1, the default thread priority of lwIP's TCP/IP thread is decreased to 2.
2019-08-06 23:10:11 +02:00
Benjamin Valentin
66117601bb pkg: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Gunar Schorcht
d4f818b5f3 pkg/lwip: add esp_wifi network device
The changes allow to use an esp_wifi network device of ESP32 with lwIP.
2019-08-06 19:12:29 +02:00
bd816f3fb1
pkg/lwip: cleanup doxygen documentation
- Deduplicate lwip group definition
- Fix reference to sock instead of conn
2019-08-05 16:57:36 +02:00
Martine Lenders
4139370a87
Merge pull request #11952 from PeterKietzmann/pr_ccnl_update_and_bump
pkg/ccn-lite: bump version and adapt shell functions accordingly
2019-08-05 10:27:43 +02:00
PeterKietzmann
0cc91a47e1 pkg/ccn-lite: suppress llvm error 2019-08-05 09:36:43 +02:00
PeterKietzmann
448e282ff3 pkg/ccn-lite: bump version 2019-08-02 10:35:39 +02:00
Hauke Petersen
4016eeb1ad pkg/nimble: bump version to 997dad8 2019-08-01 13:55:47 +02:00
Francisco Molina
41e440a0ef pkg/semtech-loramac: extended return code doc and debug msg
- Add SEMTECH_LORAMAC_ALREADY_JOINED ret code for semtech_loramac_join
- Add SEMTECH_LORAMAC_TX_CNF_FAILED ret code for semtech_loramac_send
- Update shell commands to notify when no ACK is received on cnf tx
2019-07-22 16:12:23 +02:00
Francisco Molina
cdf687ceba examples/lorawan: fix semtech_loramac_send TX ret code
- with #11541 TX notification are only sent after mcps confirm event
  this will send a SEMTECH_LORAMAC_TX_DONE instead of
  SEMTECH_LORAMAC_TX_OK.
2019-07-19 12:22:53 +02:00
8150b014b1
Merge pull request #11801 from kaspar030/update_pkg_libcose
pkg/libcose: bump version
2019-07-18 09:44:32 +02:00
f8d969c3cf pkg/libcose: update to latest master 2019-07-17 10:30:15 +02:00
Francisco Molina
aff7ee3732 pkg/semtech_loramac: fix memcpy to uninitialized pointer 2019-07-16 10:47:36 +02:00
Martine S. Lenders
fd3789a735 nanocbor: fix doc grouping of nanocbor_config 2019-07-12 15:41:58 +02:00
Francisco
f33ba386ac
Merge pull request #11799 from aabadie/pr/pkg/semtech-loramac-rx-started-event
pkg/semtech-loramac: handle rx started event in mac event callback
2019-07-10 15:51:54 +02:00
Leandro Lanzieri
9aa1d76bee
Merge pull request #11817 from jia200x/pr/fix_ot_dep
pkg/openthread: remove openthread config header from contrib
2019-07-08 17:23:10 +02:00
Jose Alamos
f7afc79bab pkg/openthread: remove openthread header from contrib
The internal Openthread config file is not needed for the contrib
files, since it only includes internal OpenThread configuration
(use by the Openthread build system). Under certain cases some
macros defined in Openthread collide with RIOT internals or vendor
headers. So it's important to keep dependencies consistent.
2019-07-08 14:04:49 +02:00
01ab91dbf0
pkg/nanocbor: Version bump to latest master
Current latest master is also compatible with 8 and 16-bit platforms
2019-07-05 20:47:48 +02:00
91d982733f
Merge pull request #11600 from bergzand/pr/pkg/nanocbor
nanocbor: Initial support for the nanocbor package
2019-07-05 15:07:04 +02:00
2b2980bca1
pkg/nanocbor: Initial import 2019-07-05 14:26:17 +02:00
01195a073f
pkg/semtech-loramac: handle rx started event in mac event callback
This is only used for debugging purpose when ENABLE_DEBUG is set and avoid having a message about an unexpected event received
2019-07-04 19:34:24 +02:00
ce9b1e3826 pkg: remove not needed git-downloaded dependencies
This is implicitly done by the "pkg-prepare"-step of the main make
instance.
2019-06-28 09:38:44 +02:00
2260f0996b
pkg/nimble: add dependency to radio_nrfble feature 2019-06-12 17:41:31 +02:00
2703316900
pkg/semtech-loramac: update rx parameters type
System max RX error is in ms and should be uint32_t, min RX symbols is supposed to be uint8_t in loramac-node code
2019-06-05 18:46:03 +02:00
Hauke Petersen
5d96471abf pkg/nimble: cleanup doxygen groups for submodules 2019-06-04 16:14:41 +02:00
Hauke Petersen
fb3febab7f ble/nimble: add support for build-in IPSS service 2019-06-04 14:48:42 +02:00
Leandro Lanzieri
f56709e0bb
Merge pull request #9726 from jcarrano/lua-loader-fix
pkg/lua: Make the module searchers conform to the API.
2019-06-03 11:47:06 +02:00
Juan Carrano
56eb7d9d92 pkg/lua: detect if weak symbol has been overriden.
After removing the default definitions of lua module tables and table
lengths (see lua_builtin.h) the symbols have been left undefined, which
results in them getting an address of NULL and a crash if there are no
user symbols and the user attempts a "require".

This patch checks the address of the table length variable and fails the
module search function of the table is not set (i.e. it behaves as if the
table was empty.)
2019-05-31 17:15:41 +02:00
Juan Carrano
fe07bff90c pkg/lua: Make the module searchers conform to the API.
The module searchers in the `require` package should return a string
if the module is not found, and not raise an error.

See: https://www.lua.org/manual/5.3/manual.html#pdf-package.searchers

Also make error strings contain newlines and tabs just like the original
ones.
2019-05-31 17:15:04 +02:00
ba8e7e5eaf
pkg/semtech-loramac: persist updated RX2 params
After a successful OTAA join procedure, the network may change the RX2 channel datarate. It's
required to also persist to be able to correctly receive downlink after a reboot
2019-05-30 13:41:54 +02:00
bcad9ee517
pkg/semtech-loramac: update documentation with persistence mecanism 2019-05-30 13:41:54 +02:00
b4d905471f
pkg/semtech-loramac: persist OTAA join information in eeprom
This allows to continue sending data even after a reboot of a device that provide non volatile storage, e.g. eeprom
2019-05-30 13:41:54 +02:00
b5c48ef04e
pkg/semtech-loramac: make RX optional 2019-05-29 16:24:52 +02:00
032f89145a
pkg-semtech-loramac: update/simplify doxygen documentation 2019-05-29 16:24:23 +02:00
b7890b3031
pkg/semtech-loramac: refactor send and recv interactions with the MAC
Now TX notification messages are only sent after mcps confirm event. RX message notification message is sent after mcps indication
2019-05-29 16:24:23 +02:00
d1798375e0
pkg/semtech-loramac: reduce MAC thread message queue 2019-05-29 16:24:22 +02:00
Kevin "Bear Puncher" Weiss
6616032150
Merge pull request #9941 from bergzand/pr/pkg/monocypher/v205
pkg/monocypher: bump version to 2.0.5
2019-05-29 09:55:08 +02:00
d87cf66473
pkg/semtech-loramac: move lora region cflags to pkg makefile 2019-05-26 11:47:16 +02:00
Martine Lenders
6273b30bcb minmea: bump version to current master
$ git log --oneline dbf51f03c5058746b4c4b3d6fdcd3d0357c5da36..HEAD
ae4dd94 Merge pull request #38 from noahp/noahp/check-url
b1371aa 🔗 update Check link
65bf740 Merge pull request #35 from gdpinchina/master
61c6ef7 fix test for gga
4514f6d fix test for gga
113221d fix test for gga
35b00bc fix test in gga
9fcd245 remove indent
59c3e0a fix gga char alignment problem in test.c
79b964a modefy initialization for dgps_age
c4a5a01 modify dgps_age type
c01cbcf modify dgps_age type
cd27e72 Merge pull request #29 from swilson/master
4d97109 Fix compiler warnings.
0456bbb Define timegm
04f1141 Add TI-RTOS compat header
8e4fc4e README.md: formatting fixes
0b02771 minmea.h: add Windows compatibility layer
ded4faf Merge pull request #25 from asund/master
f50449e Fixup whitespace
80af9b4 * Arrange year interpretation in order of likeliness * Add unit tests
ef8bca7 clarity of century use in struct tm
486da2b Small fixes to minmea_gettime * Handle four digit years provided by ZDA in minmea_gettime * Assume GPS epoch to allow dates prior 2000 to be parsed
2019-05-24 19:02:59 +02:00
José Alamos
d66ac85b8d
Merge pull request #11540 from OlegHahm/feature/pkg/openthread_update
openthread: update to release 20180926
2019-05-17 14:00:42 +02:00
Hauke Petersen
88f9cf780a ble/nimble: bump version to 9d4bda2 2019-05-17 10:34:26 +02:00
Oleg Hahm
4f83dfd975 openthread: update to release 20180926 2019-05-16 23:28:35 +02:00
Guillaume Gonnet
f5c9fef096 pkg/semtech_loramac: fix DEBUG message when payload is NULL
In function `_semtech_loramac_send` parameter `payload` can be NULL (that the
case when scheduling an immediate TX, line 726). As DEBUG macro use printf,
a %s parameter can't be NULL so we have to handle that case.
2019-05-15 20:50:55 +02:00
Jose Alamos
86942279a2 pkg/openthread: adapt CLI guards to new format 2019-05-14 18:55:53 +02:00
Jose Alamos
c42af783c5 pkg/openthread: separate cli and thread mode variables 2019-05-14 18:55:53 +02:00
4ae1ef3f22
pkg/c25519: remove inexistent SHAFILE cleanup 2019-04-22 21:10:27 +02:00
81eed53776
pkg/semtech-loramac: cleanup in doc file
- fix badly rendered github url
- add missing newline at end of file
2019-04-10 08:21:41 +02:00
1f57c0bd2e
pkg/semtech-loramac: update send function snippet
If the send fails, just return. This avoid recv to be stuck afterward and shows a good practice
2019-04-10 08:20:40 +02:00
Juan I Carrano
9832299e62
Merge pull request #11319 from miri64/pkg/new/ubasic
pkg: Initial introduction of ubasic package
2019-04-08 17:38:03 +02:00
Martine Lenders
8543129ba9 pkg: Initial introduction of ubasic package 2019-04-08 17:09:28 +02:00
f6f988cfbf
Merge pull request #9389 from bergzand/pr/pkg/c25519/initial
c25519: Initial support for the c25519 package
2019-04-04 14:23:09 +02:00
6d8e18b57e
c25519: Initial support for c25519 package
c25519[1] is a library optimized for embedded applications handling ed25519
signing and x25519 crypto. It uses significantly less memory and flash
compared to TweetNaCl and is significantly faster when used on a
samr21-xpro

[1]: https://www.dlbeer.co.nz/oss/c25519.html
2019-04-04 14:05:57 +02:00
José Alamos
b5aaa6186f
Merge pull request #10599 from miri64/pkg/cleanup/openthread-rm-NETOPT_IPV6_IID
openthread: use l2util_ipv6_iid_from_addr() instead of NETOPT_IPV6_IID
2019-03-29 12:33:21 +01:00
Leandro Lanzieri
ef2b33c3d5
Merge pull request #11277 from obgm/tinydtls
pkg/tinydtls: Update repository URL to new location, fix posix_sockets
2019-03-28 17:17:46 +01:00
Hauke Petersen
42c6702433 ble/nimble: add scanner submodule 2019-03-27 18:11:37 +01:00