summaryrefslogtreecommitdiff
path: root/defines.mk
diff options
context:
space:
mode:
Diffstat (limited to 'defines.mk')
-rw-r--r--defines.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/defines.mk b/defines.mk
index ca29d50..8cb5cfc 100644
--- a/defines.mk
+++ b/defines.mk
@@ -26,6 +26,7 @@ ifeq ($(BOARD_TYPE),teensy1)
F_CPU := 16000000
F_USB = $(F_CPU)
PROG := teensy
+ LUFA_BOARD = TEENSY
endif
ifeq ($(BOARD_TYPE),teensy2)
MCU := atmega32u4
@@ -33,6 +34,7 @@ ifeq ($(BOARD_TYPE),teensy2)
F_CPU := 16000000
F_USB = $(F_CPU)
PROG := teensy
+ LUFA_BOARD = TEENSY2
endif
ifeq ($(BOARD_TYPE),teensy1pp)
MCU := at90usb646
@@ -40,6 +42,7 @@ ifeq ($(BOARD_TYPE),teensy1pp)
F_CPU := 16000000
F_USB = $(F_CPU)
PROG := teensy
+ LUFA_BOARD = TEENSY
endif
ifeq ($(BOARD_TYPE),teensy2pp)
MCU := at90usb1286
@@ -47,6 +50,7 @@ ifeq ($(BOARD_TYPE),teensy2pp)
F_CPU := 16000000
F_USB = $(F_CPU)
PROG := teensy
+ LUFA_BOARD = TEENSY2
endif
ifeq ($(BOARD_TYPE),hhd70dongle)
MCU := atmega32u4
@@ -145,6 +149,8 @@ CFLAGS += -Wstrict-prototypes
CFLAGS += -I$(LIB_DIR)
CFLAGS += -DF_CPU=$(F_CPU)UL
CFLAGS += -D__BOARD_$(BOARD_TYPE)__
+CFLAGS += -std=c99
+
## Linker flags
LDFLAGS = $(COMMON)