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

8041 Commits

Author SHA1 Message Date
d92f280add
Merge pull request #15211 from miri64/gnrc_tcp/cleanup/utlist-pkt-func
gnrc_tcp: use gnrc_pktsnip_search_type() to search for snips
2020-10-13 13:18:02 +02:00
Martine Lenders
d105a67b9f
gnrc_tcp: use gnrc_pktsnip_search_type() to search for snips 2020-10-13 11:37:34 +02:00
János Brodbeck
4e35f473a4
sock/dtls: fix return value of sock_dtls_session_create() 2020-10-09 23:12:05 +02:00
benpicco
3384c327a7
Merge pull request #15194 from miri64/gnrc_netif_raw/fix/netif-hdr
gnrc_netif_raw: add NETIF header on receive
2020-10-09 14:35:54 +02:00
Martine Lenders
6991ad5910
gnrc_netif_raw: add NETIF header on receive
... to give upper layer a hint on the interface the packet came from.
2020-10-09 11:51:18 +02:00
Martine Lenders
453403cc8f
Merge pull request #15083 from benpicco/drivers/enc28j60-regster
drivers/enc28j60: register with netdev
2020-10-08 15:39:31 +02:00
Martine Lenders
b11acf1940
Merge pull request #15155 from benpicco/gnrc/rpl-TODO
gnrc/rpl: document implementation status
2020-10-08 13:35:06 +02:00
Benjamin Valentin
868c07158e gnrc/rpl: document implementation status
This copies the information from #3662 to the documentation.
Makes it more discoverable and let's people manage their
expectations.
2020-10-08 12:10:05 +02:00
Benjamin Valentin
1afe72a5e5 drivers/enc28j60: register with netdev 2020-10-08 10:36:56 +02:00
benpicco
ab37c9fba1
Merge pull request #14949 from benpicco/drivers/mrf24j40-register
drivers/mrf24j40: register with netdev
2020-10-08 10:33:37 +02:00
Francisco
3918d714ce
Merge pull request #13624 from wosym/pr/candev_mcp2515
tests/candev: add mcp2515 + driver/mcp2515: add driver
2020-10-08 09:45:40 +02:00
Benjamin Valentin
988ee1648f drivers/mrf24j40: register with netdev 2020-10-07 16:39:39 +02:00
Martine Lenders
bcd59f9789
Merge pull request #15161 from brummer-simon/gnrc_tcp-hide_global_variables
gnrc_tcp: Hide remaining global variables
2020-10-06 14:10:14 +02:00
Martine Lenders
2aaca12d06
Merge pull request #15160 from brummer-simon/gnrc_tcp-reduce_scope_of_receive_buffer
gnrc_tcp: reduce scope of receive buffer
2020-10-06 14:09:15 +02:00
José Alamos
7bb566f306
Merge pull request #15157 from akshaim/PR_LoRaWAN_Bugfix
gnrc/lorawan : Bug fix for zero CFList
2020-10-06 10:44:21 +02:00
Karl Fessel
9a89b84c2c Makefile.dep: sort dependencies
move most dependencies from <RIOTBASE>/Makefile.dep to the Makefile.dep where
dependant module resides
2020-10-05 18:27:58 +02:00
Akshai M
b4594ffe32 gnrc/lorawan : Bug fix for zero CFList
Correct check for CFlist and then conditinally process CFList.
2020-10-05 21:51:33 +05:30
Simon Brummer
7b1629553f gnrc_tcp: Hide remaining global variables 2020-10-05 16:13:13 +02:00
Leandro Lanzieri
e1418e0972
Merge pull request #14065 from jia200x/pr/improve_gnrc_lorawan
gnrc_lorawan: refactor
2020-10-05 15:56:00 +02:00
Simon Brummer
a29666f87c gnrc_tcp: reduce scope of receive buffer 2020-10-05 15:07:02 +02:00
Simon Brummer
aec5586021 gnrc_tcp: Fix typo in config.h 2020-10-05 14:59:11 +02:00
benpicco
2cab6b9f18
Merge pull request #14500 from brummer-simon/gnrc_tcp-replace_xtimer_with_evtimer
gnrc_tcp: Replace xtimer with evtimer
2020-10-05 13:58:39 +02:00
Fabian Hüßler
069f88eeb6 sys/crypto: OCB add const 2020-10-05 12:32:51 +02:00
Fabian Hüßler
8ded1b8c3c sys/crypto: CTR add const 2020-10-05 12:32:51 +02:00
Fabian Hüßler
a9295ae531 sys/crypto: CCM add const 2020-10-05 12:32:51 +02:00
Fabian Hüßler
83d391f6b1 sys/crypto: CBC and ECB add const 2020-10-05 12:32:51 +02:00
Wouter Symons
757f810118 drivers/mcp2515: complete driver + adapt to 2020 RIOT API 2020-10-03 15:20:42 +02:00
Vincent Dupont
62a9929f9b mcp2515: add a driver for the mcp2515 SPI CAN controller
This driver implements the candev interface
2020-10-03 15:20:42 +02:00
chrysn
6350d22bc9 net/gcoap: Register additional resources head-first
This simplifies (written and compiled) code by doing a head rather than
a tail insertion of the new listener into gcoap's list.

