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

26057 Commits

Author SHA1 Message Date
70e6e0aedf
Merge pull request #12862 from fjmolinas/pr_dont_reset_sync
dist/pythonlibs/testrunner: reset before term
2019-12-19 14:42:46 +01:00
Francisco Molina
b4a8cf8351 boards/b-l475e-iot01a: set OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
b-l475e-iot01a can become unflashable when hardfaults occure.
To make sure flashing succeeds `connect_assert_srst` is called
before connecting to flash through openocd.
2019-12-19 14:21:27 +01:00
Francisco Molina
ebd5acc2fa examples: set TESTRUNNER_RESET_AFTER_TERM for examples/%/tests 2019-12-19 09:32:37 +01:00
Francisco Molina
a77594a348 dist/pythonlibs/testrunner: reset before term
For some boards `make reset` is only possible if a serial connection
is not already open or its execution might disrupt it. This
causes some tests to fail since before running a test the board
is reset.

`make reset` is currently used as a synchronization mechanism between
the application and the test script. With `test_utils_interactive_sync`
this is no longer needed so call `make reset` before `cleanterm` instead
of after when `test_utils_interactive_sync` is used.

Allow setting TESTRUNNER_RESET_AFTER_TERM=1 to keep the previous
behaviour for `examples/%/tests`.
2019-12-19 09:32:37 +01:00
Gunar Schorcht
0194d7f44b cpu/esp8266: fix of esp_wifi_send
In case of succes, the esp_wifi_send function returned a 0 instead of sent bytes.
2019-12-18 21:52:25 +01:00
Hauke Petersen
d9e9e4e288
Merge pull request #12985 from haukepetersen/opt_nimble_autoconnusercb
pkg/nimble/autoconn: add user event callback
2019-12-18 17:50:22 +01:00
Hauke Petersen
210b1b2f75 sys/shell/sc_nimble_netif: adapt event callback 2019-12-18 17:06:57 +01:00
Hauke Petersen
0676fc4ba1 pkg/nimble/autoconn: improve debug output 2019-12-18 17:06:57 +01:00
Hauke Petersen
16468acadc pkg/nimble/autoconn: add user event callback 2019-12-18 17:05:48 +01:00
Hauke Petersen
49491bee3c pkt/nimble/netif: pass BLE addr to event callback 2019-12-18 17:05:48 +01:00
Hauke Petersen
dd8eb4b7cd
Merge pull request #12984 from haukepetersen/opt_nimble_autoconnstartup
pkg/nimble/autoconn: add startup delay
2019-12-18 17:04:52 +01:00
Martine Lenders
00ab7ad387
Merge pull request #12983 from miri64/gnrc_sixlowpan_frag_stats/enh/actualize
gnrc_sixlowpan_frag_stats: actualize pseudo-module
2019-12-18 16:47:08 +01:00
Hauke Petersen
fe2293b601 pkg/nimble/autoconn: add startup delay 2019-12-18 16:27:33 +01:00
Martine S. Lenders
e1ae44b536
gnrc_sixlowpan_frag_stats: actualize pseudo-module
Having the definitions sit in the `net/gnrc/sixlowpan/frag.h` header
does not make much sense, when using Selective Fragment Forwarding
(and the fragmentation buffer already includes a
`net/gnrc/sixlowpan/frag/stats.h` header), so they are moved to their
own header. Since with this change it makes more sense to have the
statistics stored in their own sub-module, the pseudo-module is also
actualized.
2019-12-18 15:45:03 +01:00
Dylan Laduranty
bd7f105428
Merge pull request #12978 from smlng/pr_freebsd_osprint
tools: correctly detect and print FreeBSD OS
2019-12-18 14:56:57 +01:00
Martine S. Lenders
0957b6301b
stdio_native: initial import 2019-12-18 14:15:40 +01:00
Martine S. Lenders
13d5f6e6b4
tests: provide test for vfs+fmt corner-case
On `native` when using `vfs` the `fmt` print functions do not work.
This is because the `fmt` module uses the `write()` system call which
is bend by the `native_vfs` module to use `vfs_write()`. However,
`native` does not use a `stdio` module to print. Instead, it just
writes to the hosts standard I/O directly. As such, STDIN, STDOUT, and
STDERR are never initialized for `vfs` so `vfs` does not recognize
`STDIN_FILENO`, `STDOUT_FILENO` and `STDERR_FILENO` as valid file
descriptors.

