No reason to have that in regular ram, and it means we've got space
for large enough stacks now
Signed-off-by: Keith Packard <keithp@keithp.com>
MEMORY {
rom (rx) : ORIGIN = 0x00000000, LENGTH = 32K
- ram (!w) : ORIGIN = 0x10000000, LENGTH = 4K - 512
- stack (!w) : ORIGIN = 0x10000000 + 4K - 512, LENGTH = 512
+ ram (!w) : ORIGIN = 0x10000000, LENGTH = 4K - 128
+ usb (!x) : ORIGIN = 0x20004000 + 2K - 256, LENGTH = 256
+ stack (!w) : ORIGIN = 0x10000000 + 4K - 128, LENGTH = 128
}
INCLUDE registers.ld
*(COMMON)
__bss_end__ = .;
} >ram
+ PROVIDE(end = .);
+
+ .usb : {
+ *(.usb)
+ } > usb
PROVIDE(__stack__ = ORIGIN(stack) + LENGTH(stack));
- PROVIDE(end = .);
}
ENTRY(start);
* LPC11U14 definitions and code fragments for AltOS
*/
-#define AO_STACK_SIZE 192
+#define AO_STACK_SIZE 320
#define AO_LED_TYPE uint16_t
static uint8_t ao_usb_rx_buffer[AO_USB_OUT_SIZE];
static uint8_t ao_usb_rx_count, ao_usb_rx_pos;
+__attribute__((section(".usb")))
static struct lpc_usb_endpoint lpc_usb_endpoint __attribute((aligned(256)));
/* Marks when we don't need to send an IN packet.