RZ/A1H CMSIS-RTOS RTX BSP for GR-PEACH.

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

Fork of R_BSP by Daiki Kato

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers scux_ver.c Source File

scux_ver.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) 2014 Renesas Electronics Corporation. All rights reserved.
00022 *******************************************************************************/
00023 /**************************************************************************//**
00024 * @file         scux_ver.c
00025 * $Rev: 1645 $
00026 * $Date:: 2015-05-21 10:35:06 +0900#$
00027 * @brief        SCUX Driver get verion function
00028 ******************************************************************************/
00029 
00030 /******************************************************************************
00031 Includes   <System Includes> , "Project Includes"
00032 ******************************************************************************/
00033 #include "cmsis_os.h"
00034 #include "scux_if.h"
00035 
00036 /******************************************************************************
00037 Macro definitions
00038 ******************************************************************************/
00039 
00040 /* Ex. V2.12 -> MAJOR=2, MINOR=12 */
00041 #define SCUX_DRV_VER_MAJOR  (2u)
00042 #define SCUX_DRV_VER_MINOR  (2u)
00043 
00044 #define SCUX_DRV_VER_MASK   (0xFFu)
00045 #define SCUX_DRV_VER_SHIFT  (8u)
00046 
00047 /******************************************************************************
00048 Exported global functions (to be accessed by other files)
00049 ******************************************************************************/
00050 
00051 /**************************************************************************//**
00052 * Function Name: R_SCUX_GetVersion
00053 * @brief         Get SCUX driver version.
00054 *
00055 *                Description:<br>
00056 *                
00057 * @param         none
00058 * @retval        driver version -
00059 *                    upper 8bit=MAJOR
00060 *                    lower 8bit=MINOR
00061 ******************************************************************************/
00062 uint16_t R_SCUX_GetVersion(void)
00063 {
00064     const uint16_t version =
00065         ((SCUX_DRV_VER_MAJOR & SCUX_DRV_VER_MASK) << SCUX_DRV_VER_SHIFT)
00066         | (SCUX_DRV_VER_MINOR & SCUX_DRV_VER_MASK);
00067 
00068     return version;
00069 }
00070 /******************************************************************************
00071 End of function R_SCUX_GetVersion
00072 ******************************************************************************/