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

43438 Commits

Author SHA1 Message Date
b2717720bf
CODEOWNERS: fix path to test applications 2023-05-13 18:38:31 +02:00
699568f6f6
.murdock: fix path to test applications 2023-05-13 18:37:02 +02:00
984dba7564
treewide: fix path to external_board_dirs test in doc 2023-05-13 18:31:05 +02:00
96271df7c6
sys/test_utils: fix path to rmutex test in doc 2023-05-13 18:27:58 +02:00
3989cd79ff
treewide: fix path to shell related tests in doc 2023-05-13 18:27:58 +02:00
bors[bot]
c449bc0e87
Merge #19587
19587: tests/README.md: Add directory overview r=aabadie a=bergzand

### Contribution description

This adds a small overview of the different subdirectories now in the tests directory


### Testing procedure

- Read the new documentation
  - Check the links
- Check whether I missed any new subdirectory in the list.


### Issues/PRs references

Related to the excellent cleanup work started by `@Teufelchen1` and `@aabadie`

Co-authored-by: Koen Zandberg <koen@bergzand.net>
2023-05-13 15:51:24 +00:00
10fb6f10ab
tests/README.md: Add directory overview 2023-05-13 17:46:56 +02:00
bors[bot]
356a47d1bb
Merge #19585 #19586
19585: tests: move leftover sys related tests to test/sys + move tests/sys/candev to tests/drivers r=aabadie a=aabadie



19586: tests: move net related applications to test/net r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-12 15:03:12 +00:00
bb49079710
tests/net/gnrc_sixlowpan_frag_sfr_congure_impl: fix path to zep_dispatch 2023-05-12 16:51:44 +02:00
25517c8739
tests/net/gcoap_fileserver: fix path to zep_dispatch 2023-05-12 16:42:05 +02:00
ab658eddb0
tests/drivers: fix broken symlinks and paths 2023-05-12 16:36:40 +02:00
17be6a32c9
tests/drivers/nrf802154: build for nrf52840dk by default
There's no sense in having nrf52dk by default since its MCU, nrf52832, doesn't have support for 802.15.4 radio
2023-05-12 16:36:40 +02:00
993adebe42
tests/net/gnrc_rpl: fix path to zep_dispatch 2023-05-12 16:36:39 +02:00
6247f8a960
tests: move net related applications to tests/net 2023-05-12 16:36:39 +02:00
090150ec86
makefiles/app_dirs.inc.mk: add tests/net subdirectory 2023-05-12 16:36:38 +02:00
bors[bot]
ef0e29e555
Merge #19582
19582: tests: move nimble and lwip related to test applications to tests/pkg r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-12 12:35:04 +00:00
4020692be3
tests/candev: move to tests/drivers 2023-05-12 14:24:40 +02:00
e8e790209e
tests/sys: move missing sys related tests 2023-05-12 14:24:40 +02:00
ab3cfff3e5
tests: move lwip* tests to tests/pkg 2023-05-12 11:25:00 +02:00
f77e7c80c4
tests: move nimble_* tests to tests/pkg 2023-05-12 11:24:59 +02:00
bors[bot]
cf8c1391d9
Merge #19573 #19579 #19583 #19584
19573: cpu/stm32/periph_dac: small improvements r=maribu a=gschorcht

### Contribution description

This PR provides the following improvements for `periph_dac` on STM32

- Support for `RCC_APB1ENR1_DAC1EN` symbol added.
- For boards that have not connected the V_REF+ pin to an external reference voltage, the VREFBUF peripheral can be used as V_REF+ (if supported) by setting `VREFBUF_ENABLE=1`.
- If the DAC peripheral has a mode register (`DAC_MCR`), it is set to normal mode with buffer enabled and connected to external pin and on-chip peripherals. This allows to measure the current value of a DAC channel with an ADC channel or to use the DAC channel also for other on-chip peripherals.

### Testing procedure

- Green CI
- `tests/periph_dac` should still work for any board supporting the `periph_dac` feature.

### Issues/PRs references



19579: doc/doxygen/src/flashing.md: work around Doxygen bug r=maribu a=maribu

### Contribution description

Doxygen fails to render inline code in headers correctly in the version the CI uses. So, work around the issue by not typestetting `stm32flash` as inline code but as regular text.


19583: tests: move cpu related applications to tests/cpu r=maribu a=aabadie



