mirror of https://github.com/ARMmbed/mbed-os.git
QSPI STM32: remove polling from write/read
This will be part of custom instruction transfer, the flow will be: 1. write data 2. wait for transfer to complete (poll status register from the memory device)pull/6106/head
parent
d1a8245930
commit
b0d75c63f9
|
@ -197,10 +197,6 @@ qspi_status_t qspi_write(qspi_t *obj, const qspi_command_t *command, const void
|
|||
status = QSPI_STATUS_ERROR;
|
||||
}
|
||||
|
||||
if (QSPI_AutoPollingMemReady(&obj->handle, HAL_QPSI_TIMEOUT_DEFAULT_VALUE) != HAL_OK) {
|
||||
status = QSPI_STATUS_ERROR;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -221,10 +217,6 @@ qspi_status_t qspi_read(qspi_t *obj, const qspi_command_t *command, void *data,
|
|||
status = QSPI_STATUS_ERROR;
|
||||
}
|
||||
|
||||
if (QSPI_AutoPollingMemReady(&obj->handle, HAL_QPSI_TIMEOUT_DEFAULT_VALUE) != HAL_OK) {
|
||||
status = QSPI_STATUS_ERROR;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue