42f2fbef71
Merge pull request #14905 from fjmolinas/pr_openwsn_riot_sched
...
pkg/openwsn: add riot based openwsn scheduler
2020-09-10 13:23:12 +02:00
Jim O'Brien
bd149e7db9
thread: Add THREAD_NAMES make flag
...
Separate thread names from DEVELHELP so thread names can be
enabled in non-development/debug builds when required/desired.
THREAD_NAMES will be enabled by default then DEVELHELP is set to 1.
2020-09-10 10:08:27 +02:00
Francisco Molina
19494a4db3
pkg/openwsn: add riot based openwsn scheduler
2020-09-10 09:37:43 +02:00
Cenk Gündoğan
0d0bc91553
Merge pull request #14754 from leandrolanzieri/pr/no_archives
...
build system: link object files
2020-09-10 09:36:29 +02:00
benpicco
239999fe73
Merge pull request #14984 from jia200x/pr/hal/missing_const
...
ieee802154_hal: add missing const qualifiers
2020-09-09 13:03:30 +02:00
2fbd85b798
sys/ztimer: allow compensation of ztimer_sleep() overhead
2020-09-09 12:50:51 +02:00
Jose Alamos
4ad75216dd
ieee802154_hal: add missing const qualifiers
2020-09-09 11:17:44 +02:00
Francisco
cb6b65e7ff
Merge pull request #14886 from miri64/gnrc/fix/circ-deps
...
gnrc: remove circular module dependencies
2020-09-09 09:06:28 +02:00
Martine Lenders
ec436b9069
Merge pull request #14963 from miri64/gnrc_sock_ip/fix/sock
...
gnrc_sock_ip: fix NULL pointer dereference
2020-09-08 17:15:25 +02:00
M Aiman Ismail
bc8d55fde9
sys/xtimer: remove _xtimer_set_absolute
2020-09-08 14:21:40 +02:00
Martine S. Lenders
7d47484170
gnrc_sock_ip: fix NULL pointer dereference
2020-09-08 13:05:10 +02:00
Martine S. Lenders
2cf5b3c185
gnrc_ipv6_hdr: make HDR_NETTYPE dependent on nettype module
...
In #13994 this was introduced but overlooked here.
2020-09-08 12:53:29 +02:00
Martine S. Lenders
0e3443d006
gnrc_netif: guard usage of gnrc_ipv6 member
2020-09-08 12:53:29 +02:00
Martine S. Lenders
4fe7bb003a
gnrc_ipv6_nib: add missing header includes
2020-09-08 12:53:29 +02:00
Benjamin Valentin
471e81d544
ieee802154: add definitions & config options for MR-FSK
2020-09-07 15:40:56 +02:00
benpicco
c7993b6140
Merge pull request #14961 from miri64/gnrc_rpl/fix/check-idx
...
gnrc_rpl: check index after fetching address from netif
2020-09-07 14:24:44 +02:00
benpicco
a084430be3
Merge pull request #14883 from miri64/gnrc_ipv6_nib/fix/ipv6_addr_idx-check
...
gnrc_ipv6_nib: check return value of gnrc_netif_ipv6_addr_idx()
2020-09-07 14:24:17 +02:00
benpicco
a336fdc918
Merge pull request #11263 from miri64/gnrc_netif/new/pktq
...
gnrc_netif: add packet to queue when device is busy
2020-09-07 13:59:58 +02:00
Leandro Lanzieri
40b52e1d72
Merge pull request #14321 from akshaim/Kconfig_cord
...
net/cord : Expose configurations to Kconfig
2020-09-07 11:45:17 +02:00
Martine S. Lenders
91dfee7ee0
gnrc_ipv6_nib: fix duplicate handling for ARO
...
When `nce` is NULL on the duplicate check, the later re-fetching of the
`nce` might result in an actual NCE entry that then contains a
duplicate, so we need to re-check the EUI-64 again as well.
2020-09-07 08:42:50 +02:00
Martine S. Lenders
f9c3e5f5a4
gnrc_ipv6_nib: check return value of gnrc_netif_ipv6_addr_idx()
...
And acquire exclusive network interface access when necessary.
Fixes #14752 .
2020-09-07 08:42:50 +02:00
Martine S. Lenders
f7913b3d47
gnrc_rpl: check index after fetching address from netif
2020-09-07 08:39:29 +02:00
Leandro Lanzieri
81cb769cad
makefiles: avoid building archives when compiling
2020-09-04 15:01:10 +02:00
Leandro Lanzieri
e24a64fd64
Merge pull request #14926 from akshaim/Kconfig_dtls
...
net/sock/dtls : Expose configuration to Kconfig
2020-09-04 14:49:23 +02:00
Akshai M
55fe4a464f
net/sock : Update documentation
...
Added net_sock_conf super group and updated sock_util to the super
group.
2020-09-04 16:29:13 +05:30
Akshai M
b8d2d30a6d
net/sock/dtls : Expose to Kconfig
2020-09-04 16:28:29 +05:30
Akshai M
2cbf9de2eb
net/sock/dtls : Model 'DTLS_HANDSHAKE_BUFSIZE' with exponent
...
Introduced CONFIG_DTLS_HANDSHAKE_BUFSIZE_EXP to hold exponent and
update documentation
2020-09-04 16:28:29 +05:30
Jose Alamos
b7929bf6e6
net/ieee802154: add default CSMA-CA params
2020-09-03 18:22:08 +02:00
Jose Alamos
b582d5ee4e
ieee802154: add RSSI offset macro
2020-09-03 18:20:49 +02:00
benpicco
ffea8cdc14
Merge pull request #14938 from jia200x/pr/improve_radio_hal
...
net/ieee802154_hal: add const qualifiers and set pan_id with pointer
2020-09-03 18:17:27 +02:00
Jose Alamos
6cca6172ed
net/ieee802154_hal: set pan_id via pointer
2020-09-03 16:24:11 +02:00
Jose Alamos
857dbbe881
net/ieee802154_hal: add const qualifiers to read only args
2020-09-03 16:24:05 +02:00
892a681ea4
Merge pull request #14803 from fjmolinas/pr_openwsn_shell_commands
...
pkg/openwsn: add shell commands
2020-09-02 21:11:35 +02:00
Akshai M
58f6defb41
sys/net/cord : Update documentation
...
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-09-02 23:36:59 +05:30
Akshai M
bb8d3cd72b
sys/net/cord : Expose to Kconfig
...
Expose configurations to Kconfig
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-09-02 23:36:48 +05:30
Akshai M
536a99022c
sys/net/cord : Move 'CONFIG_CORD_EP' to 'CONFIG_'
2020-09-02 23:36:48 +05:30
Akshai M
e09063e7f1
sys/net/cord : Move 'CORD_UPDATE_INTERVAL' to 'CONFIG_'
2020-09-02 23:36:48 +05:30
Akshai M
de2d33f65b
sys/net/cord : Move 'CORD_LT' to 'CONFIG_'
2020-09-02 23:36:48 +05:30
b584a2dadf
Merge pull request #14930 from bergzand/pr/memarray/calloc
...
memarray: Add memarray_calloc
2020-09-02 19:48:54 +02:00
232237796a
memarray: Add memarray_calloc
...
The memarray_alloc can be error prone to use as the block returned can
contain data from previous uses. The memarray_calloc call added in this
commit always zeroes the block before returning it to the user.
2020-09-02 19:16:30 +02:00
Francisco Molina
badfa06694
pkg/openwsn: add shell commands
2020-09-02 17:19:00 +02:00
Martine Lenders
a72d0ef3e8
gnrc_netif: add packet to queue when device is busy
...
... and also send on send error (i.e. when *medium* was busy)
2020-09-02 12:30:23 +02:00
Martine Lenders
7c7f667108
gnrc_netif: add a send queue
2020-09-02 12:30:22 +02:00
Francisco
6f84870c26
Merge pull request #14634 from benpicco/eui_provider
...
net/link_layer: implement EUI provider
2020-09-01 16:26:08 +02:00
Cenk Gündoğan
538155c344
Merge pull request #14904 from leandrolanzieri/pr/kconfig/change_prefix_convention
...
treewide: modify Kconfig symbol prefixes
2020-09-01 15:57:06 +02:00
benpicco
61334d55d6
Merge pull request #14840 from benpicco/picolibc_unbuffered
...
picolibc: only enable stdout buffering for CDC ACM, ethos, semihosting & SLIP
2020-09-01 15:15:01 +02:00
c83b78a567
Merge pull request #14762 from maribu/move_byteorder
...
core/byteorder: Moved to sys
2020-09-01 15:02:11 +02:00
Martine S. Lenders
3b7bab1108
gnrc_ipv6_nib_nc: error on non-link-local address without ARSM
2020-09-01 11:12:55 +02:00
Martine S. Lenders
14efa3185b
gnrc_ipv6_nib: don't add dst from PL to NC without ARSM
2020-09-01 11:12:55 +02:00
Benjamin Valentin
c0397668ca
picolibc: fix build for fe310
...
We need to include `irq.h` for `irq_disable()`.
2020-08-31 12:56:56 +02:00
Leandro Lanzieri
2e79e00ca7
treewide: change Kconfig prefix for module symbols
...
This changes the prefix used for the symbols that reprensent modules
(not the ones generated from USEMODULE).
MOD_ => MODULE_
2020-08-31 09:57:28 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
...
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:
KCONFIG_MODULE_ => KCONFIG_USEMODULE_
KCONFIG_PKG_ => KCONFIG_USEPKG_
MODULE_ => USEMODULE_
PKG_ => USEPKG_
2020-08-31 09:37:09 +02:00
Benjamin Valentin
bca68ff484
net/link_layer: implement EUI provider
...
This adds the possibility to define EUI sources and assign them to
a network device.
2020-08-30 23:43:57 +02:00
Martine Lenders
4ba5367755
Merge pull request #7664 from zhuoshuguo/lwmac_radio_reinit
...
LWMAC: add re-initialize radio support.
2020-08-26 18:58:56 +02:00
benpicco
9f2475dc14
Merge pull request #14832 from maribu/sys-cleanup
...
sys: Cleanup access to internal variables
2020-08-26 17:07:19 +02:00
Akshai M
32af195281
net/skald : Update documentation
...
Add documentation and checks for 'DOXYGEN' defines to better
render documentation.
2020-08-26 15:13:45 +05:30
Akshai M
112514a4e8
net/skald : Expose to Kconfig
...
Expose configurations to Kconfig
2020-08-26 15:13:08 +05:30
Akshai M
b210da4ef8
net/skald : Enable configuration of 'SKALD_ADV_CHAN'
...
Add macros to disable specific channels and move macros to
'CONFIG_' namespace
2020-08-26 15:13:08 +05:30
Akshai M
4219036727
net/skald : Move 'SKALD_INTERVAL' to 'CONFIG_'
2020-08-26 15:12:07 +05:30
benpicco
2eb6d752df
Merge pull request #14770 from benpicco/netif_addr_to_str
...
net/netif: move gnrc_netif_addr_to/from_str() to netif
2020-08-25 18:52:55 +02:00
Martine Lenders
ec3464aaeb
Merge pull request #14788 from leandrolanzieri/pr/fuzzing/select_gnrc_pktbuf_malloc
...
fuzzing: select gnrc_pktbuf_malloc implementation
2020-08-25 16:05:46 +02:00
5226789f70
Merge pull request #14842 from benpicco/picolibc_multiheap
...
picolibc: enable multiple heaps
2020-08-25 14:42:18 +02:00
Leandro Lanzieri
ff8079b109
fuzzing: select gnrc_pktbuf_malloc implementation
2020-08-25 09:24:50 +02:00
Benjamin Valentin
3f35564b36
picolibc: implement rmdir(), remove() & rewind()
...
Those are used by `tests/pkg_fatfs_vfs`.
2020-08-25 08:26:25 +02:00
Benjamin Valentin
eb00ca816f
picolibc: enable read/write etc. functions without VFS
...
The read()/write() functions still work without VFS when
reading/writing to stdin, stdout or stderr.
Provide dummy functions for the remaining fs functions so
linking does not fail with !VFS.
2020-08-25 08:26:25 +02:00
Benjamin Valentin
28d40eae6f
picolibc: enable multiple heaps
...
We can simply re-use the same code from newlib.
2020-08-24 20:45:05 +02:00
Marian Buschsieweke
3b6fa61829
sys: Cleanup access to internal variables
...
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:
1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
functions
2020-08-24 20:28:11 +02:00
Martine Lenders
b9bce7030b
Merge pull request #14838 from haukepetersen/fix_rpl_dfltroutelifetime
...
net/gnrc/rpl: fix default route lifetime
2020-08-24 19:16:23 +02:00
Benjamin Valentin
ea27064d21
picolibc: make stdout buffering optional
2020-08-24 18:49:36 +02:00
Hauke Petersen
d8aa76501a
net/gnrc/rpl: fix default route lifetime
...
On receiving a DIO message, RPL sets the lifetime for the default
route and the parent timeout event to the value. This leads to short
amounts of time whem the node looses its default route, while it
handles the parent timeout event to probe its parent.
This commit fixes this by adding time the node needs for probing
to the default route lifetime.
2020-08-24 17:53:00 +02:00
Keith Packard
fda68c4149
picolibc: Add stdout buffering [v2]
...
Add buffering so that USB back-ends get some batching for stdout
Signed-off-by: Keith Packard <keithp@keithp.com>
----
v2:
Replace tabs with spaces.
2020-08-24 08:26:41 -07:00
Keith Packard
e215261ced
picolibc: Use most NEWLIB code with picolibc
...
In most places, picolibc and newlib are the same, so use
the existing newlib code when compiling with picolibc.
Signed-off-by: Keith Packard <keithp@keithp.com>
2020-08-24 08:26:16 -07:00
79d733a1af
picolibc: glue sbrk to heap start/end [v2]
...
---
v2:
Squash fixes in
2020-08-24 08:26:16 -07:00
26c1920cf1
posix/select: Add picolibc to cyclic dependency resolution
2020-08-24 08:26:16 -07:00
ff3bee24b9
picolibc: Provide integration into the build system [v3]
...
Support for picolibc as alternative libc implementation is added with
this commit. For now only cortex-m CPU's are supported.
Enable via PICOLIBC=1
---
v2:
squash fixes in
v3:
Remove picolibc integer printf/scanf stuff from sys/Makefile.include,
it gets set in makefiles/libc/picolibc.mk
fixup for dependency
2020-08-23 13:12:57 -07:00
b64f8a22a3
picolibc: Add default syscall implementations [v2]
...
picolibc: Use thread_getpid for getpid() in picolibc_syscalls_default
Instead of directly accessing the sched_active_pid variable (which
isn't defined in this context), use the existing wrapper function
to get that value.
Signed-off-by: Keith Packard <keithp@keithp.com>
---
v2:
Squash a couple of fixes in
* fixup! picolibc: Use thread_getpid for getpid() in
picolibc_syscalls_default
* squashme: Add `times` to picolibc syscalls
* Add __noreturn__ attribute to _exit
* Add VFS syscall wrappers. This provides the POSIX api used
by picolibc stdio
2020-08-23 12:43:51 -07:00
Martine Lenders
6e504bf326
Merge pull request #14825 from haukepetersen/fix_gnrcnib_typo
...
net/gnrc/nib_ft.c: fix minor typo in comment
2020-08-21 22:44:35 +02:00
Marian Buschsieweke
92ae260617
Merge pull request #14778 from benpicco/sys/luid_netdev
...
sys/luid: add luid_netdev_get_eui48() & luid_netdev_get_eui64()
2020-08-21 21:30:14 +02:00
Martine Lenders
fb63453a1d
Merge pull request #14498 from brummer-simon/evtimer-add_mbox_support
...
evtimer: add mbox support
2020-08-21 16:33:06 +02:00
Hauke Petersen
05347190b9
net/gnrc/nib_ft.c: fix minor typo in comment
2020-08-21 16:06:04 +02:00
Simon Brummer
5d67daebb2
evtimer: add mbox support
2020-08-21 15:19:22 +02:00
Martine Lenders
0b6394c55d
Merge pull request #14812 from miri64/gnrc_sixlowpan_frag_rb/fix/icnlowpan-sfr-fixes
...
gnrc_sixlowpan_frag_rb: Check possibly uninitialized pointers
2020-08-21 12:33:49 +02:00
benpicco
c7d9b4b4c4
Merge pull request #14793 from leandrolanzieri/pr/pkg/tinydtls/check_prng
...
pkg/tinydtls: enforce the selection of a crypto secure PRNG
2020-08-21 10:43:47 +02:00
Leandro Lanzieri
531367a9a2
pkg/tinydtls: enforce the selection of a crypto secure PRNG
...
Also add a sanity checks on the prng_ modules.
2020-08-21 08:39:34 +02:00
Martine Lenders
66de39a20a
gnrc_sixlowpan_frag_rb: Check possibly uninitialized pointers
2020-08-20 23:51:38 +02:00
f1d5e98c81
sys/ztimer: fix ztimer msec convert for 250kHz timers
2020-08-20 13:41:40 +02:00
Francisco
70fc19258f
Merge pull request #14783 from maribu/xtimer_on_ztimer_fix
...
sys/{ztimer, xtimer}: Fix issues with xtimer_on_ztimer
2020-08-19 13:28:10 +02:00
benpicco
7f359612e9
Merge pull request #14371 from jia200x/pr/radio_hal
...
ieee802154/radio_hal: introduce Radio HAL for IEEE802.15.4 compatible radios
2020-08-19 13:07:52 +02:00
Jose Alamos
b6e3afe3d6
ieee802154/radio: add radio HAL definition
2020-08-19 12:06:04 +02:00
Marian Buschsieweke
d382bd6565
sys/xtimer: No tick conversion if xtimer_on_ztimer
...
When `xtimer_on_ztimer` is used, `xtimer` does not need to perform any clock
conversion. Especially undefined macros of `XTIMER_HZ` and `XTIMER_SHIFT` should
no longer result in compilation issues, as they are not used internally anyway.
2020-08-19 09:48:23 +02:00
Marian Buschsieweke
527c429f5f
sys/ztimer: Fix compilation without ztimer_extend
...
`ztimer_init_extend()` should only be defined when module `ztimer_extend` is
used, as otherwise the `struct` member `clock->max_value` is not available.
2020-08-19 07:02:19 +02:00
Benjamin Valentin
3b7351753b
sys/luid: add luid_netdev_get_eui48() & luid_netdev_get_eui64()
...
Add functions to generate an EUI based on the netdev ID.
This will always return the same EUI for the same netdev, so it is
stable across netdev resets.
2020-08-18 11:45:45 +02:00
Benjamin Valentin
decadc41a0
drivers/dose: register driver with netdev
2020-08-17 22:53:51 +02:00
Benjamin Valentin
4f19b54b7b
drivers/at86rf215: register driver with netdev
2020-08-17 22:53:51 +02:00
Benjamin Valentin
53eedc283b
drivers/at86rf2xx: register driver with netdev
2020-08-17 22:53:51 +02:00
Benjamin Valentin
39951a948e
net/netif: move gnrc_netif_addr_to/from_str() to netif
...
These functions are independent from GNRC and can be used by stack-agnistoc
code.
Avoid pulling in a GNRC dependency by moving those two helper functions to
`netif`.
The old function names are kept as `static inline` wrapper functions to avoid
breaking API users.
2020-08-16 23:52:32 +02:00
zhuoshuguo
d3c87d7bb9
lwmac: add re-initialize radio support.
2020-08-15 22:12:36 +08:00
Marian Buschsieweke
164d2ac8f2
core/byteoder: Moved to sys
...
The byteorder utilities are never used in `core`, but extensively in `sys`.
They seem to be better located in `sys`.
2020-08-14 16:28:59 +02:00
Marian Buschsieweke
030e0af985
sys/unaligned: Add 64 bit version
...
Add helper function to access `uint64_t` values with possibly unaligned
pointers.
2020-08-14 12:21:24 +02:00
Leandro Lanzieri
e76387911c
sys/pm_layered: Add module to Kconfig
2020-08-12 12:22:41 +02:00
Leandro Lanzieri
4f2494fa1a
sys/stdio: add module to Kconfig
2020-08-12 12:22:41 +02:00
Leandro Lanzieri
67b2519a7d
sys: add newlib modules to Kconfig
2020-08-12 12:22:40 +02:00
Leandro Lanzieri
4ad2180f81
kconfig: Add default modules' symbols
2020-08-12 12:22:38 +02:00
Benjamin Valentin
d4aa8aad10
nanocoap: validate input with NDEBUG
...
A malformed or malicious CoAP request may contain invalid field lengths.
`nanocoap` protects with this by using `assert()`, which safely crashes
the application in debug mode.
In release mode the check is removed.
Instead of allowing arbitrary memory writes, return 0 on invalid inputs.
Discovered by [Coverity](https://scan3.coverity.com/reports.htm#v46910/p10250/fileInstanceId=38357789&defectInstanceId=9793779&mergedDefectId=297306 )
2020-08-11 15:54:23 +02:00
benpicco
1887e55962
Merge pull request #14743 from benpicco/gnrc_sixlowpan_iphc_coverty
...
gnrc_sixlowpan_iphc: fix issues found by Coverity scan
2020-08-11 14:38:57 +02:00
Benjamin Valentin
2ed7f66d33
gnrc_sixlowpan_iphc: fix last byte of iphc_hdr always being 0
...
Coverty scan found this:
> CID 298295 (#1 of 1): Operands don't affect result (CONSTANT_EXPRESSION_RESULT) result_independent_of_operands:
> (ipv6_hdr_get_fl(ipv6_hdr) & 255) >> 8 is 0 regardless of the values of its operands.
Looking at the code, this appears to be a copy & paste error from the previous line.
2020-08-11 14:09:28 +02:00
Benjamin Valentin
a9a0671232
gnrc_sixlowpan_iphc: fix Out-of-bounds read
...
Coverty scan found this:
> CID 298279 (#1 of 1): Out-of-bounds read (OVERRUN)
> 21. overrun-local: Overrunning array of 16 bytes at byte offset 64 by dereferencing pointer
The original intention was probably to advance the destination pointer by 4 bytes, not
4 * the destination type size.
2020-08-11 13:31:22 +02:00
Marian Buschsieweke
2fb7d84ae5
Merge pull request #14627 from fjmolinas/ps-robust-array-lookup
...
sys/ps: Improve robustness against string table errors.
2020-08-11 10:54:24 +02:00
benpicco
09085e7684
Merge pull request #14730 from maribu/sys-makefile-sort
...
sys: Sort Makefile
2020-08-07 18:13:18 +02:00
Marian Buschsieweke
c2b32430b1
sys: Sort Makefile
2020-08-07 16:42:39 +02:00
95ae77dd4b
Merge pull request #14695 from maribu/event_cleanup
2020-08-06 22:15:51 +02:00
Jannes
7f0a099256
net: Add the possibility to use custom ethertype
2020-08-06 13:04:58 +02:00
e4bb06227f
sys/newlib_syscalls_default: don't use static msp430 heap size
2020-08-05 14:32:58 +02:00
acd47f0c1f
gnrc_tcp: abs() -> labs() for int32_t
...
Fixes compilation on msp430 and probably avr.
2020-08-05 14:32:58 +02:00
e09383d343
sys/newlib_syscalls_default: mark _exit as used
2020-08-05 14:32:58 +02:00
23efdcc786
sys/newlib: explicitly define heap for msp430
2020-08-05 14:29:07 +02:00
83f13b8b22
sys/newlib: provide msp430 specific linker symbol names
2020-08-05 14:29:07 +02:00
30cf61dd35
cpu/msp430: remove obsolete msp430 specific headers
2020-08-05 14:29:07 +02:00
Marian Buschsieweke
a5c4692806
sys/event: Add multi-queue initializers
...
Add a set of helper functions to initialize / claim an array of queues and use
this in `tests/events`.
2020-08-05 11:59:40 +02:00
Marian Buschsieweke
2c03dfca13
sys/event: Made trivial functions static inline
...
When the expected ROM overhead of a function is bigger than the actual function,
it is better to provide the function as static inline function in the header.
2020-08-05 11:45:53 +02:00
Marian Buschsieweke
649486f5cd
sys/event: Remove incorrect comment
...
The value of `queue->waiter` at the time the event was queued (with IRQs
disabled) was backed up to the stack-variable `waiter`. Thus, the test later on
for `waiter` checks if the queue was already claimed at the time the event
was queued. Therefore, there is no race.
2020-08-05 11:44:25 +02:00
7b05b85135
Merge pull request #14682 from maribu/event_wait_prio
2020-08-05 11:38:55 +02:00
Marian Buschsieweke
8bda9fac1b
sys/event: Add support for multiple queues
...
Added `event_wait_multi()` that takes an array of event queues rather than
a single event queues. The queue with the lowest index will have the highest
priority.
2020-08-04 13:30:25 +02:00
Leandro Lanzieri
7f1f8ae576
Merge pull request #14652 from akshaim/Kconfig_netif
...
net/netif : Expose configurations to Kconfig
2020-08-03 20:03:33 +02:00
Martine Lenders
b043e1fa64
Merge pull request #14683 from miri64/gnrc_sixlowpan_frag_vrb/fix/cppcheck-warning
...
gnrc_sixlowpan_frag_vrb: fix cppcheck warning
2020-08-03 13:15:52 +02:00
Akshai M
e557fa8ef6
net/netif : Update documentation
2020-08-03 16:10:15 +05:30
Akshai M
1a844b3df6
net/netif : Expose configurations to Kconfig
...
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-08-03 16:10:00 +05:30
Akshai M
b52e3e1587
net/netif : Move 'NETIF_NAMELENMAX' to 'CONFIG_'
2020-08-03 16:09:21 +05:30
Martine S. Lenders
5885293e9e
gnrc_sixlowpan_frag_vrb: fix cppcheck warning
...
... which wasn't a false positive after all.
2020-08-03 12:29:06 +02:00
Benjamin Valentin
6af92ee113
gnrc/nib: fix _idx_dsts() calculation
...
Using pointer difference already gives us the number of elements of
size of what the pointer is pointing to.
Dividing by size will lead to the wrong (always 0) result.
2020-08-03 11:35:54 +02:00
Francisco Molina
1a66ce3d23
sys/ps/ps: use same order as tcb for lookup table
2020-07-29 17:13:11 +02:00
Juan Carrano
d167cb3af8
sys/ps: Improve robustness against string table errors.
...
The mapping from thread state codes to a human readable string in the
PS modules has to be maintained manually. There is a very real possibility
for it to get out of sync with the actual defined states, which would cause
a crash when a lookup with an out of bounds index is performed. Also, because
of the way the array is defined, there could be gaps (which will be filled by
nulls).
This patch replaces the array looukup by a function that checks bounds and
also triggers an assertion so that the issue can be caught during development.
2020-07-29 17:12:40 +02:00
Leandro Lanzieri
224e2c977d
Merge pull request #14509 from jia200x/pr/lora_implicit_mode
...
sx127x: add support for implicit header mode
2020-07-29 12:52:00 +02:00
Jose Alamos
f3bdf7232d
netopt: add NETOPT_PDU_SIZE
2020-07-29 11:57:52 +02:00
Martine Lenders
05b13f5029
Merge pull request #14488 from PeterKietzmann/pr_add_sha256prng
...
sys/random: add SHA256 mode to SHA1PRNG & tests
2020-07-29 11:20:55 +02:00
benpicco
2d4d29367e
Merge pull request #14642 from maribu/fix-byteorder-big-endian
...
core/byteorder: Fix be byte buffer conversion on big endian systems
2020-07-29 01:25:03 +02:00
Marian Buschsieweke
4f391007f0
sys/unaligned: Add 32 bit version
2020-07-28 22:34:25 +02:00
Martine Lenders
91c23511d1
Merge pull request #14639 from kaspar030/sys_benchmark_extended_xtimer_workaround
...
sys/benchmark: don't disable interrupts
2020-07-28 22:12:28 +02:00
Martine Lenders
6e8006240b
Merge pull request #14628 from cgundogan/pr/sys/shell/ping_alias
...
sys: shell: deduplicate help text for ping command
2020-07-28 19:48:32 +02:00
Martine Lenders
0e3aa2fff5
Merge pull request #14632 from benpicco/netif_single
...
gnrc_netif: replace GNRC_NETIF_SINGLE with gnrc_netif_single pseudo-module
2020-07-28 17:56:51 +02:00
f60980b163
sys/benchmark: don't disable interrupts
...
the function uses xtimer, which breaks with disabled interrupts.
2020-07-28 16:03:00 +02:00
Leandro Lanzieri
cfdf30409a
Merge pull request #14599 from akshaim/Kconfig_dhcpv6
...
net/dhcpv6 : Expose configurations to Kconfig
2020-07-28 15:46:17 +02:00
Benjamin Valentin
0c06694f72
gnrc_netif: replace GNRC_NETIF_SINGLE with gnrc_netif_single pseudo-module
2020-07-28 13:59:20 +02:00
benpicco
403b6b15c6
Merge pull request #14481 from maribu/cpp-fix-linking
...
Makefile.{base,include}: Fix linking for C++ code in external modules
2020-07-28 12:42:14 +02:00
Akshai M
a9e0a110d7
net/dhcpv6 : Remove unused macro
...
Remove unused macro 'DHCPV6_CLIENT_SERVER_MAX'
2020-07-28 15:02:48 +05:30
Cenk Gündoğan
891b8e37d7
sys: shell: deduplicate help text for ping command
2020-07-28 10:49:17 +02:00
Akshai M
6be6300075
net/dhcpv6 : Update documentation
...
Add configuration 'CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX' to
configuration group
2020-07-24 00:23:08 +05:30
Akshai M
0413a5881f
net/dhcpv6 : Expose to Kconfig
...
Expose configurations to Kconfig. Add conditional CFLAGS to avoid
conflicts with Kconfig.
2020-07-24 00:23:08 +05:30
Marian Buschsieweke
6520db8ed9
sys/cxx_ctor_guards: Add guard for c++ ctors
...
For thread-safe calling of C++ constructs of statically allocated class
instances some platform support code is needed. This commit ads one
implementation compatible with g++.
2020-07-23 20:24:47 +02:00
Marian Buschsieweke
033807008a
sys/arduino: Require feature cpp
...
Arduino code requires C++ support
2020-07-23 20:18:34 +02:00
Akshai M
1c37e11c0e
net/dhcpv6 : Move 'DHCPV6_CLIENT_PFX_LEASE_MAX' to 'CONFIG_'
2020-07-23 21:10:26 +05:30
Leandro Lanzieri
25723267f7
Merge pull request #14567 from akshaim/Kconfig_l2filter
...
net/l2filter : Expose configurations to Kconfig
2020-07-22 15:11:24 +02:00
Leandro Lanzieri
a017764382
Merge pull request #14573 from akshaim/gnrc_mac_update
...
net/gnrc/mac/types.h : Update configurations
2020-07-22 13:00:39 +02:00
PeterKietzmann
0b48298d95
sys/random: shaxprng init use digest not state
2020-07-22 12:25:09 +02:00
PeterKietzmann
7232c5291d
sys/random: reset buffer position on reinitialization
2020-07-22 12:25:09 +02:00
PeterKietzmann
233fbcdb38
sys/random: improve documentation on SHA based generator
2020-07-22 12:25:09 +02:00
PeterKietzmann
5a13d00b65
sys/random: make sha1prng sha256 compatible
2020-07-22 12:25:09 +02:00
Cenk Gündoğan
a0c4b8a4a0
Merge pull request #14550 from leandrolanzieri/pr/net/gcoap_remove_gcoap_finish
...
net/gcoap: remove gcoap_finish
2020-07-22 09:40:09 +02:00
Akshai M
60170971bd
net/l2filter : Update documentation
2020-07-22 00:26:09 +05:30
Akshai M
9bed3c64e9
net/l2filter : Expose configurations to Kconfig
...
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-07-22 00:26:09 +05:30
Akshai M
caab4cd8c5
net/l2filter : Move 'L2FILTER_LISTSIZE' to 'CONFIG_'
2020-07-22 00:26:09 +05:30
Akshai M
0d52f81935
net/l2filter : Move 'L2FILTER_ADDR_MAXLEN' to 'CONFIG_'
2020-07-22 00:26:09 +05:30
Akshai M
bcb42e2166
mac/types.h : Remove ifndef for 'GNRC_MAC_TYPE_GET_DUTYCYCLE'
...
Removed ifndef guards for GNRC_MAC_TYPE_GET_DUTYCYCLE as its
an IPC message type and is also not intended as a configuration.
2020-07-21 16:36:27 +05:30
Martine Lenders
e5d692babe
Merge pull request #14493 from miri64/netopt/cleanup/rm-LINK_CONNECTED
...
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
2020-07-17 22:35:46 +02:00
Martine Lenders
bb07c1889f
Merge pull request #14507 from JannesVolkens/someip_hdr
...
sys/include/net: Add SOME/IP header
2020-07-17 22:35:06 +02:00
fa2c8b01f4
sys/ztimer: fix missing include for periph_rtt submodule
2020-07-17 20:10:27 +02:00
Benjamin Valentin
a028102149
pkg/littlefs2: rename littlefs_desc_t -> littlefs2_desc_t
...
Allow to have both versions of the FS present at the same time.
2020-07-17 16:43:00 +02:00
Leandro Lanzieri
3920dd8c20
net/gcoap: Remove gcoap_finish
2020-07-17 16:33:19 +02:00
Leandro Lanzieri
60f7e3aadf
net/cord/lc: Replace usage of deprecated gcoap_finish
2020-07-17 10:01:55 +02:00
Leandro Lanzieri
f92c693682
net/cord/epsim: Replace usage of deprecated gcoap_finish
2020-07-17 09:51:34 +02:00
Jannes
37cb65971f
sys/include/net: Add suggested changes
2020-07-16 14:44:47 +02:00
Marian Buschsieweke
5ecafab83d
sys/pm: Correctly access pm_blocker
...
Replace `volatile` access to pm_blocker by guarding the accesses with
`irq_disable()` ... `irq_restore()`.
`volatile` does only guarantee that no compiler optimizations are performed on
a variable access, but does not provide atomic access. E.g. on systems with
a memory bus of less than 32 bit, the access to pm_blocker cannot be done
with a single CPU instruction. Thus, resorting to disabling IRQs is the easiest
and most portable way to actually achieve atomic access.
2020-07-15 11:21:59 +02:00
Akshai M
b898c65ecf
net/credman : Update documentation
2020-07-14 21:26:19 +05:30
Akshai M
1ad76240c5
net/credman : Expose to Kconfig
...
Expose 'CONFIG_CREDMAN_MAX_CREDENTIALS' to Kconfig
2020-07-14 21:26:19 +05:30
Akshai M
774c18ea79
net/credman : Move 'CREDMAN_MAX_CREDENTIALS' to 'CONFIG_'
2020-07-14 21:26:19 +05:30
Jannes
0c04de92ac
sys/include/net: Add SOME/IP header
2020-07-14 11:00:54 +02:00
Jose Alamos
96ee1d2bf8
net/gnrc_netif_lorawan: fix unaligned copy
2020-07-13 16:57:26 +02:00
Martine Lenders
8e74bfa511
Merge pull request #14306 from leandrolanzieri/pr/net/nettest_remove
...
net/gnrc: Remove deprecated module gnrc_nettest
2020-07-10 17:12:59 +02:00
Martine S. Lenders
8dba9a9188
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
2020-07-10 16:18:13 +02:00
Leandro Lanzieri
cdc252ab7b
net/gnrc/nettest: Remove module
...
This module has been deprecated and scheduled for removal in release
2020.07.
2020-07-10 15:58:54 +02:00
Daniel Lockau
0d3dc120ef
drivers/sdcard_spi: remove auto-init
2020-07-09 08:50:53 +02:00
Leandro Lanzieri
ffee93deed
Merge pull request #14120 from akshaim/Kconfig_lwmac
...
gnrc/lwmac : Expose configurations to Kconfig
2020-07-08 19:32:50 +02:00
Martine Lenders
908ec472ce
Merge pull request #14453 from benpicco/sys/random-hwrng
...
sys/random: add option to use HWRNG as source of randomness
2020-07-08 19:30:36 +02:00
benpicco
63a0014456
Merge pull request #14467 from benpicco/fix_file_permission
...
treewide: fix file permissions
2020-07-08 18:30:01 +02:00
Benjamin Valentin
2f423473fc
sys/random: add option to use HWRNG as source of randomness
...
Add the `prng_hwrng` module to enable the HWRNG as source of all randomness, not just
for seeding a PRNG.
saves ~260 bytes compared to using tinymt32.
2020-07-08 18:23:18 +02:00
Benjamin Valentin
9d836888c2
treewide: fix file permissions
...
C files should not be executable.
2020-07-08 17:32:36 +02:00
Hauke Petersen
dbec7a3e94
sys/shell/sc_nimble_netif: cleanup timing params
2020-07-08 08:46:43 +02:00
Akshai M
c75df9c5ca
gnrc/lwmac : Expose to Kconfig
...
Expose configurations to Kconfig
2020-07-08 10:04:45 +05:30
Akshai M
a05eb3b4ad
gnrc/lwmac : Move GNRC_LWMAC_MAX_DATA_TX_RETRIES to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
cda7791a4b
gnrc/lwmac : Move GNRC_LWMAC_DATA_CSMA_RETRIES to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
e241141a92
gnrc/lwmac : Move GNRC_LWMAC_DATA_DELAY_US to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
1fe5acddc6
gnrc/lwmac : Move GNRC_LWMAC_WR_PREPARATION_US to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
85948925ba
gnrc/lwmac : Move GNRC_LWMAC_TIMEOUT_COUNT to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
3bd8dd4aa2
gnrc/lwmac : Move GNRC_LWMAC_BROADCAST_CSMA_RETRIES to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
65fa832e40
gnrc/lwmac : Move GNRC_LWMAC_MAX_RX_EXTENSION_NUM to 'CONFIG'
2020-07-08 10:04:45 +05:30
Akshai M
e38dca5d42
gnrc/lwmac : Move GNRC_LWMAC_TIME_BETWEEN_WR_US to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
1be3264ab3
gnrc/lwmac : Move GNRC_LWMAC_WAKEUP_INTERVAL_US to 'CONFIG_'
2020-07-08 10:04:45 +05:30
Akshai M
c15bd805af
gnrc/lwmac : Update documentation
...
Add compile time parameters to group 'net_gnrc_conf' and modify
documentation to stick to 80 character limit per line.
2020-07-08 10:04:45 +05:30
Martine Lenders
6fc72be723
Merge pull request #14450 from MrKevinWeiss/pr/shellhooks
...
sys/shell: Add optional hooks for shell commands
2020-07-07 18:43:50 +02:00
MrKevinWeiss
04630d20ba
sys/shell: Add optional hooks for shell commands
...
Introduce optional user shell_post_readline_hook, shell_pre_command_hook, shell_post_command_hook.
Enable with USEMODULE=shell_hooks.
Calls user implemented *_hook functions if defined.
If implementation does not exist, nothing happens.
The intent is to make profiling of the shell command timings easier.
Test provided in tests/shell with USEMODULE=shell_hooks.
2020-07-07 17:00:38 +02:00
db5070c772
Merge pull request #14441 from miri64/riotctrl_shell/feat/netif
...
riotctrl_shell: provide netif interactions and parsers
2020-07-07 14:21:35 +02:00
Akshai M
7a2e9c8948
net/asymcute : Update documentation
2020-07-07 16:27:57 +05:30
Akshai M
e9f270c78a
net/asymcute : Expose to Kconfig
2020-07-07 16:27:57 +05:30
Akshai M
8a6d2882f7
net/asymcute : Move 'ASYMCUTE_KEEPALIVE_PING' to 'CONFIG_'
2020-07-07 16:27:57 +05:30
Akshai M
a1df2e33b0
net/asymcute : Move 'ASYMCUTE_N_RETRY' to 'CONFIG_'
2020-07-07 16:27:57 +05:30
Akshai M
6dc5747c4b
net/asymcute : Move 'ASYMCUTE_T_RETRY' to 'CONFIG_'
2020-07-07 16:27:57 +05:30
Akshai M
1753b84cba
net/asymcute : Move 'ASYMCUTE_KEEPALIVE' to 'CONFIG_'
2020-07-07 16:27:57 +05:30
Akshai M
7ba0d3c76f
net/asymcute : Move 'ASYMCUTE_TOPIC_MAXLEN' to 'CONFIG_'
2020-07-07 16:27:57 +05:30
Akshai M
e4a3213b99
net/asymcute : Model 'ASYMCUTE_BUFSIZE' with exp
...
Added 'CONFIG_ASYMCUTE_BUFSIZE_EXP' and modelled ASYMCUTE_BUFSIZE
as power of an exponent.
2020-07-07 16:27:57 +05:30
Martine Lenders
fdcf53e514
Merge pull request #10222 from pokgak/pr/add-cord-lc
...
net: add CoRE RD lookup client implementation
2020-07-07 12:44:37 +02:00
Martine S. Lenders
e923d5dbd8
sc_gnrc_netif: fix whitespaces in output
...
Originally, the options and flags in the `netif` shell output were
separated by two spaces. For later added flags this is not the case,
making the parsing of those flags and options hard to impossible.
This change adds those missing spaces + comments so it might not happen
again in the future.
2020-07-07 12:24:40 +02:00
Aiman Ismail
869052dcd8
cord: add RD lookup client
2020-07-07 10:54:10 +02:00
pokgak
88279904c5
sys/coap: add ACCEPT option
2020-07-07 10:54:10 +02:00
Simon Brummer
122616ae7d
gnrc_tcp: add retransmission timer
2020-07-06 21:18:23 +02:00
Martine Lenders
b0738051f2
Merge pull request #14222 from brummer-simon/gnrc_tcp-rewrite_internal_messaging
...
gnrc_tcp: rewrite API internal messaging
2020-07-06 13:39:13 +02:00
Martine Lenders
d510e034ea
Merge pull request #13552 from haukepetersen/add_nimble_statconn
...
pkg/nimble: add static connection manager `statconn`
2020-07-06 09:59:13 +02:00
Marian Buschsieweke
1267277ca7
sys/base64: Improved implementation
2020-07-06 09:16:24 +02:00
Hauke Petersen
3ecb9d8423
sys/shell: add nimble_statconn shell command
2020-07-06 08:14:09 +02:00
Simon Brummer
67b22d8783
gnrc_tcp: requested changes
2020-07-04 09:21:50 +02:00
Simon Brummer
aa1c2e9cba
gnrc_tcp: rewrite API internal messaging
2020-07-04 09:20:43 +02:00
Martine Lenders
339e3faf21
Merge pull request #14400 from maribu/base64_tests
...
sys/base64: Fix, unit test cleanup, and benchmark
2020-07-02 13:40:56 +02:00
Marian Buschsieweke
3c7fd0cdc9
sys/base64: Use void pointer for buffers in API
...
This is a non-breaking change, as `unsigned char *` can implicitly be converted
to `void *`.
2020-07-02 11:10:06 +02:00
Maciej Jurczak
f8ac003bbf
base64: Fixed decode buffer size estimation
...
Fixed required result buffer size underestimation in base64_estimate_decode_size() function.
2020-07-02 11:10:05 +02:00
Leandro Lanzieri
192737948d
Merge pull request #12975 from miri64/posix/feat/select
...
posix: initial import of select() function (only support sockets for now)
2020-07-02 09:37:55 +02:00
Jean Pierre Dudey
7a991f8ecc
net/gnrc/ipv6/nib: fix ref to net_gnrc_ipv6_nib_nc_info
...
This fixes a bug with the link as newlines can't be inside of a link
on Doxygen documentation.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-07-01 16:16:16 -05:00
Martine S. Lenders
6ba6740231
posix_select: initial import of select()
function
2020-07-01 18:10:26 +02:00
Martine Lenders
1245065afb
Merge pull request #14291 from brummer-simon/gnrc_tcp-move_rcv_buffer_handling
...
gnrc_tcp: rewrite recv buffer allocation/returning
2020-07-01 17:19:28 +02:00
Simon Brummer
9fe91f5c44
gnrc_tcp: rewrite recv buffer allocation/returning
2020-07-01 15:47:23 +02:00
799ee40ea7
Merge pull request #13866 from benpicco/pkg/fs_params
...
pkg/fs: set VFS params by fs, not by the application
2020-07-01 14:19:00 +02:00
e8d8fd2f32
Merge pull request #14404 from benpicco/sys/usb_board_reset_in_bootloader
...
sys/usb_board_reset: add usb_board_reset_in_bootloader definition
2020-07-01 13:49:59 +02:00
Martine S. Lenders
af24c539d0
posix_sockets: count available received messages asynchronously
...
Utilizing `sock_async`
2020-07-01 13:36:36 +02:00
Martine S. Lenders
791069acf1
posix_sockets: provide function to check if file descriptor is a socket
2020-07-01 13:36:36 +02:00
Martine S. Lenders
c7dc0bb8de
posix_sockets: use vfs_file_get() to resolve file descriptor
2020-07-01 13:36:36 +02:00
Martine S. Lenders
ef844d8863
vfs: provide function to get internal file information by fd
2020-07-01 13:36:25 +02:00
chrysn
a787875cf8
usb_board_reset: Split headers into public and private
...
The private parts need USB definitions (and are thus preferably used
from USB_H_USER_IS_RIOT_INTERNAL compilation units). Functions like
usb_board_reset_in_bootloader do not depend on USB headers for their
definitions and are fair game throughout the application even for
generic RIOT USB devices.
2020-07-01 13:22:25 +02:00
Benjamin Valentin
33ef4f2902
sys/usb_board_reset: add usb_board_reset_in_bootloader definition
...
Move the definition of usb_board_reset_in_bootloader() to a common
location.
2020-07-01 10:30:17 +02:00
Martine Lenders
95fa7fbb4f
Merge pull request #14403 from pokgak/fix-cord-ep-netif
...
cord_ep: allow not specify netif if only one interface exist
2020-06-30 23:00:27 +02:00
M Aiman Ismail
edc95679cd
cord_ep: allow not specify netif if only one interface exist
2020-06-30 22:36:23 +02:00
Francisco
960cca77b7
Merge pull request #13675 from benpicco/native_eof_exit
...
sys/shell: native: stop RIOT when the shell reads EOF
2020-06-30 15:29:52 +02:00
Francisco
e8389a5847
Merge pull request #12870 from benpicco/xtimer-doc-fix
...
sys/xtimer: fix documentation about XTIMER_BACKOFF
2020-06-30 15:07:09 +02:00
Benjamin Valentin
a6ca535955
sys/shell: native: stop RIOT when the shell reads EOF
...
Currently when the shell receives EOF on `native`, sending EOF
(ctrl + D) closes the stdin file descriptor, leading to all
consecutive reads to also return EOF.
The result is that `shell_run_forever()` will re-start the shell
forever in a loop, filling up the terminal with
> > > > > > > > > > > > > > > > > > > > > > …
until the user hits ctrl + C.
This is annoying.
Instead, cleanly shutdown RIOT when receiving EOF on native, which
should match the expected behaviour of most users.
2020-06-30 14:52:53 +02:00
d98ddfad9a
Merge pull request #13824 from fjmolinas/pr_openwsn
...
pkg/openwsn: re-integrate the network stack as a package
2020-06-30 14:08:10 +02:00
Francisco Molina
844ccfbeb3
pkg/OpenWSN: initial import
...
Co-authored-by: Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
Co-authored-by: Jose Alamos <jose.alamos@haw-hamburg.de>
Co-authored-by: Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
2020-06-30 13:08:36 +02:00
chrysn
85d7042732
usb Kconfig: Provide explicit defaults
...
See-Also: https://github.com/RIOT-OS/RIOT/pull/13382#discussion_r380506106
2020-06-30 10:51:42 +02:00
chrysn
fbd7b66f33
usb Kconfig: Remove conditional
...
The clause was left over from moving the lines into the main
configuration from an example config without understanding its
relevance.
2020-06-30 10:51:41 +02:00
chrysn
c0cc03a09a
usb: Adapt error message to newly present build variables
2020-06-30 10:51:39 +02:00
chrysn
250f6fdfa3
usb: Warn on test-ID usage in a unified location
...
This
* renames DEFAULT_xID to USB_xID_TESTING as it is not really a default
(if anyting, the 7D00 is, and it's not that)
* moves the check into Makefile
* generalizes the check to all test PID/VID pairs
* in doing so, fixes the "or" (which would have ruled out warning-free
use of an allocated pid.codes number), and compares to the actual
testing PID rather than the RIOT-peripheral PID
* removes all occurrences of duplicated checks in examples or tests,
leaving definitions only where they are needed
* moves the Kconfig defaults of the usbus_minimal example into the main
Kconfig, as these are good defaults for all cases when USB is enabled
manually
Closes: https://github.com/RIOT-OS/RIOT/issues/12273
2020-06-30 10:51:36 +02:00
benpicco
f372beb405
Merge pull request #12363 from maribu/dfplayer
...
drivers/dfplayer: New driver for the DFPlayer Mini MP3 player
2020-06-28 23:24:36 +02:00
Marian Buschsieweke
2f858a2c0a
sys/shell: Added shell command "dfplayer"
...
Added a shell command that is added if the modules shell_commands and dfplayer
are both used. It allows to control the DFPlayer Mini MP3 player.
2020-06-28 21:06:49 +02:00
Marian Buschsieweke
82bfb66cb8
drivers: Added driver for the DFPlayer MP3 player
2020-06-28 21:06:43 +02:00
Marian Buschsieweke
d2f3cafa45
sys/auto_init: Added auto-init for multimedia
...
Added auto-init hook for multimedia device drivers
2020-06-28 21:06:14 +02:00
Francisco Molina
6b7640c87b
sys/include/net/ieee802154.h: add ACK frame length define
2020-06-26 12:41:19 +02:00
Francisco Molina
0452e168d7
sys/ccm: define max MAC length
2020-06-26 12:41:18 +02:00
Gunar Schorcht
b51ac69d0a
sys/net/gnrc: add netif support for ATWINC15x0 netdef driver
2020-06-26 12:33:38 +02:00
Gunar Schorcht
c95ebb63b4
sys/net: add NETOPT_RSSI for wireless channels
2020-06-26 12:33:38 +02:00
279f2aebed
Merge pull request #14224 from kaspar030/cortexm_remove_idle_thread
...
core: make idle thread optional
2020-06-26 11:04:19 +02:00
Marian Buschsieweke
d13ea90fa1
Merge pull request #11828 from benemorius/pr/ps-free-mem
...
sys/ps: show free stack space in addition to used and total
2020-06-26 09:01:29 +02:00
Thomas Stilwell
1af6a30279
sys/ps: show free stack space in addition to used and total
2020-06-25 17:48:25 -05:00
Martine Lenders
2bb9a392b4
Merge pull request #14358 from gschorcht/sys/net/gnrc/icmpv6/conditional_min_definition
...
gnrc/icmpv6: conditional definition of the MIN macro
2020-06-25 19:43:44 +02:00
Gunar Schorcht
a440ae7bd9
gnrc/icmpv6: redefinition of MIN macro
...
Since `min(a,b)` is a very frequently used function, several libraries such as ESP8266 SDK define a `MIN` macro in their header files. Therefore the `MIN` macro should be undefined before its definition to avoid compilation errors if it is defined anywhere else before.
2020-06-25 17:31:07 +02:00
baca419934
sys/schedstatistics: handle if PIDs are KERNEL_PID_UNDEF
...
Previously, sched_statistics_cb() was always called with two valid PIDs.
Now it is possible (when the idle thread is not used) that one of the
two might be KERNEL_PID_UNDEF, as the callback might be called when
descheduling the last thread, or scheduling the first.
2020-06-25 16:02:28 +02:00
Francisco
903ad1e888
Merge pull request #14354 from miri64/drivers/cleanup/rm-NETOPT_IPV6_IID
...
netdev: remove NETOPT_IPV6_IID support for network devices
2020-06-25 15:53:33 +02:00
Martine S. Lenders
de74765c7b
netopt: transform NETOPT_IPV6_IID deprecation note to implementor note
2020-06-25 13:41:34 +02:00
Martine Lenders
49ab078c03
Merge pull request #14349 from miri64/lwip/enh/dual-stack
...
pkg/lwip: enable IPv4/IPv6 dual stack mode
2020-06-25 13:30:07 +02:00
Martine Lenders
2b1be158e3
Merge pull request #13837 from benpicco/dhcpv6-stale_replies
...
sys/net/dhcpv6: discard stale replies
2020-06-25 12:18:31 +02:00
Francisco Molina
e7a8c58de4
sys/arduino: include arduino_sketches in Makefile.dep
2020-06-25 11:02:02 +02:00
Francisco
a665fcc542
Merge pull request #14123 from jue89/fix/ztimer_pseudomodules
...
ztimer: relocate PSEUDOMODULES definitions
2020-06-24 22:56:07 +02:00
Martine S. Lenders
ae7944f115
sock_util: introduce endpoint conversion aliases for TCP
2020-06-24 17:21:29 +02:00
Martine S. Lenders
78c816c6af
sock_util: fix IPv4 address parsing
...
There is no `SOCK_HAS_IPV4` define.
2020-06-24 18:36:42 +02:00
Chamaeleon-
547d3a0620
sys/shell/commands: fixing typo in ping6 help
...
reponse -> response in -W <ms timeout>
2020-06-24 12:49:05 +02:00
Francisco
af80e863b3
Merge pull request #13197 from HendrikVE/shell-tokenizer-refactor
...
sys/shell: refactor tokenizer code
2020-06-24 12:32:51 +02:00
2df96e033e
Merge pull request #13985 from maribu/stdio_from_isr
...
sys/stdio_uart: Add warning about use in ISR
2020-06-24 00:01:46 +02:00
Marian Buschsieweke
e568973cd6
sys/stdio_uart: Add warning about use in ISR
2020-06-23 23:32:44 +02:00
Hendrik van Essen
cc759ebcca
sys/shell: further refactor tokenizer (part 2/2)
...
Code now correctly handles quotes within PARSE_UNQUOTED
and tabs are now considered a BLANK just like a space.
2020-06-23 13:47:04 +02:00
Hendrik van Essen
0782b493ed
sys/shell: simplify array traversal code
...
The code for traversing arrays of shell commands (used to print help messages
and to search for commmand handlers) was needlessly complex.
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-06-23 13:46:51 +02:00
Hendrik van Essen
37cff93254
sys/shell: further refactor tokenizer (part 1/2)
...
Factor out common code for quoted and unquoted tokens. This makes the code
slighly less clear, but it also eliminates repetition (which may improve
clarity).
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-06-23 13:46:40 +02:00
02578cfbd3
Merge pull request #14317 from fjmolinas/pr_fix_od_werror
...
sys/od/od: fix -Werror=char-subscripts
2020-06-22 14:59:44 +02:00
Martine Lenders
2b90d9b833
Merge pull request #12907 from miri64/tinydtls/enh/async-sock
...
tinydtls: add `sock_async` support for `sock_dtls`
2020-06-22 08:25:16 +02:00
Benjamin Valentin
2d1160426d
sys/net/dhcpv6: discard stale replies
...
The DHCPv6 server might send reponses multiple times.
The DHCPv6 client will only handle the first response, if additional
responses are comming in they are left in the RX queue.
That results in the client always reading the response of a previous
transaction on any subsequent transactions.
In this case the client will try again, creating a new transaction - that
will again only read the previous response.
To fix this, discard previous responses by flushing the RX queue before
sending a new message to the DHCPv6 server.
fixes #13834
2020-06-21 22:07:32 +02:00
Martine Lenders
3a135c94bb
Merge pull request #14316 from leandrolanzieri/pr/gnrc/gomach_lwmac_remove_queue_size_option
...
gnrc/[gomach,lwmac]: Remove unused queue size option
2020-06-19 13:23:12 +02:00
Martine Lenders
782d76d2a2
Merge pull request #14267 from fengelhardt/feature_posix_sockets_netif
...
posix_sockets: use sin6_scope_id of struct sockaddr_in6
2020-06-19 12:32:19 +02:00
Francisco Molina
ce969034dc
sys/od/od: fix -Werror=char-subscripts
2020-06-19 10:44:56 +02:00
Leandro Lanzieri
1f33c43fd4
net/gnrc/lwmac: Remove unused queue size configuration option
2020-06-19 10:20:15 +02:00
Leandro Lanzieri
d9ba720cc0
net/gnrc/gomach: Remove unused queue size configuration option
2020-06-19 10:19:31 +02:00
Akshai M
d2342b6e26
gnrc/gomach : Expose configurations to Kconfig
2020-06-18 21:21:50 +05:30
Akshai M
676a39cebb
gnrc/gomach : Move GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
89360577a0
gnrc/gomach : Move GNRC_GOMACH_T2U_RETYR_THRESHOLD to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
b9773263c0
gnrc/gomach : Move GNRC_GOMACH_REPHASELOCK_THRESHOLD to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
6b10059b8a
gnrc/gomach : Move GNRC_GOMACH_MAX_ALLOC_SENDER_NUM to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
3274a6b83e
gnrc/gomach : Move GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
a8cad3715d
gnrc/gomach : Move GNRC_GOMACH_CP_EXTEND_THRESHOLD to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
62a3be9eee
gnrc/gomach : Move GNRC_GOMACH_TX_BUSY_THRESHOLD to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
025c1e0509
gnrc/gomach : Move GNRC_GOMACH_VTDMA_SLOT_SIZE_US to 'CONFIG_'
2020-06-18 21:21:50 +05:30
Akshai M
9b7b3fef42
gnrc/gomach : Move GNRC_GOMACH_BCAST_INTERVAL_US to 'CONFIG_'
2020-06-18 21:15:28 +05:30
Akshai M
6aa0418da4
gnrc/gomach : Move GNRC_GOMACH_PREAMBLE_INTERVAL_US to 'CONFIG_'
2020-06-18 21:15:28 +05:30
Akshai M
48a2fc57e0
gnrc/gomach : Move GNRC_GOMACH_MAX_PREAM_INTERVAL_US to 'CONFIG_'
2020-06-18 21:15:28 +05:30
Akshai M
a0a6dc0e4e
gnrc/gomach : Move GNRC_GOMACH_NO_TX_ISR_US to 'CONFIG_'
2020-06-18 21:15:28 +05:30
Akshai M
ae175987d5
gnrc/gomach : Move GNRC_GOMACH_WAIT_RX_END_US to 'CONFIG_'
2020-06-18 21:15:28 +05:30
Akshai M
588200f515
gnrc/gomach : Move GNRC_GOMACH_CP_MIN_GAP_US to 'CONFIG_'
2020-06-18 21:15:28 +05:30
Akshai M
1505ea8e11
gnrc/gomach : Move GNRC_GOMACH_CP_RANDOM_END_US to 'CONIFG_'
2020-06-18 21:15:28 +05:30
Akshai M
e6da0bab49
gnrc/gomach : Move GNRC_GOMACH_SUPERFRAME_DURATION_US to 'CONFIG_'
2020-06-18 21:15:28 +05:30
Akshai M
ab3e197c3f
gnrc/gomach : Move GNRC_GOMACH_CP_DURATION_US to 'CONFIG_'
2020-06-18 21:07:30 +05:30
Akshai M
517e7ff5f7
gnrc/gomach : Update documentation
...
Add configurations to compile time configurations.
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-06-18 21:04:02 +05:30
Martine S. Lenders
7dc4f78d0c
sock_async: add missing license header to net/sock/async/types.h
2020-06-18 15:40:41 +02:00
Martine Lenders
09d097c934
Merge pull request #14214 from btcven/2020_06_06-6lo-mtu
...
net/gnrc/netif: add option for non-std 6lo MTU
2020-06-18 15:25:01 +02:00
Martine S. Lenders
1b2303771e
sock_async: change flags for new sock_dtls behavior
2020-06-18 15:23:02 +02:00
Jean Pierre Dudey
e1ef082d49
net/gnrc/netif: disable 6lo fragmentation when unneeded
...
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-06-18 07:16:16 -05:00
Jean Pierre Dudey
d47f4a1caa
net/gnrc/netif: add option for non-std 6lo MTU
...
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-06-18 07:16:16 -05:00
Leandro Lanzieri
3ce8efd4cb
Merge pull request #14138 from akshaim/Kconfig_mac
...
gnrc/mac : Expose configurations to Kconfig
2020-06-17 18:12:40 +02:00
Benjamin Valentin
adbf9ef3ac
vfs: select VFS params to accommodate all enabled file systems
2020-06-17 16:00:24 +02:00
56962f86fb
Merge pull request #14293 from kaspar030/fix_ztimer_frac_slowdown_max_value
...
ztimer: convert_frac: use self->scale_now for max_value
2020-06-16 19:30:54 +02:00
80023c408a
Merge pull request #14259 from fjmolinas/pr_rtt_min_offset
...
drivers/periph/rtt: introduce RTT_MIN_OFFSET
2020-06-16 16:22:04 +02:00
Martine Lenders
1f2c3f7547
Merge pull request #12604 from maribu/luid-doc
...
sys/luid: Added postcondition to luid_get()
2020-06-16 15:24:51 +02:00
1ff609167e
ztimer: convert_frac: use self->scale_now for max_value
...
When using convert_frac to slow down a timer, the extension machinery is
used to prevent converting values that would be larger than, after
conversion, 2**32. In order to calculate the maximum value, UINT32_MAX
is converted.
Previously, this was mistakenly converted by multiplying with the
fraction used to scale up a value. E.g., when using convert_frac to
slow down a 1us timer to provide a 1ms timer, UINT32_MAX was multiplied
by 1000. As the result is used % UINT32_MAX, this lead to a wrong value
close to UINT32_MAX, as ((UINT32_MAX * N) % UINT32_MAX = (UINT32_MAX - N - 1)).
This PR fixes the calculation so max_value is determined by multiplying
with the fraction used to scale down a value.
2020-06-16 12:24:11 +02:00
Frank Engelhardt
356c8008dd
posix_sockets: use sin6_scope_id field to specify netif
2020-06-15 11:23:46 +02:00
Akshai M
383555c3de
gnrc/mac : Update documentation
...
Move non 'CONFIG_' macros away from 'net_gnrc_mac_conf' group
2020-06-15 12:29:00 +05:30
Akshai M
25f778b552
gnrc/mac : Expose to Kconfig
...
Expose configurations to Kconfig
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-06-15 12:28:57 +05:30
Akshai M
ba33686949
gnrc/mac : Model as bool GNRC_MAC_ENABLE_DUTYCYCLE_RECORD
...
Modelled GNRC_MAC_ENABLE_DUTYCYCLE_RECORD as bool. Introduced
CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD to invert the logic.
Tagged GNRC_MAC_ENABLE_DUTYCYCLE_RECORD for deprecation.
2020-06-15 12:19:37 +05:30
Akshai M
75e0632caf
gnrc/mac : Configure GNRC_MAC_TX_QUEUE_SIZE with exponent
2020-06-15 12:19:37 +05:30
Akshai M
9ddc9e0633
gnrc/mac : Move GNRC_MAC_NEIGHBOR_COUNT to 'CONFIG_'
2020-06-15 12:19:37 +05:30
Akshai M
b2550451a1
gnrc/mac : Configure GNRC_MAC_DISPATCH_BUFFER_SIZE with exponent
2020-06-15 12:19:37 +05:30
Akshai M
2c1aa8618b
gnrc/mac : Configure GNRC_MAC_RX_QUEUE_SIZE with exponent
2020-06-15 12:19:37 +05:30
Leandro Lanzieri
dbfe0d8ea1
gnrc/sock: Configure mbox size with exponent and add config doc group
...
This changes the configuration macro to be the exponent of 2^n, as the
mbox buffer size needs to be always power of 2. The macro now has the
GNRC prefix.
Also a compile configuration documentation group is created.
2020-06-15 07:30:54 +02:00
Leandro Lanzieri
d4cac38cc9
gnrc/tcp: Configure mbox size with exponent and add config doc group
...
This changes the configuration macro to be the exponent of 2^n, as the
mbox buffer size needs to be always power of 2.
Also a compile configuration documentation group is created.
2020-06-15 07:30:54 +02:00
Leandro Lanzieri
375cad38df
gnrc/sixlowpan: Configure queue size with exponent
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
2020-06-15 07:30:52 +02:00
Leandro Lanzieri
05962fe3ef
gnrc/netif: Configure queue size with exponent
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
2020-06-15 07:30:52 +02:00
Leandro Lanzieri
f62623caaf
gnrc/lwmac: Configure queue size with the exponent and add config group
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
Also a compile configuration documentation group is created.
2020-06-15 07:30:52 +02:00
Leandro Lanzieri
148c918ba9
gnrc/gomach: Configure queue size with exponent and add config doc group
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
Also a compile configuration documentation group is created.
2020-06-15 07:30:51 +02:00
Leandro Lanzieri
4998b90395
gnrc/udp: Configure queue size with exponent
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
2020-06-15 07:30:51 +02:00
Leandro Lanzieri
3dc7865c4e
gnrc/rpl: Configure queue size with exponent
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
2020-06-15 07:30:51 +02:00
Leandro Lanzieri
e02c338eff
gnrc/nettest: Configure queue size with exponent
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
2020-06-15 07:30:50 +02:00
Leandro Lanzieri
b0168f5fdd
gnrc/ipv6: Configure queue size with exponent
...
This changes the configuration macro to be the exponent of 2^n, as the
message queue size needs to be always power of 2.
2020-06-15 07:30:50 +02:00
0e3ddd2b3b
Merge pull request #14231 from benemorius/pr/pingping6
...
sys/shell/commands: alias ping=ping6
2020-06-12 13:30:55 +02:00
Akshai M
6450d9989e
gnrc/pktbuf : Set Kconfig defaults and conditions
...
Set Kconfig defaults for CPU and conditions to avoid
conflict with CFLAGS
Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-06-11 14:47:27 +05:30
Akshai M
cabcfae9e0
gnrc/pktbuf : Expose to Kconfig
...
Expose CONF_GNRC_PKTBUF_SIZE to Kconfig
2020-06-11 14:47:19 +05:30
Akshai M
5523d119b6
gnrc/pktbuf : Move 'GNRC_PKTBUF_SIZE' to 'CONFIG_'
2020-06-11 14:46:36 +05:30
Akshai M
7bd2a6f8c9
gnrc/pktbuf : Update documentation
...
Add compile configuration 'GNRC_PKTBUF_SIZE' to 'net_gnrc_conf'
group
2020-06-11 14:46:36 +05:30
Leandro Lanzieri
a3fa7e330d
Merge pull request #14252 from akshaim/Kconfig_csma
...
net/csma : Expose configurations to Kconfig
2020-06-11 10:47:55 +02:00
Francisco Molina
8d329942df
drivers/periph/rtt: introduce RTT_MIN_OFFSET
2020-06-11 09:30:25 +02:00
Francisco
89095d6e0f
Merge pull request #14225 from PeterKietzmann/pr_sha2xx_common
...
sys/hashes: add sha224 and reuse sha256 code
2020-06-11 09:07:39 +02:00
a45fdf0e0a
sys/trace: initial commit
2020-06-10 21:21:33 +02:00
Akshai M
065345a360
net/csma_sender:Expose configurations to Kconfig
2020-06-10 21:02:20 +05:30
Akshai M
55c5461073
net/csma_sender:Move CSMA_SENDER_BACKOFF_PERIOD_UNIT
...
Move CSMA_SENDER_BACKOFF_PERIOD_UNIT to 'CONFIG_' namespace
2020-06-10 20:37:54 +05:30
Akshai M
f130303ee0
net/csma_sender:Move CSMA_SENDER_MAX_BACKOFFS_DEFAULT
...
Move CSMA_SENDER_MAX_BACKOFFS_DEFAULT to 'CONFIG_' namespace
2020-06-10 20:37:54 +05:30
Akshai M
ced72c9cf4
net/csma_sender:Move CSMA_SENDER_MAX_BE_DEFAULT
...
Move CSMA_SENDER_MAX_BE_DEFAULT to 'CONFIG_' namespace
2020-06-10 20:38:33 +05:30
Akshai M
1b1d2d7e3b
net/csma_sender:Move CSMA_SENDER_MIN_BE_DEFAULT
...
Move CSMA_SENDER_MIN_BE_DEFAULT to 'CONFIG_' namespace
2020-06-10 20:38:04 +05:30
Akshai M
eac6d144b6
net/csma_sender:Update documentation
...
Add compile time parameters to config group
2020-06-10 20:37:54 +05:30
PeterKietzmann
f9c67e18b6
sys/hashes: inline functions in sha224/sha256
2020-06-10 10:00:30 +02:00
PeterKietzmann
344a8a5369
sys/hashes: add sha224
2020-06-10 09:40:13 +02:00
85a385e6d4
Merge pull request #14227 from kaspar030/dummy_thread
...
sys/test_utils/dummy_thread: initial commit
2020-06-09 17:34:50 +02:00