This test case showcases this bug.
2019-12-18 14:15:40 +01:00
benpicco
b35ef08094
Merge pull request #12901 from benpicco/lpc2387-stacks
cpu/lpc2387: use the same default stack sizes as cortexm_common
2019-12-18 14:12:58 +01:00
6be1698b7d
Merge pull request #12980 from haukepetersen/opt_nrf52840dk_disableuarthwfc
boards/nrf52840dk: disable UART HWFC
2019-12-18 12:24:17 +01:00
benpicco
f7cb0a096e
Merge pull request #12899 from benpicco/lpc2387-micropython
cpu/lpc2387: align lpc2387.ld with cortexm_base.ld, provide thread_isr_stack_*() - enables MicroPython
2019-12-18 12:08:12 +01:00
Hauke Petersen
3330676fd5 boards/nrf52840dk: disable UART HWFC 2019-12-18 11:53:26 +01:00
Francisco
33b1f9ecf7
Merge pull request #12939 from smlng/pr_export_vars
makefiles: move some exported vars to vars.inc.mk
2019-12-18 10:49:09 +01:00
Sebastian Meiling
c185307025 tools: correctly detect and print FreeBSD OS
Currently the `print_toolchain_versions` script only supports Linux
and Apple macOS when printing OS name and version. This adds support
for FreeBSD.
2019-12-18 10:25:29 +01:00
Sebastian Meiling
737635573a makefiles: add export for OS variable
Export the OS variable for proper multi-OS support.
Currently only needed by 'pkg/jerryscript')
2019-12-18 10:07:55 +01:00
Sebastian Meiling
5eee821f6e makefiles: move exports to vars.inc.mk 2019-12-18 10:07:50 +01:00
benpicco
4f4e7cde16
Merge pull request #12965 from gschorcht/pkg/lwip/ipv4_dhcp
pkg/lwip: start DHCP for a netif with lwip_dhcp
2019-12-18 09:21:29 +01:00
Gunar Schorcht
ff506ccf07 pkg/lwip: start DHCP for a netif with lwip_dhcp
The NETDEV_EVENT_LINK_UP is used to start DHCP for a network interface
2019-12-18 07:16:41 +01:00
benpicco
cfeb2a3843
Merge pull request #12949 from gschorcht/cpu/esp8266/enable_lwip
cpu/esp8266: enable lwIP for ESP8266
2019-12-17 13:39:35 +01:00
Benjamin Valentin
071917cf56 pkg/micropython: remove arch_arm7 from blacklist
arm7 now provides ISR_STACKSIZE and thread_isr_stack_start()
so there is no longer a reason to blacklist it.
2019-12-17 13:37:32 +01:00
Benjamin Valentin
a90663c9e7 cpu/lpc2387: provide ISR_STACKSIZE & thread_isr_stack_start()
Those are needed by MicroPython
2019-12-17 13:37:32 +01:00
Hauke Petersen
5350b79a1e
Merge pull request #12775 from haukepetersen/opt_nimble_vernov19andlldatalenfornetif
pkg/nimble: ver bump + config  improvement
2019-12-17 09:32:43 +01:00
Gunar Schorcht
ddc34b4d73 cpu/esp: fix lwip for IPv4 and esp_wifi 2019-12-17 08:28:33 +01:00
Gunar Schorcht
8021888c06 pkg/lwip: remove esp8266 from blacklist 2019-12-17 08:28:33 +01:00
Gunar Schorcht
dcb6673024 cpu/esp8266: platform dependent settings for lwIP 2019-12-17 08:28:33 +01:00
Dylan Laduranty
c839bb809a
Merge pull request #12183 from cladmi/pr/boardsdir
Makefile.include: introduce 'BOARDSDIR' for boards directory
2019-12-16 21:06:00 +01:00
benpicco
c55cae885a
Merge pull request #12968 from aabadie/pr/sys/sc_loramac_fix_include
sys/shell: add missing stdio include in sc_loramac.c
2019-12-16 20:01:42 +01:00
f43cec76dd
Merge pull request #12961 from kaspar030/make_shell_test_wait_for_prompt
tests/shell: wait for prompt at beginning
2019-12-16 19:48:07 +01:00
benpicco
87f86c4c08
Merge pull request #12924 from daexel/shtc1_bugfix
drivers/shtc1: Initial support for the SHTC1 temperature and humidity sensor
2019-12-16 18:21:48 +01:00
8d040e5b4d
sys/shell: add missing stdio include in sc_loramac.c 2019-12-16 16:26:18 +01:00
Hauke Petersen
20af6616d6 tests/nimble_l2cap: fix type passing AD to bluetil 2019-12-16 16:00:36 +01:00
211cec8b3e
tools/buildsystem_check: exclude tests/external_board_native path
This test application must act as a regular application to showcase how to provide a board support from an external directory
2019-12-16 15:35:06 +01:00
Gaëtan Harter
418bcfb95d
makefiles: deprecate 'RIOTBOARD' for 'BOARDSDIR'
Replace using 'RIOTBOARD' by 'BOARDSDIR' to define external boards.
2019-12-16 15:35:05 +01:00
Gaëtan Harter
387da5214f
examples: update documentation to use 'BOARDSDIR'
Replace uses of 'RIOTBOARD' by 'BOARDSDIR' in examples.
2019-12-16 15:35:05 +01:00
Gaëtan Harter
633f050d1f
tests/external_board_native: show an example of external board
Add an example that implements an external board based on native.
It relies on 'BOARDSDIR' and uses common files from 'RIOT/boards'
through 'RIOTBOARDS'.

