Skip to content

Commit 63583ff

Browse files
yarbcyKyle Kearney
authored andcommitted
Backport ARMmbed#12038: Remove qspi_frequency() call.
cy_qspi_frequency is not implemented. This change is made because for compatibility reason with upcoming cy_hal changes.
1 parent 880af5d commit 63583ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/cy_qspi_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ qspi_status_t qspi_free(qspi_t *obj)
3838

3939
qspi_status_t qspi_frequency(qspi_t *obj, int hz)
4040
{
41-
return CY_RSLT_SUCCESS == cyhal_qspi_set_frequency(&(obj->hal_qspi), (uint32_t)hz) ? QSPI_STATUS_OK : QSPI_STATUS_ERROR;
41+
/* Return OK since this API is not implemented in cy_hal */
42+
return QSPI_STATUS_OK;
4243
}
4344

4445
static inline cyhal_qspi_bus_width_t cyhal_qspi_convert_width(qspi_bus_width_t width)

0 commit comments

Comments
 (0)