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

1773 Commits

Author SHA1 Message Date
Benjamin Valentin
1dc555e362 dist/tools/cosy: allow to specify port 2022-06-11 14:46:44 +02:00
Leandro Lanzieri
d237fab620
dist/tools/kconfiglib: add configuration evaluation function
This removes the existing hack, in which we wrote the configuration to
/dev/null to trigger its evaluation. Instead a function for this
specific purpose is added.
2022-06-10 20:30:32 +02:00
Benjamin Valentin
43d752f677 boards/samd20-xpro: add definition for UART on EXT2
We can't use PB13/PB12 which would be the 'standard' UART pins on
the -xpro EXT connectors since only SERCOM4 can map to those - and
that's already used on EXT1.

So use the adjacent PA08/PA09 with SERCOM0.
2022-06-09 14:16:27 +02:00
benpicco
e7ac109f0e
Merge pull request #18170 from RocioRojas/zep_dispatch
tools/zep_dispatch: run dispatch with custom topology
2022-06-08 12:04:58 +02:00
Rocio
85aa78b102 tools/zep_dispatch: run dispatch with custom topology 2022-06-07 09:39:35 -04:00
Marian Buschsieweke
22aed458d5
dist/tools/usb-serial/ttys.py: add --iface-num
This is useful when a debugger provides multiple serial interfaces, e.g.
one to control the debugger and one as UART bridge.
2022-06-03 19:59:30 +02:00
Marian Buschsieweke
f0068a7c96
dist/tools/usb-serial/ttys.py: clean up unused function
The shorten() function was previously used to fit in overlong entries
into the table. But since it is no longer used, it can be dropped.
2022-06-03 19:59:30 +02:00
Benjamin Valentin
b518b0ef6b makefiles/suit: don't allow non-owner to read private key 2022-06-02 13:22:37 +02:00
Francisco Molina
69e4747ecc setup.cfg: remove bad option 2022-06-02 11:42:53 +02:00
Francisco Molina
fabcdf88a4 dist/tools/compile_and_test_for_board: fix lint 2022-06-02 11:42:53 +02:00
Karl Fessel
6e41c685b2
Merge pull request #17935 from dp1/ir_nec
drivers/ir_nec: NEC remote receiver implementation
2022-06-01 13:44:51 +02:00
Dario Petrillo
18f8a476e6
drivers/ir_nec: ir remote implementation 2022-05-31 17:58:39 +02:00
benpicco
4b6da5c8e4
Merge pull request #17863 from benpicco/sam0_sdhc
cpu/samd5x: add SD Host Controller implementation
2022-05-31 15:33:24 +02:00
Benjamin Valentin
b97359ea71 boards/same54-xpro: configure FAT on SD card 2022-05-31 11:07:20 +02:00
Benjamin Valentin
4bc5505b08 tools/suit/manifest-generator: add support for loading encrypted keys 2022-05-24 01:29:53 +02:00
Benjamin Valentin
3734839b41 dist/tools/suit: generate password-protected private key 2022-05-24 01:29:53 +02:00
chrysn
6d3fb861c3 dist/compile_commands: Filter out GCC specific -misa-spec=2.2 2022-05-13 17:13:43 +02:00
Martine Lenders
73bcd83543
nanocoap_cache, forward_proxy: add ETag validation support 2022-05-12 13:22:41 +02:00
Cenk Gündoğan
8750605d26
nanocoap: add cache for response messages 2022-05-10 18:43:56 +02:00
benpicco
59ec6f1ccd
Merge pull request #18076 from benpicco/tools/edbg-bump
tools/edbg: bump version
2022-05-10 10:50:29 +02:00
Marian Buschsieweke
b42197f323
dist/tools/compile_commands: don't adds -nostdinc
This fixes unintended side affects on rust compilation, which currently
relies on this tool to generate appropriate flags.
2022-05-09 22:32:54 +02:00
Benjamin Valentin
60e59ab939 tools/edbg: bump version
- adds a few more SAM D/L device IDs
 - add support for NXP MCU-LINK
 - add support for Lattice LCMCO2
2022-05-09 15:43:00 +02:00
Marian Buschsieweke
c1b5f360b1
Merge pull request #18063 from maribu/dist/tools/compile_commands
dist/tools/compile_commands: fix clangd linting
2022-05-09 10:23:54 +02:00
benpicco
32def76a3c
Merge pull request #17338 from benpicco/tools/zep_dispatch-mac_pin
tools/zep_dispatch: allow to pin nodes to MAC address
2022-05-06 21:52:13 +02:00
Marian Buschsieweke
6e2f726f5e
dist/tools/compile_commands: fix clangd linting
This fixes bogus clangd linting errors for C11 stdatomic.h due to
incorrect order of header search paths and missing -nostdinc
2022-05-05 20:36:43 +02:00
Martine Lenders
b167d6931c
Merge pull request #17774 from fjmolinas/pr_nimble_auto_adv_extended
pkg/nimble/autoadv: add support for ext_adv
2022-04-27 16:44:46 +02:00
Francisco Molina
3702087084 pkg/nimble/autoadv: add support for ext_adv 2022-04-27 08:22:58 +02:00
chrysn
0a72fc9255
Merge pull request #16812 from chrysn-pull-requests/cord-doc-discoverability
net/cord doc: Usability fixes
2022-04-26 21:10:52 +02:00
chrysn
92e877b0c1 doxygen: Remove check exclusions for recent fixes 2022-04-26 18:52:08 +02:00
Benjamin Valentin
15ab9bbdcd tools/usb-cdc-ecm: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Benjamin Valentin
efb4b2ea61 tools/sliptty: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Benjamin Valentin
83c2d1bebe tools/ethos: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Benjamin Valentin
8557a15c8f tools/zep_dispatch: add support for radvd / auto_subnets 2022-04-22 22:22:28 +02:00
Francisco Molina
ee9bf559fe sys/sc_suit: aligh seq_no format with riotboot_hdr 2022-04-21 16:59:32 +02:00
benpicco
0e5900d597
Merge pull request #17941 from fjmolinas/pr_suit_seq_no_cmd
sys/sc_suit: add seq_no command
2022-04-17 23:44:20 +02:00
chrysn
25e11d99b1 make: Sort >/dev/null and 2>&1 when used with command
This is a follow-up for [16775], and was not caught there as that search
was limited to `which`.

Note that while this line can be simplified, the redirects ensure that
GNU Make < 4.3 will not optimize it into its own built-in shell that
does not know `command`.

