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

43451 Commits

Author SHA1 Message Date
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
50315213e6
tests/sys: fix style warnings reported by coccinelle 2023-05-10 12:02:59 +02:00
0147d44258
tests: move sys related applications to tests/sys/ subdirectory 2023-05-10 12:02:58 +02:00
aebbd015bb
tests: move remaining driver related applications to tests/drivers 2023-05-10 11:58:32 +02:00
31ac82030e
makefiles/app_dirs.inc.mk: add tests/sys subdirectory 2023-05-10 10:33:33 +02:00
bdd4705733
tests: move bench_ applications to bench/ subdirectory 2023-05-10 09:49:56 +02:00
d6914573b6
makefiles/app_dirs.inc.mk: add tests/bench subdirectory 2023-05-10 09:49:39 +02:00
bors[bot]
cf7ef55b8d
Merge #19490
19490: sys/shell/gnrc_netif: don't always build lora options with ifconfig r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-09 12:46:59 +00:00
Marian Buschsieweke
b86366e34e
makefiles/toolchain: Fix incorrect assumptions on address space layout
GCC 12 gives out of bounds warnings when the resulting address is out
of bounds of what GCC assumes to be the valid address space. It seems
that by default the address 0x0 is not considered valid (which would
be a NULL pointer and typically not mapped in a userspace behind an MMU
scenario), but in fact is valid on bare metal hardware. At least on
AVR and MSP430 this needs to be set. On many Cortex M MCUs 0x0 is also
a valid address (e.g. often the flash is mapped there), but seemingly
for them `--param=min-pagesize=0` is already the default. In any case,
it won't hurt to set it explicit for them as well.
2023-05-08 15:42:40 +02:00
Marian Buschsieweke
b123f1071a
cpu/msp430_common: Fix linking with binutils 2.40
An `INSERT AFTER` directive no longer can refer to a different linker
script included with `-T path/to/script.ld`. Instead, this adds wrapper
linker scripts that just `INCLUDE` the three individual linker scripts.
This way, the xfa.ld can safely refer back to sections defined in
the vendor linker script.

For some reason, this approach cause the exact issue it fixes for
binutils 2.40 with the binutils in the CI. We stick with the old
linker flags with binutils prior 2.40 to be compatible with both
conflicting behaviors.

The best approach would be to come up with something that works across
different versions of binutils; but no such solution materialized.
2023-05-08 15:40:26 +02:00
bors[bot]
b93328d14b
Merge #18788
18788: pkg/lvgl: Change all references of LittlevGL to LVGL in doc.txt r=aabadie a=OkiStuff