As handling of listeners without a link_encoder is now fixed,
gcoap_get_resource_list can handles this now without having to manually
skip over the .well-known/core handler (which is not the first entry any
more now).

Incidentally, this allows the user to install a custom handler for
.well-known/core, as the default handler is now evaluated last.
2020-10-02 21:04:25 +02:00
chrysn
e3db58f013 net/gcoap: Avoid endless loop on error
The NULL case can not regularly be reached (because regularly
gcoap_register_listener sets thel link_encoder to a default one), but if
it is (eg. because an application unsets its link_encoder to hide a
resource set at runtime), the existing `continue` is a good idea (skip
over this entry) but erroneously created an endless loop by skipping the
advancement step.
2020-10-02 20:53:05 +02:00
chrysn
10592f2bb1
Merge pull request #15146 from chrysn-pull-requests/coap_link_flag-reference
net/gcoap: Fix reference to COAP_LINK_FLAGS in documentation
2020-10-02 20:48:49 +02:00
chrysn
07a5a79f40 net/gcoap: Fix reference to COAP_LINK_FLAGS in documentation 2020-10-02 19:11:07 +02:00
Francisco
df3ab9f161
Merge pull request #15138 from aabadie/pr/dist/codespell_fixes
dist/codespell: update the list of ignored words and fix all typos
2020-10-02 12:27:12 +02:00
José Alamos
f30da14341
Merge pull request #15007 from akshaim/Kconfig_lora
net/lora : Expose configurations to Kconfig
2020-10-02 11:01:52 +02:00
44f8d82571
sys/ztimer: fix typo 'functinality' -> 'functionality' 2020-10-02 08:16:14 +02:00
c2685e4e3c
sys/shell/sht1x: fix typo 'presicion' -> 'precision' 2020-10-02 08:15:56 +02:00
13a897e2c7
sys/posix/pthread: fix typo 'defore' -> 'before' 2020-10-02 08:15:31 +02:00
fce6e4032d
sys/zptr: fix typos
- 'bounderies' -> 'boundaries'
- 'compressable' -> 'compressible'
- 'Substracts' -> 'Subtracts'
2020-10-02 08:15:00 +02:00
8507989931
sys/xtimer: fix typo 'occcured' -> 'occurred' 2020-10-02 08:14:02 +02:00
11aa30625f
sys/net/gnrc: fix typos
- 'Busses' -> 'Buses'
- 'wether' -> 'whether'
- 'inferface' -> 'interface'
- 'registartion' -> 'registration'
- 'divisable' -> 'dividable'
- 'anounce' -> 'announce'
2020-10-02 08:13:18 +02:00
3186c8973f
sys/can: fix typo 'theoritical' -> 'theoretical' 2020-10-02 08:09:37 +02:00
eefcfd16e2
sys/arduino: fix typo 'adress' -> 'address' 2020-10-02 08:09:14 +02:00
a7656a51b7
suit: Move common storage.c to module directory 2020-10-01 19:40:14 +02:00
benpicco
6cb8da7813
Merge pull request #14950 from jia200x/pr/ieee802154/submac
ieee802154_submac: add initial support for common MAC sub layer
2020-10-01 11:31:52 +02:00
Simon Brummer
132882df73 gnrc_tcp: Replace xtimer with evtimer 2020-10-01 11:30:00 +02:00
Jose Alamos
9ebc3f8bd8 auto_init/nrf52840: add support for SubMAC 2020-10-01 10:55:55 +02:00
Jose Alamos
7cf6943eab net/ieee802154: add config for default CCA threshold 2020-10-01 10:55:55 +02:00
Jose Alamos
1de5b34adf auto_init/cc2538_rf: add support for SubMAC 2020-10-01 10:55:55 +02:00
Francisco
b5c51d244e
Merge pull request #14909 from OTAkeys/pr/conn_can_clean_up
can: add proper checks for ifnum validity
2020-10-01 09:22:28 +02:00
3cf082d59b
Merge pull request #15110 from bergzand/pr/suit/storage_backend
SUIT: Introduction of a payload storage API for SUIT manifest payloads
2020-09-30 22:47:33 +02:00
Jose Alamos
e100a67099 ieee802154_submac: add initial implementation 2020-09-30 17:25:31 +02:00
Akshai M
a9f7b88624 net/lora : Change defaults
Change 'CONFIG_LORA_SF_DEFAULT' to 'SF7' and
'CONFIG_LORA_CR_DEFAULT' to 'LORA_CR_4_5' to
allow shorter air times and make it easier to meet country
specific regulations.
2020-09-30 20:00:03 +05:30
Akshai M
b57365cc7f net/lora : Update documentation 2020-09-30 20:00:03 +05:30
Akshai M
4dbbd9311d net/lora : Remove unused macro 'LORA_FIX_LENGTH_PAYLOAD_ON_DEFAULT' 2020-09-30 20:00:03 +05:30
Akshai M
aa83367b4b net/lora : Expose to Kconfig 2020-09-30 20:00:03 +05:30
Akshai M
399273dba5 net/lora : Move 'LORA_PAYLOAD_LENGTH_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
1629b11801 net/lora : Mode as bool 'LORA_PAYLOAD_CRC_ON_DEFAULT'
Modelled 'LORA_PAYLOAD_CRC_ON_DEFAULT' as bool. Introduced
'CONFIG_LORA_PAYLOAD_CRC_OFF_DEFAULT' to invert logic and
tagged 'LORA_PAYLOAD_CRC_ON_DEFAULT' for deprecation
2020-09-30 20:00:03 +05:30
Akshai M
889828ae87 net/lora : Model as bool 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT'
Move 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
e329588be4 net/lora : Move 'LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
acd601ebb9 net/lora : Model as bool 'LORA_FREQUENCY_HOPPING_DEFAULT'
Move 'LORA_FREQUENCY_HOPPING_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
00cc04f596 net/lora : Model as bool 'LORA_IQ_INVERTED_DEFAULT'
Move 'LORA_IQ_INVERTED_DEFAULT' to 'CONFIG_'
2020-09-30 20:00:03 +05:30
Akshai M
a161476041 net/lora : Move 'LORA_CR_DEFAULT' to 'CONFIG_'
Added choices and moved 'LORA_CR_DEFAULT' to 'CONFIG_' namespace
2020-09-30 20:00:03 +05:30
Akshai M
aaeed98277 net/lora : Move 'LORA_SF_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
349d20349d net/lora : Move 'LORA_BW_DEFAULT' to 'CONFIG_'
Added choices and moved 'LORA_BW_DEFAULT" to 'CONFIG_' namespace
2020-09-30 20:00:03 +05:30
Akshai M
979700cd45 net/lora : Move 'LORA_SYMBOL_TIMEOUT_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Akshai M
de1ad1e8cf net/lora : Move 'LORA_PREAMBLE_LENGTH_DEFAULT' to 'CONFIG_' 2020-09-30 20:00:03 +05:30
Marian Buschsieweke
d68437249f
Merge pull request #15096 from benpicco/eui64_to_eui48
net/eui64: add eui64_to_eui48()
2020-09-30 16:15:14 +02:00
b72d510690
suit/transport/mock: Use common storage backend 2020-09-30 14:32:27 +02:00
edeffdcd54
suit: Adapt manifest handling to use common storage backend 2020-09-30 14:32:27 +02:00
Jose Alamos
fda73fdf0a gnrc_lorawan: uncrustify files 2020-09-30 14:18:54 +02:00
Jose Alamos
71bda3bcd8 gnrc_lorawan: remove GNRC specific dependencies 2020-09-30 14:18:54 +02:00
Jose Alamos
0162a16d82 gnrc_lorawan: fix BUSY logic 2020-09-30 14:18:54 +02:00
Jose Alamos
2e6ba90435 gnrc_lorawan: refactor rx_done callback 2020-09-30 14:18:54 +02:00
Jose Alamos
5146261f03 gnrc_lorawan: rename radio event functions 2020-09-30 14:18:54 +02:00
a29eaf557f
suit/storage/flashwrite: Add riotboot flashwrite storage backend 2020-09-30 13:32:39 +02:00
9ce2ba1c55
suit/storage/ram: Introduce RAM storage backend for SUIT 2020-09-30 13:32:38 +02:00
7742750abd
suit: Introduce generic storage backend
This commit introduces a common storage backend for SUIT manifest
payloads. Different backends can be compiled into a single firmware.
Degending on the component name in the SUIT manifest, a storage backend
is selected by the parser.
2020-09-30 13:32:38 +02:00
Vincent Dupont
b4f29035ce native/can: fix CAN init
Native CAN device was not properly ported to periph_can interface.
This commit fixes this by renaming all needed structures and files so
auto_init_can can initialize the native device. FEATURES_PROVIDED is
also updated for native.
2020-09-30 12:59:03 +02:00
Vincent Dupont
98c39d5104 can: add proper checks for ifnum validity
Most functions were using asserts, but in some cases it might not be a
programmatic error to pass an invalid ifnum. This makes sure the code
does not crash by testing it at runtim and returning an error.
2020-09-30 12:59:02 +02:00
Benjamin Valentin
307ea6224a net/eui48: add eui64_to_eui48()
Provide helper function to mangle a EUI-64 into an EUI-48.
This can be useful to get predictable, locally unique addreses.
2020-09-30 11:18:36 +02:00
Benjamin Valentin
d7943a49aa net/eui48: reorder code
Move eui48_set_local() and eui48_clear_group() to the top so we can
use it later in the file.
2020-09-30 11:18:34 +02:00
benpicco
0bc80250cf
Merge pull request #15101 from benpicco/sys/net/uhcp-log
sys/net/uhcp: use LOG_xxx functions
2020-09-30 11:08:53 +02:00
2dab6c7b30
Merge pull request #15111 from maribu/xtimer-assert
sys/{x,z}timer: assert() successful initialization of periph_timer
2020-09-30 08:52:34 +02:00
aa6e64316c
Merge pull request #15053 from kaspar030/ztimer_periodic
sys/ztimer: add periodic timers API
2020-09-29 23:58:51 +02:00
548c4f02fc sys/ztimer: add ztimer_periodic 2020-09-29 23:04:39 +02:00
Marian Buschsieweke
a206df5399
Merge pull request #15104 from maribu/platform
sys/architecture: New module to access architecture internals in platform-independent way
2020-09-29 18:12:34 +02:00
ea007ada05
suit: Mark conversion function arguments as const
Small cleanup to mark arguments of the conversion functions for param to
cbor and vice versa as const where possible
2020-09-29 15:18:57 +02:00
f05c5f7708
riotboot/flashwrite: Add force flush to storage function 2020-09-29 15:18:56 +02:00
a00314bfc4
riotboot: Add function to retrieve the slot size 2020-09-29 15:18:52 +02:00
fc794d9a21
Merge pull request #15092 from bergzand/pr/suit/per_component_flags
suit: Introduce per-component flags
2020-09-29 15:03:06 +02:00
72ef2086b5
suit: Group the HAVE_COMPONENTS flag with the others 2020-09-29 13:09:32 +02:00
d9cf10c109
suit: Introduce per-component flags 2020-09-29 13:09:32 +02:00
benpicco
9970a26277
Merge pull request #15113 from kaspar030/fix_ztimer_spin
ztimer: fix ztimer_spin() time_left == duration case
2020-09-29 13:00:19 +02:00
Marian Buschsieweke
27c1c453f7
sys: Module to access architecture details
Add a platform independent way to access architecture details. Currently only
macros to query word size, word sized integer types, and a type qualifier for
aligning variables to word boundaries are provided.
2020-09-29 12:33:59 +02:00
70b160713e ztimer: add comment explaining ztimer_spin() logic 2020-09-29 11:53:35 +02:00
Marian Buschsieweke
a6dc9bdb2d
sys/ztimer: assert() successful initialized
Use an `assert()` to make sure that `periph_timer` was successfully initialized.
2020-09-29 11:52:26 +02:00
Marian Buschsieweke
6deb89f887
sys/xtimer: assert() successful initialized
Use an `assert()` to make sure that `periph_timer` was successfully initialized.
2020-09-29 11:52:26 +02:00
Martine Lenders
f55031e65d
Merge pull request #15079 from miri64/gnrc_ipv6_nib/enh/multicast-6LN-UNREACHABLED-probe
gnrc_ipv6_nib: only multicast probe UNREACHABLE neighbor if 6LR
2020-09-29 11:49:27 +02:00
07a1dde684 ztimer: fix ztimer_spin() time_left == duration case 2020-09-29 11:23:28 +02:00
Martine Lenders
9631576b22
gnrc_ipv6_nib: make ARO extra status codes also available without 6LN 2020-09-29 10:45:12 +02:00
Martine Lenders
04f6e06dd4
gnrc_ipv6_nib: only multicast probe UNREACHABLE neighbor if 6LR
Non-routing 6LNs do not have to join the solicited nodes address, so
probing for a neighbor using that address may be in vain and only
spamming the LLN with unnecessary messages. RFC 6775 basically assumes
this in section 5.2:

