NetServices Stack source

Dependents:   HelloWorld ServoInterfaceBoardExample1 4180_Lab4

Revision:
5:dd63a1e02b1b
Parent:
4:fd826cad83c0
--- a/drv/usb/usb_mem.c	Fri Jul 09 14:46:47 2010 +0000
+++ b/drv/usb/usb_mem.c	Tue Jul 27 15:59:42 2010 +0000
@@ -38,15 +38,15 @@
 #define TOTAL_SIZE (HCCA_SIZE + (EDS_COUNT*ED_SIZE) + (TDS_COUNT*TD_SIZE))
 
 
-static volatile byte usb_buf[TOTAL_SIZE] __attribute((section("AHBSRAM1"),aligned)) __attribute__((at(0x20080000)));  //256 bytes aligned!
+static volatile __align(256) byte usb_buf[TOTAL_SIZE] __attribute((section("AHBSRAM1"),aligned));  //256 bytes aligned!
 
 static volatile byte* usb_hcca;  //256 bytes aligned!
 
 static volatile byte* usb_edBuf;  //4 bytes aligned!
 static volatile byte* usb_tdBuf;  //4 bytes aligned!
 
-static byte usb_edBufAlloc[EDS_COUNT];
-static byte usb_tdBufAlloc[TDS_COUNT];
+static byte usb_edBufAlloc[EDS_COUNT] __attribute((section("AHBSRAM1"),aligned));
+static byte usb_tdBufAlloc[TDS_COUNT] __attribute((section("AHBSRAM1"),aligned));
 
 void usb_mem_init()
 {