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

18 Commits

Author SHA1 Message Date
Hauke Petersen
98478f0514 tests/periph_uart: fix shell buffer size 2020-01-31 13:57:08 +01:00
Benjamin Valentin
4918dfe590 tests: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Yegor Yefremov
738cbf685b tests/periph_uart: add support for changing serial
Add command mode that will be used like this:

mode <dev> <data bits> <parity> <stop bits>

This command must be called after init otherwise
the UART won't be fully initialized.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:20 +01:00
MrKevinWeiss
501b257223 tests/periph_uart: fix baudrate truncation
Since some boards an int is 16 bits the atoi truncates values.
This commit using a long instead of an int.
2019-01-03 16:38:33 +01:00
Hauke Petersen
c2184f3454 boards/cpu/drivers/sys: use generic stdio_ if 2018-08-22 10:54:25 +02:00
Yegor Yefremov
38aecf2bdf tests/periph_uart: adapt main.c for automated testing
This is an effort to automate UART testing using the same framework as
was already introduced for i2c. The framework relies on shell commands
to return invocation status and data in a special way:

1. Invocation status: Success or Error
2. Data inside the []

Hence this patch adds invocation status to the UART init command and
invocation status and data to the printer.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-07-11 10:06:18 +02:00
Hauke Petersen
a38a9f7a6f tests/periph_uart: included power_on/off() in test 2018-03-02 10:53:55 +01:00
3d48eee095 cleanup: apply remove_atoi_casts.cocci (coccinelle) 2017-05-13 12:39:48 +02:00
Hauke Petersen
474cf80558 tests/periph_uart: terminate strings with \n 2017-01-09 13:17:44 +01:00
Hauke Petersen
13cebf2739 tests/periph_uart: use named UART return values 2016-10-28 10:32:00 +02:00
Martine Lenders
4161ae1f11 Merge pull request #5686 from OTAkeys/pr/fix_uart_test
tests/periph_uart: include uart_stdio.h
2016-09-28 07:08:54 +02:00
Matthias Kolja Miehl
6ea7a8f6ae tests/periph_uart: fix invalidPrintfArgType_sint
Since the argument type is 'unsigned int', the printf
format string has to be '%u' instead of '%i'.
2016-09-05 02:27:24 +02:00
Toon Stegen
2039cd1e26 tests/periph_uart: include uart_stdio.h
This makes sure UART_STDIO_DEV is defined, so the init command fails
when trying to use the shell UART as a parameter.
2016-07-25 09:43:36 +02:00
Hauke Petersen
1367df0805 tests/periph_uart: fixed signedness issues 2016-04-08 10:49:34 +02:00
Yonezawa-T2
79d33897cb native: add UART driver based on /dev/tty
uart0 functionality is removed by #3164. This patch implements periph/uart,
rather than deprecated uart0, using /dev/tty.
To use with netdev2_tap simultaneously, this patch adds asynchronus read system
and modifies netdev2_tap to use it.

A TTY device is specified on command line with -c (COM) option, since -t was
used by the old implementation.

This patch also implements empty GPIO driver needed by the xbee driver.
2016-03-31 16:59:12 +09:00
Hauke Petersen
18ae50ad4e tests/periph_uart: adapted to cb type changtests/periph_uart: adapted to cb type changee 2016-03-15 11:02:06 +01:00
Joakim Nohlgård
dc303a4f0b sys/uart_stdio: rename STDIO -> UART_STDIO_DEV, move to header 2016-03-11 12:04:00 +01:00
Hauke Petersen
a38e51c0d0 tests: added new UART test application 2015-10-27 14:59:37 +01:00