/*********************************************************************************************************************** * 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) 2013 Renesas Electronics Corporation. All rights reserved. ***********************************************************************************************************************/ /*********************************************************************************************************************** * File Name : dbsct.c * Device(s) : RX * Description : Defines the structure of the ROM and RAM areas. ***********************************************************************************************************************/ /*********************************************************************************************************************** * History : DD.MM.YYYY Version Description * : 26.10.2011 1.00 First Release * : 26.11.2013 1.01 Replaced use of with platform.h to handle when is not available. * : 15.05.2017 1.01 Deleted unnecessary comments. * :(15.05.2017 2.00 Deleted unnecessary comments.) * Added the bsp startup module disable function. * :(01.11.2017 2.00 Added the bsp startup module disable function.) * : xx.xx.xxxx 2.01 Added support for GNUC and ICCRX. ***********************************************************************************************************************/ /*********************************************************************************************************************** Includes , "Project Includes" ***********************************************************************************************************************/ #if defined(__CCRX__) /* BSP configuration. */ #include "platform.h" /* When using the user startup program, disable the following code. */ #if (BSP_CFG_STARTUP_DISABLE == 0) /* Preprocessor directive */ #pragma unpack /* Section start */ #pragma section C C$DSEC /* MCU ROM and RAM structure definition */ extern const struct { uint8_t *rom_s; /* Start address of the initialized data section in ROM */ uint8_t *rom_e; /* End address of the initialized data section in ROM */ uint8_t *ram_s; /* Start address of the initialized data section in RAM */ } _DTBL[] = { { __sectop("D"), __secend("D"), __sectop("R") }, { __sectop("D_2"), __secend("D_2"), __sectop("R_2") }, { __sectop("D_1"), __secend("D_1"), __sectop("R_1") } }; /* Section start */ #pragma section C C$BSEC /* MCU ROM and RAM structure definition */ extern const struct { uint8_t *b_s; /* Start address of non-initialized data section */ uint8_t *b_e; /* End address of non-initialized data section */ } _BTBL[] = { { __sectop("B"), __secend("B") }, { __sectop("B_2"), __secend("B_2") }, { __sectop("B_1"), __secend("B_1") } }; /* Section start */ #pragma section /* CTBL prevents excessive output of L1100 messages when linking. Even if CTBL is deleted, the operation of the program does not change. */ uint8_t * const _CTBL[] = { __sectop("C_1"), __sectop("C_2"), __sectop("C"), __sectop("W_1"), __sectop("W_2"), __sectop("W") }; /* Preprocessor directive */ #pragma packoption /* This is to ensure compatibility with new L section in version 1.1 and up of the RXC compiler. Do not remove! */ #pragma section C L const unsigned long deadSpace = 0xDEADDEAD; #pragma section #endif /* BSP_CFG_STARTUP_DISABLE == 0 */ #endif /* defined(__CCRX__) */