Commit graph

472 commits

Author SHA1 Message Date
marcansoft
c1bd1140c4 Some random cleanup 2010-02-21 00:13:08 +00:00
marcansoft
bd20f8f478 Add license headers to armsrc/bootrom/common stuff
I have kept whatever copyright notices exist. Please add your own
copyright notice if you have made any nontrivial changes or additions to
the code. There are several files without any attribution, currently.
2010-02-21 00:12:52 +00:00
marcansoft
9ab7a6c755 Split str* and mem* into string.[ch] 2010-02-21 00:10:28 +00:00
izsh@fail0verflow.com
4cd41f34ea Removing windows specific code. Everything now compile and work the same for the three OS 2010-02-20 23:35:09 +00:00
marcansoft
f7e3ed8287 Clean up data types, some header cleanup, etc. 2010-02-20 22:51:00 +00:00
marcansoft
8419248d2d More CRLF -> LF conversion 2010-02-20 22:50:30 +00:00
marcansoft
e30c654b19 More en masse cleanup (whitespace/newlines/headers/etc) 2010-02-20 21:57:20 +00:00
marcansoft
49b35ff9c2 More CRLF -> LF 2010-02-20 21:56:46 +00:00
marcansoft
fdcc61d318 More CRLF -> LF cleanup 2010-02-20 21:56:33 +00:00
marcansoft
c062856a74 But let people override CROSS if they reall want to ;) 2010-02-20 21:32:09 +00:00
marcansoft
272e55ca64 Switch compiler to arm-eabi instead of arm-elf
Non-EABI has been deprecated for a while and in fact won't build
with interworking support these days. Configuring the latest
gcc/binutils for arm-eabi works out of the box, so use that.
2010-02-20 21:28:29 +00:00
marcansoft
15c4dc5ace Clean up line endings, switch everything to LF instead of CRLF
Doing this for bootrom and armsrc for now. If you're using Windows,
please configure your editor for LF line endings.
2010-02-20 21:24:25 +00:00
marcansoft
72c4af087f Add obj/.dummy for clients that don't track empty dirs 2010-02-20 21:20:47 +00:00
izsh@fail0verflow.com
5e174a511b marcan's patch until he gets commit access. Remove C library's includes from the firmware side since it's not available anyway and not used 2010-02-20 03:07:55 +00:00
izsh@fail0verflow.com
cbb03be993 Oops forgot a file 2010-02-20 00:38:24 +00:00
izsh@fail0verflow.com
91c38cf715 Fix windows compilation issues. But still not final. We should move to pthread and factorize the code with *nix). Ideally we should move to libusb-1.0 too. 2010-02-20 00:36:48 +00:00
d18c7db
3ec3a4724e Removed hackish usb.h file, re-added Info.plist 2010-02-19 23:24:49 +00:00
d18c7db
baf39b0f16 Not a source code file 2010-02-18 08:32:41 +00:00
d18c7db
23c1df52b0 Tweak JTAG config file 2010-02-18 08:29:03 +00:00
d18c7db
393c3ef933 Attempt at getting the windows client to at least compile without bombing out with errors, may not be fully usable, e.g. plot window doesn't come up, etc 2010-02-18 08:24:26 +00:00
adam@algroup.co.uk
fffad860fc fix output inversion in mandemod 2010-02-15 21:15:52 +00:00
adam@algroup.co.uk
dbf444a179 missing parameter in 'threshold' command help 2010-02-08 22:02:18 +00:00
adam@algroup.co.uk
33984c6a82 fix 'data load' filename pointer 2010-02-08 17:37:02 +00:00
izsh@fail0verflow.com
8381984556 Cosmetic changes, replace mismatched indentation 2010-02-08 11:58:40 +00:00
adam@algroup.co.uk
5d5311a223 command parser shortcuts e.g. 'd p' will call 'data plot' (from rumpeltux) 2010-02-08 09:23:39 +00:00
d18c7db
da17fa0ebc Added some Eclipse files (.settings .cproject .project) to svn ignore 2010-02-08 03:31:08 +00:00
adam@algroup.co.uk
590f8ff949 get rid of implicit declaration warnings 2010-02-07 00:31:32 +00:00
izsh@fail0verflow.com
5a956258d3 alphabet ;) 2010-02-06 18:24:22 +00:00
adam@algroup.co.uk
26aa7d73ad damn that alphabet! 2010-02-06 18:11:49 +00:00
adam@algroup.co.uk
8d183c53b6 merge 'lfsamples' and 'hfsamples' into 'samples' 2010-02-06 18:06:31 +00:00
adam@algroup.co.uk
ab2fd3d68b streamline CmdEM410xWatch 2010-02-06 18:05:05 +00:00
adam@algroup.co.uk
4c8db262c0 usability hint 2010-02-06 15:50:20 +00:00
adam@algroup.co.uk
b279e3efc1 more helpful error message (from Sourcerer) 2010-02-06 09:54:38 +00:00
adam@algroup.co.uk
a2b1414f43 Andreas fix for LEGIC MIM1024 2010-02-06 09:43:33 +00:00
adam@algroup.co.uk
83a9b236fe fix warning: implicit declaration of function ‘exit’ 2010-02-06 09:33:17 +00:00
adam@algroup.co.uk
313322658c FIXME: will crash if sample buffer does not contain valid legic data (fixed by Sourcerer) 2010-02-05 20:08:02 +00:00
izsh.f0f
41dab15305 Alphabetical order ;) And cosmetic changes (remove duplicated includes) 2010-02-05 17:16:14 +00:00
adam@algroup.co.uk
669c1b80c5 add LEGIC decoder (submitted by Sourcerer, untested by me) 2010-02-05 13:56:33 +00:00
izsh.f0f
535b5a59bd Change -std=c99 to -std=gnu99 to be able to compile libusb-0.1.* which uses u_int*_t and PATH_MAX 2010-02-05 11:16:07 +00:00
adam@algroup.co.uk
c59c3405ec wun day i'll lern my alfabet 2010-02-05 08:29:09 +00:00
adam@algroup.co.uk
8e220a9126 put legic back in the system and add rumpletux's fast legic / prng code from forum 2010-02-05 08:18:02 +00:00
izsh.f0f
040a7baad0 client/cmdparser.c: Cosmetic changes.
client/cmdlf.c: Add missing include for "WaitForResponse".
2010-02-05 01:06:53 +00:00
adam@algroup.co.uk
37239a7c4b differentiate commands and sub-menus in help 2010-02-05 00:17:38 +00:00
adam@algroup.co.uk
502def6d63 oops. in the spirit of cleaner code, don't do stuff twice! 2010-02-04 23:31:23 +00:00
adam@algroup.co.uk
bdd1de1b02 make LF sampling ACK to fix USB timing issue in em410xwatch 2010-02-04 23:15:53 +00:00
adam@algroup.co.uk
c37d2e7078 make parser slightly more user friendly (default to 'help') 2010-02-04 22:51:02 +00:00
henryk@ploetzli.ch
92e592ce71 Limit DbpString size to the buffer size, patch by Andreas from proxmark forums 2010-02-04 02:49:21 +00:00
izsh.f0f
7fe9b0b742 Client cleanup and restructuring. Stage 1...
Next Step is refactoring some of the giant functions which are
just copy/paste of some other ones with just a few line changes,
removing unnecessary 'goto' etc.

