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

36348 Commits

Author SHA1 Message Date
Martine Lenders
000c5b2364
Merge pull request #16722 from benpicco/gitignore-update
.gitignore: add *.rej and *.save
2021-08-10 18:37:36 +02:00
Benjamin Valentin
0c0ff546f1 .gitignore: add *.rej and *.save files 2021-08-10 16:04:33 +02:00
benpicco
7991e71384
Merge pull request #16721 from benpicco/sock/tcp-fix_doc
sock: tcp: fix Echo Server example
2021-08-10 14:41:42 +02:00
Benjamin Valentin
091e013ff0 sock: tcp: fix Echo Server example
The example has two errors:

 - `sock_tcp_accept()` expects a timeout parameter
 - `sock_tcp_stop_listen()` expects a pointer

with these fixed, the example actually compiles.
2021-08-10 13:45:56 +02:00
Martine Lenders
72e7f0c051
Merge pull request #16720 from MrKevinWeiss/pr/hilcireadme
README.md: Expose HiL CI overview link
2021-08-10 12:57:19 +02:00
MrKevinWeiss
95645701b6
README.md: Expose HiL CI overview link 2021-08-10 12:04:23 +02:00
Martine Lenders
c86bd7454c
Merge pull request #16557 from benpicco/gnrc_ipv6_nib-fib_on-link
gnrc_ipv6_nib: consider largest prefix match when deciding if host on-link
2021-08-09 18:53:40 +02:00
Martine Lenders
5d1c8e2643
Merge pull request #16718 from benpicco/gnrc_netif_ipv6_add_prefix-fix
gnrc_netif: properly initialize address in gnrc_netif_ipv6_add_prefix()
2021-08-09 18:06:15 +02:00
benpicco
7ff4108263
Merge pull request #16717 from benpicco/avr-strerror
avr_libc_extra: implement strerror()
2021-08-09 17:45:16 +02:00
Benjamin Valentin
452500b3eb gnrc_ipv6_nib: consider largest prefix match when deciding if host on-link
If the fib contains a route to a subnet via another host, it can not
be on-link.

Consider fib entries when deciding whether an address is on-link.
If a route via another host is a stronger match than an on-link
prefix, the address must be off-link.
2021-08-09 16:57:14 +02:00
Benjamin Valentin
f4fa197951 gnrc_netif: properly initialize address in gnrc_netif_ipv6_add_prefix()
Initialize addr with 0 first.
Otherwise if prefix is < 64 there will be random bits of stack memory
in the bits of the address that are neither touched by ipv6_addr_set_aiid()
nor ipv6_addr_init_prefix().
2021-08-09 16:50:21 +02:00
Benjamin Valentin
64846c0af4 avr_libc_extra: implement strerror()
Add a minimal implementation of `strerror()`.
All other targets use either newlib or picolibc and provide this
function, add it to AVR so we can rely on it in common code.
2021-08-09 16:24:04 +02:00
benpicco
02d80eefc9
Merge pull request #16627 from fabian18/cpu_rp2040_periph_timer
cpu/rpx0xx: add periph timer
2021-08-09 13:32:05 +02:00
Jose Alamos
a6d0052ff0
drivers/cc2538_rf: don't poll internal FSM state 2021-08-09 11:39:00 +02:00
Jose Alamos
3fce21a62b
drivers/cc2538_rf: disable RX detection during CCA 2021-08-09 11:37:17 +02:00
Fabian Hüßler
258681f012 tests/ztimer_periodic: fix name clash with rp2040 vendor header 2021-08-09 10:45:35 +02:00
Fabian Hüßler
e89ef368c1 cpu/rpx0xx: implement periph timer 2021-08-09 10:45:34 +02:00
Martine Lenders
6e0c8db99f
Merge pull request #16706 from miri64/gnrc_ipv6_nib/enh/offset-time-functions
gnrc_ipv6_nib: provide functions to get offset of public timestamps
2021-08-08 02:28:12 +02:00
Martine Lenders
c33e40cce1
gnrc_ipv6_nib: provide functions to get offset of public timestamps 2021-08-07 14:04:44 +02:00
benpicco
8c7db062af
Merge pull request #16711 from nicoHarel/cpu/nrf52/periph/i2c
cpu/nrf52: i2c: add support for 16-bit register addresses
2021-08-06 16:55:53 +02:00
Marian Buschsieweke
7aab478678
drivers/soft_spi: update API to match periph_spi 2021-08-06 12:47:00 +02:00
Marian Buschsieweke
9e5f7b6797
drivers/periph_spi: make spi_acquire() return void
There is no way to properly handle incorrect SPI parameters at run time, so
just having an assertion blow up is the better choice here.

As most instances of `spi_acquire()` don't check the return value anyway, this
will improve debugging experience quite a bit. Some implementation of
spi_acquire() don't even check parameters anyway.
2021-08-06 12:46:57 +02:00
Nicolas Harel
580b8d6561 cpu/nrf52: i2c: add support for 16-bit register addresses
Removed VLA


removed unused reg buffer


Added mutex 


