X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Ffx2lafw.h;h=bbc155b008500da1b161d41851d49d1ce2a0427b;hb=1f99664cd09baa9bc584c884d7fd509d332d984e;hp=fcafa62e630f0cd206fa7b3d8c0b0525bf17a503;hpb=e086d6ee9d5b6c681c706b9c4f8353b54565abaf;p=sigrok-firmware-fx2lafw.git diff --git a/include/fx2lafw.h b/include/fx2lafw.h index fcafa62e..bbc155b0 100644 --- a/include/fx2lafw.h +++ b/include/fx2lafw.h @@ -1,5 +1,5 @@ /* - * This file is part of the fx2lafw project. + * This file is part of the sigrok-firmware-fx2lafw project. * * Copyright (C) 2012 Joel Holdsworth * @@ -18,6 +18,26 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef FX2LAFW_INCLUDE_FX2LAFW_H +#define FX2LAFW_INCLUDE_FX2LAFW_H + #include #define SYNCDELAY() SYNCDELAY4 + +/* + * Major and minor fx2lafw firmware version numbers. + * These can be queried by the host via CMD_GET_FW_VERSION. + * + * The minor version number must be increased every time there are + * backwards-compatible changes (which do not change the API). + * + * The major version number must be increased every time there are API + * changes or functional changes which require adaptations in the host + * (libsigrok) drivers, i.e. changes where old libsigrok versions would no + * longer (properly) work with the new fx2lafw firmware. + */ +#define FX2LAFW_VERSION_MAJOR 1 +#define FX2LAFW_VERSION_MINOR 1 + +#endif