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

842 Commits

Author SHA1 Message Date
Bas Stottelaar
8fa920d04c pkg/gecko_sdk: update to newer version 2019-09-30 18:10:38 +02:00
68aae9c848
Merge pull request #12262 from cladmi/pr/cflags/fix_spaces_and_rebuild
makefiles: do not remove defines from CFLAGS
2019-09-28 09:42:56 +02:00
cladmi
da59fb0eda
pkg/relic: pass COMP through environment
export COMP by using the environment insteal of through the shell to
prevnet issues with `\"` being defined when keeping macros in CFLAGS.

Another solution was to use COMP='...' but could there could still have
issues with single quotes in CFLAGS.
2019-09-27 19:28:33 +02:00
Martine Lenders
26d8650027
Merge pull request #12174 from haukepetersen/opt_nimble_scannerusetype
pkg/nimble/scanner: pass adv pkt type to callback
2019-09-27 12:14:34 +02:00
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
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