|
| 1 | +/* |
| 2 | +* Copyright (c) 2011 Renesas Electronics Corporation and/or its affiliates |
| 3 | +* |
| 4 | +* SPDX-License-Identifier: BSD-3-Clause |
| 5 | +*/ |
| 6 | +/*********************************************************************************************************************** |
| 7 | +* File Name : r_bsp.h |
| 8 | +* H/W Platform : GENERIC_RX261 |
| 9 | +* Description : Has the header files that should be included for this platform. |
| 10 | +***********************************************************************************************************************/ |
| 11 | +/*********************************************************************************************************************** |
| 12 | +* History : DD.MM.YYYY Version Description |
| 13 | +* : 31.05.2024 1.00 First Release |
| 14 | +* : 26.02.2025 1.01 Changed the disclaimer. |
| 15 | +***********************************************************************************************************************/ |
| 16 | + |
| 17 | +/* Make sure that no other platforms have already been defined. Do not touch this! */ |
| 18 | +#ifdef PLATFORM_DEFINED |
| 19 | +#error "Error - Multiple platforms defined in platform.h!" |
| 20 | +#else |
| 21 | +#define PLATFORM_DEFINED |
| 22 | +#endif |
| 23 | + |
| 24 | +#ifdef __cplusplus |
| 25 | +extern "C" { |
| 26 | +#endif |
| 27 | + |
| 28 | +/*********************************************************************************************************************** |
| 29 | +INCLUDE APPROPRIATE MCU AND BOARD FILES |
| 30 | +***********************************************************************************************************************/ |
| 31 | +#include "r_bsp_config.h" |
| 32 | +#include "mcu/all/r_bsp_common.h" |
| 33 | +#include "mcu/all/r_rx_compiler.h" |
| 34 | + |
| 35 | +// #include "mcu/all/lowlvl.h" |
| 36 | +// #include "mcu/all/lowsrc.h" |
| 37 | +// #include "mcu/all/r_bsp_mcu_startup.h" |
| 38 | + |
| 39 | +#if defined(__CCRX__) |
| 40 | +#include "mcu/rx261/register_access/ccrx/iodefine.h" |
| 41 | +#elif defined(__GNUC__) |
| 42 | +#include "mcu/rx261/register_access/gnuc/iodefine.h" |
| 43 | +#elif defined(__ICCRX__) |
| 44 | +#include "mcu/rx261/register_access/iccrx/iodefine.h" |
| 45 | +#endif /* defined(__CCRX__), defined(__GNUC__), defined(__ICCRX__) */ |
| 46 | +#include "mcu/rx261/r_bsp_cpu.h" |
| 47 | +// #include "mcu/rx261/r_bsp_locking.h" |
| 48 | +#include "mcu/rx261/mcu_clocks.h" |
| 49 | +#include "mcu/rx261/mcu_info.h" |
| 50 | +#include "mcu/rx261/mcu_init.h" |
| 51 | +#include "mcu/rx261/mcu_interrupts.h" |
| 52 | +#include "mcu/rx261/mcu_locks.h" |
| 53 | +#include "mcu/rx261/vecttbl.h" |
| 54 | + |
| 55 | +// #include "board/generic_rx261/hwsetup.h" |
| 56 | + |
| 57 | +#include "mcu/all/r_bsp_interrupts.h" |
| 58 | +#include "mcu/all/r_bsp_software_interrupt.h" |
| 59 | +#include "mcu/all/r_rx_intrinsic_functions.h" |
| 60 | +// #include "mcu/all/r_rtos.h" |
| 61 | + |
| 62 | +// #include "mcu/all/fsp_common_api.h" |
| 63 | +// #include "mcu/all/r_fsp_error.h" |
| 64 | + |
| 65 | +#ifdef __cplusplus |
| 66 | +} |
| 67 | +#endif |
| 68 | + |
| 69 | +#ifndef BSP_BOARD_GENERIC_RX261 |
| 70 | +#define BSP_BOARD_GENERIC_RX261 |
| 71 | + |
| 72 | +#endif /* BSP_BOARD_GENERIC_RX261 */ |
| 73 | + |
0 commit comments