Change all references of LittlevGL to LVGL in pkg/lvgl/doc.txt per request of LVGL team (https://github.com/lvgl/lvgl/pull/3761)

### Contribution description

Changing parts of the pkg/lvgl/doc.txt to replace "LittlevGL" to LVGL as per request of the LVGL team

### Issues/PRs references
https://github.com/lvgl/lvgl/pull/3761

Co-authored-by: Frankie A <40648091+OkiStuff@users.noreply.github.com>
2023-05-08 13:13:11 +00:00
Frankie A
e8f897016c
tests/pkg_lvgl_touch: Replace LittlevGL to LVGL 2023-05-08 15:00:54 +02:00
Frankie A
73d0a5c2d8
tests/pkg_lvgl: Replace LittlevGL to LVGL 2023-05-08 15:00:53 +02:00
Frankie A
76dfee30ae
pkg/lvgl: replace LittlevGL to LVGL 2023-05-08 15:00:53 +02:00
Frankie A
78d34d08a6
pkg/lv_drivers: replace LittlevGL to LVGL 2023-05-08 15:00:52 +02:00
bors[bot]
fcb8283b4c
Merge #19552
19552: tests: move all periph applications to their own periphs/ folder r=gschorcht a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-08 10:31:17 +00:00
bors[bot]
5f8de37933
Merge #19544 #19555
19544: core/lib: drop read only XFA's `const volatile` modifiers r=maribu a=kaspar030



19555: treewide: replace occurrences of tests/driver_ with new path r=maribu a=aabadie



Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-08 08:27:22 +00:00
f9d247791d
treewide: replace occurrences of tests/driver_ with new path 2023-05-06 15:38:21 +02:00
da95d2c56c
treewide: replace occurrences of tests/periph_ with new path 2023-05-06 15:33:03 +02:00
c51d5357e6
tests: move periph_ applications to periphs subdirectory 2023-05-06 15:29:51 +02:00
db5ea456bd
makefiles/app_dirs.inc.mk: add tests/periphs subdirectory 2023-05-06 15:29:49 +02:00
bors[bot]
9fc578671a
Merge #19551
19551: tests: move all pkg applications to their own pkgs/ folder r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-06 06:21:41 +00:00
07d2e1c228
treewide: replace remaining occurrences of tests/pkg_* 2023-05-06 07:55:03 +02:00
a347879f71
CODEOWNERS: fix path for tests/pkg/libschc 2023-05-06 07:55:02 +02:00
3973f7f28a
pkg/qcbor: update doc about path to test application 2023-05-06 07:55:02 +02:00
e6ba7014e0
.murdock: update tests/pkg/{elk,uzlib} for Kconfig 2023-05-06 07:55:01 +02:00
74eb56e141
dist/tools/vera++: fix exclude rules for tests/pkg/utensor 2023-05-06 07:55:01 +02:00
7ccf70ff04
tests: move pkg_ application to tests/pkg subdirectory 2023-05-06 07:55:01 +02:00
aaf5468082
makefiles/app_dirs.inc.mk: add tests/pkgs subdirectory 2023-05-06 07:55:00 +02:00
bors[bot]
1fc275a1c7
Merge #19554
19554: tests/pkg_fatfs*: fix shellcheck warnings r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-06 05:36:56 +00:00
5b41aab337
tests/pkg_fatfs*: fix shellcheck warnings 2023-05-05 18:29:13 +02:00
bors[bot]
bf95fa4909
Merge #19550
19550: tests/drivers/l3gxxxx: fix used sensor version for iotlab boards r=aabadie a=gschorcht

### Contribution description

This PR fixes the `l3gxxxx` driver version used in `tests/drivers/l3gxxxx` for IoT-Lab boards. It hopefully fixes the compilation of nightly.

The problem occurred with PR #19523. 

### Testing procedure

```
BOARD=iotlab-a8-m3 make -j8 -C tests/drivers/l3gxxxx info-modules | grep l3g4200d_ng
```
should succeed.

### Issues/PRs references


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2023-05-05 07:33:34 +00:00
Gunar Schorcht
576cf74ac8 tests/drivers/l3gxxxx: fix used sensor version for iotlab boards 2023-05-05 09:20:43 +02:00
bors[bot]
34c094d15d
Merge #19522
19522: tests/periph_rtt: Fix for tick conversion test  r=benpicco a=chudov

### Contribution description

Type casting and `printf` formatting for the `RTT_MAX_VALUE` and `RTT_FREQUENCY` are fixed so 32-bit value is properly handled by  'avr-libc'.
The original tick conversion test assumes that `RTT_FREQUENCY` is power of 2 so forward and backward ticks to seconds conversion results in the original ticks value. To fix it the result of the forward-backward conversion is compared with `ticktest / RTT_FREQUENCY * RTT_FREQUENCY` that considers rounding errors.

Changes were tested on deRFmega256 and nrf52840dongle.

### Testing procedure

tests/periph_rtt on a board with ATmega256RFR2 shall:
* show correct RTT_MAX_VALUE 
* conversion check shall report no error.

### Issues/PRs references

Fixes #15940 


Co-authored-by: chudov <chudov@gmail.com>
2023-05-04 23:10:52 +00:00
bors[bot]
ecc324998a
Merge #19538 #19547
19538: drivers/mtd_default: add external declarations for mtd* r=benpicco a=gschorcht

### Contribution description

The `mtd_default` module defines `MTD_NUMOF`, if not present, based on the `MTD_*` defines. These defines are set to the corresponding `mtd*` MTD device pointer variables in the board definitions. However, not all `mtd*` MTD device pointer variables are  always made known by external variable declarations. An example are SD Card Interfaces that are defined via the `mtd_sdcard_default` module. As a result, it may be necessary for an application using `mtd_default` to declare an external MTD device pointer variable `mtd`. To be able to use SD card for testing MTD based application, `mtd_default` also declares up to six `mtd*` MTD device pointer variables.

### Testing procedure

Use any board without SD Card definition and compile `tests/pkg_litllefs`,  `tests/pkg_litllefs2` or `tests/pkg_spiffs`, for example to use a temporary connected SD Card interface.
```
CFLAGS='-DMTD_0=mtd0 -DCONFIG_USE_HARDWARE_MTD' USEMODULE='sdcard_spi mtd_sdcard_default' BOARD=nucleo-f411re make -j8 -C tests/pkg_littlefs
```
Without this PR, compilation fails due to undeclared `mtd0` variable
```
tests/pkg_littlefs/bin/nucleo-f411re/riotbuild/riotbuild.h:2:15: error: 'mtd0' undeclared (first use in this function)
    2 | #define MTD_0 mtd0
      |               ^~~~
```
Compilation works with this PR and the temporary connected SD Card interface can be used with this test applications.

### Issues/PRs references


19547: pkg/openthread: set event callback before netdev init r=benpicco a=bergzand

### Contribution description

When using openthread with the ieee802154_submac module, a hard fault is triggered otherwise because the submac's init function calls the event_handler callback.


### Testing procedure

Flash the `examples/openthread` application on the nrf52840dk board. Without this patch the board is stuck in a hard fault loop. With this patch the application starts successfully.


### Issues/PRs references

None


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
2023-05-04 21:11:34 +00:00
bors[bot]
9c6291e19f
Merge #19548
19548: boards/telosb: minor clean ups r=maribu a=maribu

### Contribution description

This cleans up the documentation and the header files of the TelosB board. It is supposed to not changed the generated firmware (except for debug symbols).


Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2023-05-04 20:20:25 +00:00
Marian Buschsieweke
81ebcb5b43
boards/telosb: clean up code
Move the periph configuration from board.h to periph_conf.h as indicated
by the todo note there.
2023-05-04 22:16:22 +02:00
Marian Buschsieweke
54abdff029
boards/telosb: clean up doc
- replace broken links with Wayback Machine links
- clean up markdown
2023-05-04 22:16:22 +02:00