Buffer comment correction
2021-08-06 11:06:59 +02:00
Francisco Molina
9195f772ad sys/net/nanocoap: block_finish returns if more are expected 2021-08-06 09:29:03 +02:00
Francisco
c4df2cca51
Merge pull request #16708 from fjmolinas/pr_edhoc_c_bump
pkg/edhoc: bump version
2021-08-06 09:26:28 +02:00
benpicco
81df6d6fcb
Merge pull request #16712 from miri64/gcoap+nanocoap/enh/buffer-path
nanocoap & gcoap: allow path to be non-`\0`-terminated.
2021-08-05 17:25:41 +02:00
Martine Lenders
17b9c5adbb
Merge pull request #16707 from benpicco/sys/uri_parser-constify
uri_parser: constify result
2021-08-05 15:55:45 +02:00
benpicco
ba3eb5fc3f
Merge pull request #16713 from nmeum/pr/picolib_error_color_reset
picolibc: Reset color in error message if picolibc is not available
2021-08-05 15:02:33 +02:00
Sören Tempel
6dc6433663 picolibc: Reset color in error message if picolibc is not available
This is a regression which was introduced in #16114, without resetting
the color the red color will be used for all following text written to
the terminal and will also cause the shell prompt etc. pp. to be colored
in red which is undesirable. This commit fixes this regression by using
the ANSI escape sequences to reset the color after the error message has
been written.
2021-08-05 20:52:15 +02:00
Benjamin Valentin
9bce87d6da pkg/wakaama: don't modify result of uri_parser 2021-08-05 14:05:31 +02:00
Martine Lenders
5d59065b09
gcoap: provide buffer version of gcoap_req_init()
This simplifies the usage of `gcoap` with modules such as `uri_parser`
greatly.
2021-08-05 13:31:07 +02:00
Martine Lenders
adce90343c
nanocoap: provide buffer version of coap_opt_add_uri_path()
This simplifies the usage of `nanocoap` with modules such as
`uri_parser` greatly.
2021-08-05 11:25:13 +02:00
Martine Lenders
1b0152bd73
Merge pull request #16709 from leandrolanzieri/pr/net/netif_get_by_name_buf
net/netif: add function to get interface by name from a buffer
2021-08-04 19:37:55 +02:00
Leandro Lanzieri
d2d1c7ede9
tests/gnrc_netif: add test for netif_get_by_name_buffer 2021-08-04 18:12:56 +02:00
Leandro Lanzieri
d8cf157b26
sys/net/netif: add netif_get_by_name_buffer function 2021-08-04 18:12:56 +02:00
Francisco Molina
3cc4a8ed15 pkg/edhoc: bump version
Bumps EDHOC-C version to fix broken state due to Nanocbor return
code values change.
2021-08-04 17:09:02 +02:00
Francisco Molina
6198604e3e examples/default: use Makefile.boards.netif 2021-08-04 17:09:02 +02:00
Francisco Molina
ebe40a1000 tests/netstats_l2: use Makefile.boards.netif 2021-08-04 17:09:02 +02:00
Francisco Molina
e6bf97dca0 tests/Makefile.boards.netif: add non-exhaustive list of BOARDs providing netif 2021-08-04 17:09:02 +02:00
José Alamos
39d27c2f7c
Merge pull request #16533 from jia200x/pr/submac_fixes
ieee802154/submac: fix initialization code
2021-08-04 16:53:58 +02:00
Peter Kietzmann
e1a8280e2b
Merge pull request #16689 from Ollrogge/usb_hid_pr2
usbus/hid_io: add missing header file, add RX callback function
2021-08-04 15:56:33 +02:00
Ollrogge
2c2eb88c0e usbus/hid: uncrustify files 2021-08-04 14:54:33 +02:00
Ollrogge
834ac3f5a5 usbus/hid_io: add missing header file, add RX callback function 2021-08-04 14:54:33 +02:00
Benjamin Valentin
b068d9245d uri_parser: constify result
`uri_parser_process()` takes a `const char *` as input parameter but
the result is a struct of `char *` to the original string.

This may lead a user to modifying the strings in `uri_parser_result_t`
which will cause a crash if the original string resides in read-only
memory (and violates the no-modifications promise of the const parameter
in `uri_parser_process()`).

To fix this, make the resulting strings `const` as well, so nobody dares
to touch them in a writing way.
2021-08-04 14:01:28 +02:00
Martine Lenders
5c2b599efa
Merge pull request #16695 from miri64/uri_parser/enh/query-split
uri_parser: provide function to split query
2021-08-04 13:54:19 +02:00
Martine Lenders
4d2a942b5e
tests/unittests: amend uri_parser tests for query-splitter 2021-08-04 12:47:28 +02:00
Martine Lenders
af03ba4aa8
uri_parser: provide function to split query 2021-08-04 12:47:28 +02:00
José Alamos
91fe57a4d1
Merge pull request #16654 from jia200x/pr/gnrc_lorawan_tests
tests/gnrc_lorawan: add initial tests
2021-08-04 10:33:33 +02:00
Martine Lenders
8492bd7b12
Merge pull request #16568 from benpicco/gnrc_ipv6_nib-rio
gnrc_ipv6_nib: handle route information option and add config to add to final RAs
2021-08-03 15:44:01 +02:00
Francisco Molina
fd63142ea2 pkg/mynewt-core: change task start log level 2021-08-03 11:31:01 +02:00