> There is no need to join the solicited-node multicast address, since
> nobody multicasts NSs in this type of network.
2020-09-29 10:45:12 +02:00
Benjamin Valentin
f163f1580b sys/net/uhcp: use LOG_ functions
Using `gnrc_border_router` with `uhcp` is quite noisy.
uhcpc will regularly refresh the prefix and print a bunch of status messages.

Allow the user to tone it down by setting a higher `LOG_LEVEL`.
For this, convert calls to `printf()` and `puts()` to `LOG_xxx()`.

This requires a dummy header for `uhcpd`.
2020-09-29 09:55:28 +02:00
Francisco
bfb8fc52b1
Merge pull request #15094 from bergzand/pr/suit/secure_fetch
SUIT: fail fetch if the image size doesn't match expected
2020-09-28 14:11:26 +02:00
ab0cc57997
suit: Only finish the flashwrite when mock is not active
This can be removed as soon as the SUIT module has a proper storage
abstraction
2020-09-28 13:03:40 +02:00
Martine Lenders
4a133a7d30
Merge pull request #15088 from maribu/sc_gnrc_icmpv6_echo
sys/shell/commands/gnrc_icmpv6_echo: Fix alignment
2020-09-28 11:30:08 +02:00
ad45506924
Merge pull request #15082 from leandrolanzieri/pr/sys/net/remove_routing
sys/net: remove unused routing directory
2020-09-27 15:55:30 +02:00
Juergen Fitschen
62fb4a2ade
Merge pull request #13661 from jue89/feature/evtimer_on_ztimer
sys/evtimer: introduce ZTIMER_MSEC as timer backend
2020-09-27 14:07:04 +02:00
91df9cae87
suit: Finalize image after digest verification 2020-09-26 14:40:14 +02:00
791155d3dd
suit/coap: fail fetch if the image size doesn't match expected 2020-09-26 13:34:50 +02:00
cdf45f9798
suit: Move policy check to before fetch
This prevents the whole payload fetch if the manifest fails the policy
check
2020-09-26 12:48:53 +02:00
Juergen Fitschen
dfec601dea sys/evtimer: adjusted documentation for evtimer_on_ztimer 2020-09-25 18:55:01 +02:00
Marian Buschsieweke
5a04f48238
sys/shell/commands/gnrc_icmpv6_echo: Fix alignment
Fix unaligned memory access in `ping6` shell command
2020-09-25 12:42:02 +02:00
Francisco
ad9e35c445
Merge pull request #14436 from bergzand/pr/suit/ietf_v7
SUIT: Upgrade to draft-ietf-suit-manifest-09
2020-09-24 21:57:24 +02:00
c8ecc9c3ca
suit: Upgrade manifest parser to IETF-v9 compliance 2020-09-24 21:15:08 +02:00
Leandro Lanzieri
0cd94c7c67
sys/net: remove unused routing directory 2020-09-24 17:32:34 +02:00
f25398ae25
Merge pull request #15075 from benpicco/evtimer_warn
sys/evtimer: copy warning from xtimer
2020-09-24 16:28:44 +02:00
Martine Lenders
555c62de51
gnrc_ipv6_nib: set NCE stale on incoming ARO
In accordance with RFC 6775, section 5.2 an NCE should be set STALE
when an ARO renews the address registration for the address:

