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 r_ospl_private.h Source File

r_ospl_private.h

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) 2012 - 2015 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /**
00024 * @file  r_ospl_private.h
00025 * @brief   OS Porting Layer private API for OS less
00026 *
00027 * $Module: OSPL $ $PublicVersion: 0.90 $ (=R_OSPL_VERSION)
00028 * $Rev: 35 $
00029 * $Date:: 2014-04-15 21:38:18 +0900#$
00030 */
00031 
00032 #ifndef R_OSPL_PRIVATE_H
00033 #define R_OSPL_PRIVATE_H
00034 
00035 
00036 /******************************************************************************
00037 Includes   <System Includes> , "Project Includes"
00038 ******************************************************************************/
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif /* __cplusplus */
00043 
00044 
00045 /******************************************************************************
00046 Typedef definitions
00047 ******************************************************************************/
00048 
00049 /**
00050 * @struct  r_ospl_table_block_t
00051 * @brief  Block of <r_ospl_table_t>
00052 */
00053 typedef struct st_r_ospl_table_block_t  r_ospl_table_block_t;
00054 struct st_r_ospl_table_block_t {
00055 
00056     /** this[ SortedKeyIndex ].Key ... */
00057     const void  *Key;
00058 
00059     /** Index */
00060     int16_t  Index;
00061 
00062     /** this[ Index ].NextFreeIndex  : Index is not same as SortedKeyIndex */
00063     int16_t  NextFreeIndex;
00064 };
00065 enum {
00066     R_OSPL_TABLE_BLOCK_USED    = -1,
00067     R_OSPL_TABLE_BLOCK_NO_NEXT = -2
00068 };
00069 
00070 
00071 /**
00072 * @struct  r_ospl_table_searched_t
00073 * @brief  Result of searching
00074 */
00075 typedef struct st_r_ospl_table_searched_t  r_ospl_table_searched_t;
00076 struct st_r_ospl_table_searched_t {
00077 
00078     /** SortedKeyIndex */
00079     int_fast32_t  SortedKeyIndex;
00080 
00081     /** IsFound */
00082     bool_t  IsFound;
00083 };
00084 
00085 
00086 /* Section: Global */
00087 /******************************************************************************
00088 Macro definitions
00089 ******************************************************************************/
00090 
00091 /******************************************************************************
00092 Variable Externs
00093 ******************************************************************************/
00094 
00095 #if ! IS_MBED_USED
00096 #if  defined( __CC_ARM )
00097 
00098 /* ->QAC 0289 */ /* ->QAC 1002 */ /* ->MISRA 5.1 */
00099 extern uint32_t  Image$$BEGIN_OF_CACHED_RAM_BARRIER$$Base;
00100 extern uint32_t  Image$$BEGIN_OF_NOCACHE_RAM_BARRIER$$Base;
00101 extern uint32_t  Image$$BEGIN_OF_NOCACHE_RAM_BARRIER$$ZI$$Limit;
00102 extern uint32_t  Image$$END_OF_INTERNAL_RAM_BARRIER$$ZI$$Limit;
00103 /* <-QAC 0289 */ /* <-QAC 1002 */ /* <-MISRA 5.1 */
00104 
00105 #endif
00106 #else  /* IS_MBED_USED */
00107 extern uint32_t  Image$$RW_DATA_NC$$Base;
00108 #endif
00109 
00110 
00111 /******************************************************************************
00112 Functions Prototypes
00113 ******************************************************************************/
00114 
00115 /**
00116 * @brief   LockUnlockedChannel
00117 *
00118 * @param   out_ChannelNum ChannelNum
00119 * @param   HardwareIndexMin HardwareIndexMin
00120 * @param   HardwareIndexMax HardwareIndexMax
00121 * @return  Error Code. 0=No Error.
00122 */
00123 #if ! BSP_CFG_USER_LOCKING_ENABLED
00124 errnum_t  R_OSPL_LockUnlockedChannel( int_fast32_t *out_ChannelNum,
00125                                       mcu_lock_t  HardwareIndexMin,  mcu_lock_t  HardwareIndexMax );
00126 #endif
00127 
00128 
00129 /***********************************************************************
00130 * End of File:
00131 ************************************************************************/
00132 #ifdef __cplusplus
00133 }  /* extern "C" */
00134 #endif /* __cplusplus */
00135 
00136 #endif /* R_OSPL_PRIVATE_H */
00137