Skip to content

Commit 1d1793d

Browse files
committed
Extend conf command by flash HAL parameter
1 parent ccfe847 commit 1d1793d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

firmware/programmer/nand_programmer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ typedef struct __attribute__((__packed__))
117117
typedef struct __attribute__((__packed__))
118118
{
119119
np_cmd_t cmd;
120+
uint8_t hal;
120121
uint32_t page_size;
121122
uint32_t block_size;
122123
uint32_t total_size;
@@ -1091,6 +1092,7 @@ static int np_cmd_nand_conf(np_prog_t *prog)
10911092
np_fill_chip_info(conf_cmd, prog);
10921093
np_print_chip_info(prog);
10931094

1095+
prog->hal = conf_cmd->hal;
10941096
hal[prog->hal]->init(&prog->chip_info);
10951097

10961098
nand_bad_block_table_init();

0 commit comments

Comments
 (0)