> The routers SHOULD NOT garbage-collect Registered NCEs (see
> Section 3.4), since they need to retain them until the Registration
> Lifetime expires.  Similarly, if NUD on the router determines that
> the host is UNREACHABLE (based on the logic in [RFC4861]), the NCE
> SHOULD NOT be deleted but rather retained until the Registration
> Lifetime expires.  A renewed ARO should mark the cache entry as
> STALE.  Thus, for 6LoWPAN routers, the Neighbor Cache doesn't behave
> like a cache.  Instead, it behaves as a registry of all the host
> addresses that are attached to the router.
2020-09-24 13:13:43 +02:00
Juergen Fitschen
838d1007b3 gnrc/mac/timeout: add missing include 2020-09-24 13:06:47 +02:00
Benjamin Valentin
bb2b6adb7e sys/evtimer: copy warning from xtimer
Callbacks from evtimer are still executed in interrupt context.
While xtimer warns about this, evtimer leaves the user unsuspecting.

Copy the warning from xtimer to keep users vigilant.
2020-09-24 11:52:56 +02:00
Juergen Fitschen
c3a20f8fb8 sys/evtimer: introduce ZTIMER_MSEC as timer backend 2020-09-24 11:30:26 +02:00
Marian Buschsieweke
0ce6f2f375
sys/xtimer: untangle from core/mutex
Place a verbatim copy of `_mutex_lock()` as `static` in `xtimer`, so internal
mutex function can be optimized one step at a time without breaking `xtimer`.
2020-09-24 07:42:35 +02:00
e719eaf97c
Merge pull request #15003 from kaspar030/ztimer_now64_tick
ztimer/core: ensure half-period tick when ztimer_now64 is used
2020-09-23 14:14:52 +02:00
Martine Lenders
711ea275e9
Merge pull request #15042 from maribu/gnrc_dont_include_xtimer_when_not_used
sys/net/gnrc/netif: Fix compilation on waspmote-pro
2020-09-23 13:37:36 +02:00
18852cf30c ztimer/core: ensure half-period tick when ztimer_now64 is used 2020-09-23 13:11:29 +02:00
Martine Lenders
5e4c285323
Merge pull request #15056 from maribu/gnrc_pktbuf_static_alignment
sys/net/gnrc/pktbuf_static: Fix alignment
2020-09-22 17:07:07 +02:00
Martine Lenders
db6355fb13
Merge pull request #15054 from haukepetersen/fix_emcute_msgupdate
net/emcute: fix buffer overflow in _willupd_msg()
2020-09-22 15:51:05 +02:00
Marian Buschsieweke
28d4bf7751
sys/net/gnrc/pktbuf_static: Fix alignment
The buffer _pktbuf was previously only aligned to a 1 byte boundary. This could
result in run time issues.
2020-09-22 15:04:56 +02:00
Francisco
f3a5ee69e0
Merge pull request #14936 from kaspar030/ztimer_sleep_adjust
sys/ztimer: allow compensation of ztimer_sleep() overhead
2020-09-22 14:56:56 +02:00
Marian Buschsieweke
8a5d301caa
sys/net/gnrc/netif: Fix compilation on waspmote-pro
xtimer.h must not be included, when the xtimer module is not use. Otherwise
compilation on the waspmote-pro with https://github.com/RIOT-OS/RIOT/pull/14799
will not longer work. gnrc_netif_pktq includes xtimer.h and uses xtimer, but
gnrc_netif includes gnrc_netif_pktq.h regardless of whether gnrc_netif_pktq
is used. This makes sure that gnrc_netif_pktq.h is only included when actually
used.
2020-09-22 11:51:09 +02:00
Marian Buschsieweke
1d1b446d6b
sys/net/gnrc/netif: use IS_USED macro 2020-09-22 11:50:18 +02:00
Hauke Petersen
3b424858de net/emcute: fix buffer overflow in _willupd_msg() 2020-09-22 11:43:00 +02:00
MichelRottleuthner
cdd1cd3ea2
Merge pull request #14978 from pokgak/xtimer/remove_set_absolute
xtimer: remove _xtimer_set_absolute
2020-09-21 10:03:25 +02:00
Marian Buschsieweke
7946eb766e
Merge pull request #15047 from kaspar030/fix_cdc_ecm_recv_return
sys/usb/usbus/cdc_ecm_netdev: fix _recv() return values
2020-09-18 22:45:13 +02:00
70d480c301 sys/usb/usbus/cdc_ecm_netdev: fix _recv() return values
Previously, the function would always return the max_len parameter.
This poses two issues:

