CHG: fiddled with the headerfiles... and makefile... Tried to make them behave nice. So it isnt a hell to add new functions from third-party (like des, aes etc)

Added a lot of #ifndef ,   extern C,
Move inside from ARMSRC -> THUMBS,  which made the compiled image smaller.. I don't know if it broke anything.
Moved MF_DBGLEVEL definitions into common.h
Moved print_result from util.c into appmain.c
Also split up some struct typedef  into header files so they could be reused in other code places.

''' danger '''  this might have broken stuff...
This commit is contained in:
iceman1001
2017-01-25 00:33:03 +01:00
parent 137f207a8d
commit 53d5dc643f
27 changed files with 153 additions and 190 deletions

View File

@@ -4,6 +4,8 @@
#include <stdint.h>
typedef struct tagdescription tagdescription;
//Known AIDs
extern const uint8_t AID_VISA[5];
extern const uint8_t AID_VISA_DB[7] ;
@@ -25,12 +27,6 @@ extern const uint8_t AID_ALIAS[7];
//Master data file for PSE
extern const uint8_t DF_PSE[];
typedef struct{
uint8_t tag[2];
char description[255];
} tagdescription;
extern const tagdescription EMV_TAG_LIST[62]; //SW1 return values
extern const uint8_t SW1_RESPONSE_BYTES[];
extern const uint8_t SW1_WRONG_LENGTH[] ;