+
+/*
+ * 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 4
+
+#define LED_POLARITY 1 /* 1: active-high, 0: active-low */
+
+#define LED_INIT() do { PORTACFG = 0; OEA = (1 << 1); } while (0)
+#define LED_ON() do { PA1 = LED_POLARITY; } while (0)
+#define LED_OFF() do { PA1 = !LED_POLARITY; } while (0)
+#define LED_TOGGLE() do { PA1 = !PA1; } while (0)
+
+#endif