We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c9861 commit 95a5d60Copy full SHA for 95a5d60
targets/TARGET_Cypress/TARGET_PSOC6/cy_qspi_api.c
@@ -38,8 +38,7 @@ qspi_status_t qspi_free(qspi_t *obj)
38
39
qspi_status_t qspi_frequency(qspi_t *obj, int hz)
40
{
41
- /* Return OK since this API is not implemented in cy_hal */
42
- return QSPI_STATUS_OK;
+ return CY_RSLT_SUCCESS == cyhal_qspi_set_frequency(&(obj->hal_qspi), hz) ? QSPI_STATUS_OK : QSPI_STATUS_ERROR;
43
}
44
45
static inline cyhal_qspi_bus_width_t cyhal_qspi_convert_width(qspi_bus_width_t width)
0 commit comments