/******************************************************************************* | |
* DISCLAIMER | |
* This software is supplied by Renesas Electronics Corporation and is only | |
* intended for use with Renesas products. No other uses are authorized. This | |
* software is owned by Renesas Electronics Corporation and is protected under | |
* all applicable laws, including copyright laws. | |
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING | |
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT | |
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE | |
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. | |
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS | |
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE | |
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR | |
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE | |
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
* Renesas reserves the right, without notice, to make changes to this software | |
* and to discontinue the availability of this software. By using this software, | |
* you agree to the additional terms and conditions found by accessing the | |
* following link: | |
* http://www.renesas.com/disclaimer | |
* | |
* Copyright (C) 2012 Renesas Electronics Corporation. All rights reserved. | |
*******************************************************************************/ | |
/******************************************************************************* | |
* File Name : bsc.c | |
* $Rev: $ | |
* $Date:: $ | |
* Description : Aragon Sample Program - BSC initialize | |
*******************************************************************************/ | |
/****************************************************************************** | |
Includes <System Includes> , "Project Includes" | |
******************************************************************************/ | |
#include "r_typedefs.h" | |
#include "dev_drv.h" /* Device Driver common header */ | |
#include "devdrv_common.h" /* Common Driver Header */ | |
/* Do not include the following pragmas when compiling with IAR. */ | |
#ifndef __ICCARM__ | |
#pragma arm section code = "CODE_RESET" | |
#pragma arm section rodata = "CONST_RESET" | |
#pragma arm section rwdata = "DATA_RESET" | |
#pragma arm section zidata = "BSS_RESET" | |
#endif | |
/****************************************************************************** | |
Typedef definitions | |
******************************************************************************/ | |
/****************************************************************************** | |
Macro definitions | |
******************************************************************************/ | |
/****************************************************************************** | |
Imported global variables and functions (from other files) | |
******************************************************************************/ | |
/****************************************************************************** | |
Exported global variables and functions (to be accessed by other files) | |
******************************************************************************/ | |
/****************************************************************************** | |
Private global variables and functions | |
******************************************************************************/ | |
/****************************************************************************** | |
* Function Name: R_BSC_Init | |
* Description : | |
* Arguments : uint8 area | |
* : B'xxxxxxxx | |
* : |||||||+--- [0] CS0 | |
* : ||||||+---- [1] CS1 | |
* : |||||+----- [2] CS2 | |
* : ||||+------ [3] CS3 | |
* : |||+------- [4] CS4 | |
* : ||+-------- [5] CS5 | |
* : ++--------- [6-7] n/a | |
* Return Value : none | |
******************************************************************************/ | |
void R_BSC_Init(uint8_t area) | |
{ | |
/* ==== BSC initialize ==== */ | |
if ((area & BSC_AREA_CS0) != 0) /* CS0 */ | |
{ | |
Userdef_BSC_CS0Init(); | |
} | |
if ((area & BSC_AREA_CS1) != 0) /* CS1 */ | |
{ | |
Userdef_BSC_CS1Init(); | |
} | |
if ((area & BSC_AREA_CS2) != 0) /* CS2 */ | |
{ | |
Userdef_BSC_CS2Init(); | |
} | |
if ((area & BSC_AREA_CS3) != 0) /* CS3 */ | |
{ | |
Userdef_BSC_CS3Init(); | |
} | |
if ((area & BSC_AREA_CS4) != 0) /* CS4 */ | |
{ | |
Userdef_BSC_CS4Init(); | |
} | |
if ((area & BSC_AREA_CS5) != 0) /* CS5 */ | |
{ | |
Userdef_BSC_CS5Init(); | |
} | |
} | |
/* End of File */ | |