We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5d521 commit af49c40Copy full SHA for af49c40
firmware/programmer/fsmc_nand.c
@@ -138,6 +138,11 @@ static void nand_print_fsmc_info()
138
DEBUG_PRINT("Status command: %d\r\n", fsmc_conf.status_cmd);
139
}
140
141
+static void nand_reset()
142
+{
143
+ *(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = fsmc_conf.reset_cmd;
144
+}
145
+
146
static int nand_init(void *conf, uint32_t conf_size)
147
{
148
if (conf_size < sizeof(fsmc_conf_t))
@@ -148,6 +153,7 @@ static int nand_init(void *conf, uint32_t conf_size)
153
nand_gpio_init();
149
154
nand_fsmc_init(fsmc_conf);
150
155
nand_print_fsmc_info();
156
+ nand_reset();
151
157
152
158
return 0;
159
0 commit comments