Zephyr API Documentation  3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nrf_qspi_nor.h File Reference
#include <zephyr/syscalls/nrf_qspi_nor.h>

Go to the source code of this file.

Functions

void nrf_qspi_nor_xip_enable (const struct device *dev, bool enable)
 Specifies whether XIP (execute in place) operation should be possible.
 

Function Documentation

◆ nrf_qspi_nor_xip_enable()

void nrf_qspi_nor_xip_enable ( const struct device dev,
bool  enable 
)

Specifies whether XIP (execute in place) operation should be possible.

Normally, the driver deactivates the QSPI peripheral for periods when no QSPI operation is performed. This is done to avoid increased current consumption when the peripheral is idle. For the same reason, the base clock on nRF53 Series SoCs (HFCLK192M) is configured for those periods with the default /4 divider that cannot be used otherwise. However, when XIP accesses are used, the driver must be prevented from doing both these things as that would make XIP to fail. Hence, the application should use this function to signal to the driver that XIP accesses are expected to occur so that it keeps the QSPI peripheral operable. When XIP operation is no longer needed, it should be disabled with this function.

Parameters
devflash device
enableif true, the driver enables XIP operation and suppresses idle actions that would make XIP to fail