From 37f0d5abe96823362515518e828bb46476f51ed5 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Mon, 19 Dec 2011 19:23:47 +0100 Subject: [PATCH] Some constants added. --- firmware/globals.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/firmware/globals.h b/firmware/globals.h index 80d9227..b9dfb1a 100644 --- a/firmware/globals.h +++ b/firmware/globals.h @@ -8,7 +8,10 @@ #define F_CPU 12000000UL -// Bitshifting -#define set_bit(var, bit) ((var) |= (1 << (bit))) -#define clear_bit(var, bit) ((var) &= (unsigned)~(1 << (bit))) +#define MODE_ANIMATION_STOP 0 +#define MODE_ANIMATION_SINGLE 1 +#define MODE_ANIMATION_LOOP 2 + +#define MAX_EEPROM_FRAMES 32 +#define STARTUP_DELAY_MAX 10