Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
axel.maurer
bwCard Reader
Commits
63396c91
Commit
63396c91
authored
Jul 30, 2021
by
axel.maurer
Browse files
function 14 and 15 implemented
parent
d640e1a5
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
KIT-Card.c
View file @
63396c91
This diff is collapsed.
Click to expand it.
make.bat
View file @
63396c91
...
...
@@ -15,6 +15,9 @@ goto :init
echo
.
-v
,
--version
shows
the
version
echo
.
-e
,
--verbose
shows
detailed
output
echo
.
-d
,
--debug
debug
messages
on
echo
.
-s
,
--secure
set
secure
mode
echo
.
-m
,
--miniterm
start
miniterm
for
debug
echo
.
-n
,
--no-load
do
not
load
firmware
echo
.
-ek
,
--english
_keyboard
set
keyboard
emulation
mode
in
reader
mode
to
english
(
default
is
german
)
echo
.
-r
,
--reader
_action
"action"
set
the
reader
action
echo
.
This
option
is
mandatory
in
reader
mode
...
...
@@ -80,6 +83,14 @@ goto :init
if
/i
"
%
~1"
==
"-s"
set
"SecureOption=yes"
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"--secure"
set
"SecureOption=yes"
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"-m"
set
"MinitermOption=yes"
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"--miniterm"
set
"MinitermOption=yes"
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"-n"
set
"NoloadOption=yes"
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"--no-load"
set
"NoloadOption=yes"
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"--no-secure"
set
"NoSecureOption=yes"
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"-r"
set
"ReaderAction=
%
~2"
&
shift
&
shift
&
goto
:parse
if
/i
"
%
~1"
==
"--reader_action"
set
"ReaderAction=
%
~2"
&
shift
&
shift
&
goto
:parse
...
...
@@ -106,6 +117,9 @@ goto :init
if
defined
SecureOption
(
set
SECURE
=
-DSECURE
)
if
defined
NoSecureOption
(
set
SECURE
=
-DNO
_SECURE
)
if
defined
ReaderAction
(
set
READER_ACTION
=
-DREADER
_ACTION
=
%ReaderAction%
)
...
...
@@ -133,9 +147,13 @@ goto :init
"
%ELATEC_DIR%
\Tools\makeapp"
-tTWN
4
-nTWN
4
"-i
%ELATEC_DIR%
\
%FIRMWARE_PATH%
"
"-hApp_KITC100_
%PROJECT%
.hex"
"-o
%BIX_FILE%
"
if
errorlevel
1
goto
end
del
"App_KITC100_
%PROJECT%
. elf"
"App_KITC100_
%PROJECT%
.lst"
"App_KITC100_
%PROJECT%
.map"
"App_KITC100_
%PROJECT%
.hex"
"TWN4_
%DEV_VERSION%
.bix"
"
%ELATEC_DIR%
\Tools\flash"
USB
%BIX_FILE%
@REM goto end
timeout
/T
2
python
-m
serial
.tools.miniterm
-e --exit-char
25
com9
if
not
defined
NoloadOption
(
"
%ELATEC_DIR%
\Tools\flash"
USB
%BIX_FILE%
)
if
defined
MinitermOption
(
timeout
/T
2
python
-m
serial
.tools.miniterm
-e --exit-char
25
com9
)
:end
exit
/B
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment