Revised to support both SD and USB file system
Dependents: Multi-FileSystem Multi-FileSystem
Fork of MSCFileSystem by
Revision 10:4072b4b1c6f4, committed 2016-10-17
- Comitter:
- WiredHome
- Date:
- Mon Oct 17 00:57:08 2016 +0000
- Parent:
- 9:de4ea8f3349b
- Commit message:
- Minor change in how a buffer was allocated in memory to not be hard-coded address.
Changed in this revision
USBHostLite/usbhost_lpc17xx.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBHostLite/usbhost_lpc17xx.cpp Sun Mar 13 19:13:50 2016 +0000 +++ b/USBHostLite/usbhost_lpc17xx.cpp Mon Oct 17 00:57:08 2016 +0000 @@ -43,11 +43,24 @@ USB_INT16U *TDBufNonVol; /* Identical to TDBuffer just to reduce compiler warnings */ volatile USB_INT08U *TDBuffer; /* Current Buffer Pointer of transfer descriptor */ +#if 0 +// This construction may cause: +// Error: Unable to automatically place AT section usbhost_lpc17xx.LPC1768.o(.ARM.__AT_0x2007C000) +// with required base address 0x2007c000. Please manually place in the scatter file using the --no_autoat option. +// // USB host structures // AHB SRAM block 1 #define HOSTBASEADDR 0x2007C000 // reserve memory for the linker static USB_INT08U HostBuf[0x200] __attribute__((at(HOSTBASEADDR))); +#else +// Which might be solved by this: +// +// USB host structures +// AHB SRAM block 1 +// reserve memory for the linker +static volatile __align(0x200) USB_INT08U HostBuf[0x200] __attribute((section("AHBSRAM1"),aligned)); +#endif /* ************************************************************************************************************** * DELAY IN MILLI SECONDS