mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
Disabled sniff/reader codecs compilation
Had to make some minor changes to Commands.c and CommandLine.c to allow building without these codecs
This commit is contained in:
@@ -15,13 +15,13 @@ SETTINGS += -DCONFIG_MF_CLASSIC_1K_7B_SUPPORT
|
||||
SETTINGS += -DCONFIG_MF_CLASSIC_4K_SUPPORT
|
||||
SETTINGS += -DCONFIG_MF_CLASSIC_4K_7B_SUPPORT
|
||||
SETTINGS += -DCONFIG_MF_ULTRALIGHT_SUPPORT
|
||||
SETTINGS += -DCONFIG_ISO14443A_SNIFF_SUPPORT
|
||||
SETTINGS += -DCONFIG_ISO14443A_READER_SUPPORT
|
||||
SETTINGS += -DCONFIG_VICINITY_SUPPORT
|
||||
SETTINGS += -DCONFIG_SL2S2002_SUPPORT
|
||||
SETTINGS += -DCONFIG_TITAGITSTANDARD_SUPPORT
|
||||
SETTINGS += -DCONFIG_ISO15693_SNIFF_SUPPORT
|
||||
SETTINGS += -DCONFIG_EM4233_SUPPORT
|
||||
# SETTINGS += -DCONFIG_ISO14443A_SNIFF_SUPPORT
|
||||
# SETTINGS += -DCONFIG_ISO14443A_READER_SUPPORT
|
||||
SETTINGS += -DCONFIG_VICINITY_SUPPORT
|
||||
SETTINGS += -DCONFIG_SL2S2002_SUPPORT
|
||||
SETTINGS += -DCONFIG_TITAGITSTANDARD_SUPPORT
|
||||
# SETTINGS += -DCONFIG_ISO15693_SNIFF_SUPPORT
|
||||
SETTINGS += -DCONFIG_EM4233_SUPPORT
|
||||
|
||||
#Support magic mode on mifare classic configuration
|
||||
SETTINGS += -DSUPPORT_MF_CLASSIC_MAGIC_MODE
|
||||
|
||||
@@ -260,6 +260,7 @@ const PROGMEM CommandEntryType CommandTable[] = {
|
||||
.SetFunc = NO_FUNCTION,
|
||||
.GetFunc = CommandGetSysTick
|
||||
},
|
||||
#ifdef CONFIG_ISO14443A_READER_SUPPORT
|
||||
{
|
||||
.Command = COMMAND_SEND_RAW,
|
||||
.ExecFunc = NO_FUNCTION,
|
||||
@@ -302,6 +303,7 @@ const PROGMEM CommandEntryType CommandTable[] = {
|
||||
.SetFunc = NO_FUNCTION,
|
||||
.GetFunc = NO_FUNCTION
|
||||
},
|
||||
#endif
|
||||
{
|
||||
.Command = COMMAND_TIMEOUT,
|
||||
.ExecFunc = NO_FUNCTION,
|
||||
@@ -330,6 +332,7 @@ const PROGMEM CommandEntryType CommandTable[] = {
|
||||
.SetFunc = CommandSetField,
|
||||
.GetFunc = CommandGetField
|
||||
},
|
||||
#ifdef CONFIG_ISO14443A_READER_SUPPORT
|
||||
{
|
||||
.Command = COMMAND_CLONE,
|
||||
.ExecFunc = CommandExecClone,
|
||||
@@ -337,6 +340,7 @@ const PROGMEM CommandEntryType CommandTable[] = {
|
||||
.SetFunc = NO_FUNCTION,
|
||||
.GetFunc = NO_FUNCTION
|
||||
},
|
||||
#endif
|
||||
{
|
||||
.Command = COMMAND_SETUIDMODE,
|
||||
.ExecFunc = NO_FUNCTION,
|
||||
|
||||
@@ -458,6 +458,7 @@ CommandStatusIdType CommandGetSysTick(char *OutParam) {
|
||||
return COMMAND_INFO_OK_WITH_TEXT_ID;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ISO14443A_READER_SUPPORT
|
||||
CommandStatusIdType CommandExecParamSend(char *OutMessage, const char *InParams) {
|
||||
if (GlobalSettings.ActiveSettingPtr->Configuration != CONFIG_ISO14443A_READER)
|
||||
return COMMAND_ERR_INVALID_USAGE_ID;
|
||||
@@ -583,6 +584,7 @@ CommandStatusIdType CommandExecIdentifyCard(char *OutMessage) {
|
||||
CommandLinePendingTaskTimeout = &Reader14443AAppTimeout;
|
||||
return TIMEOUT_COMMAND;
|
||||
}
|
||||
#endif
|
||||
|
||||
CommandStatusIdType CommandGetTimeout(char *OutParam) {
|
||||
snprintf_P(OutParam, TERMINAL_BUFFER_SIZE, PSTR("%u ms"), GlobalSettings.ActiveSettingPtr->PendingTaskTimeout * 100);
|
||||
@@ -647,6 +649,7 @@ CommandStatusIdType CommandGetField(char *OutMessage) {
|
||||
|
||||
|
||||
CommandStatusIdType CommandExecAutocalibrate(char *OutMessage) {
|
||||
#ifdef CONFIG_ISO14443A_READER_SUPPORT
|
||||
if (GlobalSettings.ActiveSettingPtr->Configuration == CONFIG_ISO14443A_READER) {
|
||||
ApplicationReset();
|
||||
|
||||
@@ -655,19 +658,22 @@ CommandStatusIdType CommandExecAutocalibrate(char *OutMessage) {
|
||||
Reader14443ACodecStart();
|
||||
CommandLinePendingTaskTimeout = &Reader14443AAppTimeout;
|
||||
return TIMEOUT_COMMAND;
|
||||
} else if (GlobalSettings.ActiveSettingPtr->Configuration == CONFIG_ISO14443A_SNIFF) {
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_ISO14443A_SNIFF_SUPPORT
|
||||
if (GlobalSettings.ActiveSettingPtr->Configuration == CONFIG_ISO14443A_SNIFF) {
|
||||
ApplicationReset();
|
||||
|
||||
Sniff14443CurrentCommand = Sniff14443_Autocalibrate;
|
||||
Sniff14443AAppInit();
|
||||
CommandLinePendingTaskTimeout = &Sniff14443AAppTimeout;
|
||||
return TIMEOUT_COMMAND;
|
||||
} else {
|
||||
return COMMAND_ERR_INVALID_USAGE_ID;
|
||||
}
|
||||
|
||||
#endif
|
||||
return COMMAND_ERR_INVALID_USAGE_ID;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ISO14443A_READER_SUPPORT
|
||||
CommandStatusIdType CommandExecClone(char *OutMessage) {
|
||||
ConfigurationSetById(CONFIG_ISO14443A_READER);
|
||||
|
||||
@@ -680,6 +686,7 @@ CommandStatusIdType CommandExecClone(char *OutMessage) {
|
||||
|
||||
return TIMEOUT_COMMAND;
|
||||
}
|
||||
#endif
|
||||
|
||||
extern uint32_t dwBaudRate;
|
||||
CommandStatusIdType CommandGetBaudrate(char *OutParam) {
|
||||
|
||||
Reference in New Issue
Block a user