Skip to content

Commit

Permalink
Backport ARMmbed#12038: Remove qspi_frequency() call.
Browse files Browse the repository at this point in the history
cy_qspi_frequency is not implemented.
This change is made because for compatibility
reason with upcoming cy_hal changes.
  • Loading branch information
yarbcy authored and Kyle Kearney committed Apr 2, 2020
1 parent 880af5d commit 63583ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion targets/TARGET_Cypress/TARGET_PSOC6/cy_qspi_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ qspi_status_t qspi_free(qspi_t *obj)

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

static inline cyhal_qspi_bus_width_t cyhal_qspi_convert_width(qspi_bus_width_t width)
Expand Down

0 comments on commit 63583ff

Please sign in to comment.