[riot-commits] [RIOT-OS/RIOT] e7cacf: periph/uart: Fix doc, use errno for return values

benpicco noreply at github.com
Wed Jul 21 00:12:36 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: e7cacf6f60e37ee43ff1fa75e6de94dd5c067ddc
      https://github.com/RIOT-OS/RIOT/commit/e7cacf6f60e37ee43ff1fa75e6de94dd5c067ddc
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-07-09 (Fri, 09 Jul 2021)

  Changed paths:
    M drivers/include/periph/uart.h

  Log Message:
  -----------
  periph/uart: Fix doc, use errno for return values

Some terminology issues are fixed. (The speed of an UART interface is
the symbol rate. The unit it is measured in is baud, which is symbols
per second. There is no such thing as baudrate or even baud/s.)

The return codes are changed to use negative errno constants on error
to match the driver design rules. For backward compatibility, the
enum was updated to match the error codes. Unless an application
depends on the exact numerical value (which would be insane), this is
not breaking any code.


  Commit: 07b3e19d0151273921f37730e8f07e0cf14b1f8a
      https://github.com/RIOT-OS/RIOT/commit/07b3e19d0151273921f37730e8f07e0cf14b1f8a
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M drivers/include/periph/uart.h

  Log Message:
  -----------
  Merge pull request #16632 from maribu/periph/uart

periph/uart: Fix doc, use errno for return values


Compare: https://github.com/RIOT-OS/RIOT/compare/9ba3c492679a...07b3e19d0151


More information about the commits mailing list