aboutsummaryrefslogtreecommitdiff
path: root/lib/efm32
diff options
context:
space:
mode:
authorchrysn2012-02-26 03:40:18 +0100
committerchrysn2012-02-26 03:42:25 +0100
commit2275ed7b0c355920927be6709a87a0482a749eb2 (patch)
tree46e713cf69ca7a4535c202dc79f1dd67311920de /lib/efm32
parent08918902ab8df5211516bc5771cb02b966cf19af (diff)
overhauled documentation
includes minor refactoring in example code and modification of how the generic and the tinygecko specific vector.h go together (bringing it in line with stm32/f1's memorymap.h)
Diffstat (limited to 'lib/efm32')
-rw-r--r--lib/efm32/tinygecko/Makefile3
-rw-r--r--lib/efm32/tinygecko/vector.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/efm32/tinygecko/Makefile b/lib/efm32/tinygecko/Makefile
index b785d4d..afe1e93 100644
--- a/lib/efm32/tinygecko/Makefile
+++ b/lib/efm32/tinygecko/Makefile
@@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_efm32tinygecko
+FAMILY = TINYGECKO
PREFIX ?= arm-none-eabi
#PREFIX ?= arm-elf
@@ -26,7 +27,7 @@ CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
- -ffunction-sections -fdata-sections -MD -DSTM32F1
+ -ffunction-sections -fdata-sections -MD -D$(FAMILY)
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = vector.o devicerevision.o
diff --git a/lib/efm32/tinygecko/vector.c b/lib/efm32/tinygecko/vector.c
index 0a7c09f..624785e 100644
--- a/lib/efm32/tinygecko/vector.c
+++ b/lib/efm32/tinygecko/vector.c
@@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopencm3/efm32/tinygecko/vector.h>
+#include <libopencm3/efm32/vector.h>
#define WEAK __attribute__ ((weak))