[riot-commits] [RIOT-OS/RIOT] 79d338: native: add UART driver based on /dev/tty

kYc0o fco.ja.ac at gmail.com
Thu Mar 31 12:50:14 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 79d33897cb8f2da6409d8072f8dd49e4ad98c6f8
      https://github.com/RIOT-OS/RIOT/commit/79d33897cb8f2da6409d8072f8dd49e4ad98c6f8
  Author: Yonezawa-T2 <Yonezawa-T2 at mail.dnp.co.jp>
  Date:   2016-03-31 (Thu, 31 Mar 2016)

  Changed paths:
    M boards/native/Makefile.features
    A cpu/native/async_read.c
    A cpu/native/include/async_read.h
    M cpu/native/include/periph_conf.h
    A cpu/native/include/tty_uart.h
    M cpu/native/netdev2_tap/netdev2_tap.c
    A cpu/native/periph/gpio.c
    A cpu/native/periph/uart.c
    M cpu/native/reboot.c
    M cpu/native/startup.c
    M tests/periph_uart/main.c

  Log Message:
  -----------
  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.


  Commit: c4bc42419b86e5a1fd75bc71d6f2d3cc4b24f63b
      https://github.com/RIOT-OS/RIOT/commit/c4bc42419b86e5a1fd75bc71d6f2d3cc4b24f63b
  Author: Yonezawa-T2 <Yonezawa-T2 at mail.dnp.co.jp>
  Date:   2016-03-31 (Thu, 31 Mar 2016)

  Changed paths:
    M cpu/native/netdev2_tap/netdev2_tap.c
    M drivers/include/net/netdev2.h
    M sys/net/gnrc/link_layer/netdev2/gnrc_netdev2_eth.c

  Log Message:
  -----------
  netdev2_tap: continue reading even if no spaces left in pktbuf

On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is
called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv`
that results in deadlock.

With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero
length parameter, that indicates the driver to drop frame and resume working.


  Commit: ecf7b46155b548372f466285c9a9ee950693c58b
      https://github.com/RIOT-OS/RIOT/commit/ecf7b46155b548372f466285c9a9ee950693c58b
  Author: kYc0o <fco.ja.ac at gmail.com>
  Date:   2016-03-31 (Thu, 31 Mar 2016)

  Changed paths:
    M boards/native/Makefile.features
    A cpu/native/async_read.c
    A cpu/native/include/async_read.h
    M cpu/native/include/periph_conf.h
    A cpu/native/include/tty_uart.h
    M cpu/native/netdev2_tap/netdev2_tap.c
    A cpu/native/periph/gpio.c
    A cpu/native/periph/uart.c
    M cpu/native/reboot.c
    M cpu/native/startup.c
    M drivers/include/net/netdev2.h
    M sys/net/gnrc/link_layer/netdev2/gnrc_netdev2_eth.c
    M tests/periph_uart/main.c

  Log Message:
  -----------
  Merge pull request #4443 from Yonezawa-T2/native_tty_uart

native: add UART driver based on /dev/tty


Compare: https://github.com/RIOT-OS/RIOT/compare/dd0fe607893e...ecf7b46155b5


More information about the commits mailing list