Instead, just assign a fixed address in registers.ld. This avoids a
confusing section in the elf file.
Signed-off-by: Keith Packard <keithp@keithp.com>
} >ram
PROVIDE(end = .);
- .usb : {
- *(.usb)
- } > usb
-
PROVIDE(__stack__ = ORIGIN(stack) + LENGTH(stack));
}
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)));
+extern struct lpc_usb_endpoint lpc_usb_endpoint;
/* Marks when we don't need to send an IN packet.
* This happens only when the last IN packet is not full,
lpc_usb_sram = 0x20004000;
+lpc_usb_endpoint = 0x20004700;
lpc_usart = 0x40008000;
lpc_ct32b0 = 0x40014000;
lpc_ct32b1 = 0x40018000;