aboutsummaryrefslogtreecommitdiff
path: root/examples/lpc43xx/Makefile.include
diff options
context:
space:
mode:
authorTitanMKD2012-06-02 09:45:03 +0200
committerTitanMKD2012-06-02 09:45:03 +0200
commite7fbc2220b23b1d50fc0285c260a8787694328fe (patch)
tree2a058fe8507d6df5e2a6cd02ceb3473dbae249f1 /examples/lpc43xx/Makefile.include
parent770134b4d5c385825d7fe62dd3c3f1811e0a477b (diff)
Added JellyBean Configuration for PinMux, GPIO In/Out (work in progress).
Added scu driver file scu.c. Modified Makefile/Makefile.include to generate .map file and use -O2 as optimization. Modified hackrf-jellybean miniblink.c to enable 1V8 and blink LED1,2&3 with configuration of PinMux and GPIO.
Diffstat (limited to 'examples/lpc43xx/Makefile.include')
-rw-r--r--examples/lpc43xx/Makefile.include5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/lpc43xx/Makefile.include b/examples/lpc43xx/Makefile.include
index 6b0b8b9..89e356d 100644
--- a/examples/lpc43xx/Makefile.include
+++ b/examples/lpc43xx/Makefile.include
@@ -4,6 +4,7 @@
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
## Copyright (C) 2010 Piotr Esden-Tempski <piotr@esden.net>
## Copyright (C) 2012 Michael Ossmann <mike@ossmann.com>
+## Copyright (C) 2012 Benjamin Vernoux <titanmkd@gmail.com>
##
## This library is free software: you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
@@ -29,12 +30,12 @@ GDB = $(PREFIX)-gdb
# Uncomment this line if you want to use the installed (not local) library.
# TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX)
TOOLCHAIN_DIR = ../../../..
-CFLAGS += -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
+CFLAGS += -O2 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
-mcpu=cortex-m4 -mthumb -MD \
-mfloat-abi=hard -mfpu=fpv4-sp-d16
LDSCRIPT ?= $(BINARY).ld
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/lpc43xx \
- -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
+ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections -Xlinker -Map=$(BINARY).map
OBJS += $(BINARY).o
OOCD ?= openocd