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

35455 Commits

Author SHA1 Message Date
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
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
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
127d6853c7
cpu/stm32/gen_kconfig: use openpyxl package instead of xlrd 2021-05-01 11:31:56 +02:00
d39fd7c773
cpu/stm32/genkconfig: make copyright year configurable 2021-05-01 11:31:11 +02:00
benpicco
08f1f9768d
Merge pull request #16418 from fjmolinas/pr_stm32_spi_param_order
cpu/stm32/periph/spi: fix wrong parameter order
2021-04-30 14:37:17 +02:00
benpicco
c1c374db02
Merge pull request #16420 from benpicco/periph/rtt_overflow
cpu: add periph_rtt_overflow feature
2021-04-30 14:37:09 +02:00
benpicco
76cd388dd0
Merge pull request #16304 from iosabi/esp_gdbstub
cpu/esp8266: Fix typo in esp_gdbstub config.
2021-04-30 14:36:50 +02:00
benpicco
b1f8dc3401
Merge pull request #16409 from benpicco/cpu/lpc23xx-flashpage
cpu/lpc23xx: implement periph/flashpage
2021-04-30 14:36:14 +02:00
benpicco
11aa163509
Merge pull request #16352 from kfessel/p-doc-pkg
doc/pkg: provide a longer short description
2021-04-30 12:00:13 +02:00
Benjamin Valentin
d47a880915 cpu: add periph_rtt_overflow feature
The RTT overflow callback is not available on all RTT implementations.
This means it is either a no-op or `rtt_set_overflow_cb()` is a no-op
or it will overwrite the alarm set with `rtt_set_alarm()`.

This adds a feature to indicate that proper overflow reporting is available.
2021-04-30 11:58:00 +02:00
Benjamin Valentin
69b16dc8a2 cpu/sam0_common: only include RTC/RTT symbols if module is used
This allows to use the sam0 RTT together with the rtt_rtc module.
The idea is to use RTT as a monotonic counter, but still keep track
of the time with the virtual RTC module.
2021-04-30 10:39:51 +02:00
Francisco Molina
fc9fc5c057
cpu/stm32/periph/spi: fix wrong parameter order 2021-04-30 09:17:38 +02:00
Benjamin Valentin
c7c4d75dfe tests/periph_flashpage: respect FLASHPAGE_WRITE_BLOCK_SIZE 2021-04-29 17:57:05 +02:00
4db2a86677
Merge pull request #16414 from seeseemelk/bugfix/late-fpu
Fix Cortex-M hard faults when building with -O3 or -Ofast
2021-04-29 14:21:45 +02:00
Sebastiaan de Schaetzen
e3c9b0c4ca cortexm: initialise fpu early 2021-04-29 13:19:47 +02:00
Benjamin Valentin
51d2dacc33 cpu/lpc23xx: implement periph/flashpage 2021-04-29 13:05:42 +02:00
Hauke Petersen
365641ac3c tools/dhcpv6-pd_ia: add Linux Mint to installer 2021-04-28 18:31:24 +02:00
benpicco
d806aa42c6
Merge pull request #16399 from kfessel/f-nanocoap-caseblock
examples/nanocoap_server: remove unneed case block
2021-04-28 14:40:05 +02:00
Benjamin Valentin
eb7dfdb6ad drivers/periph: flashpage: fix type error 2021-04-28 14:17:42 +02:00