[16775]: https://github.com/RIOT-OS/RIOT/pull/16775
2022-04-16 10:04:20 +02:00
chrysn
d94b4e0ec1 makefiles: Reject 2>&1 > /dev/null
While this could theoretically be desired, it's usually just a mishap.
It is unlikely that legitimate cases will be needed in the build system;
if so, they can exclude themselves.

See-Also: https://github.com/RIOT-OS/RIOT/pull/16775
2022-04-16 10:04:17 +02:00
Francisco Molina
81cbf83478 dist/riotctrl_shell: add suit interactions 2022-04-14 13:47:34 +02:00
Benjamin Valentin
8081312a2f boards/samr34-xpro: configure second timer & uart 2022-04-11 18:13:49 +02:00
Dario Petrillo
446b48d109
tools/doccheck: update exclude patterns for b-l475e-iot01a 2022-03-30 17:14:13 +02:00
Francisco
4f3d7c9e1f
Merge pull request #17853 from fjmolinas/pr_z1_socat
makefiles: socat set tty mode 8N1
2022-03-29 10:29:47 +02:00
chrysn
9458cd91ea
Merge pull request #17876 from maribu/dist/tools/usb-serial
dist/tools/usb-serial/ttys.py: Add regex support
2022-03-28 16:16:35 +02:00
Marian Buschsieweke
d61e28fe27
dist/tools/usb-serial/ttys.py: Add regex support
Use regular expressions instead of matching literal strings for all
attributes instead of the serial number to be more flexible.

The idea is to aid users when multiple boards are connected to a machine
but each of a different type. If a board would define filter arguments
for dist/tools/usb-serial/ttys.py it could be possible to detect the
right TTY automatically, without user-side modifications. However,
some boards present different model names depending on the firmware
version of the programmer. Support for regular expressions can provide
the flexibility needed to just match all revisions and variants of a
board.
2022-03-28 10:57:00 +02:00
Karl Fessel
88942be06c dist/tools/goodfet: set serial parity to none on exit 2022-03-28 10:19:50 +02:00
Leandro Lanzieri
aa97392cad
dist/tools/kconfiglib: avoid rewriting /dev/null 2022-03-28 10:15:10 +02:00
Francisco Molina
1f5a96deea boards/arduino-mega2560: add ztimer adjust paramters 2022-03-22 15:20:31 +01:00
039241ac4b
tools/doccheck: extend exclude patterns for nucleo-f439zi 2022-03-21 08:11:44 +01:00
b9b64650ad
tools/doccheck: extend exclude patterns for nucleo-f429zi 2022-03-18 16:19:16 +01:00
benpicco
1e66baf94b
Merge pull request #17699 from viktorbatista/shtc3
drivers/shtcx: converted the shtc1 driver into shtcx and added shtc3 support
2022-03-18 14:05:42 +01:00
698665edad
tools/pr_check: add Update keywork to need squashing check 2022-03-17 20:01:06 +01:00
bfead579ba
doccheck: exclude adafruit-pybadge periph_conf.h 2022-03-16 17:23:50 +01:00
Benjamin Valentin
22f17abee0 tools/benchmark_udp: fix build 2022-03-11 16:32:28 +01:00
benpicco
08c2cf6b27
Merge pull request #17769 from gschorcht/cpu/esp32/gcc_8_4_0_espressif_tools
cpu/esp32: update to Espressif's precompiled ESP32 vendor toolchain with gcc 8.4.0
2022-03-11 09:30:23 +01:00
e59a6786a6
Merge pull request #17652 from kaspar030/split_core_lib
core: split out library code
2022-03-10 20:17:07 +01:00
Vic
07531cdecd shtc1->shtcx: renamed files 2022-03-10 14:47:34 +01:00
chrysn
cd1c64c8ff
Merge pull request #17737 from maribu/dist/tools/usb-serial
dist/tools/usb_serial: Add tool for listing and filtering TTY interfaces
2022-03-10 13:19:58 +01:00
36eaf6f6ea tools/zep_dispatch: fixup core -> core/lib include path 2022-03-10 09:54:11 +01:00
Gunar Schorcht
55c1381103 codespell: fix false positive 2022-03-10 05:31:04 +01:00
Gunar Schorcht
26c7bfdca3 cpu/esp: helper scripts for ESP32 toolchain installation 2022-03-10 05:31:04 +01:00
Marian Buschsieweke
b296ade6b2
dist/tools/usb-serial: Add ttys.py
- Provide a new tool to list and filter TTYs
- Change `Makefile.include` to use `$(RIOTTOOLS)/usb-serial/ttys.py`
  instead of `$(Q)$(RIOTTOOLS)/usb-serial/list-ttys.sh` to implement
  `make list-ttys`
- Extend `makefiles/tools/serial.inc.mk` to allow using the most recent
  port by passing `MOST_RECENT_PORT=1` as environment variable or
  parameter to make

Co-authored-by: chrysn <chrysn@fsfe.org>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
2022-03-09 15:40:36 +01:00
Gunar Schorcht
395ec06c16 dist/tools/esptool: upgrade to v3.2 for ESP32 2022-03-08 09:31:42 +01:00
benpicco
f31fdfd12d
Merge pull request #17747 from leandrolanzieri/drivers/encx24j600/default_params
drivers/encx24j600: define default parameters
2022-03-05 10:29:48 +01:00
eec8b7a8d4
tree-wide: emulators: s/RUNTIME_TMP_DIR/EMULATOR_TMP_DIR 2022-03-04 13:44:51 +01:00
Leandro Lanzieri
c33cfdfaec
Merge pull request #17742 from gschorcht/cpu/esp/rename_esptool_dir
dist/tools: rename directory esptool to esptools to use it for multiple tools
2022-03-04 11:58:40 +01:00
Leandro Lanzieri
de79edb352
drivers/encx24j600: define default parameters 2022-03-04 09:58:50 +01:00
Gunar Schorcht
cbbd02d520 dist/tools: rename esptool to esptools to use it for several tools
The directory `dist/tools/esptool` already contains a couple of ESP tools and not only esptool.py. As the location for a couple of ESP related tools, it is more clear to call it `esptools` instead of `esptool`.
2022-03-04 08:34:19 +01:00
Karl Fessel
415f9aa0ee make/emulate: use unix sockets with qemu 2022-03-03 17:15:50 +01:00
Dylan Laduranty
bd49ea91db
Merge pull request #17396 from fjmolinas/pr_docker_env_vars_allways
makefiles/docker.inc.mk: add DOCKER_ENV_VARS_ALWAYS
2022-03-02 22:02:02 +01:00
c190a87dce
pkg: move lvgl v7 to separate directory and deprecate 2022-02-25 14:24:28 +01:00
c6151226ad
Merge pull request #17633 from fjmolinas/pr_ztimer_auto_adjust
sys/ztimer: add auto_adjust module
2022-02-23 10:01:05 +01:00
Benjamin Valentin
ce9017e71b tools/zep_dispatch: allow to pin nodes to MAC address
Positions in the topology are handed out first come first serve.
This makes it hard to have a reproducable setup if the ZEP dispatcher is
restarted (e.g. to modify the topology).

