From f8242b9ae37f97e6c95392d1b449933e9390bcac Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Mon, 5 Dec 2011 22:17:00 +0100 Subject: [PATCH] Delay call from mainloop removed because of faster usb communication. --- firmware/globals.h | 27 +-------------------------- firmware/main.c | 2 +- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/firmware/globals.h b/firmware/globals.h index 1bb565a..cddcba7 100644 --- a/firmware/globals.h +++ b/firmware/globals.h @@ -1,33 +1,8 @@ #define F_CPU 12000000UL -// Bitpopelei +// Bitshifting #define set_bit(var, bit) ((var) |= (1 << (bit))) #define clear_bit(var, bit) ((var) &= (unsigned)~(1 << (bit))) -// Bool -#define FALSE 0 -#define TRUE 1 - #define sleep_nop(cnt) for (uint8_t i = 0; i < cnt; i++) { asm volatile("nop"::); } -// Pixelmakros -#define PSET(x,y,z) (0b01000000 | ((z * 3 + x) + y * 9)) -#define PCLEAR(x,y,z) (0b00000000 | ((z * 3 + x) + y * 9)) - -// Instructions -#define CLEAR 0b10000000 -#define SET 0b10010000 -#define FPS 0b10110000 -#define NEXT 0b11110000 - -// Variablen -#define VAR_FPS 0 - -// Für CLEAR und SET -#define CLEAR_ALL 0 -#define SET_ALL 0 - -// Für NEXT -#define JUMP_FORWARD 1 -#define JUMP_BACKWARD 2 - diff --git a/firmware/main.c b/firmware/main.c index d6c05c7..62ec55c 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -26,7 +26,7 @@ int main(void) usbPoll(); // keep connected // hier pause einfügen - _delay_ms(50); // beispielsweise 50 ms => muss angepasst werden an usb kommunikation + //_delay_ms(1); // beispielsweise 50 ms => muss angepasst werden an usb kommunikation /*anim++;