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

7577 Commits

Author SHA1 Message Date
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
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