Commit 4343409a authored by axel.maurer's avatar axel.maurer
Browse files

function 16 implemented

parent 263de645
......@@ -57,6 +57,9 @@
#define ACTION_BWCARD_OLD_READ_NUMBER_ENCRYPTED_DEVICEUID 13
#define ACTION_BWCARD_OLD_READ_NUMBER_FILE_1 14
#define ACTION_BWCARD_OLD_WRITE_FILE_1 15
#define ACTION_BWCARD_OLD_UID_READ_NUMBER_FILE_1 16
#define ACTION_BWCARD_OLD_WRITE_FILE_1_ENCRYPTED 19
#define ACTION_SUCCESS_BEEP 20
#define ACTION_SUCCESS_BEEP_OUT 21
......@@ -1025,7 +1028,8 @@ int DoDesFireCardAction(int action, char *parmStr, char *resultStr)
case ACTION_BWCARD_OLD_READ_NUMBER:
case ACTION_BWCARD_OLD_READ_NUMBER_FILE_1:
case ACTION_BWCARD_OLD_WRITE_FILE_1:
case ACTION_CHECK_KIT_CARD_FILE:
case ACTION_BWCARD_OLD_UID_READ_NUMBER_FILE_1:
case ACTION_CHECK_KIT_CARD_FILE :
appId = BWCARD_OLD_APP;
case ACTION_BWCARD_READ_NUMBER_DEVICEUID_CARDUID:
case ACTION_BWCARD_READ_NUMBER_ENCRYPTED_DEVICEUID:
......@@ -1127,6 +1131,9 @@ int DoDesFireCardAction(int action, char *parmStr, char *resultStr)
case ACTION_BWCARD_OLD_READ_NUMBER_FILE_1:
sprintf(resultStr,"%s;%x;%x",bwCardNumber,actSeconds,cardSeconds);
break;
case ACTION_BWCARD_OLD_UID_READ_NUMBER_FILE_1:
sprintf(resultStr,"%s;%x;%x",cardUid,actSeconds,cardSeconds);
break;
case ACTION_BWCARD_OLD_WRITE_FILE_1:
// size of time in seconds on card (int)
count = 4;
......@@ -2024,6 +2031,8 @@ int main(void)
case ACTION_BWCARD_READ_ALL:
case ACTION_BWCARD_OLD_READ_NUMBER_FILE_1:
case ACTION_BWCARD_OLD_WRITE_FILE_1:
case ACTION_BWCARD_OLD_UID_READ_NUMBER_FILE_1:
#endif
// case ACTION_DELETE_APP:
case ACTION_CHECK_FOR_CARD:
......
......@@ -137,6 +137,7 @@ goto :init
echo "UnNamedArgument"=%UnNamedArgument%
echo "FIRMWARE_PATH"=%FIRMWARE_PATH%
echo "CompilerOptions"=%CompilerOptions%
echo on
)
set COMPILER_PARMSTR=-std=c99 -mcpu=cortex-m0 -Os -ffunction-sections -gdwarf-2 -mthumb -fomit-frame-pointer -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms="App_KITC100_%PROJECT%.lst" -DAPPCHARS=KITC -DVERSION=0x100 -DAPPEXTCONFIG=0 %DEBUG% %SECURE% %READER_ACTION% %GERMAN_KEYBOARD% -I. -I"%ELATEC_DIR%\Tools\sys" "%ELATEC_DIR%\Tools\sys\twn4.crt.c" "%PROJECT_SOURCE_FILE%" -nostartfiles -T"%ELATEC_DIR%\Tools\sys\app.ld" -Wl,--gc-sections,-e,AppHeader,--no-print-gc-sections,-Map="App_KITC100_%PROJECT%.map",--cref,--no-warn-mismatch "%ELATEC_DIR%\Tools\sys\libapp.a" -lc -o "App_KITC100_%PROJECT%.elf"
%COMPILER% %COMPILER_PARMSTR%
......@@ -152,7 +153,7 @@ goto :init
)
if defined MinitermOption (
timeout /T 2
python -m serial.tools.miniterm -e --exit-char 25 com9
python -m serial.tools.miniterm -e --exit-char 25 com4
)
:end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment