From b1083ec9f753e654e8824c267b5e90298060e96a Mon Sep 17 00:00:00 2001 From: "henryk@ploetzli.ch" Date: Tue, 10 Nov 2009 05:10:01 +0000 Subject: [PATCH 1/1] #ifdef out the calls to the ISO15693/14443/14443a functions so that the -D on the make command line actually can be used to reduce code size --- armsrc/appmain.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index fb501304..828926f1 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -541,57 +541,77 @@ void UsbPacketReceived(BYTE *packet, int len) ModThenAcquireRawAdcSamples125k(c->ext1,c->ext2,c->ext3,c->d.asBytes); break; +#ifdef WITH_ISO15693 case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_15693: AcquireRawAdcSamplesIso15693(); break; +#endif case CMD_BUFF_CLEAR: BufferClear(); break; +#ifdef WITH_ISO15693 case CMD_READER_ISO_15693: ReaderIso15693(c->ext1); break; +#endif case CMD_READER_LEGIC_RF: LegicRfReader(); break; +#ifdef WITH_ISO15693 case CMD_SIMTAG_ISO_15693: SimTagIso15693(c->ext1); break; +#endif +#ifdef WITH_ISO14443b case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443: AcquireRawAdcSamplesIso14443(c->ext1); break; +#endif +#ifdef WITH_ISO14443b case CMD_READ_SRI512_TAG: ReadSRI512Iso14443(c->ext1); break; +#endif +#ifdef WITH_ISO14443a case CMD_READER_ISO_14443a: ReaderIso14443a(c->ext1); break; +#endif +#ifdef WITH_ISO14443b case CMD_SNOOP_ISO_14443: SnoopIso14443(); break; +#endif +#ifdef WITH_ISO14443a case CMD_SNOOP_ISO_14443a: SnoopIso14443a(); break; +#endif case CMD_SIMULATE_TAG_HF_LISTEN: SimulateTagHfListen(); break; +#ifdef WITH_ISO14443b case CMD_SIMULATE_TAG_ISO_14443: SimulateIso14443Tag(); break; +#endif +#ifdef WITH_ISO14443a case CMD_SIMULATE_TAG_ISO_14443a: SimulateIso14443aTag(c->ext1, c->ext2); // ## Simulate iso14443a tag - pass tag type & UID break; +#endif case CMD_SIMULATE_TAG_LEGIC_RF: LegicRfSimulate(); -- 2.39.5