#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

This commit is contained in:
henryk@ploetzli.ch 2009-11-10 05:10:01 +00:00
parent dcc10e5e31
commit b1083ec9f7

View file

@ -541,57 +541,77 @@ void UsbPacketReceived(BYTE *packet, int len)
ModThenAcquireRawAdcSamples125k(c->ext1,c->ext2,c->ext3,c->d.asBytes); ModThenAcquireRawAdcSamples125k(c->ext1,c->ext2,c->ext3,c->d.asBytes);
break; break;
#ifdef WITH_ISO15693
case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_15693: case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_15693:
AcquireRawAdcSamplesIso15693(); AcquireRawAdcSamplesIso15693();
break; break;
#endif
case CMD_BUFF_CLEAR: case CMD_BUFF_CLEAR:
BufferClear(); BufferClear();
break; break;
#ifdef WITH_ISO15693
case CMD_READER_ISO_15693: case CMD_READER_ISO_15693:
ReaderIso15693(c->ext1); ReaderIso15693(c->ext1);
break; break;
#endif
case CMD_READER_LEGIC_RF: case CMD_READER_LEGIC_RF:
LegicRfReader(); LegicRfReader();
break; break;
#ifdef WITH_ISO15693
case CMD_SIMTAG_ISO_15693: case CMD_SIMTAG_ISO_15693:
SimTagIso15693(c->ext1); SimTagIso15693(c->ext1);
break; break;
#endif
#ifdef WITH_ISO14443b
case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443: case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443:
AcquireRawAdcSamplesIso14443(c->ext1); AcquireRawAdcSamplesIso14443(c->ext1);
break; break;
#endif
#ifdef WITH_ISO14443b
case CMD_READ_SRI512_TAG: case CMD_READ_SRI512_TAG:
ReadSRI512Iso14443(c->ext1); ReadSRI512Iso14443(c->ext1);
break; break;
#endif
#ifdef WITH_ISO14443a
case CMD_READER_ISO_14443a: case CMD_READER_ISO_14443a:
ReaderIso14443a(c->ext1); ReaderIso14443a(c->ext1);
break; break;
#endif
#ifdef WITH_ISO14443b
case CMD_SNOOP_ISO_14443: case CMD_SNOOP_ISO_14443:
SnoopIso14443(); SnoopIso14443();
break; break;
#endif
#ifdef WITH_ISO14443a
case CMD_SNOOP_ISO_14443a: case CMD_SNOOP_ISO_14443a:
SnoopIso14443a(); SnoopIso14443a();
break; break;
#endif
case CMD_SIMULATE_TAG_HF_LISTEN: case CMD_SIMULATE_TAG_HF_LISTEN:
SimulateTagHfListen(); SimulateTagHfListen();
break; break;
#ifdef WITH_ISO14443b
case CMD_SIMULATE_TAG_ISO_14443: case CMD_SIMULATE_TAG_ISO_14443:
SimulateIso14443Tag(); SimulateIso14443Tag();
break; break;
#endif
#ifdef WITH_ISO14443a
case CMD_SIMULATE_TAG_ISO_14443a: case CMD_SIMULATE_TAG_ISO_14443a:
SimulateIso14443aTag(c->ext1, c->ext2); // ## Simulate iso14443a tag - pass tag type & UID SimulateIso14443aTag(c->ext1, c->ext2); // ## Simulate iso14443a tag - pass tag type & UID
break; break;
#endif
case CMD_SIMULATE_TAG_LEGIC_RF: case CMD_SIMULATE_TAG_LEGIC_RF:
LegicRfSimulate(); LegicRfSimulate();