Skip to content
Commit 5d9acf52 authored by Miika Karanki's avatar Miika Karanki Committed by Henrik Brix Andersen
Browse files

drivers: flash: stm32 ospi: implement non busy wait polling



HAL_OSPI_AutoPolling is checking is the status match
happened in a busy loop. That CPU intensive operation
can cause starvation of other tasks especially on flash
erase operations which can take seconds to complete.

So, replace the use of HAL_OSPI_AutoPolling with
HAL_OSPI_AutoPolling_IT. The match results
HAL_OSPI_StatusMatchCallback being called.

Signed-off-by: default avatarMiika Karanki <miika.karanki@vaisala.com>
parent b803e060
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment