[riot-commits] [RIOT-OS/RIOT] cd449e: cpu/cc2538: Adapted UART driver incl. board config

Sebastian Meiling s at mlng.net
Thu Mar 1 12:03:00 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: cd449e388b46b7c289164763dcde7300311242fa
      https://github.com/RIOT-OS/RIOT/commit/cd449e388b46b7c289164763dcde7300311242fa
  Author: danpetry <daniel.petry at fu-berlin.de>
  Date:   2018-02-08 (Thu, 08 Feb 2018)

  Changed paths:
    M cpu/cc2538/include/cc2538_uart.h
    M cpu/cc2538/include/periph_cpu.h
    M cpu/cc2538/periph/uart.c

  Log Message:
  -----------
  cpu/cc2538: Adapted UART driver incl. board config

Changed the style of the UART configuration for different boards,
from a define based configuration to one based on an array of
structs, one struct for each UART, with the format of the struct defined
in cc2538/include/periph_cpu.h.

  - Defined the fields of the struct in periph_cpu.h
  - Removed the compilation includes that were in uart.c for each UART
  - Implemented a generic ISR subroutine for clarity
  - combined uart_base and uart_init in uart.c
  - used bitmask for the interrupt setup
  - took the uart Rx, Tx, and IRQ numbers out of the config
  (as this has to match the .dev field). Replaced with
  macros from the uart number
  - took out some unused code
  - implemented power on/off commands
  - removed reset function - now bytes are just discarded on error
  - Rx now not initialised if Rx callback = NULL, as per
  drivers/periph/uart.h
  - device is now enabled after callbacks are set, not before
  - asserts raised if rts and cts are enabled for UART0
  - BIT macro removed


  Commit: c0a85babda50a8f66aa9eea2739ab7b697437758
      https://github.com/RIOT-OS/RIOT/commit/c0a85babda50a8f66aa9eea2739ab7b697437758
  Author: danpetry <daniel.petry at fu-berlin.de>
  Date:   2018-02-08 (Thu, 08 Feb 2018)

  Changed paths:
    M boards/cc2538dk/include/periph_conf.h

  Log Message:
  -----------
  boards/cc2538dk: Changed UART config format

Changed the configuration of the cc2538dk board to fit the new
cc2538 format defined in the previous commit. That is, from a defines
based format to a struct based format.


  Commit: 06b98c8d0d00940eb49ac893ec9f4856cc9d5696
      https://github.com/RIOT-OS/RIOT/commit/06b98c8d0d00940eb49ac893ec9f4856cc9d5696
  Author: danpetry <daniel.petry at fu-berlin.de>
  Date:   2018-02-08 (Thu, 08 Feb 2018)

  Changed paths:
    M boards/openmote-cc2538/include/periph_conf.h

  Log Message:
  -----------
  boards/openmote-cc2538: Changed UART config format

Changed the configuration of the OpenMote board to fit the new
cc2538 format defined in the previous commit. That is, from a defines
based format to a struct based format.


  Commit: 2781a4254284d2fd47530fb1602492e558ef872b
      https://github.com/RIOT-OS/RIOT/commit/2781a4254284d2fd47530fb1602492e558ef872b
  Author: danpetry <daniel.petry at fu-berlin.de>
  Date:   2018-02-08 (Thu, 08 Feb 2018)

  Changed paths:
    M boards/common/remote/include/periph_common.h

  Log Message:
  -----------
  boards/common/remote: Changed UART config format

Changed the configuration of the Remote boards to fit the new
cc2538 format defined in the previous commit. That is, from a
defines based format to a struct based format.


  Commit: f5ef0bd09c5052b10046ce8cefd59069a3b20386
      https://github.com/RIOT-OS/RIOT/commit/f5ef0bd09c5052b10046ce8cefd59069a3b20386
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2018-03-01 (Thu, 01 Mar 2018)

  Changed paths:
    M boards/cc2538dk/include/periph_conf.h
    M boards/common/remote/include/periph_common.h
    M boards/openmote-cc2538/include/periph_conf.h
    M cpu/cc2538/include/cc2538_uart.h
    M cpu/cc2538/include/periph_cpu.h
    M cpu/cc2538/periph/uart.c

  Log Message:
  -----------
  Merge pull request #8345 from danpetry/cc2538_uart

cc2538/include/periph_cpu.h: Changed UART configuration format for cc2538.


Compare: https://github.com/RIOT-OS/RIOT/compare/3bbc1d7e223f...f5ef0bd09c50


More information about the commits mailing list