19584: tests/build_system/external_board_dirs: fix broken symlinks r=maribu a=aabadie



Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-12 09:17:22 +00:00
36150bdd7b
tests/build_system/external_board_dirs: fix broken symlink 2023-05-12 11:03:40 +02:00
722e99412a
tests: move cpu related applications to tests/cpu 2023-05-12 10:39:28 +02:00
8e165cf2e2
makefiles/app_dirs.inc.mk: add tests/cpu subdirectory 2023-05-12 10:30:11 +02:00
bors[bot]
4af0376c18
Merge #19567
19567: tests: move build system applications to tests/build_system r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-11 13:02:05 +00:00
b8001f48b2
tools/buildsystem_sanity_check: update exclude list 2023-05-11 14:30:51 +02:00
2d241112e6
tests: move build system applications to tests/build_system 2023-05-11 14:30:50 +02:00
9af8b9d763
makefiles/app_dirs.inc.mk: add tests/build_system subdirectory 2023-05-11 14:30:50 +02:00
Marian Buschsieweke
b671ee7cae
doc/doxygen/src/flashing.md: work around Doxygen bug
Doxygen fails to render inline code in headers correctly in the
version the CI uses. So, work around the issue by not typestetting
`stm32flash` as inline code but as regular text.
2023-05-11 13:45:28 +02:00
bors[bot]
d362a8d697
Merge #19565 #19568 #19574
19565: tests: move core related applications to their own tests/core/ folder r=maribu a=aabadie



19568: tests: move remaining driver related applications to tests/drivers r=maribu a=aabadie



19574: cpu/stm32/periph_gpio: reset PU/PD for ADC channels r=maribu a=gschorcht

### Contribution description

This PR provides a small fix that is relevant when a GPIO has been used as input/output with a pull resistor before it is initialized as an ADC channel.

The PU/PD configuration has to be `0b00` for analog outputs which is corresponds to the reset state. However, if the GPIO is not in the reset state but was used digital input/output with any pull resistor, the PU/PD configuration has also to be reset to use it as ADC channel.

### Testing procedure

- Green CI
- The `periph_adc` test application should still work for any board that supports the `periph_adc` feature.

### Issues/PRs references



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-05-11 10:11:37 +00:00
bors[bot]
0a7bc1a45c
Merge #19577
19577: cpu/esp32: fix remaining compilation errors for GCC 12.2 r=maribu a=gschorcht

### Contribution description

This PR fixes one problem of CI compilation.

