Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nxp_flexram.h File Reference
#include <zephyr/devicetree.h>
#include <soc.h>

Go to the source code of this file.

Functions

int flexram_set_ocram_magic_addr (uint32_t ocram_addr)
 Sets magic address for OCRAM.
int flexram_set_itcm_magic_addr (uint32_t itcm_addr)
 Sets magic address for ITCM.
int flexram_set_dtcm_magic_addr (uint32_t dtcm_addr)
 Sets magic address for DTCM.

Function Documentation

◆ flexram_set_dtcm_magic_addr()

int flexram_set_dtcm_magic_addr ( uint32_t dtcm_addr)

Sets magic address for DTCM.

Magic address allows core interrupt from FlexRAM when address is accessed.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_NXP_FLEXRAM_MAGIC_ADDR_API 
.
Parameters
dtcm_addrAn address in DTCM to set magic function on.
Return values
0on success
-EINVALif dtcm_addr is not in DTCM
-ENODEVif there is no DTCM allocation in flexram

◆ flexram_set_itcm_magic_addr()

int flexram_set_itcm_magic_addr ( uint32_t itcm_addr)

Sets magic address for ITCM.

Magic address allows core interrupt from FlexRAM when address is accessed.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_NXP_FLEXRAM_MAGIC_ADDR_API 
.
Parameters
itcm_addrAn address in ITCM to set magic function on.
Return values
0on success
-EINVALif itcm_addr is not in ITCM
-ENODEVif there is no ITCM allocation in flexram

◆ flexram_set_ocram_magic_addr()

int flexram_set_ocram_magic_addr ( uint32_t ocram_addr)

Sets magic address for OCRAM.

Magic address allows core interrupt from FlexRAM when address is accessed.

Attention
Available only when the following Kconfig option is enabled:
CONFIG_NXP_FLEXRAM_MAGIC_ADDR_API 
.
Parameters
ocram_addrAn address in OCRAM to set magic function on.
Return values
0on success
-EINVALif ocram_addr is not in OCRAM
-ENODEVif there is no OCRAM allocation in flexram