diff --git a/Makefile.am b/Makefile.am index 936d7014..11bcb571 100644 --- a/Makefile.am +++ b/Makefile.am @@ -164,29 +164,6 @@ libmetal_a_SOURCES = \ src/vector.S \ src/watchdog.c -######################################################## -# libmetal-pico -######################################################## - -# Build support for picolibc if --with-builtin-libmetal-pico is passed to configure -if WITH_BUILTIN_LIBMETAL_PICO - -lib_LIBRARIES += libmetal-pico.a - -libmetal_pico_a_SOURCES = \ - pico/iob.c \ - gloss/crt0.S \ - gloss/sys_sbrk.c \ - gloss/sys_exit.c \ - gloss/sys_times.c \ - gloss/sys_sysconf.c \ - gloss/sys_gettimeofday.c \ - gloss/sys_clock_gettime.c \ - gloss/sys_write.c - -endif # WITH_BUILTIN_LIBMETAL_PICO - - ######################################################## # libsegger ######################################################## diff --git a/Makefile.in b/Makefile.in index 194891d3..551e82f0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. +# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2017 Free Software Foundation, Inc. +# Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -97,20 +97,13 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -######################################################## -# libmetal-pico -######################################################## - -# Build support for picolibc if --with-builtin-libmetal-pico is passed to configure -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@am__append_1 = libmetal-pico.a - ######################################################## # libsegger ######################################################## # Provide segger hook with Freedom Metal that is built when # --with-builtin-libmetal-segger is passed to configure -@WITH_BUILTIN_LIBMETAL_SEGGER_TRUE@am__append_2 = libmetal-segger.a +@WITH_BUILTIN_LIBMETAL_SEGGER_TRUE@am__append_1 = libmetal-segger.a ######################################################## # libgloss @@ -118,7 +111,7 @@ host_triplet = @host@ # Freedom Metal has its own libgloss implementation that is only built when # --with-builtin-libgloss is passed to configure. -@WITH_BUILTIN_LIBGLOSS_TRUE@am__append_3 = libmetal-gloss.a +@WITH_BUILTIN_LIBGLOSS_TRUE@am__append_2 = libmetal-gloss.a subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac @@ -217,23 +210,6 @@ am__dirstamp = $(am__leading_dot)dirstamp @WITH_BUILTIN_LIBGLOSS_TRUE@ gloss/sys_wait.$(OBJEXT) \ @WITH_BUILTIN_LIBGLOSS_TRUE@ gloss/sys_write.$(OBJEXT) libmetal_gloss_a_OBJECTS = $(am_libmetal_gloss_a_OBJECTS) -libmetal_pico_a_AR = $(AR) $(ARFLAGS) -libmetal_pico_a_LIBADD = -am__libmetal_pico_a_SOURCES_DIST = pico/iob.c gloss/crt0.S \ - gloss/sys_sbrk.c gloss/sys_exit.c gloss/sys_times.c \ - gloss/sys_sysconf.c gloss/sys_gettimeofday.c \ - gloss/sys_clock_gettime.c gloss/sys_write.c -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@am_libmetal_pico_a_OBJECTS = \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ pico/iob.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/crt0.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_sbrk.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_exit.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_times.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_sysconf.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_gettimeofday.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_clock_gettime.$(OBJEXT) \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_write.$(OBJEXT) -libmetal_pico_a_OBJECTS = $(am_libmetal_pico_a_OBJECTS) libmetal_segger_a_AR = $(AR) $(ARFLAGS) libmetal_segger_a_LIBADD = am__libmetal_segger_a_SOURCES_DIST = gloss/crt0.S \ @@ -321,10 +297,9 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = -SOURCES = $(libmetal_gloss_a_SOURCES) $(libmetal_pico_a_SOURCES) \ - $(libmetal_segger_a_SOURCES) $(libmetal_a_SOURCES) +SOURCES = $(libmetal_gloss_a_SOURCES) $(libmetal_segger_a_SOURCES) \ + $(libmetal_a_SOURCES) DIST_SOURCES = $(am__libmetal_gloss_a_SOURCES_DIST) \ - $(am__libmetal_pico_a_SOURCES_DIST) \ $(am__libmetal_segger_a_SOURCES_DIST) $(libmetal_a_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ @@ -520,8 +495,7 @@ BUILT_SOURCES = \ ######################################################## # libmetal ######################################################## -lib_LIBRARIES = libmetal.a $(am__append_1) $(am__append_2) \ - $(am__append_3) +lib_LIBRARIES = libmetal.a $(am__append_1) $(am__append_2) libmetal_a_SOURCES = \ src/drivers/fixed-clock.c \ src/drivers/fixed-factor-clock.c \ @@ -586,17 +560,6 @@ libmetal_a_SOURCES = \ src/vector.S \ src/watchdog.c -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@libmetal_pico_a_SOURCES = \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ pico/iob.c \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/crt0.S \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_sbrk.c \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_exit.c \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_times.c \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_sysconf.c \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_gettimeofday.c \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_clock_gettime.c \ -@WITH_BUILTIN_LIBMETAL_PICO_TRUE@ gloss/sys_write.c - @WITH_BUILTIN_LIBMETAL_SEGGER_TRUE@libmetal_segger_a_SOURCES = \ @WITH_BUILTIN_LIBMETAL_SEGGER_TRUE@ gloss/crt0.S \ @WITH_BUILTIN_LIBMETAL_SEGGER_TRUE@ segger/SEGGER_target_metal.c @@ -785,19 +748,6 @@ libmetal-gloss.a: $(libmetal_gloss_a_OBJECTS) $(libmetal_gloss_a_DEPENDENCIES) $ $(AM_V_at)-rm -f libmetal-gloss.a $(AM_V_AR)$(libmetal_gloss_a_AR) libmetal-gloss.a $(libmetal_gloss_a_OBJECTS) $(libmetal_gloss_a_LIBADD) $(AM_V_at)$(RANLIB) libmetal-gloss.a -pico/$(am__dirstamp): - @$(MKDIR_P) pico - @: > pico/$(am__dirstamp) -pico/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) pico/$(DEPDIR) - @: > pico/$(DEPDIR)/$(am__dirstamp) -pico/iob.$(OBJEXT): pico/$(am__dirstamp) \ - pico/$(DEPDIR)/$(am__dirstamp) - -libmetal-pico.a: $(libmetal_pico_a_OBJECTS) $(libmetal_pico_a_DEPENDENCIES) $(EXTRA_libmetal_pico_a_DEPENDENCIES) - $(AM_V_at)-rm -f libmetal-pico.a - $(AM_V_AR)$(libmetal_pico_a_AR) libmetal-pico.a $(libmetal_pico_a_OBJECTS) $(libmetal_pico_a_LIBADD) - $(AM_V_at)$(RANLIB) libmetal-pico.a segger/$(am__dirstamp): @$(MKDIR_P) segger @: > segger/$(am__dirstamp) @@ -943,7 +893,6 @@ libmetal.a: $(libmetal_a_OBJECTS) $(libmetal_a_DEPENDENCIES) $(EXTRA_libmetal_a_ mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f gloss/*.$(OBJEXT) - -rm -f pico/*.$(OBJEXT) -rm -f segger/*.$(OBJEXT) -rm -f src/*.$(OBJEXT) -rm -f src/drivers/*.$(OBJEXT) @@ -985,7 +934,6 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@gloss/$(DEPDIR)/sys_utime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@gloss/$(DEPDIR)/sys_wait.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@gloss/$(DEPDIR)/sys_write.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@pico/$(DEPDIR)/iob.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@segger/$(DEPDIR)/SEGGER_target_metal.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/atomic.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/button.Po@am__quote@ @@ -1204,7 +1152,7 @@ distdir: $(DISTFILES) ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir @@ -1230,7 +1178,7 @@ dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir @@ -1248,7 +1196,7 @@ dist dist-all: distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ @@ -1258,7 +1206,7 @@ distcheck: dist *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac @@ -1364,8 +1312,6 @@ distclean-generic: -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f gloss/$(DEPDIR)/$(am__dirstamp) -rm -f gloss/$(am__dirstamp) - -rm -f pico/$(DEPDIR)/$(am__dirstamp) - -rm -f pico/$(am__dirstamp) -rm -f segger/$(DEPDIR)/$(am__dirstamp) -rm -f segger/$(am__dirstamp) -rm -f src/$(DEPDIR)/$(am__dirstamp) @@ -1383,7 +1329,7 @@ clean-am: clean-generic clean-libLIBRARIES clean-local mostlyclean-am distclean: distclean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf gloss/$(DEPDIR) pico/$(DEPDIR) segger/$(DEPDIR) src/$(DEPDIR) src/drivers/$(DEPDIR) + -rm -rf gloss/$(DEPDIR) segger/$(DEPDIR) src/$(DEPDIR) src/drivers/$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -1431,7 +1377,7 @@ installcheck-am: maintainer-clean: maintainer-clean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache - -rm -rf gloss/$(DEPDIR) pico/$(DEPDIR) segger/$(DEPDIR) src/$(DEPDIR) src/drivers/$(DEPDIR) + -rm -rf gloss/$(DEPDIR) segger/$(DEPDIR) src/$(DEPDIR) src/drivers/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic diff --git a/aclocal.m4 b/aclocal.m4 index 2e4e7235..42ec7eed 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.15.1 -*- Autoconf -*- +# generated automatically by aclocal 1.15 -*- Autoconf -*- -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2014 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -# Copyright (C) 2002-2017 Free Software Foundation, Inc. +# Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.15.1], [], +m4_if([$1], [1.15], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -51,12 +51,12 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.15.1])dnl +[AM_AUTOMAKE_VERSION([1.15])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) -# Copyright (C) 2011-2017 Free Software Foundation, Inc. +# Copyright (C) 2011-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -118,7 +118,7 @@ AC_SUBST([AR])dnl # Figure out how to run the assembler. -*- Autoconf -*- -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -138,7 +138,7 @@ _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -190,7 +190,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -221,7 +221,7 @@ AC_CONFIG_COMMANDS_PRE( Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -412,7 +412,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -488,7 +488,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -685,7 +685,7 @@ for _am_header in $config_headers :; do done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -706,7 +706,7 @@ if test x"${install_sh+set}" != xset; then fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2017 Free Software Foundation, Inc. +# Copyright (C) 2003-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -728,7 +728,7 @@ AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -763,7 +763,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -813,7 +813,7 @@ rm -f confinc confmf # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -852,7 +852,7 @@ fi # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -881,7 +881,7 @@ AC_DEFUN([_AM_SET_OPTIONS], AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -928,7 +928,7 @@ AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -947,7 +947,7 @@ AC_DEFUN([AM_RUN_LOG], # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1028,7 +1028,7 @@ AC_CONFIG_COMMANDS_PRE( rm -f conftest.file ]) -# Copyright (C) 2009-2017 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1088,7 +1088,7 @@ AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1116,7 +1116,7 @@ fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2017 Free Software Foundation, Inc. +# Copyright (C) 2006-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1135,7 +1135,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2017 Free Software Foundation, Inc. +# Copyright (C) 2004-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff --git a/pico/iob.c b/pico/iob.c deleted file mode 100644 index 481c014f..00000000 --- a/pico/iob.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright © 2019 Keith Packard - * - * Permission to use, copy, modify, distribute, and sell this software and its - * documentation for any purpose is hereby granted without fee, provided that - * the above copyright notice appear in all copies and that both that copyright - * notice and this permission notice appear in supporting documentation, and - * that the name of the copyright holders not be used in advertising or - * publicity pertaining to distribution of the software without specific, - * written prior permission. The copyright holders make no representations - * about the suitability of this software for any purpose. It is provided "as - * is" without express or implied warranty. - * - * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, - * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO - * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR - * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, - * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER - * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE - * OF THIS SOFTWARE. - */ - -#include -#include - -static int metal_putc(char c, FILE *file) { - (void)file; - metal_tty_putc(c); - return c; -} - -static int metal_getc(FILE *file) { - int c; - (void)file; - metal_tty_getc(&c); - return c; -} - -static int metal_flush(FILE *file) { return 0; } - -static FILE __stdio = - FDEV_SETUP_STREAM(metal_putc, metal_getc, metal_flush, _FDEV_SETUP_RW); - -FILE *const __iob[3] = {&__stdio, &__stdio, &__stdio};