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

25980 Commits

Author SHA1 Message Date
Francisco Molina
18444ac99a makefiles/boards.inc.mk: include BOARDSDIR and RIOTBOARD 2019-12-30 17:14:20 +01:00
Francisco Molina
1f66c0f3ee Makefile.include: RIOTBOARD as BOARDSDIR fallback 2019-12-30 17:12:16 +01:00
kcant
3a29d346ef Relink wiki.stm32duino.com to web.archive.org (#13011)
wiki.stm32duino.com broken links correction
2019-12-28 18:39:22 +01:00
kcant
f770c6fffd Update doc.txt
Broken links correction to https://web.archive.org/web/20190428082446/ *
2019-12-28 18:38:27 +01:00
Dylan Laduranty
29664c1995
Merge pull request #13001 from dylad/pr/sam0_uart_hw_fc
sam0/uart: add hardware flow control support
2019-12-26 20:12:39 +01:00
benpicco
676d0d399c
Merge pull request #11982 from gschorcht/cpu/esp32/fix_cleanup_rtc
cpu/esp32: fixes, improvements and cleanups of periph_rtc
2019-12-26 19:32:08 +01:00
Gunar Schorcht
25d04c4742 cpu/esp32: fixes and cleanups of RTC timer
- Unecessary definitions are removed.

- Since the 48-bit RTC hardware timer uses a RC oscillator as clock, it is pretty inaccurate and leads to a RTC time deviation of up to 3 seconds per minute. Therefore, a calibration during the boot time determines a correction factor for the 48-bit RTC hardware timer. Function _rtc_time_to_us uses now this correction factor and converts a raw 48-bit RTC time to a corrected time in microseconds. Thus, the 48-bit RTC timer becomes much more accurate, but it can't still reach the accuracy of the PLL driven 64-bit system timer. The Advantage of using RTC over 64-bit sydtem timer is that it also continues in deep sleep mode and after software reset.

- If the 64-bit system timer is used to emulate the RTC timer, it uses the RTC hardware timer to continue its operation after software .
2019-12-26 18:13:10 +01:00
Gunar Schorcht
21b2c8d334 cpu/esp32: introduce pseudomodule esp_rtc_timer
It is possible to use different timers as RTC timer for the periph_rtc module. Either the 48-bit RTC hardware timer is used directly or the PLL driven 64-bit system timer emulates a RTC timer. The latter one is much more accurate. Pseudomodule esp_rtc_timer controlls which timer is used. Only if esp_rtc_timer is enabled explicitly, the 48-bit RTC hardware timer is used. Otherwise the 64-bit sytstem timer is used to emulate the RTC timer.
2019-12-25 09:47:52 +01:00
Gunar Schorcht
9cf103e055 cpu/esp32: fix rtc_init and displaying system time
The explicit call of rtc_init during the CPU start was removed because rtc_init is called within the function periph_init. The display of the system time at startup had to be placed after the call to periph_init.
2019-12-25 09:47:52 +01:00
Gunar Schorcht
9b3095fd6b cpu/esp32: system_get_time_ms cleanup
There is an existing function that returns the system time in us as a 64 bit value. Converting this 64 value in us to a 32 bit value in ms is more easier and uses the complete 32 bit range. Using only the low part of the 64 bit system time in us and dividing it by 1e3 cuts the 32 bit range.
2019-12-24 14:35:37 +01:00
dylad
fc9549b069 boards/sam0: update sam0-based board to use hw fc 2019-12-20 21:26:56 +01:00
dylad
bd06772980 sam0/uart: add support for hardware flow control 2019-12-20 21:19:44 +01:00
Francisco
c9955f9c74
Merge pull request #12917 from aabadie/pr/cpu/fe310_uart_rework
cpu/fe310: slightly rework the uart driver
2019-12-20 16:20:18 +01:00
Leandro Lanzieri
b00ad3080a
Merge pull request #12923 from leandrolanzieri/pr/kconfig_migrate/gnrc/lorawan
Kconfig: Expose gnrc/lorawan configurations
2019-12-20 15:59:01 +01:00
876824201c
boards/hifive1*: apply new UART configuration scheme 2019-12-20 15:22:09 +01:00
e5c64c739a
cpu/fe310: rework uart driver implem/config 2019-12-20 15:22:09 +01:00
Martine S. Lenders
5cf26f1adf
shell_commands: make 6Lo compression contexts configurable on non-6LBR 2019-12-20 14:55:55 +01:00
Leandro Lanzieri
b58b5792e9 Kconfig: Expose gnrc/lorawan configurations 2019-12-20 14:14:32 +01:00
Leandro Lanzieri
449da7602d gnrc/lorawan: Express timer drift in per mille instead of percentage 2019-12-20 14:12:43 +01:00
José Alamos
7d4082a6a3
Merge pull request #12922 from leandrolanzieri/pr/kconfig_migrate/gnrc/ipv6_blacklisting
Kconfig: Expose gnrc/ipv6/blacklist configurations
2019-12-20 11:32:46 +01:00
05ac137174
Merge pull request #10838 from aabadie/pr/tools/compile_test_board_globbing
tools/compile_and_test_for_board.py: allow use of wildcards for applications selection
2019-12-20 10:44:15 +01:00
Martine Lenders
f7d6dd2337
Merge pull request #12966 from gschorcht/tests/lwip_ipv4
tests/lwip: enable IPv4
2019-12-20 09:29:25 +01:00
Gunar Schorcht
d536235f05 tests/lwip: enable IPv4 2019-12-20 06:51:34 +01:00
benpicco
6eac8df10f
Merge pull request #12986 from gschorcht/cpu/esp8266/esp_wifi/fix_send
cpu/esp8266: fix of esp_wifi_send function
2019-12-20 00:54:23 +01:00
Cenk Gündoğan
0d9d496618
Merge pull request #12913 from leandrolanzieri/pr/kconfig_include_config
makefiles/kconfig: Include configuration symbols to build system
2019-12-19 16:04:05 +01:00
ac33697af7
tools/compile_test_board: allow use of wildcards for applications 2019-12-19 15:58:47 +01:00
Leandro Lanzieri
707ad8d083 makefiles/kconfig: Include configuration symbols
If the generated configuration file is present include it. That way one
can check if certain symbols are being configured using Kconfig.
2019-12-19 15:35:21 +01:00
Martine Lenders
501e700a3d
Merge pull request #12981 from miri64/native/feat/stdio
stdio_native: initial import
2019-12-19 15:14:15 +01:00
326d570b11
Merge pull request #12990 from fjmolinas/pr_b-l475e-iot01a_assert_srst
boards/b-l475e-iot01a: set OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
2019-12-19 15:10:08 +01:00
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