mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
bootloader/stm32: Add support for flash reset pin.
This commit is contained in:
parent
8cb6bf61e7
commit
af63cf8144
@ -142,6 +142,14 @@ int xspi_flash_init() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Hardware reset the flash
|
||||
#if defined(OMV_BOOT_XSPI_FLASH_RST_PIN)
|
||||
port_pin_write(OMV_BOOT_XSPI_FLASH_RST_PIN, 0);
|
||||
port_delay_ms(1);
|
||||
port_pin_write(OMV_BOOT_XSPI_FLASH_RST_PIN, 1);
|
||||
port_delay_ms(10);
|
||||
#endif
|
||||
|
||||
// Reset the XSPI
|
||||
if (xspi_flash_reset() != 0) {
|
||||
return -1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user