refactor: move FPGA_BITSTREAM_* to fpga.h

This commit is contained in:
douniwan5788 2024-08-26 02:06:29 +08:00
commit 8928883f2d
5 changed files with 15 additions and 6 deletions

View file

@ -32,6 +32,17 @@
#define FPGA_RING_BUFFER_BYTES (1024 * 30)
#define FPGA_TRACE_SIZE 3072
// definitions for multiple FPGA config files support
typedef enum
{
FPGA_BITSTREAM_UNKNOWN = 0,
FPGA_BITSTREAM_LF = 1,
FPGA_BITSTREAM_HF,
FPGA_BITSTREAM_HF_FELICA,
FPGA_BITSTREAM_HF_15,
FPGA_BITSTREAM_MAX = FPGA_BITSTREAM_HF_15,
} FPGA_config;
static const uint8_t bitparse_fixed_header[] = {0x00, 0x09, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x00, 0x00, 0x01};
extern const int g_fpga_bitstream_num;
extern const char *const g_fpga_version_information[];