stm32/qspi: Force a reset of the QSPI peripheral when initialising it.

To ensure it is in a known state on start up.
pull/4892/head
Damien George 2019-07-03 00:59:56 +10:00
rodzic 8da39fd182
commit 2034c0a2e3
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -88,6 +88,8 @@ void qspi_init(void) {
// Bring up the QSPI peripheral
__HAL_RCC_QSPI_CLK_ENABLE();
__HAL_RCC_QSPI_FORCE_RESET();
__HAL_RCC_QSPI_RELEASE_RESET();
QUADSPI->CR =
(MICROPY_HW_QSPI_PRESCALER - 1) << QUADSPI_CR_PRESCALER_Pos