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
Francisco Molina
3361f92202
pkg/nimble/autoconn: stop scan/adv on NETIF_ABORT_SLAVE
...
When a connection is aborted and the node in question is a slave
then it can be advertising/scanning at the time. The incoming
event triggers the state to be changed to IDLE but ongoing adv/scan
which will cause 'nimble_netif_conn_start_adv' to fail to allocate
a handle as the netif will still be busy. Therefore when
stop scan/stop before switching the state.
2021-08-03 09:21:47 +02:00
Benjamin Valentin
71ae768e56
net/gnrc/ipv6/nib: add option to include RIO with final RA
...
Sending a RA with ltime = 0 does not get us added to the default router
list, but the options (and therefore the RIO) are still parsed.
This even appears to work with Linux as a receiver.
2021-08-02 21:44:55 +02:00
Martine Lenders
3ddb0463ea
Merge pull request #16691 from leandrolanzieri/pr/pkg/wakaama_fix_obj_common
...
pkg/wakaama: fix object common `get` functions
2021-08-02 19:33:39 +02:00
Jose Alamos
68fb49b607
tests/gnrc_lorawan: add initial tests
2021-08-02 18:29:46 +02:00
Jose Alamos
179a2c2780
net/gnrc_lorawan: fix random_uint32_range upper bound
2021-08-02 10:28:17 +02:00
Dylan Laduranty
54a76ab2ce
Merge pull request #16694 from benpicco/boards/saml21-xpro_EXT3
...
boards/saml21-xpro: configure UART & SPI on EXT2, 3
2021-07-30 14:55:28 +02:00
Dylan Laduranty
e922412342
Merge pull request #16693 from benpicco/cpu/saml21-SERCOM5
...
cpu/saml21: uart: use arithmetic baud rate mode
2021-07-30 13:50:46 +02:00
Benjamin Valentin
f5622afeb6
boards/saml21-xpro: configure UART & SPI on EXT2, 3
2021-07-30 13:12:42 +02:00
Benjamin Valentin
ddf96f7000
cpu/saml21: uart: disable fractional baud rate
...
SERCOM5 on SAM L21 does not support fractional baud rate mode.
Instead of special-casing it, just use arithmetic baud rate mode
in general on this CPU, as I'm not sure what the advantages of fractional
baud rate mode are.
fixes #16692
2021-07-30 11:28:02 +02:00
Leandro Lanzieri
1d74a0341b
pkg/wakaama/common: return length when reading strings and opaques
...
This fixes the API to be able to return the read length of string and
opaque resources.
2021-07-30 09:45:20 +02:00
Leandro Lanzieri
113ae64a55
pkg/wakaama/common: fix lwm2m_set_objlink_by_path
2021-07-30 09:44:21 +02:00