mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-25 01:21:52 +08:00
Move hardcoded value where it belongs
Keep FPGA parameters together in the same place
This commit is contained in:
parent
3e4b7d07ff
commit
f47e4ed115
2 changed files with 6 additions and 3 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "comms.h"
|
||||
#include "usart_defs.h"
|
||||
#include "ui.h"
|
||||
#include "fpga.h"
|
||||
#include "cmdhw.h"
|
||||
#include "cmddata.h"
|
||||
#include "commonutil.h"
|
||||
|
@ -1392,7 +1393,7 @@ void pm3_version(bool verbose, bool oneliner) {
|
|||
}
|
||||
}
|
||||
PrintAndLogEx(NORMAL, payload->versionstr);
|
||||
if (strstr(payload->versionstr, "2s30vq100") == NULL) {
|
||||
if (strstr(payload->versionstr, FPGA_TYPE) == NULL) {
|
||||
PrintAndLogEx(NORMAL, " FPGA firmware... %s", _RED_("chip mismatch"));
|
||||
}
|
||||
|
||||
|
|
|
@ -23,9 +23,11 @@
|
|||
#define FPGA_BITSTREAM_FIXED_HEADER_SIZE sizeof(bitparse_fixed_header)
|
||||
#define FPGA_INTERLEAVE_SIZE 288
|
||||
#if defined XC3
|
||||
#define FPGA_CONFIG_SIZE 72864L // our current fpga_[lh]f.bit files are 72742 bytes. Rounded up to next multiple of FPGA_INTERLEAVE_SIZE
|
||||
#define FPGA_TYPE "3s100evq100"
|
||||
#define FPGA_CONFIG_SIZE 72864L // FPGA .bit file rounded up to next multiple of FPGA_INTERLEAVE_SIZE
|
||||
#else
|
||||
#define FPGA_CONFIG_SIZE 42336L // our current fpga_[lh]f.bit files are 42175 bytes. Rounded up to next multiple of FPGA_INTERLEAVE_SIZE
|
||||
#define FPGA_TYPE "2s30vq100"
|
||||
#define FPGA_CONFIG_SIZE 42336L // FPGA .bit file rounded up to next multiple of FPGA_INTERLEAVE_SIZE
|
||||
#endif
|
||||
#define FPGA_RING_BUFFER_BYTES (1024 * 30)
|
||||
#define FPGA_TRACE_SIZE 3072
|
||||
|
|
Loading…
Reference in a new issue