mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
Use placeholder for standalone mode if needed
This commit is contained in:
parent
5d6f2c641b
commit
c616f47d6b
3 changed files with 10 additions and 9 deletions
|
@ -77,7 +77,7 @@ endif
|
||||||
# Generic standalone Mode injection of source code
|
# Generic standalone Mode injection of source code
|
||||||
|
|
||||||
|
|
||||||
SRC_STANDALONE =
|
SRC_STANDALONE = placeholder.c
|
||||||
# WITH_STANDALONE_LF_ICERUN
|
# WITH_STANDALONE_LF_ICERUN
|
||||||
ifneq (,$(findstring WITH_STANDALONE_LF_ICERUN,$(APP_CFLAGS)))
|
ifneq (,$(findstring WITH_STANDALONE_LF_ICERUN,$(APP_CFLAGS)))
|
||||||
SRC_STANDALONE = lf_icerun.c
|
SRC_STANDALONE = lf_icerun.c
|
||||||
|
|
9
armsrc/Standalone/placeholder.c
Normal file
9
armsrc/Standalone/placeholder.c
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#include "standalone.h" // standalone definitions
|
||||||
|
#include "apps.h" // debug statements
|
||||||
|
|
||||||
|
void ModInfo(void) {
|
||||||
|
DbpString(" No standalone mode present");
|
||||||
|
}
|
||||||
|
|
||||||
|
void RunMod() {
|
||||||
|
}
|
|
@ -1549,16 +1549,8 @@ void __attribute__((noreturn)) AppMain(void) {
|
||||||
/*
|
/*
|
||||||
* So this is the trigger to execute a standalone mod. Generic entrypoint by following the standalone/standalone.h headerfile
|
* So this is the trigger to execute a standalone mod. Generic entrypoint by following the standalone/standalone.h headerfile
|
||||||
* All standalone mod "main loop" should be the RunMod() function.
|
* All standalone mod "main loop" should be the RunMod() function.
|
||||||
* Since the standalone is either LF or HF, the somewhat bisarr defines below exists.
|
|
||||||
*/
|
*/
|
||||||
#if defined (WITH_LF) && ( defined (WITH_STANDALONE_LF_SAMYRUN) || defined (WITH_STANDALONE_LF_HIDBRUTE) || defined (WITH_STANDALONE_LF_PROXBRUTE) )
|
|
||||||
RunMod();
|
RunMod();
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined (WITH_ISO14443a) && ( defined (WITH_STANDALONE_HF_YOUNG) || defined(WITH_STANDALONE_HF_COLIN) || defined(WITH_STANDALONE_HF_MATTYRUN) || defined(WITH_STANDALONE_HF_BOG) )
|
|
||||||
RunMod();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue