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

35472 Commits

Author SHA1 Message Date
Antonio Galea
c6f6f925a0 cpu/saml21: moved GCLK_GENCTRL_SRC_MAIN define to top 2021-05-05 23:59:05 +02:00
Antonio Galea
c03816f61f cpu/saml21: fix wrong timer for CORECLOCK at 48MHz 2021-05-05 16:34:01 +02:00
Antonio Galea
7a253b4b76 boards: use SAM0_GCLK_TIMER for saml21 boards 2021-05-05 10:56:58 +02:00
Antonio Galea
8bd90aaf00 cpu/saml21: fix timer skew for slow clocks 2021-05-05 10:56:37 +02:00
43103a65d5
Merge pull request #16438 from maribu/bad_alloc
pkg/tlsf,cpu/esp_common: fix possible overflow in calloc implementations
2021-05-05 09:53:00 +02:00
Leandro Lanzieri
d36628d37e
Merge pull request #16183 from Ollrogge/aes_pr
sys/crypto: Enable support for AES-192, AES-256
2021-05-05 09:19:12 +02:00
Marian Buschsieweke
2f08f676dc
cpu/esp_common: fix possible overflow in calloc implementation 2021-05-05 08:58:34 +02:00
Marian Buschsieweke
84169266b4
pkg/tlsf: fix possible overflow in calloc implementation 2021-05-05 08:58:31 +02:00
Dylan Laduranty
4af37a7751
Merge pull request #16433 from ant9000/pr_saml21_coreclock_enhancements
SAML21 CPU: support 4MHz, 8MHz, 12MHz CORE_CORECLOCK choices
2021-05-04 21:41:54 +02:00
Marian Buschsieweke
02dc63033f
Merge pull request #16441 from Mumpfie/gnrc-tx-sync-add-cast
gnrc tx-sync: add cast for c++ compatibility
2021-05-04 18:32:57 +02:00
Leandro Lanzieri
8107b8f3f2
Merge pull request #16434 from fjmolinas/pr_color_functions
TAKEOVER: makefiles/color: Add color functions, new attempt. #12156
2021-05-04 18:29:54 +02:00
benpicco
4c38f69729
Merge pull request #16397 from benpicco/newlib_nano-default
cpu: make newlib_nano a DEFAULT_MODULE
2021-05-04 17:15:30 +02:00
Mumpfie
185570b034 gnrc tx-sync: add cast for c++ compatibility 2021-05-04 16:59:56 +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
c044622c21
Merge pull request #16430 from jia200x/pr/fix_gnrc_lorawan_wf
gh_workflows: adapt to GNRC LoRaWAN Release Test env variables
2021-05-04 12:50:26 +02:00
benpicco
75edf89a12
Merge pull request #16436 from janosbrodbeck/pr/readme/doc
README: Update url of documentation
2021-05-04 12:36:34 +02:00
Benjamin Valentin
6d42c9fcfe cpu: make newlib_nano a DEFAULT_MODULE
This allows to disable nanospecs with

    DISABLE_MODULE += newlib_nano

if a full-features version of newlib is desired.
2021-05-04 12:12:36 +02:00
Marian Buschsieweke
46a5c34c5e
Merge pull request #16435 from fjmolinas/pr_info_boards_default_module_bug
makefiles/info-global.inc.mk: fix DEFAULT_MODULE inclusion
2021-05-04 12:01:19 +02:00
Martine Lenders
0fa29a4e09
Merge pull request #16432 from miri64/gh-actions/enh/release-tests-filter
gh-actions: release-tests: add filter input
2021-05-04 11:47:36 +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
János Brodbeck
5252dd92fb
README: Update url of documentation 2021-05-04 11:28:35 +02:00
Francisco Molina
bc8bfc7bb9
makefiles/info-global.inc.mk: fix DEFAULT_MODULE inclusion 2021-05-04 11:28:17 +02:00
Francisco
3cb3b5ab85
Merge pull request #16133 from miri64/congure_mock/enh/real-methods
congure_mock: add capability to provide actual methods
2021-05-04 11:06:35 +02:00
Juan Carrano
9fe8f54db9
makefiles/color: Add color functions.
c_xxxx functions can be used to wrap a piece of text in a
$(COLOR_X)...$(COLOR_RESET) block, thereby avoiding the easy mistake
of forgetting to place a COLOR_RESET.
2021-05-04 10:57:47 +02:00
Juan Carrano
1036115f2d
makefiles/utils/ansi: Refactor ansi codes into their own file.
The escape codes and special chars now live in their own module. The
color module is only concerned with detecting whether to use colors or
not.

Additional variables are defined with hard a coded ESC char, a tab and a
newline. This removes the need for echo or printf.
2021-05-04 10:52:50 +02:00
Juan Carrano
3ed96312af
makefiles/color: preprocess color strings.
The color strings COLOR_* are redefined so that they don't have to be
processed by "echo -e". This is done by storing the already interpreted
ANSI sequence in a shell variable.

With this change, not only can color messages be printed using normal
`echo` with no switches: colors also work with the `info` and `warning`
builtins of make.

The COLOR_ECHO variable is kept because it is also being used (confusingly)
to intepret tabs an newlines. This will be fixed in another commit.

This change should change absolutely anything and colors should still work
as always.
2021-05-04 10:50:58 +02:00
38062c414c
Merge pull request #16426 from fjmolinas/pr_small_test_fixes
tests: small fixes
2021-05-04 10:02:09 +02:00
c49162cc66
Merge pull request #16427 from fjmolinas/pr_test_malloc_refactor
tests/malloc: refactor test
2021-05-04 10:01:47 +02:00
Dylan Laduranty
efbd867484
Merge pull request #16421 from benpicco/cpu/sam0_common-rtc_reorder
cpu/sam0_common: only include RTC/RTT symbols if module is used
2021-05-03 22:07:09 +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
Antonio Galea
99de702c87 SAML21 CPU: support 4MHz, 8MHz, 12MHz CORE_CORECLOCK choices 2021-05-03 18:56:51 +02:00
Ollrogge
46a0ef07b1 tests/sys/crypto: Split test application to reduce size 2021-05-03 17:40:33 +02:00
Ollrogge
f5ca90b007 sys/crypto, sys/random: Fix Kconfig files in response to AES changes 2021-05-03 17:34:53 +02:00
Ollrogge
3f529904b7 sys/crypto: Add AES-CCM NIST SP 800-38C testvectors 2021-05-03 17:34:53 +02:00
Ollrogge
b1a2d4787d sys/crypto: Remove leftover code related to deprecated 3DES block cipher 2021-05-03 17:34:53 +02:00
Ollrogge
427d2bd06e sys/crypto: Enable support for AES-192, AES-256 2021-05-03 17:34:49 +02:00
Francisco Molina
2d690ee05a
tests/malloc: refactor test
Matching on every free leads to flimsy test results where all memory
is freed but one line fails to be matched by pexpect, instead, match
the final count.
2021-05-03 17:17:49 +02:00
Francisco Molina
3fbd079bc3
dist/pythonlibs/riotctrl_shell: add loramac shell 2021-05-03 16:52:14 +02:00
Martine Lenders
e7ef934872
gh-actions: release-tests: add filter input
This way, the tests that shall be run can be determined using
[`pytest -k` expressions][k]. E.g. `spec04 and task04` would only run
task 4.4.

[k]: https://docs.pytest.org/en/stable/usage.html#specifying-tests-selecting-tests
2021-05-03 16:34:54 +02:00
Jose Alamos
985515b547
gh_workflows: adapt to GNRC LoRaWAN Release Test env variables 2021-05-03 14:55:57 +02:00
Martine Lenders
95c2af5ab0
Merge pull request #16410 from haukepetersen/fix_dhcpv6server_linuxmint
tools/dhcpv6-pd_ia: add Linux Mint to installer
2021-05-03 12:57:23 +02:00
benpicco
bb6857b5cf
Merge pull request #16423 from aabadie/pr/cpu/stm32_genkconfig
cpu/stm32/dist: fix and improve genkconfig script
2021-05-03 12:05:53 +02:00
benpicco
0c28ec57f2
Merge pull request #16386 from iosabi/esp8266_i2c
cpu/esp_common: Support disabling I2C clock stretching in ESP8266
2021-05-03 11:31:54 +02:00
benpicco
2b6454a2d7
Merge pull request #16106 from fabian18/ieee802154_security_small_bugfix_and_stricter_names
net/ieee802154_security: small bugfix and stricter names
2021-05-03 11:29:43 +02:00
Francisco Molina
4826867188
tests/pthread_cooperation: nucleo-f334r8: reduce stack size 2021-05-03 10:17:11 +02:00
Francisco Molina
d8287eeffc
boards/nucleo-f303k8: remove provided periph_rtc
This BOARD does not provide an LSE clock, so don't probide rtc.
2021-05-03 08:29:22 +02:00
Francisco Molina
4ecf5b29af
tests/pkg_tensorflow-lite: insufficient memory nucleo-g071rb 2021-05-03 08:19:39 +02:00
Francisco
3c5c3ba4af
Merge pull request #16387 from iosabi/esp8266_uart
esp8266: Support UART1 and other UART0 pins.
2021-05-03 08:02:51 +02:00
iosabi
52107b2416 esp8266: Support UART1 and other UART0 pins.
The esp8266 CPU has actually two hardware UART peripherals. UART0 is
used by the boot ROM for flashing and serial output during boot,
typically at a baudrate of 74880 bps until the bootloader or application
sets the more standard 115200 baudrate. This UART0 device has two
possible pins for TXD, GPIO1 and GPIO2, which are both set to TXD by the
boot ROM. esp8266 modules will typically have GPIO1 labeled as the TX
pin, but it is possible to use GPIO2 for that purpose even while
flashing the device with esptool.py.

The second device, UART1, also has two options for TXD, GPIO2 and GPIO7,
and only one option for RXD, GPIO8. However, GPIO7 and GPIO8 are used
by the flash internally so those options are not very useful unless
maybe while running from IRAM with the flash disabled, for example for
a debugger over UART1.

This patch allows boards to override UART{0,1}_{R,T}XD in their
periph_conf.h to configure the uart selection. Defining UART1_TX will
make the UART_DEV(1) device available.

Tested with:

```CFLAGS='-DUART1_TXD=GPIO2' make -C tests/periph_uart BOARD=esp8266-esp-12x flash term```

* Connected one USB-UART to the standard GPIO1 and GPIO3 for flashing
  and console. After flashing we see the manual test output at 115200
  bps

* Connected a second USB-UART with RX to GPIO2 running at 74880.

Then run on the first console:
```
> init 1 74880
> send 1 hello
```

The word "hello" appears on the second UART connection.

Note that GPIO2 is used during boot for UART0's TX until the application
or bootloader set it to a regular GPIO, so some boot ROM messages at
74880 bps are visible. After running `init 1 74880` it is set to UART1's
TX.
2021-05-02 12:27:27 +00:00