8 CONFIG_BOARD_VARIANT=lmc1
12 CONFIG_OC_UL_DRV_SYSLESS=y
13 CONFIG_OC_UL_DRV_U450_VARPINS=y
14 CONFIG_OC_UL_DRV_U450_VARPINS_MSRSWAP=n
15 CONFIG_OC_UL_DRV_U450_VARPINS_DIRNEG=n
16 CONFIG_OC_UL_DRV_U450_LOOPBACK=y
20 #CONFIG_STDIO_COM_PORT=y
22 CROSS_COMPILE = arm-elf-
23 TARGET_ARCH = -mthumb -mcpu=cortex-m3
25 # Set default C flags. If theese are set elsewhere (e.g. on a command
26 # line), these default flags are not used.
30 # Set default C flags. If theese are set elsewhere (e.g. on a command
31 # line), these default flags are not used.
33 OPTIMIZE ?= -Os -ffunction-sections -fdata-sections -Wl,--gc-section
35 LDFLAGS += -Wl,--gc-section
39 LPC_TTY = /dev/ttyUSB0
42 LOAD_CMD-boot = load() { $(LPC21ISP) -bin $$1 $(LPC_TTY) $(LPC_BAUD) $(CPU_SYS_KHZ); }; load
50 LOAD_EXTENSION-app = .bin
54 UL_SENDHEX ?= ul_sendhex
58 $(UL_SENDHEX) -m $(MOD) -r -o 0 ; \
59 $(UL_SENDHEX) -m $(MOD) -o 0 -t 0x101 -s $(PROG_BASE) -l $(PROG_SIZE) -e; \
60 $(UL_SENDHEX) -m $(MOD) -o 0 -t 0x101 -b 256 -s $(PROG_BASE) -f binary
63 $(UL_SENDHEX) -m $(MOD) -r
67 USB_SENDHEX ?= usb_sendhex
70 USB_BOOT_VID ?= 0xdead
71 USB_BOOT_PID ?= 0x2263
74 $(USB_SENDHEX) -d $(USB_APP_VID):$(USB_APP_PID) -r ; \
75 $(USB_SENDHEX) -w -d $(USB_BOOT_VID):$(USB_BOOT_PID) -s $(PROG_BASE) -l $(PROG_SIZE) -e; sleep 2 ; \
76 $(USB_SENDHEX) -d $(USB_BOOT_VID):$(USB_BOOT_PID) -s $(PROG_BASE) -f binary
79 $(USB_SENDHEX) -d $(USB_BOOT_VID):$(USB_BOOT_PID) -r