X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/30f2a7d38fd35b2427a7eb42e1cd75fb1105f927..aa4d9d9b73f7218d40bdb30efffea5e001498bda:/armsrc/appmain.c diff --git a/armsrc/appmain.c b/armsrc/appmain.c index bb733fef..a0bb00d3 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -4,10 +4,14 @@ // Jonathan Westhues, Mar 2006 // Edits by Gerhard de Koning Gans, Sep 2007 (##) //----------------------------------------------------------------------------- + + #include #include "apps.h" #include "fonts.h" +#ifdef WITH_LCD #include "LCD.h" +#endif // The large multi-purpose buffer, typically used to hold A/D samples, // maybe pre-processed in some way. @@ -611,6 +615,10 @@ void UsbPacketReceived(BYTE *packet, int len) case CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443: AcquireRawAdcSamplesIso14443(c->ext1); break; + + case CMD_READ_SRI512_TAG: + ReadSRI512Iso14443(c->ext1); + break; case CMD_READER_ISO_14443a: ReaderIso14443a(c->ext1); @@ -678,11 +686,11 @@ void UsbPacketReceived(BYTE *packet, int len) SimulateTagLowFrequency(c->ext1); LED_A_OFF(); break; - +#ifdef WITH_LCD case CMD_LCD_RESET: LCDReset(); break; - +#endif case CMD_SWEEP_LF: SweepLFrange(); break; @@ -690,11 +698,11 @@ void UsbPacketReceived(BYTE *packet, int len) case CMD_SET_LF_DIVISOR: FpgaSendCommand(FPGA_CMD_SET_DIVISOR, c->ext1); break; - +#ifdef WITH_LCD case CMD_LCD: LCDSend(c->ext1); break; - +#endif case CMD_SETUP_WRITE: case CMD_FINISH_WRITE: USB_D_PLUS_PULLUP_OFF(); @@ -741,6 +749,8 @@ void AppMain(void) // Load the FPGA image, which we have stored in our flash. FpgaDownloadAndGo(); +#ifdef WITH_LCD + LCDInit(); // test text on different colored backgrounds @@ -763,6 +773,8 @@ void AppMain(void) LCDFill(0, 1+8*14, 132, 8, CYAN); LCDFill(0, 1+8*15, 132, 8, MAGENTA); +#endif + for(;;) { UsbPoll(FALSE); WDT_HIT();