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

Show/hide line numbers RGA_Callback_WorkBuf.c Source File

RGA_Callback_WorkBuf.c

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * DISCLAIMER
00003 * This software is supplied by Renesas Electronics Corporation and is only
00004 * intended for use with Renesas products. No other uses are authorized. This
00005 * software is owned by Renesas Electronics Corporation and is protected under
00006 * all applicable laws, including copyright laws.
00007 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
00008 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
00009 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
00010 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
00011 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
00012 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
00013 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
00014 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
00015 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
00016 * Renesas reserves the right, without notice, to make changes to this software
00017 * and to discontinue the availability of this software. By using this software,
00018 * you agree to the additional terms and conditions found by accessing the
00019 * following link:
00020 * http://www.renesas.com/disclaimer
00021 * Copyright (C) 2013 - 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /**
00024 * @file  RGA_Callback_WorkBuf.c
00025 * @brief   $Module: RGA $ $PublicVersion: 1.20 $ (=RGA_VERSION)
00026 * $Rev: $
00027 * $Date::                           $
00028 */
00029 
00030 #include  <string.h>
00031 #include  "RGA.h"
00032 #include  "RGA_Callback_private.h "
00033 
00034 
00035 /** gs_WorkBufferMemory */
00036 
00037 /* <MapSection attribute="Uncachable"/> */
00038 /* .WORK_SECTION1 is for only R_REE_INIT. This is ignored in other environments. */
00039 #if defined(__ICCARM__)
00040 R_OSPL_ALIGNMENT( 16,
00041                   R_OSPL_SECTION_FOR_ZERO_INIT( ".mirrorram",
00042                           static uint8_t  gs_WorkBufferMemory[ WORK_BUFFER_SIZE ] ));
00043 #else
00044 R_OSPL_ALIGNMENT( RGA_WORK_BUFFER_ADDRESS_ALIGNMENT,
00045                   R_OSPL_SECTION_FOR_ZERO_INIT( "NC_BSS",
00046                           static uint8_t  gs_WorkBufferMemory[ WORK_BUFFER_SIZE ] ));
00047 #endif
00048 
00049 
00050 /** gs_WorkBufferB_Memory */
00051 
00052 R_OSPL_ALIGNMENT( RGA_WORK_BUFFER_B_ADDRESS_ALIGNMENT,
00053                   static uint8_t  gs_WorkBufferB_Memory[ WORK_BUFFER_B_SIZE ] );
00054 
00055 
00056 /**
00057 * @brief   Get Memory of RGA WorkBuffer
00058 *
00059 * @param   out_WorkBufferAddress uint8_t*
00060 * @param   out_WorkBufferSize size_t
00061 * @param   out_WorkBufferB_Address uint8_t*
00062 * @param   out_WorkBufferB_Size size_t
00063 * @return  None
00064 */
00065 void  R_MEMORY_SECTION_GetMemory_RGA_WorkBuffer(
00066     uint8_t **out_WorkBufferAddress,  size_t *out_WorkBufferSize,
00067     uint8_t **out_WorkBufferB_Address,  size_t *out_WorkBufferB_Size )
00068 {
00069     *out_WorkBufferAddress = gs_WorkBufferMemory;
00070     *out_WorkBufferSize = sizeof( gs_WorkBufferMemory );
00071     *out_WorkBufferB_Address = gs_WorkBufferB_Memory;
00072     *out_WorkBufferB_Size = sizeof( gs_WorkBufferB_Memory );
00073 }
00074 
00075