Update QSPI in the SDK to support long frame mode

* Carry forward changes made to v14.2SDK to support long frame mode
(from commit 2a72bb67a3).
* Fixed a few driver calls from rebase
pull/10652/head
RFulchiero 2019-03-05 10:33:36 -06:00 committed by desmond.chen
parent 8237229530
commit 2690f0f8bc
2 changed files with 8 additions and 2 deletions

View File

@ -106,7 +106,9 @@ typedef struct
.io2_level = false, \
.io3_level = false, \
.wipwait = false, \
.wren = false \
.wren = false, \
.lfen = false, \
.lfstop = false \
}
/**

View File

@ -228,6 +228,8 @@ typedef struct
bool io3_level; /**< I/O line level during transmission. */
bool wipwait; /**< Wait if a Wait in Progress bit is set in the memory status byte. */
bool wren; /**< Send write enable before instruction. */
bool lfen; /**< Enable long frame mode. */
bool lfstop; /**< Stop long frame mode. */
} nrf_qspi_cinstr_conf_t;
/**
@ -764,7 +766,9 @@ __STATIC_INLINE void nrf_qspi_cinstr_transfer_start(NRF_QSPI_Type *
((uint32_t)p_config->io2_level << QSPI_CINSTRCONF_LIO2_Pos) |
((uint32_t)p_config->io3_level << QSPI_CINSTRCONF_LIO3_Pos) |
((uint32_t)p_config->wipwait << QSPI_CINSTRCONF_WIPWAIT_Pos) |
((uint32_t)p_config->wren << QSPI_CINSTRCONF_WREN_Pos));
((uint32_t)p_config->wren << QSPI_CINSTRCONF_WREN_Pos) |
((uint32_t)p_config->lfen << QSPI_CINSTRCONF_LFEN_Pos) |
((uint32_t)p_config->lfstop << QSPI_CINSTRCONF_LFSTOP_Pos) );
}
#endif // SUPPRESS_INLINE_IMPLEMENTATION