This application also works with the docker integration.
2019-12-16 15:35:05 +01:00
Gaëtan Harter
1427ef998f
makefiles/vars.inc.mk: document BOARDSDIR as external boards directory
Replace using 'RIOTBOARD' by 'BOARDSDIR' to define external boards.
2019-12-16 15:35:05 +01:00
Gaëtan Harter
c26710ac7e
makefiles/docker: handle mounting 'BOARDSDIR'
Handle setting 'BOARDSDIR' when building in docker.
2019-12-16 15:35:04 +01:00
Gaëtan Harter
41a891f284
tools: use 'BOARDSDIR' for the boards directory
Replace uses of 'RIOTBOARD' by 'BOARDSDIR' for tools.
2019-12-16 15:35:04 +01:00
Gaëtan Harter
90692ac92b
makefiles: use 'BOARDSDIR' for the boards directory in compilation
Replace uses of 'RIOTBOARD' by 'BOARDSDIR' during the compilation.
2019-12-16 15:35:04 +01:00
Gaëtan Harter
f76a2d201e
Makefile.include: introduce 'BOARDSDIR' for boards directory
Introduce a new variable 'BOARDSDIR' to use when referencing the base
boards directory.

This is a transition to allow defining external boards while still using
the `RIOT/boards` directory for like `boards/common` for example through
'RIOTBOARD'.
2019-12-16 15:35:04 +01:00
Gaëtan Harter
fc84c90f66
Makefile.include: allow directories that cannot be overridden
Allow defining new directory variables that will not be overridden when
set from command line.

Command line is supposed to override from the value in make.
Promoting another behavior is against `make`.
2019-12-16 15:35:03 +01:00