From b0d75c63f92e09ffb59817e21af47d9e8125d556 Mon Sep 17 00:00:00 2001 From: Martin Kojtal <0xc0170@gmail.com> Date: Fri, 24 Nov 2017 09:29:22 +0000 Subject: [PATCH] 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) --- targets/TARGET_STM/qspi_api.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/targets/TARGET_STM/qspi_api.c b/targets/TARGET_STM/qspi_api.c index 37eab642c1..1254b8213e 100644 --- a/targets/TARGET_STM/qspi_api.c +++ b/targets/TARGET_STM/qspi_api.c @@ -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; }