[riot-commits] [RIOT-OS/RIOT] 28c1c5: cpu/sam0_common: UART: implement arithmetic BAUD mode

Marian Buschsieweke noreply at github.com
Tue Jul 28 19:43:41 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 28c1c502bcc926b39872e4570d67038b425b64c6
      https://github.com/RIOT-OS/RIOT/commit/28c1c502bcc926b39872e4570d67038b425b64c6
  Author: Benjamin Valentin <benpicco at googlemail.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M cpu/sam0_common/periph/uart.c

  Log Message:
  -----------
  cpu/sam0_common: UART: implement arithmetic BAUD mode

SAMD20 does not implement a Fractional Baud mode, so we have to
implement Asynchronous Arithmetic mode.


  Commit: e1f84de6c5904b8686f4a4cffbc0717201f21038
      https://github.com/RIOT-OS/RIOT/commit/e1f84de6c5904b8686f4a4cffbc0717201f21038
  Author: Benjamin Valentin <benpicco at googlemail.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M cpu/sam0_common/periph/uart.c

  Log Message:
  -----------
  cpu/sam0_common: UART: simplify init sequence

We don't need to read-modify-write the CTRLA register to disable
the UART.
The entire CTRLA register is re-written just a few lines below, so
we can just set it to 0 to disable the UART.

There is also no need to reset the UART since we re-write all config
registers in init.


  Commit: 003c25b2e814af03f05bda6392d4780a0eec4654
      https://github.com/RIOT-OS/RIOT/commit/003c25b2e814af03f05bda6392d4780a0eec4654
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M cpu/sam0_common/include/periph_cpu_common.h

  Log Message:
  -----------
  cpu/sam0_common: uart: document frequency constraints


  Commit: 9a149030667afc351554db13f10fe3097f153273
      https://github.com/RIOT-OS/RIOT/commit/9a149030667afc351554db13f10fe3097f153273
  Author: Marian Buschsieweke <maribu at users.noreply.github.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M cpu/sam0_common/include/periph_cpu_common.h
    M cpu/sam0_common/periph/uart.c

  Log Message:
  -----------
  Merge pull request #14326 from benpicco/cpu/sam0_common/uart_arithmetic

cpu/sam0_common: UART: implement arithmetic BAUD mode


Compare: https://github.com/RIOT-OS/RIOT/compare/ab88a96a4a83...9a149030667a


More information about the commits mailing list