Fix this by allowing to specify a MAC address for each node.
If a node with a pinned MAC address connects, it will always be assigned to
the same topology node.
2022-02-22 17:35:04 +01:00
Francisco
dd150fe47e
Merge pull request #17584 from benpicco/auto_init_leds
sys/auto_init: add auto_init_leds, drop LED init code from boards
2022-02-18 19:40:50 +01:00
Benjamin Valentin
982598a199 drivers/periph_common: add periph_init_leds to init all on-board LEDs 2022-02-18 14:35:43 +01:00
Francisco Molina
59d069c59d boards: update CONFIG_ZTIMER_USEC_ADJUST% values 2022-02-18 13:07:49 +01:00
Benjamin Valentin
5476d74f53 tools/dhcpv6-pd_ia: create /run/kea on startup
On Ubuntu KEA expects this directory to be present, but it is not
created automatically.
/run is also a tmpfs, so we have to create the directory after each
reboot.
2022-02-17 18:34:07 +01:00
krzysztof-cabaj
4bb5487f86 tools/cpy2remed: Addition of cpy2remed programmer to nucleo-L552ZE-Q 2022-02-11 08:27:25 -05:00
Silke Hofstra
9d61bdbb06 sys/senml: add SenML modules
Add a basic SenML module and submodules with support for:

- Encoding SenML values as CBOR using NanoCBOR.
- Converting from Phydat to SenML.
- Reading and encoding SAUL sensors.
2022-02-11 12:38:21 +01:00
Francisco Molina
be7b8179d0 makefiles/docker.inc.mk: add DOCKER_ENV_VARS_ALWAYS
This adds a list of variables that should always be passed to docker
since they are commonly set in Makefile/Makefile.include and therefore
can not be checked for their origin.
2022-02-10 13:27:01 +01:00
Kevin "Tristate Tom" Weiss
d1fc526045
Merge pull request #17597 from leandrolanzieri/pr/tools/genconfig_add_hidden_sym_warning
dist/tools/genconfig: add error on hidden symbols
2022-02-10 13:06:06 +01:00
Francisco
14f22c17aa
Merge pull request #12012 from HendrikVE/nimble_shell_module
sys/stdio_nimble: add new stdio module using nimble
2022-02-04 11:10:17 +01:00
Leandro Lanzieri
b7bf1e2bd7
dist/tools/genconfig: add error on hidden symbols
This extends the error messages to check if a symbol could not be set
due to its visibility.
2022-02-01 10:35:10 +01:00
Hendrik van Essen
7ab13448ef tests/shell_ble: add variant of shell test for stdio_nimble 2022-01-28 19:26:38 +01:00
Benjamin Valentin
40f71284b3 tools/zep_dispatch: document topogen usage 2022-01-28 17:09:38 +01:00
benpicco
f90bc7e827
Merge pull request #17576 from benpicco/boards/wlr089-xpro
boards/samr34-xpro: add minimal support for WLR089 Xplained Pro
2022-01-27 18:06:47 +01:00
chrysn
4f085222cf
Merge pull request #17577 from chrysn-pull-requests/compile_commands-updates
tools/compile_commands: Update --clangd set
2022-01-27 14:29:26 +01:00
Benjamin Valentin
a471f3583e drivers/sx127x: add support for WLR089/SAM R34
The device ID returned on WLR089 is 0x13 instead of 0x12, but it appears to
work just like sx1276.

Also check for the other device ID to make the driver work on this module.
2022-01-27 13:36:26 +01:00
a18c95e524
testbed-support: add iotlab mapping for nucleo-wl55jc and samr34-xpro 2022-01-27 11:46:39 +01:00
chrysn
4fb9f46e62 tools/compile_commands: use -Wno-unknown-warning-option
... instead of manual filtering

Some -Wwarning-type flags were removed because in combination with
-Werror they caused clang to fail when the warning type was unknown.
Rather than enumerating them (a manual process with the extra risk of
leaving warnings disabled longer than necessary), this adds
`-Wno-unknown-arning-option` which disables the warnings (that are
becoming erors through -Werror) raised when a warning's name is unknown.
2022-01-27 09:10:49 +01:00
chrysn
c3fa026226 tools/compile_commands: Filter out -msmall-data-limit=8
It is not available in the libclang version currently shipped with
riotdocker.
2022-01-27 08:58:35 +01:00
Leandro Lanzieri
4eb58d74b5
drivers/ft5x06: allow multiple device types 2022-01-21 13:13:09 +01:00
chrysn
13036c1bc4 net/iee802154 doc: Add overview / introduction documentation
The module previously called net_ieee802154 is renamed to capture that
it is about interacting the frames and headers, and moved "into" the new
topic in the documentation tree.

