git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9482 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-05-14 12:34:05 +00:00
parent 331be6761d
commit bfd918bfce
2 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,7 @@ void qspi_lld_start(QSPIDriver *qspip) {
} }
/* QSPI setup and enable.*/ /* QSPI setup and enable.*/
qspip->qspi->DCR = qspip->config->dcr;
qspip->qspi->CR = ((STM32_QSPI_QUADSPI1_PRESCALER_VALUE - 1U) << 24U) | qspip->qspi->CR = ((STM32_QSPI_QUADSPI1_PRESCALER_VALUE - 1U) << 24U) |
QUADSPI_CR_TCIE | QUADSPI_CR_TEIE | QUADSPI_CR_DMAEN | QUADSPI_CR_TCIE | QUADSPI_CR_TEIE | QUADSPI_CR_DMAEN |
QUADSPI_CR_EN; QUADSPI_CR_EN;

View File

@ -164,6 +164,10 @@ typedef struct {
*/ */
qspicallback_t end_cb; qspicallback_t end_cb;
/* End of the mandatory fields.*/ /* End of the mandatory fields.*/
/**
* @brief DCR register initialization data.
*/
uint32_t dcr;
} QSPIConfig; } QSPIConfig;
/** /**