From 35d14c74d63e484c644c34db45f1e0049e2c421d Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 26 Apr 2016 21:28:31 +0200 Subject: [PATCH] atusb: fw: define a new hardware type for the rzusb dongle So far we do not need this in the firmware or in the driver but this might become handy later on. Signed-off-by: Stefan Schmidt --- atusb/fw/ep0.c | 7 ++++++- atusb/fw/include/atusb/ep0.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/atusb/fw/ep0.c b/atusb/fw/ep0.c index d845156..2b92f6d 100644 --- a/atusb/fw/ep0.c +++ b/atusb/fw/ep0.c @@ -37,8 +37,13 @@ #include "spi.h" #include "mac.h" - +#ifdef ATUSB #define HW_TYPE HW_TYPE_110131 +#endif + +#ifdef RZUSB +#define HW_TYPE HW_TYPE_RZUSB +#endif #define debug(...) #define error(...) diff --git a/atusb/fw/include/atusb/ep0.h b/atusb/fw/include/atusb/ep0.h index adb7d19..4f99b20 100644 --- a/atusb/fw/include/atusb/ep0.h +++ b/atusb/fw/include/atusb/ep0.h @@ -32,6 +32,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 */ +#define HW_TYPE_RZUSB 3 /* Atmel Raven USB dongle with at86rf230 */ /*