Exceptions for undocumented headers are updated.
2022-01-16 11:29:32 +01:00
Benjamin Valentin
1b71ccab09 tools/zep_dispatch: basic dual-stack support
Murdock does not support IPv6 on link-local interfaces.
Therefore in order to being able to use ZEP dispatcher in automated tests
on CI, we have to add dual-stack support.
2022-01-10 17:57:58 +01:00
5bbab90f57
tools/doccheck: extend exclude patterns 2022-01-09 16:43:35 +01:00
af1456440c
dist/iotlab: remove deprecated auto-ssh backward compatibility 2022-01-06 09:59:26 +01:00
benpicco
120e840b42
Merge pull request #16889 from benpicco/tools/zep_dispatch-topogen
tools/zep_dispatch: add topology generator
2022-01-05 13:47:23 +01:00
Benjamin Valentin
b6819b442a tools/zep_dispatch: add topology generator 2022-01-05 13:34:31 +01:00
86af5b5832
tools/doccheck: extend exclude patterns for b-u585i-iot02a 2021-12-23 11:04:42 +01:00
chrysn
a31947304f dist/tools/cosy: Update, refresh patch and drop applied patch 2021-12-22 14:16:37 +01:00
385e65f497
Merge pull request #17405 from kaspar030/can_fast_ci_run_skipcomments
tools: can_fast_ci_run.py: ignore comment changes for `\.[ch]$`
2021-12-17 09:12:59 +01:00
60f9ceabd1 tools: can_fast_ci_run.py: ignore comment-only change for .[ch] 2021-12-16 20:50:52 +01:00
chrysn
afdabcf9b6
Merge pull request #16274 from chrysn-pull-requests/rust-application
Add some Rust building infrastructure and example
2021-12-16 16:17:28 +01:00
chrysn
a72ee1fb03 compile_commands: Don't produce duplicate -c arguments 2021-12-16 13:29:31 +01:00
chrysn
d0ed537bae compile_commands: Filter out GCC-only -malign-data=natural 2021-12-16 13:29:30 +01:00
krzysztof-cabaj
940f1eea4b tools/elf2uf2: addition of new PROGRAMMER for rpi-pico board 2021-12-15 11:40:10 -05:00
chrysn
9560f18ee1 codespell: Allow 'crate' from Rust context 2021-12-14 13:27:42 +01:00
e080487da1 dist/tools: can_fast_ci_run: add murdock functionality 2021-12-13 10:59:28 +01:00
Francisco
b5085db348
Merge pull request #17326 from benpicco/dist/tools/zep_dispatch-foren6
tools/zep_dispatch: document foren6 usage
2021-12-07 15:22:28 +01:00
Benjamin Valentin
78dae6b9e6 tools/zep_dispatch: document foren6 usage 2021-12-07 11:59:43 +01:00
Benjamin Valentin
5ef70dbee9 tools/zep_dispatch: replace sniffer instead of ignoring it
There can only be a single sniffer, but instead of ignoring any subsequent
sniffers, replace the existing one.

This avoids the silly behaviour that you can't attach the sniffer anymore
should you ever quit it.
2021-12-07 11:59:42 +01:00
d94a53e593
Merge pull request #17239 from maribu/dist/tools/ci
dist/tools/ci: add can_fast_ci_run.py
2021-12-03 16:43:14 +01:00
Marian Buschsieweke
d643bd8d2b
dist/tools/ci: add script to check if fast run is possible 2021-12-02 21:05:12 +01:00
benpicco
a5c5a5d284
Merge pull request #16879 from benpicco/tools/zep_dispatch-sniffer
tools/zep_dispatch: add support for foren6 sniffer
2021-12-02 19:10:46 +01:00
Benjamin Valentin
c4ad82f5e6 pythonlib/riotctrl_shell: use ping instead of ping6 2021-11-29 17:39:12 +01:00
Benjamin Valentin
d9387fd82d static-tests: disable cppcheck
cppcheck produces too many false positives to be useful.
This is likely due to a configuration error (not all header files are included?)
but until this is sorted out, disable the tool as it currently does more harm
than good.
2021-11-28 21:43:34 +01:00
Martine Lenders
1b9146ec21
Merge pull request #17134 from miri64/cppcheck/enh/all-errors
cppcheck: output all annotations as error
2021-11-25 13:12:53 +01:00
Benjamin Valentin
851906763b tools/radvd: fix help text
radvd can be started on any interface, not just tap devices.
The help text is confusing.
2021-11-23 20:02:47 +01:00
68bfd8e257
tools/openocd: check OPENOCD_VERIFY after IMAGE_OFFSET is computed 2021-11-22 13:03:32 +01:00
dba0dab1b1
doccheck: add stm32f746g-disco warning to exclude patterns 2021-11-16 10:51:48 +01:00
Francisco
72abac66f1
Merge pull request #17183 from fjmolinas/pr_stm32wl_adc
cpu/stm32/wl: initial periph_adc implementation
2021-11-15 19:06:24 +01:00
benpicco
7c8504186e
Merge pull request #16109 from benpicco/dist/tools/create_makefile.ci.sh
tools/insufficient_memory: add create_makefile.ci.sh and Makefile.ci make target
2021-11-15 18:12:01 +01:00
Benjamin Valentin
0b3e4cd43f tools/insufficient_memory: add create_makefile.ci.sh 2021-11-15 17:41:54 +01:00
Francisco Molina
6346fc8613 boards/lora-e5-dev: map a4, a5 analog inputs 2021-11-15 17:07:21 +01:00
2f6b7bc651
Merge pull request #17082 from kaspar030/add_doxy_pattern_script
dist/tools/doccheck: add create_pattern.sh
2021-11-15 15:35:59 +01:00
benpicco
6f4c354461
Merge pull request #17139 from fjmolinas/pr_static_cocci_remove
dist/tools/coccinelle/force: remove static.cocci
2021-11-12 13:53:37 +01:00
Francisco
b609646961
Merge pull request #17138 from fjmolinas/pr_sx126x_fixes
drivers/sx126x: fix sync word and TX PA configuration
2021-11-11 10:59:08 +01:00
dba51edc69 net/uhcp[cd]: use modules to select client/server code 2021-11-09 21:42:45 +01:00
Francisco Molina
15b22f83c1 dist/tools/doccheck/exclude_patterns: add lora-e5-dev 2021-11-08 20:01:52 +01:00
Francisco Molina
acde16465a dist/tools/coccinelle/force: remove static.cocci
The rule is not behaving as it should and flagging all 'static'
variables based only on initialization (if the variable is initialized
before usage), but fails to recognize if 'static' is used to limit
visibility.
2021-11-05 08:45:55 +01:00
Martine Lenders
ca32d7704f
cppcheck: output all annotations as error on script error
`cppcheck` has a non-zero exit code even on warnings, so to not confuse
contributors, align the annotation output with that.
2021-11-04 15:43:02 +01:00
Francisco
c3226ba865
Merge pull request #17107 from miri64/treewide/fix/pycryptodome
pycrypto: use pycryptodome instead
2021-11-02 22:09:08 +01:00
Martine Lenders
ab9dd8f942
tools/vagrant: FreeBSD 12 updated to python 3.8 2021-11-02 13:45:50 +01:00
Martine Lenders
e38aec72b2
pycrypto: use pycryptodome instead
`pycrypto` is unmaintained [[1]] since v2.6.1 (released October 2013).
This version, however, has some severe vulnerabilities [[2]] [[3]].