The MS Windows version is broken with this commit but will be fixed
soon. Everything can't be done all at once :P

The commands are now hierarchical, for example:
"hf 14a read" vs. "hf 14b read".
You can also request help:
"hf help", "data help", "hf 15 help" etc.

Indents are now space-based, not tab-based anymore. Hopefully
no one will be trolling about it, considering the suicide-prone work
being done here ;)

client/cmdhw.c, client/proxusb.c, client/cmdhw.h, client/proxusb.h,
client/cmdmain.c, client/cmdlfhid.c, client/cmdmain.h, client/cmdlfhid.h,
client/data.c, client/data.h, client/cmdhf.c, client/cmdlf.c,
client/cmdhf.h, client/cmdhf15.c, client/cmdhf14b.c, client/cmdlf.h,
client/cmdhf15.h, client/cmdhf14b.h, client/cmddata.c, client/cmddata.h,
client/ui.c, client/cmdparser.c, client/cmdlfti.c, client/ui.h,
client/cmdlfem4x.c, client/cmdparser.h, client/cmdlfti.h, client/cmdlfem4x.h,
client/graph.c, client/graph.h, client/cmdhf14a.c, client/cmdhf14a.h,
client/cmdhflegic.c, client/cmdhflegic.c: New files.

client/cli.c, client/flasher.c, client/snooper.c, client/proxmark3.c,
client/proxmark3.h, client/Makefile: Update accordingly.

client/flash.h, client/flash.c, client/proxgui.cpp: Cosmetic changes.

client/translate.h, client/command.c, client/gui.c,
client/usb.c, client/prox.h: Remove.

include/usb_cmd.h (CMD_ACQUIRE_RAW_ADC_SAMPLES_ISO_14443_SIM): Remove dead cmd.

common/crc16.h: New file.
common/crc16.c: Modify accordingly.
common/iso14443crc.h: New file.
common/iso14443_crc.c: Rename to
common/iso14443crc.c: and modify accordingly.

armsrc/lfops.c, armsrc/iso14443.c,
armsrc/iso14443a.c: include .h files from
the common directory instead of including the c files.

common/Makefile.common, armsrc/Makefile: Modify accordingly.
2010-02-04 01:27:07 +00:00
adam@algroup.co.uk
6982ac2612 fix USB send data timing issue in CMD_DOWNLOADED_SIM_SAMPLES_125K 2010-01-29 09:28:47 +00:00
adam@algroup.co.uk
13a79da4e9 add 'losimman' command - simulate arbitrary Manchester encoded LF tags 2010-01-28 11:49:05 +00:00