Skip to content

Commit 66343b0

Browse files
authored
Merge pull request #12937 from macronix/macronix_qspi
Modify the operation of setting qspi frequency when calling Octo controller
2 parents 62c2431 + de9b283 commit 66343b0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

targets/TARGET_STM/qspi_api.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,6 @@ qspi_status_t qspi_frequency(qspi_t *obj, int hz)
712712
int div = HAL_RCC_GetHCLKFreq() / hz;
713713
if (div > 255) {
714714
div = 255;
715-
} else {
716-
if ((HAL_RCC_GetHCLKFreq() % hz) == 0) {
717-
div = div - 1;
718-
}
719715
}
720716

721717
obj->handle.Init.ClockPrescaler = div;

0 commit comments

Comments
 (0)