The recommendation is to use the API-compatible `pycryptodome` library.

[1]: https://github.com/pycrypto/pycrypto/issues/173
[2]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-7459
[3]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6594
2021-11-02 13:28:42 +01:00
Francisco Molina
9a050dc2e8 dist/tools/doccheck/exclude_patterns: add new warnings 2021-11-02 11:48:50 +01:00
72cdaee46f dist/tools/uhcpd: remove project.py
This should never have made it into the repo, it's a build file for an
experimental build system I built years ago.
2021-11-01 21:13:10 +01:00
3cb3976ae0 dist/tools/doccheck: add create_pattern.sh 2021-10-29 12:21:39 +02:00
f27fce0eed doccheck: add nucleo-g07xrb group members to exclude_patterns 2021-10-29 10:49:38 +02:00
Benjamin Valentin
a711208a75 tools/zep_dispatch: add support for foren6 sniffer 2021-10-27 14:15:31 +02:00
benpicco
1b09720149
Merge pull request #16957 from benpicco/tools/zep_dispatch-ack_fix
tools/zep_dispatch: forward based on source addr, not MAC addr
2021-10-26 21:07:30 +02:00
Gunar Schorcht
697c44811a
Merge pull request #16911 from yarrick/esp_jtag
cpu/esp32: Add openocd programming support
2021-10-26 01:24:27 +02:00
d14f559622
Merge pull request #16915 from aabadie/pr/pythonlibs/black_format
tools/pythonlibs/riotctrl_*: add code format check with black
2021-10-25 10:49:16 +02:00
iosabi
7b1f083cd8 esp8266: Download Espressif RTOS SDK as a new RIOT PKG
RIOT-OS uses part of Espressif ESP8266 RTOS SDK to build support for
this CPU. The SDK includes some vendor-provided closed source
pre-compiled libraries that we need to modify to adapt to RIOT-OS
usage. This library modifications was done once and uploaded to a fork
of the vendor repository and was provided as an environment variable.

This patch changes two things:

1. It installs the SDK as a RIOT PKG from the new pkg/esp8266_sdk
directory instead of requiring the user to download it separately.

2. It performs the library modifications (symbol renames) on the pkg
Makefile removing the need to use a fork with the modifications applied
and simplifying the SDK update and future modifications.

This change sets the SDK package version (git SHA) to the same one that
our fork was using as a parent in the vendor repository, meaning that
the output libraries are exactly the same as before.

Tested with
```
ESP8266_RTOS_SDK_DIR=/dev/null USEMODULE=esp_log_startup make -C tests/shell BOARD=esp8266-esp-12x flash
```

and verified that the program works. The boot message now includes:
```
ESP8266-RTOS-SDK Version v3.1-51-g913a06a9
```
confirming the SDK version used.

`/dev/null` in the test is just to make sure that no evaluation of
`ESP8266_RTOS_SDK_DIR` in make is affected by the environment variable
value which would be set to the SDK for people who followed the set up
instructions before this change.

Tested the checkout size:
```bash
$ du -hs build/pkg/esp8266_sdk/
124M	build/pkg/esp8266_sdk/
```
2021-10-23 11:13:38 +00:00
Francisco
81458c8eed
Merge pull request #17021 from fjmolinas/pr_remove_board_fox
boards/fox: remove BOARD
2021-10-23 11:30:35 +02:00
3b4e698b2e
Merge pull request #16907 from aabadie/pr/tools/backport_pr_with_black
tools/backport_pr: check code format with black
2021-10-22 12:58:01 +02:00
2e7c83f374
tools/flake8: ignore pythonlibs/riotctrl_* directories
They are already covered by flake8 with their tox configuration
2021-10-22 10:25:15 +02:00
b44652c489
pythonlib/riotctrl_shell: reformat with black 2021-10-22 10:25:15 +02:00
f2bb9242bb
pythonlib/riotctrl_shell: add black testenv in tox
Add Flake8 configuration compatible with black
2021-10-22 10:25:15 +02:00
43550cd853
pythonlib/riotctrl_ctrl: reformat native.py with black 2021-10-22 10:25:15 +02:00
ba1173409f
pythonlib/riotctrl_ctrl: add black testenv in tox
Add Flake8 configuration compatible with black
2021-10-22 10:25:15 +02:00
8d4d8f207d
tools/backport_pr: reformat with black 2021-10-22 10:20:52 +02:00
43a7c8c8f2
tools/backport_pr: add black testenv in tox
Add Flake8 and Pylint configuration compatible with black
2021-10-22 10:20:52 +02:00
8f870a7cb8
tools/compile_and_test_for_board: reformat with black 2021-10-22 10:19:55 +02:00
c98fc635fc
tools/compile_and_test_for_board: add black testenv in tox
Add Flake8 and Pylint configuration compatible with black
2021-10-22 10:19:55 +02:00
Francisco Molina
2552c6941e treewide: remove mentions of 'fox' BOARD 2021-10-20 13:53:26 +02:00
Francisco Molina
3aa6492016 dist/pythonlibs/riotctrl_shell/tests/common: add expect to mock 2021-10-18 15:50:54 +02:00
Erik Ekman
1c6d7dcdaf tools/openocd: Make verifying flashed image optional
Checksumming flash is not supported on xtensa platform:

Warn : not implemented yet

make: *** [.../RIOT/examples/saul/../../Makefile.include:796: flash] Error 1
2021-10-15 10:13:25 +02:00
Benjamin Valentin
00868f85ce tools/zep_dispatch: forward based on source addr, not MAC addr
Forward data soly based on the real source IPv6 address, not the virtual
MAC address.

