10 CONFIG_BOARD_VARIANT=lmc1
22 CONFIG_OC_UL_DRV_SYSLESS=n
28 CONFIG_STDIO_COM_PORT=0
30 CROSS_COMPILE = arm-elf-
31 TARGET_ARCH = -mthumb -mcpu=cortex-m3
33 # Set default C flags. If theese are set elsewhere (e.g. on a command
34 # line), these default flags are not used.
38 # Set default C flags. If theese are set elsewhere (e.g. on a command
39 # line), these default flags are not used.
41 OPTIMIZE ?= -Os -ffunction-sections -fdata-sections -Wl,--gc-section
43 LDFLAGS += -Wl,--gc-section
47 LPC_TTY = /dev/ttyUSB0
50 LOAD_CMD-boot = load() { $(LPC21ISP) -bin $$1 $(LPC_TTY) $(LPC_BAUD) $(CPU_SYS_KHZ); }; load
57 LOAD_EXTENSION-app = .bin
59 USB_SENDHEX ?= usb_sendhex
62 USB_BOOT_VID ?= 0xdead
63 USB_BOOT_PID ?= 0x2263
66 $(USB_SENDHEX) -d $(USB_APP_VID):$(USB_APP_PID) -r ; \
67 $(USB_SENDHEX) -w -d $(USB_BOOT_VID):$(USB_BOOT_PID) -s $(PROG_BASE) -l $(PROG_SIZE) -e; sleep 2 ; \
68 $(USB_SENDHEX) -d $(USB_BOOT_VID):$(USB_BOOT_PID) -s $(PROG_BASE) -f binary
71 $(USB_SENDHEX) -d $(USB_BOOT_VID):$(USB_BOOT_PID) -r