1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/periph_uart_mode
2021-08-13 19:50:38 +02:00
..
app.config.test tests/periph_*: add Kconfig configuration files 2020-11-06 15:58:00 +01:00
main.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Makefile tests/periph_uart_mode: Drop dep to periph_timer 2021-07-13 16:51:00 +02:00
Makefile.board.dep tests/periph_uart_mode: Drop dep to periph_timer 2021-07-13 16:51:00 +02:00
Makefile.ci boards: introduce atmega328p-xplained-mini 2021-03-27 14:10:19 -03:00
README.md tests/periph_uart_mode: Add uart_mode test for single UART MCU 2019-06-06 08:46:33 -04:00

Expected result

Use a probe to examine the output from the UART. It tests all permutations of data-bits, parity, and stop-bits. For each mode, the mode configuration will be printed to STDOUT as: For example: 7 data-bits, even parity, and 2 stop-bits would be: 7E2 Only supported mode strings will be printed out. At the end of the test, the default mode will be restored, and a list indicating which modes were supported and unsupported by the device. The scope still needs to be used to validate that the settings were applied properly. If a different BAUD rate than 115200 is desired, compile with: CFLAGS+=-DSTDIO_UART_BAUDRATE=<BAUD>

Background

This test was created because the existing periph_uart test relies on the presence of multiple UARTs, so that one can be used for the shell, and another for testing. This test requires no shell hookup, and automatically runs through the test procedure, relying on a probe to examine the results.