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/7783/head
Martin Kojtal 2017-11-24 09:29:22 +00:00 committed by Maciej Bocianski
parent 8da072d8af
commit 6e5b889e52
1 changed files with 0 additions and 8 deletions

View File

@ -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;
}