X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Ffx2lafw.h;h=c6606619e775f84ce21a0c027c41cd6bce57bd8e;hb=8da0cd02228bb6890eb5068e6507bf6ce0d2fdd2;hp=bbc155b008500da1b161d41851d49d1ce2a0427b;hpb=b2bd00c4b2e7db5889fc2543fe9a2f132b59b95a;p=sigrok-firmware-fx2lafw.git diff --git a/include/fx2lafw.h b/include/fx2lafw.h index bbc155b0..c6606619 100644 --- a/include/fx2lafw.h +++ b/include/fx2lafw.h @@ -14,8 +14,7 @@ * 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 + * along with this program; if not, see . */ #ifndef FX2LAFW_INCLUDE_FX2LAFW_H @@ -38,6 +37,13 @@ * longer (properly) work with the new fx2lafw firmware. */ #define FX2LAFW_VERSION_MAJOR 1 -#define FX2LAFW_VERSION_MINOR 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