ACK frames don't have a MAC address and should still be forwarded to all
nodes in range.
2021-10-06 17:53:15 +02:00
Benjamin Valentin
3e7999387c tools/zep_dispatch: don't graph links with weight 0 2021-09-24 16:26:36 +02:00
chrysn
f93d1276b4
Merge pull request #16867 from miri64/dist/enh/use-fstrings-where-warned
dist/tools: use f-strings where possible
2021-09-17 12:34:17 +02:00
Martine Lenders
5204c29890
dist/tools/compile_and_test_for_board: use f-strings where possible 2021-09-17 12:04:04 +02:00
Martine Lenders
9254cffdda
dist/tools/backport_pr: use f-strings where possible 2021-09-17 12:04:04 +02:00
Jean-Pierre De Jesus DIAZ
70b074ff8f boards/adafruit-clue: fix doxygen warnings
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2021-09-14 11:16:50 +02:00
Jean-Pierre De Jesus DIAZ
7fe67ea285 dist/tools/doccheck: generate exclude_patterns using C.UTF-8
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2021-09-14 10:21:35 +02:00
Jean Pierre Dudey
ffff68deaf
Merge pull request #16813 from jeandudey/doc1
cpu: fix doxygen grouping warnings
2021-09-13 11:30:27 +02:00
Jean-Pierre De Jesus DIAZ
6f8803e34f dist/tools/doccheck: update exclude_patterns
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2021-09-11 12:45:15 +02:00
Kevin "Tristate Tom" Weiss
73e32207df
Merge pull request #16052 from miri64/dist/enh/genconfig-env
makefiles/kconfig.mk: generate config file from RIOT_CONFIG_% environment variables
2021-09-08 11:00:59 +02:00
Martine Lenders
c851ec60b8
buildsystem_sanity_check: Check for RIOT_CONFIG_* variables 2021-09-07 11:23:12 +02:00
Martine Lenders
13cc189a8a
Revert "Remove which from shell invocations" 2021-09-03 11:27:03 +02:00
Karl Fessel
6b47efb57b
Merge pull request #16710 from benpicco/benchmark_udp
add UDP benchmark:
a nice tool to check reliability and performance of networks and nodes under high pkg pressure.
2021-09-03 11:22:06 +02:00
Benjamin Valentin
1bc6b7eec7 tools/benchmark_udp: add host tool for benchmark 2021-09-02 23:12:31 +02:00
chrysn
1c6b675d9f makefiles: Reject 2>&1 > /dev/null
While this could theoretically be desired, it's usually just a mishap.
It is unlikely that legitimate cases will be needed in the build system;
if so, they can exclude themselves.

See-Also: https://github.com/RIOT-OS/RIOT/pull/16775
2021-09-02 16:30:47 +02:00
chrysn
6bcc68b9cc makefiles: Reject shell which in new code
... as that command is deprecated at least on Debian, and a good
replacement is available in the form of `command -v`.
2021-09-02 16:30:47 +02:00
chrysn
6b50033766 makefiles: Replace which with command -v
As the POSIX documentation[1] of `command -v` guarantees that on error
there will be no output (and there will be output in the other cases),
the tests in Makefiles were simplified to test for output equality to
the empty string.

Redirects swallowing error outputs were removed, as the command produces
no error output there (as recommended at [2]).

Existing uses of `command` are simplified as well.

