commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r6925 - gnuradio/branches/developers/matt/u2f/firmware


From: eb
Subject: [Commit-gnuradio] r6925 - gnuradio/branches/developers/matt/u2f/firmware/apps
Date: Thu, 15 Nov 2007 12:03:27 -0700 (MST)

Author: eb
Date: 2007-11-15 12:03:26 -0700 (Thu, 15 Nov 2007)
New Revision: 6925

Added:
   gnuradio/branches/developers/matt/u2f/firmware/apps/test_printf.c
Modified:
   gnuradio/branches/developers/matt/u2f/firmware/apps/
   gnuradio/branches/developers/matt/u2f/firmware/apps/Makefile.am
Log:
work-in-progress


Property changes on: gnuradio/branches/developers/matt/u2f/firmware/apps
___________________________________________________________________
Name: svn:ignore
   - *-stamp
*.a
*.bin
*.dump
*.log
*.rom
.deps
Makefile
Makefile.in
aclocal.m4
autom4te.cache
blink_leds
blink_leds2
build
compile
config.h
config.h.in
config.log
config.status
configure
depcomp
eth_test
gen_eth_packets
ibs_rx_test
ibs_tx_test
install-sh
libtool
ltmain.sh
missing
py-compile
rcv_eth_packets
run_tests.sh
stamp-h1
test1
test_phy_comm
timer_test
buf_ram_test
buf_ram_zero
hello


   + *-stamp
*.a
*.bin
*.dump
*.log
*.rom
.deps
Makefile
Makefile.in
aclocal.m4
autom4te.cache
blink_leds
blink_leds2
build
compile
config.h
config.h.in
config.log
config.status
configure
depcomp
eth_test
gen_eth_packets
ibs_rx_test
ibs_tx_test
install-sh
libtool
ltmain.sh
missing
py-compile
rcv_eth_packets
run_tests.sh
stamp-h1
test1
test_phy_comm
timer_test
buf_ram_test
buf_ram_zero
hello
test_printf
test_spi


Modified: gnuradio/branches/developers/matt/u2f/firmware/apps/Makefile.am
===================================================================
--- gnuradio/branches/developers/matt/u2f/firmware/apps/Makefile.am     
2007-11-15 18:32:47 UTC (rev 6924)
+++ gnuradio/branches/developers/matt/u2f/firmware/apps/Makefile.am     
2007-11-15 19:03:26 UTC (rev 6925)
@@ -35,4 +35,5 @@
        rcv_eth_packets \
        test1 \
        test_phy_comm \
+       test_printf \
        timer_test

Added: gnuradio/branches/developers/matt/u2f/firmware/apps/test_printf.c
===================================================================
--- gnuradio/branches/developers/matt/u2f/firmware/apps/test_printf.c           
                (rev 0)
+++ gnuradio/branches/developers/matt/u2f/firmware/apps/test_printf.c   
2007-11-15 19:03:26 UTC (rev 6925)
@@ -0,0 +1,48 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2007 Free Software Foundation, Inc.
+ * 
+ * This file is part of GNU Radio
+ * 
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ * 
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include <stdio.h>
+#include <u2_init.h>           /* FIXME */
+
+static void
+print_number(int i)
+{
+  printf("%d\t%u\t%x\n", i, i, i);
+}
+
+int
+main(void)
+{
+  int i;
+  
+  u2_init();
+
+  printf("Hello %s%c\n", "world", '!');
+
+  for (i = -31; i < 32; i++)
+    print_number(i);
+
+  print_number(0xffffffff);
+  print_number(0x7fffffff);
+  print_number(0x80000000);
+
+  return 0;
+}


Property changes on: 
gnuradio/branches/developers/matt/u2f/firmware/apps/test_printf.c
___________________________________________________________________
Name: svn:eol-style
   + native





reply via email to

[Prev in Thread] Current Thread [Next in Thread]