[riot-commits] [RIOT-OS/RIOT] ae8afa: cpu/esp8266: remove overridden stdio functions

benpicco noreply at github.com
Wed Sep 4 16:07:49 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: ae8afaf42ea09ea09949750285a6bf259bf25d68
      https://github.com/RIOT-OS/RIOT/commit/ae8afaf42ea09ea09949750285a6bf259bf25d68
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M cpu/esp8266/sdk/main.c
    M cpu/esp8266/syscalls.c

  Log Message:
  -----------
  cpu/esp8266: remove overridden stdio functions

The overridden stdio functions `puts`, `putchar` and `printf` were removed. Instead, the corresponding newlib functions are always used. Using the newlib functions fixes output conflicts when using `f *` functions like `fprintf`,` fputs`, ... with `stdout` as the file parameter.


  Commit: 69a5cc753d28e6699053d4d6bfa2082a7dcc8c89
      https://github.com/RIOT-OS/RIOT/commit/69a5cc753d28e6699053d4d6bfa2082a7dcc8c89
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M cpu/esp8266/Makefile.dep
    M cpu/esp8266/Makefile.include
    M cpu/esp8266/syscalls.c

  Log Message:
  -----------
  cpu/esp8266: use always newlib stdio functions

The modules `newlib, `newlib_syscalls_default` and `stdio_uart` are now used by default for output to the UART interface. This also reduces the dependency rules.


  Commit: 646a173738bf27b16981facdbc2aaa0063b87d79
      https://github.com/RIOT-OS/RIOT/commit/646a173738bf27b16981facdbc2aaa0063b87d79
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M cpu/esp8266/Makefile.include

  Log Message:
  -----------
  cpu/esp8266: fix unresolved symbols

To avoid unresolved symbols for unused functions during linking, compiler option `-ffunction-sections` is used now. Linker option `--warn-unresolved-symbols` is removed to get errors if required symbols cannot be resolved.


  Commit: 7fe1056aa71a3113301f13a0104ecf601ec228b5
      https://github.com/RIOT-OS/RIOT/commit/7fe1056aa71a3113301f13a0104ecf601ec228b5
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M cpu/esp8266/Makefile.include

  Log Message:
  -----------
  cpu/esp8266: enable newlib with nano-formatted-io


  Commit: 37ecb4fc5da3cd14d296c36f952ac8f7fad0e5b7
      https://github.com/RIOT-OS/RIOT/commit/37ecb4fc5da3cd14d296c36f952ac8f7fad0e5b7
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

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

  Log Message:
  -----------
  cpu/esp8266: periph/uart FIFO resized to 1 byte

UART FIFO must contain only 1 byte when newlib's `printf` function is used. Otherwise, outputs that are still not sent over UART are lost when `printf` is called asynchronousely.


  Commit: a55230eee77681e424b357fdc8d4e94546d38873
      https://github.com/RIOT-OS/RIOT/commit/a55230eee77681e424b357fdc8d4e94546d38873
  Author: benpicco <benpicco at googlemail.com>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M cpu/esp8266/Makefile.dep
    M cpu/esp8266/Makefile.include
    M cpu/esp8266/periph/uart.c
    M cpu/esp8266/sdk/main.c
    M cpu/esp8266/syscalls.c

  Log Message:
  -----------
  Merge pull request #12133 from gschorcht/cpu/esp8266/fix_stdio_problems

cpu/esp8266: fix stdio problems


Compare: https://github.com/RIOT-OS/RIOT/compare/205d4319794f...a55230eee776


More information about the commits mailing list