mimxrt/hal: Allow readSampleClkSrc to be configured by a board.

Via the MICROPY_HW_FLASH_DQS flag.
This commit is contained in:
Chris Boudacoff 2021-12-16 16:22:20 +02:00 committed by Damien George
parent 3f16719888
commit 802ef271b8

View File

@ -24,12 +24,16 @@ __attribute__((section(".boot_hdr.conf")))
#pragma location = ".boot_hdr.conf"
#endif
#ifndef MICROPY_HW_FLASH_DQS
#define MICROPY_HW_FLASH_DQS kFlexSPIReadSampleClk_LoopbackFromDqsPad
#endif
const flexspi_nor_config_t qspiflash_config = {
.memConfig =
{
.tag = FLEXSPI_CFG_BLK_TAG,
.version = FLEXSPI_CFG_BLK_VERSION,
.readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackFromDqsPad,
.readSampleClkSrc = MICROPY_HW_FLASH_DQS,
.csHoldTime = 3u,
.csSetupTime = 3u,
.busyOffset = FLASH_BUSY_STATUS_OFFSET, // Status bit 0 indicates busy.