[1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
[2]: https://salsa.debian.org/debian/debianutils/-/blob/master/debian/NEWS
2021-09-02 16:30:46 +02:00
Martine Lenders
db16cafe04
Merge pull request #16779 from miri64/doccheck/enh/exclude_pattern_file
dist/tools/doccheck: add exclude file for warnings and use it
2021-09-01 11:58:00 +02:00
Francisco Molina
22d012ff50 makefiles/suit*: use $(Q) to silence output 2021-09-01 08:57:13 +02:00
Martine Lenders
8e1dd16d37
doccheck: fix or suppress shellcheck warnings 2021-08-31 19:20:37 +02:00
Martine Lenders
acdcaf16a5
dist/tools/doccheck: add exclude file for warnings and use it
This is purely to finally unblock RIOT-OS/riotdocker#104, but may also
be useful to add future exclude patterns.

Exclude file was generated using

```sh
make doc 2> dist/tools/doccheck/exclude_patterns_base
grep "^${PWD}" dist/tools/doccheck/exclude_patterns_base | \
    sed -E -e "s#^${PWD}/(.*:)([0-9]+): #\1DIGITS_MAGIC: #" \
           -e 's/[]\\.$*{}|+?()[^-]/\\&/g' \
           -e 's/:DIGITS_MAGIC:/:[0-9]+:/' \
        > dist/tools/doccheck/exclude_patterns
rm dist/tools/doccheck/exclude_patterns_base
```
2021-08-31 19:20:37 +02:00
benpicco
b062ce8660
Merge pull request #16772 from fjmolinas/pr_pylint_compile_and_test
dist/toles/compile_and_test_for_board: fix W1514
2021-08-23 17:58:14 +02:00
Francisco Molina
5d47e186ed dist/toles/compile_and_test_for_board: fix W1514 2021-08-23 16:44:23 +02:00
benpicco
ce99933897
Merge pull request #16726 from hugueslarrive/pyterm
dist/tools/pyterm: ipv6 address support for tcp_serial option
2021-08-14 16:32:06 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Hugues Larrive
4f3cb128ae dist/tools/pyterm: ipv6 address support for tcp_serial option 2021-08-12 22:19:04 +02:00
Benjamin Valentin
b0b8c5a641 riotctrl_shell.gnrc: add parser for reply corruption & truncation 2021-08-11 12:04:22 +02:00
benpicco
4f905bfa8c
Merge pull request #15493 from benpicco/riotboot-serial
riotboot: implement serial flasher
2021-07-21 11:01:31 +02:00
Benjamin Valentin
22b3e1bc6b tools/riotboot_serial: add flasher tool for riotboot serial loader 2021-07-20 22:50:41 +02:00
benpicco
1407559f33
Merge pull request #15773 from benpicco/tools/zep_dispatch-topology
tools/zep_dispatch: add support for advanced topologies
2021-07-07 12:14:43 +02:00
Benjamin Valentin
c81e4d3a2c tools/zep_dispatch: uncrustify 2021-07-06 18:29:25 +02:00
Benjamin Valentin
aa3dfd9b88 tools/zep_dispatch: add support for topologies 2021-07-06 18:21:52 +02:00
Jose Alamos
43b992c09b
dist/Kconfiglib: fix autoconf header
This commit fixes the generation of autoconf headers.
The `write_autoconf` function in the RIOT wrapper was overriding
the default value of the `header` arg to None in Kconfiglib's `write_autoconf`.
It's now set to the default header.
2021-06-16 14:06:47 +02:00
565d28a6bc
tools/iotlab-testbed: add support for remote debugging 2021-06-02 18:13:34 +02:00
3c8cfd45f1
tools/iotlab-testbed: rename deprecated flash/reset-m3 subcommands 2021-06-01 17:37:50 +02:00
ebbe2c2aa1
tools/testbed-iotlab: better handle unsupported archis 2021-06-01 17:37:50 +02:00
a7f00548a2
tools/iotlab-testbed: check iotlab cli tools are installed 2021-06-01 17:37:50 +02:00
a9fceb1592
tools/iotlab-testbed: handle IOTLAB_NODE in comma separated form 2021-06-01 17:37:49 +02:00
6c0556b422
tools/testbed: use IOTLAB_NODE=auto instead of auto-ssh
This deprecates the use of IOTLAB_NODE=auto-ssh
2021-05-28 17:23:11 +02:00
Benjamin Valentin
68f2a6b3c3 tools/edbg: bump version
- adds pic32 & saml11 devices
 - Nuvoton M480 series support
2021-05-23 18:28:36 +02:00
b9ba47f6aa
tools/uncrusctify: whitelist sx127x driver related files 2021-05-18 11:00:44 +02:00
Francisco
8cb8bba4e7
Merge pull request #16104 from maribu/external_modules
build system: Rework EXTERNAL_MODULE_DIRS
2021-05-07 23:27:17 +02:00
Marian Buschsieweke
6ac8aba955
build system: rework EXTERNAL_MODULE_DIRS
Previously, external modules had to be individually added to both
EXTERNAL_MODULE_DIRS and USEMODULE. If those where not in sync, this
resulted in build errors.

With this commit, search folders for external modules are added to
EXTERNAL_MODULE_DIRS instead. So lets say the file system structure is
like this

```
└── /path/to/external/modules
    ├── mod_a
    │   ├── Makefile
    │   ├── Makefile.dep
    │   ├── Makefile.include
    │   ├── foo.c
    │   └── include
    │       └── external_module.h
    └── mod_b
        ├── Makefile
        └── bar.c

```

One now adds `/path/to/external/modules` to EXTERNAL_MODULES and only
with `USEMODULE += mod_a` the corresponding module, dependencies and
include settings are actually used. Hence, it is possible to configure
`EXTERNAL_MODULE_DIRS` from `~/.profile` or `~/.bashrc` once and never
needs to worry about them again.
2021-05-07 21:29:05 +02:00
Martine Lenders
c71a52dc0c
Merge pull request #15978 from miri64/riotctrl_ctrl/enh/native_reset
riotctrl_ctrl: A reset helper class for `native`
2021-05-04 13:48:18 +02:00
Martine Lenders
9f8b4a1c9b
riotctrl_ctrl: add tests for NativeRIOTCtrl 2021-05-04 11:46:51 +02:00
Martine Lenders
49ea453df9
riotctrl_ctrl: provide helper class for native reset 2021-05-04 11:46:51 +02:00
Martine Lenders
5b7b32e654
Merge pull request #16403 from fjmolinas/pr_riotctrl_shell_loramac
dist/pythonlibs/riotctrl_shell: add loramac shell
2021-05-03 19:18:48 +02:00
Francisco Molina
3fbd079bc3
dist/pythonlibs/riotctrl_shell: add loramac shell 2021-05-03 16:52:14 +02:00
Hauke Petersen
365641ac3c tools/dhcpv6-pd_ia: add Linux Mint to installer 2021-04-28 18:31:24 +02:00
Marian Buschsieweke
7f01c17ef3
dist/tools/avarice/debug.sh: less noise
Redirect also stderr to /dev/null when trying to detect the correct
binary name for GDB for AVR.
2021-04-22 08:45:57 +02:00
chrysn
c99bb55e68
Merge pull request #16129 from maribu/compile_commands_json
build system: add compile-commands target to generate compile_commands.json
2021-04-14 18:10:28 +02:00
Marian Buschsieweke
a07dac9ad1
build system: add new compile-commands make target
By running make compile-commands a `compile_commands.json` in the RIOT base
directory. With the environment variable `COMPILE_COMMANDS` the path of
this file can be changed to a custom location.

The `compile_commands.json` will contain the exact compile command, but
as additional flag `-I/usr/$(TARGET)/include` is added to work around
`clangd` not being able to locate the newlib system headers. The
additional includes can be overwritten using the environment variable
`COMPILE_COMMANDS_EXTRA_INCLUDES`.
2021-04-14 14:51:46 +02:00
MrKevinWeiss
450b70e345 tools/kconfiglib: Allow for - in symbols 2021-04-08 16:44:10 +02:00
Dmitry K
a3984a529f tapsetup: fix typo in usage text 2021-04-06 21:44:45 +03:00
Kevin "Tristate Tom" Weiss
796175591d
Merge pull request #15877 from MrKevinWeiss/pr/gootfet2to3
dist/tools/goodfet: Update goodfet flasher to python3
2021-03-30 09:54:40 +02:00
Martine Lenders
fd36c626a3
Merge pull request #15950 from MrKevinWeiss/pr/turo/initial
sys/test_utils/result_output: Initial implementations and API of turo
2021-03-15 11:35:01 +01:00
MrKevinWeiss
2e5ff00386 dist/tools/uncrustify: Add turo module 2021-03-15 10:36:46 +01:00
Martine Lenders
e768a85f62
Merge pull request #15798 from miri64/dist/enh/annotations-moved-by-offset
static_tests: move diff annotations by offset.
2021-03-11 14:12:02 +01:00
Martine Lenders
254af225c9
uncrustify: move annotation by offset 2021-03-11 13:32:33 +01:00
Martine Lenders
b52ddefccd
headerguards: move annotation by offset 2021-03-11 13:32:33 +01:00
Martine Lenders
c6260f29b3
coccinelle: move annotation by offset 2021-03-11 13:32:32 +01:00
Martine Lenders
d27ea0237e
Merge pull request #16119 from miri64/riotctrl_shell/feat/congure_test
riotctrl_shell: add ShellInteraction for `congure_test`
2021-03-09 12:27:10 +01:00
Gerson Fernando Budke
9cd9ba1bce dist/tools/avarice/debug.sh: Change gdb check order
There are some Linux distributions that gdb-multiarch doesn't work as
expected and debug section not start.  Since AVARICE is dedicated to
AVR architecture, let's check first by the default tool then multiarch
version.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-08 17:49:36 -03:00
Martine Lenders
da1778e85c
riotctrl_shell.tests: add tests for CongureTest ShellInteraction 2021-03-03 14:12:49 +01:00
Martine Lenders
0bdbf8c8cc
riotctrl_shell: add ShellInteraction for congure_test 2021-03-03 14:12:49 +01:00
Martine Lenders
ae14386736
riotctrl_shell.tests: add capability to access history of commands 2021-03-03 14:12:49 +01:00
Martine Lenders
02e56c2614
Merge pull request #16132 from miri64/dist/fix/riotctrl_shell-spawnmock-method-missing
riotctrl_shell.tests: add missing method to MockSpawn
2021-03-03 11:51:22 +01:00
Martine Lenders
70aac82e6b
riotctrl_shell.tests: add missing method to MockSpawn 2021-03-03 10:40:06 +01:00
Benjamin Valentin
6a705d95b3 dist/tools: always print how to disable programmer wrapper
If the help is only printed on failure, if the script does not detect failure
and programming still fails, the user has no idea how to get the full information.

Always print help on how to disable this feature.
2021-03-02 10:42:39 +01:00
Martine Lenders
fc6627606c
Merge pull request #15951 from miri64/congure/feat/initial
congure: initial import of a congestion control framework
2021-02-26 12:46:50 +01:00
Martine Lenders
28592c203c
uncrustify: whitelist congure 2021-02-26 10:08:12 +01:00
5a8094ea0a
dist/iotlab: return ret code within a single call 2021-02-25 12:59:40 +01:00
976eda9cbb
dist/tools: add programmer wrapper script 2021-02-25 12:59:39 +01:00
367a8e8574
Merge pull request #16083 from benpicco/cosy
make: add cosy as a build target
2021-02-24 13:59:11 +01:00
Benjamin Valentin
d95f21fd67 make: add cosy as a build target
`cosy` is a graphical memory usage analyzer.
It is a great tool, but pretty hidden.
Add it as a build target so it can be easiely summoned for any application and board.
2021-02-24 12:11:00 +01:00
Francisco
bf7b727c4a
Merge pull request #16049 from aabadie/pr/make/namespace_programmer_vars
make: namespace programmer specific variables
2021-02-24 08:17:47 +01:00
Francisco
8dec3f2833
Merge pull request #15795 from miri64/dist/fix/diff-output
static_tests: fix diff output
2021-02-24 08:17:37 +01:00
7e21f25779
make: namespace openocd PRE_FLASH_CHECK_SCRIPT variable 2021-02-23 21:22:55 +01:00
6f47505997
make: namespace pyocd FLASH_TARGET_TYPE variable 2021-02-23 21:22:52 +01:00
603186f913
make: namespace openocd DEBUG_ADAPTER variable 2021-02-23 21:22:52 +01:00
Martine Lenders
a0234cafe5
uncrustify: fix diff annotations 2021-02-23 18:25:50 +01:00
Martine Lenders
2d27db02f5
headerguards: fix diff annotations 2021-02-23 18:25:50 +01:00
Martine Lenders
2465a701ee
coccinelle: fix diff annotation 2021-02-23 18:25:50 +01:00
benpicco
bd7782c23f
Merge pull request #16034 from maribu/test-boards-supported
makefiles/tests: add unit test for info-boards-supported
2021-02-22 14:15:50 +01:00
dd88ead843
tools/compile_and_test_for_board: fix lint
Pylint raises an error because of inconsistent return statements in the make_with_outfile function. The return value of this function is never used, so a bare return or no return is ok
2021-02-21 21:34:03 +01:00
1ec4ea2d7c
tools/edbg: add wrapper bash script 2021-02-21 12:56:35 +01:00
Marian Buschsieweke
8183bbb069
makefiles/tests: add unit test for info-boards-supported 2021-02-17 15:40:05 +01:00
Marian Buschsieweke
ed2ae85985
tests/feature_resolution: add build system unit tests
This test "application" contains a set of unit tests for the feature resolution
of RIOT's build system.
2021-02-10 21:05:38 +01:00
807b154fc4
Merge pull request #15956 from fjmolinas/pr_riotboot_uncrustify
sys/riotboot: uncrustify
2021-02-09 22:14:50 +01:00
Martine Lenders
7bb706356a
Merge pull request #15962 from miri64/pyterm/fix/space-after-prompt
pyterm: read space after prompt into prompt
2021-02-09 20:34:34 +01:00
benpicco
b25c63757e
Merge pull request #15884 from benpicco/boards/zigduino
boards: add zigduino
2021-02-09 18:40:48 +01:00
Martine Lenders
271d1ae3a2
pyterm: read space after prompt into prompt
Currently, when the prompt is read in `pyterm` the space after it is
ignored for the prompt and the output command just adds its own prompt.
This leads to the next output always having a leading space, see e.g.
this output from `tests/shell` using `RIOT_TERMINAL=pyterm`:

```
make: Entering directory '/home/mlenders/Repositories/RIOT-OS/RIOT2/tests/shell'
/home/mlenders/Repositories/RIOT-OS/RIOT2/dist/tools/pyterm/pyterm -p "/dev/ttyUSB1" -b "500000"
Twisted not available, please install it if you want to use pyterm's JSON capabilities
2021-02-09 14:47:15,071 # Connect to serial port /dev/ttyUSB1
Welcome to pyterm!
Type '/exit' to exit.
bufsize
2021-02-09 14:47:19,712 # bufsize
2021-02-09 14:47:19,712 # 128
> bufsize
2021-02-09 14:47:21,535 #  bufsize
2021-02-09 14:47:21,536 # 128
>
```

While this isn't necessarily a problem in most cases, it becomes a
problem when the prompt is expected and the output of a command is
empty. In that case, the space is added to the empty output, making it
" ", so the prompt output command is never triggered and the prompt is
added to the next command in the log output. To demonstrate I added a
command `empty` to `tests/shell` that just does nothing and deactivated
the command echoing using `CFLAGS=-DCONFIG_SHELL_NO_ECHO=1`:

```
empty
> empty
empty
bufsize
2021-02-09 14:54:33,753 #  > > 128
>
```

This fixes that problem by also reading the assumed space (we already
assume the prompt, so I don't see no harm in that) and if it is not a
space to skip the reading of the next char in the next iteration of the
reader loop.
2021-02-09 17:17:25 +01:00
Martine Lenders
40da80085e
pyterm: move char reading and reconnect to their own private functions 2021-02-09 16:51:52 +01:00
Benjamin Valentin
5fdbd09187 boards: add zigduino
This adds support for the ATmega128RFA1 based Zigduino.
The board is available on the Strasbourg site of the IoT lab for testing.
2021-02-09 15:26:03 +01:00
Francisco Molina
6a79d94f1a
sys/riotboot: uncrustify 2021-02-09 13:38:31 +01:00