From: Joel Holdsworth Date: Sat, 3 Mar 2012 16:21:57 +0000 (+0000) Subject: Moved command definitions into command.h X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~56 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=64d4773073e3b40c7c4a4eef609df959fa7591c9;p=sigrok-firmware-fx2lafw.git Moved command definitions into command.h --- diff --git a/fx2lafw.c b/fx2lafw.c index 8d891d61..6af43990 100644 --- a/fx2lafw.c +++ b/fx2lafw.c @@ -45,14 +45,10 @@ #include #include +#include #include #include -/* 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 index 00000000..6824eee3 --- /dev/null +++ b/include/command.h @@ -0,0 +1,24 @@ +/* + * This file is part of the fx2lafw project. + * + * 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 + */ + +/* Protocol commands */ +#define CMD_START 0xb0 +#define CMD_STOP 0xb1 +#define CMD_GET_FW_VERSION 0xb2