From 99f70a916a99521babe5cc4ccd1437b31229a5dd Mon Sep 17 00:00:00 2001 From: Dmitry Hrabrov Date: Tue, 4 Jun 2013 13:05:57 +0300 Subject: [PATCH] Update usb_hal.h Added support of Pic18f2550 --- usb/src/usb_hal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb/src/usb_hal.h b/usb/src/usb_hal.h index e1900b9..4cc8f1f 100644 --- a/usb/src/usb_hal.h +++ b/usb/src/usb_hal.h @@ -136,6 +136,9 @@ struct buffer_descriptor { #ifdef _16F1459 #define BD_ADDR 0x2000 #define BUFFER_ADDR 0x2080 +#elif defined _18F2550 +#define BD_ADDR 0x0400 +#define BUFFER_ADDR 0x500 #else #error "CPU not supported yet" #endif @@ -412,4 +415,4 @@ struct buffer_descriptor { -#endif /* USB_HAL_H__ */ \ No newline at end of file +#endif /* USB_HAL_H__ */