Graphics framework for GR-PEACH. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

Dependents:   ImageZoomInout_Sample ImageRotaion_Sample ImageScroll_Sample GR-PEACH_LCD_4_3inch_Save_to_USB ... more

Embed: (wiki syntax)

« Back to documentation index

r_ospl_memory.c File Reference

r_ospl_memory.c File Reference

Memory map. More...

Go to the source code of this file.

Functions

errnum_t R_OSPL_ToPhysicalAddress (const volatile void *in_Address, uintptr_t *out_PhysicalAddress)
 Changes to physical address.
errnum_t R_OSPL_ToCachedAddress (const volatile void *in_Address, void *out_CachedAddress)
 Changes to the address in the L1 cache area.
errnum_t R_OSPL_ToUncachedAddress (const volatile void *in_Address, void *out_UncachedAddress)
 Changes to the address in the L1 uncached area.
errnum_t R_OSPL_MEMORY_GetLevelOfFlush (const void *in_Address, int_fast32_t *out_Level)
 Gets the level of cache for flushing the memory indicated by the address.
errnum_t R_OSPL_AXI_Get2ndCacheAttribute (uintptr_t const in_PhysicalAddress, r_ospl_axi_cache_attribute_t *const out_CacheAttribute)
 Get 2nd cache attribute of AXI bus for peripheral (not CPU) from physical address.
errnum_t R_OSPL_AXI_GetProtection (uintptr_t const in_PhysicalAddress, r_ospl_axi_protection_t *const out_Protection)
 Gets protection attribute of AXI bus from the address.

Detailed Description

Memory map.

Module:
OSPL
PublicVersion:
0.90

(=R_OSPL_VERSION)

Rev:
Date:

Definition in file r_ospl_memory.c.


Function Documentation

errnum_t R_OSPL_AXI_Get2ndCacheAttribute ( uintptr_t const   PhysicalAddress,
r_ospl_axi_cache_attribute_t *const   out_CacheAttribute 
)

Get 2nd cache attribute of AXI bus for peripheral (not CPU) from physical address.

Parameters:
PhysicalAddressThe physical address in the memory area
out_CacheAttributeOutput: Cache_attribute, AWCACHE[3:0], ARCACHE[3:0]
Returns:
Error code. If there is no error, the return value is 0.

Definition at line 359 of file r_ospl_memory.c.

errnum_t R_OSPL_AXI_GetProtection ( uintptr_t const   physical_address,
r_ospl_axi_protection_t *const   out_protection 
)

Gets protection attribute of AXI bus from the address.

Parameters:
PhysicalAddressThe physical address in the memory area
out_CacheAttributeOutput: The protection attribute of AXI bus AWPROT[2:0], ARPROT[2:0]
Returns:
Error code. If there is no error, the return value is 0.

Definition at line 416 of file r_ospl_memory.c.

errnum_t R_OSPL_MEMORY_GetLevelOfFlush ( const void *  Address,
int_fast32_t *  out_Level 
)

Gets the level of cache for flushing the memory indicated by the address.

Parameters:
AddressThe address in flushing memory
out_LevelOutput: 0=Not need to flush, 1=L1 cache only, 2=both of L1 and L2 cache
Returns:
Error code. If there is no error, the return value is 0.

Definition at line 290 of file r_ospl_memory.c.

errnum_t R_OSPL_ToCachedAddress ( const volatile void *const   Address,
void *const   out_CachedAddress 
)

Changes to the address in the L1 cache area.

Parameters:
AddressVirtual address
out_CachedAddressOutput: Virtual address for cached area
Returns:
Error code. If there is no error, the return value is 0.
Description
This function must be modified by MMU setting. If "E_ACCESS_DENIED" error was raised, you may know the variable by looking at value of "Address" argument and map file.

Definition at line 157 of file r_ospl_memory.c.

errnum_t R_OSPL_ToPhysicalAddress ( const volatile void *const   Address,
uintptr_t *const   out_PhysicalAddress 
)

Changes to physical address.

Parameters:
AddressVirtual address
out_PhysicalAddressOutput: Physical address
Returns:
Error code. If there is no error, the return value is 0.
Description
This function must be modified by MMU setting.

Definition at line 134 of file r_ospl_memory.c.

errnum_t R_OSPL_ToUncachedAddress ( const volatile void *const   Address,
void *const   out_UncachedAddress 
)

Changes to the address in the L1 uncached area.

Parameters:
AddressVirtual address
out_UncachedAddressOutput: Virtual address for uncached area
Returns:
Error code. If there is no error, the return value is 0.
Description
This function must be modified by MMU setting. If "E_ACCESS_DENIED" error was raised, you may know the variable by looking at value of "Address" argument and map file.

Definition at line 218 of file r_ospl_memory.c.