Skip to content

Commit ae4b95e

Browse files
committed
qt: added page and block size paramters to chip db
1 parent b01e2ef commit ae4b95e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

qt/chip_db.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
static ChipInfo chipDB[] =
1010
{
11-
{ CHIP_ID_NONE, "No Chip", 0 },
12-
{ CHIP_ID_K9F2G08U0C, "K9F2G08U0C", 0x10000000 },
11+
{ CHIP_ID_NONE, "No Chip", 0, 0, 0 },
12+
{ CHIP_ID_K9F2G08U0C, "K9F2G08U0C", 0x800, 0x20000, 0x10000000 },
1313
};
1414

1515
uint32_t getChipDB(ChipInfo *&db)

qt/chip_db.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ typedef struct
2121
{
2222
uint32_t id;
2323
char name[MAX_CHIP_NAME_LEN];
24+
uint32_t page_size;
25+
uint32_t block_size;
2426
uint32_t size;
2527
} ChipInfo;
2628

0 commit comments

Comments
 (0)