diff options
author | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-09-10 16:58:02 +0000 |
---|---|---|
committer | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-09-10 16:58:02 +0000 |
commit | 7b041f45774fd64d607517a7f017d1c878b40111 (patch) | |
tree | 9dbfa4d27e5ffd1cb336f62e469ffbdb31fc5474 /openpcd/firmware/Makefile | |
parent | a88b3e54dd28238fc9a2fedcbf4c375aee4e23be (diff) |
- Introduce new "BOARD=" make parameter to distinguish between PICC and PCD PIO
- Fix PIO assignments to accomodate post-production change in PICC schematics
git-svn-id: https://svn.openpcd.org:2342/trunk@175 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware/Makefile')
-rw-r--r-- | openpcd/firmware/Makefile | 16 |
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 |