]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Moved command definitions into command.h
authorJoel Holdsworth <redacted>
Sat, 3 Mar 2012 16:21:57 +0000 (16:21 +0000)
committerJoel Holdsworth <redacted>
Sat, 3 Mar 2012 16:59:22 +0000 (16:59 +0000)
fx2lafw.c
include/command.h [new file with mode: 0644]

index 8d891d61e30ff573243114c3fcabd84b6e7070c9..6af439900fb3bd304ea2178c20abd82523cdf4e3 100644 (file)
--- a/fx2lafw.c
+++ b/fx2lafw.c
 #include <eputils.h>
 #include <gpif.h>
 
+#include <command.h>
 #include <fx2lafw.h>
 #include <gpif-acquisition.h>
 
-/* Protocol commands */
-#define CMD_START              0xb0
-#define CMD_STOP               0xb1
-#define CMD_GET_FW_VERSION     0xb2
-
 /* ... */
 volatile bit got_sud;
 
diff --git a/include/command.h b/include/command.h
new file mode 100644 (file)
index 0000000..6824eee
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * This file is part of the fx2lafw project.
+ *
+ * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
+ *
+ * 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
+ */
+
+/* Protocol commands */
+#define CMD_START              0xb0
+#define CMD_STOP               0xb1
+#define CMD_GET_FW_VERSION     0xb2