summaryrefslogtreecommitdiff
path: root/openpcd/firmware/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/Makefile')
-rw-r--r--openpcd/firmware/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/openpcd/firmware/Makefile b/openpcd/firmware/Makefile
index fc62dbe..1a83d4d 100644
--- a/openpcd/firmware/Makefile
+++ b/openpcd/firmware/Makefile
@@ -87,15 +87,17 @@ SRCARM += src/os/pcd_enumerate.c src/os/fifo.c src/os/dbgu.c \
src/os/led.c src/os/req_ctx.c src/os/trigger.c \
src/os/main.c src/os/syscalls.c src/os/usb_handler.c \
src/os/usb_benchmark.c src/os/dfu.c src/start/Cstartup_SAM7.c \
- src/os/tc_cdiv.c src/os/pit.c src/os/pwm.c
+ src/os/tc_cdiv.c src/os/pit.c src/os/pwm.c src/os/pio_irq.c
-ifdef PCD
+ifeq ($(BOARD), PCD)
# PCD support code
SRCARM += src/pcd/rc632.c src/pcd/rc632_highlevel.c \
src/pcd/rfid_layer2_iso14443a.c
# finally, the actual main application
SRCARM += src/pcd/$(TARGET).c
-else
+endif
+
+ifeq ($(BOARD), PICC)
# PICC support code
SRCARM += src/picc/tc_fdt.c src/picc/ssc_picc.c src/picc/adc.c \
src/picc/decoder.c src/picc/decoder_miller.c \
@@ -185,6 +187,14 @@ ifdef OLIMEX
CDEFS += -DOLIMEX
endif
+ifeq ($(BOARD),PICC)
+CDEFS += -DPICC
+endif
+
+ifeq ($(BOARD),PCD)
+CDEFS += -DPCD
+endif
+
# Place -I options here
CINCS = -Iinclude -Isrc
personal git repositories of Harald Welte. Your mileage may vary