X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Ffx2lafw.h;h=c0f8db645c414a9107d4573455609bec307b5b88;hb=a123aff72dcd98bdb3a0e3b2cdf3964b49a20186;hp=5819b6c6190a0429579a65cad8c25e8489e13ea1;hpb=a75a9ccb67defc791ccf9fdf73d4e149436dae3f;p=sigrok-firmware-fx2lafw.git diff --git a/include/fx2lafw.h b/include/fx2lafw.h index 5819b6c6..c0f8db64 100644 --- a/include/fx2lafw.h +++ b/include/fx2lafw.h @@ -18,15 +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 -/** - * Performs setup common to all fx2lafw devices. - */ -void fx2lafw_init(void); +#define SYNCDELAY() SYNCDELAY4 -/** - * Performs a single iteration of the main loop code which is common - * to all fx2lafw devices. +/* + * 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. */ -void fx2lafw_run(void); +#define FX2LAFW_VERSION_MAJOR 1 +#define FX2LAFW_VERSION_MINOR 0 + +#endif