1. the API requires to return the actual packet size
2. the API requires that if the packet is larger than max_len, the
   packet is flushed and -ENOBUFS is returned
3. this basically bypasses the packet flushing, consequtive _recv()
   would return the last packet again

This commit fixes those issues.
2020-09-18 21:04:15 +02:00
Marian Buschsieweke
0cb274c1eb
sys/net/gnrc: Fix include of xtimer.h
Make sure xtimer.h is only included if the xtimer module is actually used, as
otherwise compilation for the waspmote-pro fails.
2020-09-16 19:55:43 +02:00
benpicco
aac05cb393
Merge pull request #15024 from chrysn-pull-requests/declare-ull-constant
ipv6: Declare unsigned long long literal
2020-09-15 16:57:24 +02:00
chrysn
7e371bb1e6 ipv6: Declare unsigned long long literal 2020-09-15 12:55:29 +02:00
0ee2a8fa5f sys/ztimer: fix auto_init doc 2020-09-14 18:05:09 +02:00
benpicco
819dc7de90
Merge pull request #14843 from benpicco/picolibc_stdio_offset
picolibc: enable read()/write() with !VFS, implement missing fs functions
2020-09-11 18:04:01 +02:00
benpicco
d7edd8cb71
Merge pull request #14986 from benpicco/sys/luid-shuffle
sys/luid: shuffle bytes
2020-09-11 16:02:52 +02:00
Benjamin Valentin
28d1936fae sys/luid: shuffle bytes
The CPU ID can have large parts that are identical between devices.
To add some more entropy to the generated IDs, shuffle the bytes.
2020-09-11 13:01:31 +02:00
23fb19ad8d
Merge pull request #15009 from fjmolinas/pr_pipe_null_deref
sys/pipe/pipe_dynamic: fix possible null pointer dereference
2020-09-11 12:29:49 +02:00
Francisco Molina
ee379eb535
sys/pipe/pipe_dynamic: fix possible null pointer dereference 2020-09-11 11:19:58 +02:00
474cde6046
Merge pull request #15004 from kaspar030/ztimer_periodic_wakeup_32bit
ztimer: use uint32_t in ztimer_periodic_wakeup
2020-09-11 11:13:19 +02:00
6c2459057f
Merge pull request #14910 from OTAkeys/pr/thread_names
thread: Add THREAD_NAMES make flag
2020-09-11 10:54:10 +02:00
fb7e285acd ztimer: add ztimer_spin()
This adds a simple busy waiting function intended for blocking, but very
precise short delays.
2020-09-11 00:18:59 +02:00
ff1ea0bfb1 ztimer: use uint32_t in ztimer_periodic_wakeup
This ensures compatibility with xtimer_periodic_wakeup() in case
ztimer_now64 is used.
2020-09-10 23:39:48 +02:00
benpicco
f75ca11968
Merge pull request #14802 from jia200x/pr/nrf52840_radio_hal
nrf52840: implement Radio HAL
2020-09-10 18:07:51 +02:00
Jose Alamos
c74ee68674 net/ieee802154.h: add IFS constants 2020-09-10 17:01:13 +02:00
benpicco
8a2080ab91
Merge pull request #14997 from jia200x/pr/hal/reg_retention
ieee802154_hal: add cap for register retention during `off`
2020-09-10 14:53:10 +02:00