text: /***********************************************************************************************************************
  * 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) 2017 Renesas Electronics Corporation. All rights reserved.    
  ***********************************************************************************************************************/
  /***********************************************************************************************************************
  * File Name    : mcu_startup.c
  * Description  : This module implements user startup specific functions.
  ***********************************************************************************************************************/
  /**********************************************************************************************************************
  * History : DD.MM.YYYY Version  Description
  *         : 15.05.2017 1.00     First Release
  *         : xx.xx.xxxx 1.01     Added bsp_ram_initialize function call.
  ***********************************************************************************************************************/
  
  /***********************************************************************************************************************
  Includes   <System Includes> , "Project Includes"
  ***********************************************************************************************************************/
  /* Platform support. */
  #include "platform.h"
  
  /* When using the user startup program, disable the following code. */
  #if (BSP_CFG_STARTUP_DISABLE != 0)
  
  /***********************************************************************************************************************
  Macro definitions
  ***********************************************************************************************************************/
  
  /***********************************************************************************************************************
  Error checking
  ***********************************************************************************************************************/
  
  /***********************************************************************************************************************
  Typedef definitions
  ***********************************************************************************************************************/
  
  /***********************************************************************************************************************
  Exported global variables (to be accessed by other files)
  ***********************************************************************************************************************/
  extern void bsp_interrupt_open(void);
  extern void bsp_register_protect_open(void);
  extern void hardware_setup(void);
  extern void bsp_ram_initialize(void);
  
  /***********************************************************************************************************************
  Private global variables and functions
  ***********************************************************************************************************************/
  
  /***********************************************************************************************************************
  * Function Name: R_BSP_StartupOpen
  * Description  : The R_BSP_StartupOpen function initializes interrupt callbacks, register protection, and hardware 
  *                and pins. These processes are necessary to use the BSP and the Peripheral FIT module.
  *                Therefore, when BSP startup module is disabled, the R_BSP_StartupOpen function call executed 
  *                at the beginning of the user's main function.
  * Arguments    : none
  * Return Value : none
  ***********************************************************************************************************************/
  void R_BSP_StartupOpen (void)
  {
      /* Initialize MCU interrupt callbacks. */
      bsp_interrupt_open();
  
      /* Initialize register protection functionality. */
      bsp_register_protect_open();
  
      /* Configure the MCU and board hardware */
      hardware_setup();
      
      /* Initialize RAM. */
      bsp_ram_initialize();
      
  }
  
  #endif /* BSP_CFG_STARTUP_DISABLE != 0 */
  