With [PR #227](https://github.com/RIOT-OS/riotdocker/pull/227) `riotdocker` was updated to GCC 12.2 . Obviously, following parts were not covered by compilation test before:

- [ ] `esp_eth`
- [ ] `esp_hw_counter`
- [ ] `esp_can`

### Testing procedure

### Issues/PRs references


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-05-11 07:40:03 +00:00
Gunar Schorcht
85f7d8b244 cpu/esp32: fix compilation of esp_can 2023-05-11 07:22:52 +02:00
Gunar Schorcht
61bfa5372a cpu/esp32: fix compilation of esp_hw_counter 2023-05-11 06:56:36 +02:00
Gunar Schorcht
f2a18a7663 cpu/esp32: fix compilation of esp_eth 2023-05-11 06:56:36 +02:00
bors[bot]
f4fa6bb809
Merge #19484
19484: makefiles/arch/msp430.inc.mk: Fix compilation issues with GCC 12 r=maribu a=maribu

### Contribution description

This fixes the following compilation issues:

    /home/maribu/Repos/software/RIOT/cpu/msp430fxyz/periph/gpio.c: In function 'gpio_periph_mode':
    /home/maribu/Repos/software/RIOT/cpu/msp430fxyz/periph/gpio.c:95:15: error: array subscript 0 is outside array bounds of 'msp_port_isr_t[0]' [-Werror=array-bounds]
       95 |         sel = &(isrport->SEL);
          |               ^~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

by adding `CFLAGS += --param-min-pagesize=0` for GCC 12 (same issue as already fixed for AVR).

and:

    /usr/lib/gcc/msp430-elf/12.2.0/../../../../msp430-elf/bin/ld: warning: /home/maribu/Repos/software/RIOT/cpu/msp430_common/ldscripts/xfa.ld contains output sections; did you forget -T?

by adding the missing `-T`.

### Testing procedure

The following should still work:

- `make BOARD=msb-430 -C examples/hello-world`
- `make BOARD=msb-430 -C tests/xfa flash test`

### Issues/PRs references

None

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2023-05-10 17:52:04 +00:00
bors[bot]
4d190935ef
Merge #19575
19575: treewide: fix format specifiers r=maribu a=maribu

### Contribution description

This brings format specifiers and the passed type back into sync. This won't change observable behavior in one case, and won't even change machine code in the other. But formally, this fixes bugs.


Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2023-05-10 15:57:08 +00:00
cabe02c24d
tests: move core related applications to tests/core/ subdirectory 2023-05-10 15:41:38 +02:00
5621985353
makefiles/app_dirs.inc.mk: add tests/core subdirectory 2023-05-10 15:41:36 +02:00
bors[bot]
c7f750a880
Merge #19566 #19570
19566: tests: move sys related applications to their own tests/sys/ folder r=aabadie a=aabadie



19570: boards/p-l496g-cell02: fix UART_DEV(2) configuration r=aabadie a=gschorcht

### Contribution description

This PR fixes the configuration of `UART_DEV(2)`. RX and TX pin were reversed in configuration. The TX pin is connected to PB6 instead of PG10 and the RX pin is connected to PG10 instead of PB6, see [schematic](https://www.st.com/content/ccc/resource/technical/layouts_and_diagrams/schematic_pack/group2/f5/28/1b/e1/55/12/4d/3c/mb1261-cell02-b06-schematic/files/mb1261-cell02-b06-schematic.pdf/jcr:content/translations/en.mb1261-cell02-b06-schematic.pdf), page 14.

### Testing procedure

The UART interface at STMOD+ or PMOD connector should work.

### Issues/PRs references

Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-05-10 13:02:19 +00:00
Marian Buschsieweke
64f4f9a9be
cpu/esp32/periph/pwm.c: fix format specifier
Use %u to print `unsigned`.
2023-05-10 13:02:47 +02:00
Marian Buschsieweke
30ebacd784
sys/shell/cmd_gnrc_icmpv6_echo: fix format specifier
At a cast to `unsigned` so that the format specifier `%u` matches the
type. I think this won't have an impact on the generated machine code.
2023-05-10 13:00:41 +02:00
bors[bot]
628bfa9e15
Merge #19564 #19569
19564: tests: move all bench applications to their own tests/bench/ folder r=aabadie a=aabadie



19569: tests/lua_loader: move to tests/pkg/lua_loader r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-10 10:51:27 +00:00
8a7ad8fcfe
tests/pkg/tinyusb_cdc_acm_stdio: fix symlink 2023-05-10 12:45:00 +02:00
Gunar Schorcht
e8af4f6d7a boards/p-l496g-cell02: fix UART_DEV(2) configuration 2023-05-10 12:21:11 +02:00
Gunar Schorcht
2a210c157b cpu/stm32/periph_dac: support of DAC mode register
If the DAC peripheral has a mode register (DAC_MCR), it is set to normal mode with buffer enabled and connected to external pin and on-chip peripherals. This allows to measure the current value of a DAC channel or to use the DAC channel also for other on-chip peripherals.
2023-05-10 12:12:53 +02:00
Gunar Schorcht
fb0a139eb9 cpu/stm32/periph_dac: support for internal V_REF+
For boards that have not connected the V_REF+ pin to an external reference voltage, the VREFBUF peripheral can be used as V_REF+ if supported by setting `VREFBUF_ENABLE=1`.
2023-05-10 12:12:47 +02:00
Gunar Schorcht
63b4da3e1f cpu/stm32/periph_dac: support for RCC_APB1ENR1_DAC1EN 2023-05-10 12:12:40 +02:00
Gunar Schorcht
ddb95e7648 cpu/stm32/periph_gpio: reset PU/PD for ADC channels
PU/PD configuration has to be `0b00` for analog outputs which is corresponds to the reset state. However, if the GPIO is not in reset state but was used digital input/output with any pull resistor, the PU/PD configuration has also to be reset to work as ADC channel.
2023-05-10 12:11:14 +02:00
6e0bad7026
tests/lua_loader: move to tests/pkg/lua_loader 2023-05-10 12:05:19 +02:00
afc675a2c7
tests/sys: fix E275 missing whitespace after keyword + cleanup a bit 2023-05-10 12:02:59 +02:00