Skip to content

Commit 95a5d60

Browse files
Implement qspi_frequency for Cypress Mbed HAL.
1 parent 82c9861 commit 95a5d60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/cy_qspi_api.c

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

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

4544
static inline cyhal_qspi_bus_width_t cyhal_qspi_convert_width(qspi_bus_width_t width)

0 commit comments

Comments
 (0)