diff --git a/atusb/fw/include/atusb/ep0.h b/atusb/fw/include/atusb/ep0.h index cb6acd1..382aa92 100644 --- a/atusb/fw/include/atusb/ep0.h +++ b/atusb/fw/include/atusb/ep0.h @@ -1,8 +1,8 @@ /* * include/atusb/ep0.h - EP0 extension protocol * - * Written 2008-2010 by Werner Almesberger - * Copyright 2008-2010 Werner Almesberger + * Written 2008-2011 by Werner Almesberger + * Copyright 2008-2011 Werner Almesberger * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,6 +45,7 @@ #define HW_TYPE_100813 0 /* 2010-08-13 */ #define HW_TYPE_101216 1 /* 2010-12-16 */ +#define HW_TYPE_110131 2 /* 2011-01-31, ATmega32U2-based */ /* diff --git a/atusb/fw2/atusb.c b/atusb/fw2/atusb.c index a674b2b..9a5114e 100644 --- a/atusb/fw2/atusb.c +++ b/atusb/fw2/atusb.c @@ -10,9 +10,7 @@ #include "at86rf230.h" #include "board.h" #include "spi.h" - - -void ep0_init(void); +#include "atusb/ep0.h" int main(void) diff --git a/atusb/fw2/ep0.c b/atusb/fw2/ep0.c index e1c7cb9..0def11a 100644 --- a/atusb/fw2/ep0.c +++ b/atusb/fw2/ep0.c @@ -31,7 +31,7 @@ #include "spi.h" -#define HW_TYPE 2 /* @@@ needs more work */ +#define HW_TYPE HW_TYPE_110131 static const char *build_date = "today"; static unsigned build_number = 42;