From: Joel Holdsworth Date: Sat, 18 Feb 2012 17:05:42 +0000 (+0000) Subject: Moved main() in cwav-usbeeax X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~67 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9f8d67d93eeaddf2f18367f9c9d8cca26cbbb980;p=sigrok-firmware-fx2lafw.git Moved main() in cwav-usbeeax --- diff --git a/cwav-usbeeax/Makefile b/cwav-usbeeax/Makefile index 13a2ec2a..ff05a1eb 100644 --- a/cwav-usbeeax/Makefile +++ b/cwav-usbeeax/Makefile @@ -18,7 +18,10 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -SOURCES = ../fx2lafw.c ../debug.c +SOURCES = \ + main.c \ + ../fx2lafw.c \ + ../debug.c A51_SOURCES = ../dscr.a51 BASENAME = fx2lafw-cwav-usbeeax diff --git a/cwav-usbeeax/main.c b/cwav-usbeeax/main.c new file mode 100644 index 00000000..8f7be941 --- /dev/null +++ b/cwav-usbeeax/main.c @@ -0,0 +1,31 @@ +/* + * This file is part of the fx2lafw project. + * + * Copyright (C) 2011-2012 Uwe Hermann + * Copyright (C) 2012 Joel Holdsworth + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include + +void main(void) +{ + fx2lafw_init(); + + while(1) + fx2lafw_run(); +} + diff --git a/fx2lafw.c b/fx2lafw.c index 074341d9..24c05909 100644 --- a/fx2lafw.c +++ b/fx2lafw.c @@ -444,11 +444,3 @@ void fx2lafw_run(void) got_sud = FALSE; } } - -void main(void) -{ - fx2lafw_init(); - - while(1) - fx2lafw_run(); -}