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

locking_typedef.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  locking_typedef.h
00025 * @brief   Lock related FIT BSP. Data types.
00026 *
00027 * $Module: OSPL $ $PublicVersion: 0.90 $ (=R_OSPL_VERSION)
00028 * $Rev: 38 $
00029 * $Date:: 2014-05-15 16:39:09 +0900#$
00030 */
00031 
00032 #ifndef LOCKING_TYPEDEF_H
00033 #define LOCKING_TYPEDEF_H
00034 
00035 
00036 /******************************************************************************
00037 Includes   <System Includes> , "Project Includes"
00038 ******************************************************************************/
00039 #include  "Project_Config.h"
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif /* __cplusplus */
00044 
00045 
00046 /******************************************************************************
00047 Typedef definitions
00048 ******************************************************************************/
00049 
00050 /**
00051 * @struct  r_ospl_c_lock_t
00052 * @brief  C-lock
00053 */
00054 typedef struct st_r_ospl_c_lock_t  r_ospl_c_lock_t;
00055 struct st_r_ospl_c_lock_t {
00056 
00057     /** IsLocked */
00058     volatile bool_t  IsLocked;
00059 };
00060 
00061 
00062 /******************************************************************************
00063 Macro definitions
00064 ******************************************************************************/
00065 
00066 /**
00067 * @def  BSP_CFG_USER_LOCKING_TYPE
00068 * @brief  C-lock (FIT BSP portable)
00069 * @par Parameters
00070 *    None
00071 * @return  None.
00072 */
00073 #if ! BSP_CFG_USER_LOCKING_ENABLED
00074 #define  BSP_CFG_USER_LOCKING_TYPE  r_ospl_c_lock_t
00075 #endif
00076 
00077 
00078 /**
00079 * @enum   mcu_lock_t
00080 * @brief  Hardware channel number for locking
00081 *
00082 *    : BSP_LOCK_ADC
00083 *    @par :
00084 */
00085 typedef enum {
00086     BSP_LOCK_ADC,
00087     BSP_LOCK_BSC,
00088     BSP_LOCK_CEU,
00089     BSP_LOCK_CPG,
00090     BSP_LOCK_DISC0,
00091     BSP_LOCK_DISC1,
00092     BSP_LOCK_DMAC0,
00093     BSP_LOCK_DMAC1,
00094     BSP_LOCK_DMAC2,
00095     BSP_LOCK_DMAC3,
00096     BSP_LOCK_DMAC4,
00097     BSP_LOCK_DMAC5,
00098     BSP_LOCK_DMAC6,
00099     BSP_LOCK_DMAC7,
00100     BSP_LOCK_DMAC8,
00101     BSP_LOCK_DMAC9,
00102     BSP_LOCK_DMAC10,
00103     BSP_LOCK_DMAC11,
00104     BSP_LOCK_DMAC12,
00105     BSP_LOCK_DMAC13,
00106     BSP_LOCK_DMAC14,
00107     BSP_LOCK_DMAC15,
00108     BSP_LOCK_DVDEC0,
00109     BSP_LOCK_DVDEC1,
00110     BSP_LOCK_ETHER,
00111     BSP_LOCK_FLCTL,
00112     BSP_LOCK_GPIO,
00113     BSP_LOCK_IEB,
00114     BSP_LOCK_INB,
00115     BSP_LOCK_INTC,
00116     BSP_LOCK_IRDA,
00117     BSP_LOCK_JCU,
00118     BSP_LOCK_I2C,
00119     BSP_LOCK_LIN0,
00120     BSP_LOCK_LIN1,
00121     BSP_LOCK_LVDS,
00122     BSP_LOCK_MLB,
00123     BSP_LOCK_MMC,
00124     BSP_LOCK_MTU2,
00125     BSP_LOCK_OSTM0,
00126     BSP_LOCK_OSTM1,
00127     BSP_LOCK_PFV0,
00128     BSP_LOCK_PFV1,
00129     BSP_LOCK_PWM,
00130     BSP_LOCK_RIIC0,
00131     BSP_LOCK_RIIC1,
00132     BSP_LOCK_RIIC2,
00133     BSP_LOCK_RIIC3,
00134     BSP_LOCK_ROMDEC,
00135     BSP_LOCK_RSCAN0,
00136     BSP_LOCK_RSPI0,
00137     BSP_LOCK_RSPI1,
00138     BSP_LOCK_RSPI2,
00139     BSP_LOCK_RSPI3,
00140     BSP_LOCK_RSPI4,
00141     BSP_LOCK_RTC,
00142     BSP_LOCK_SCIF0,
00143     BSP_LOCK_SCIF1,
00144     BSP_LOCK_SCIF2,
00145     BSP_LOCK_SCIF3,
00146     BSP_LOCK_SCIF4,
00147     BSP_LOCK_SCIF5,
00148     BSP_LOCK_SCIF6,
00149     BSP_LOCK_SCIF7,
00150     BSP_LOCK_SCIM0,
00151     BSP_LOCK_SCIM1,
00152     BSP_LOCK_SCUX,
00153     BSP_LOCK_SDG0,
00154     BSP_LOCK_SDG1,
00155     BSP_LOCK_SDG2,
00156     BSP_LOCK_SDG3,
00157     BSP_LOCK_SPDIF,
00158     BSP_LOCK_SPIBSC0,
00159     BSP_LOCK_SPIBSC1,
00160     BSP_LOCK_SSIF0,
00161     BSP_LOCK_SSIF1,
00162     BSP_LOCK_SSIF2,
00163     BSP_LOCK_SSIF3,
00164     BSP_LOCK_SSIF4,
00165     BSP_LOCK_SSIF5,
00166     BSP_LOCK_USB200,
00167     BSP_LOCK_USB201,
00168     BSP_LOCK_VDC50,
00169     BSP_LOCK_VDC51,
00170     BSP_LOCK_WDT,
00171     BSP_NUM_LOCKS /* This entry is not a valid lock. It is used for sizing
00172         g_bsp_Locks[] array below. Do not touch! */
00173 } mcu_lock_t;
00174 
00175 
00176 /******************************************************************************
00177 Variable Externs
00178 ******************************************************************************/
00179 
00180 /******************************************************************************
00181 Functions Prototypes
00182 ******************************************************************************/
00183 /* In "mcu_interrupts.h" */
00184 
00185 
00186 /***********************************************************************
00187 * End of File:
00188 ************************************************************************/
00189 #ifdef __cplusplus
00190 }  /* extern "C" */
00191 #endif /* __cplusplus */
00192 
00193 #endif /* LOCKING_TYPEDEF_H */
00194