[riot-notifications] [RIOT-OS/RIOT] cpu/cc2538: Add periph_uart_mode implementation (#11503)

MrKevinWeiss notifications at github.com
Thu May 9 12:25:20 CEST 2019


### Contribution description

This pr adds the periph_uart_mode USEMODULE
It implements all functionality defined in the common uart driver
This means all parity modes, data bits, and stop bits


### Testing procedure

Run `USEMODULE=periph_uart_mode BOARD=remote-revb make flash term -C tests/periph_uart/`
In the terminal run
`init 1 115200`
and change all different modes (databits 5-8, parity n/e/o/m/s, and stop bits 1/2)
eg. `mode 1 5 o 2`
_note: the API says that init must be called before mode however this implementation allows the user to also call mode at any time_
Verify with a scope or analyser that the changes work/
Verify loopback works as well.

### Issues/PRs references
Implementation based off RFC #10743
Taken over from #5899

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11503

-- Commit Summary --

  * cpu/cc2538: Add periph_uart_mode implementation

-- File Changes --

    M cpu/cc2538/Makefile.features (1)
    M cpu/cc2538/include/periph_cpu.h (39)
    M cpu/cc2538/periph/uart.c (29)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11503.patch
https://github.com/RIOT-OS/RIOT/pull/11503.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11503
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190509/7dfadaee/attachment.html>


More information about the notifications mailing list