1 /* 2 * Copyright (c) 2020 - 2024 Renesas Electronics Corporation and/or its affiliates 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef BSP_API_H 8 #define BSP_API_H 9 10 /*********************************************************************************************************************** 11 * Includes <System Includes> , "Project Includes" 12 **********************************************************************************************************************/ 13 14 /* FSP Common Includes. */ 15 #include "fsp_common_api.h" 16 17 /* Gets MCU configuration information. */ 18 #include "bsp_cfg.h" 19 20 #if defined(__GNUC__) && !defined(__ARMCC_VERSION) 21 22 /* Store warning settings for 'conversion' and 'sign-conversion' to as specified on command line. */ 23 #pragma GCC diagnostic push 24 25 /* CMSIS-CORE currently generates 2 warnings when compiling with GCC. One in core_cmInstr.h and one in core_cm4_simd.h. 26 * We are not modifying these files so we will ignore these warnings temporarily. */ 27 #pragma GCC diagnostic ignored "-Wconversion" 28 #pragma GCC diagnostic ignored "-Wsign-conversion" 29 #endif 30 31 /* Vector information for this project. This is generated by the tooling. */ 32 #include "bsp_exceptions.h" 33 #include "vector_data.h" 34 35 /* CMSIS-CORE Renesas Device Files. Must come after bsp_feature.h, which is included in bsp_cfg.h. */ 36 #include "renesas.h" 37 #include "system.h" 38 39 #if defined(__GNUC__) && !defined(__ARMCC_VERSION) 40 41 /* Restore warning settings for 'conversion' and 'sign-conversion' to as specified on command line. */ 42 #pragma GCC diagnostic pop 43 #endif 44 45 #if defined(BSP_API_OVERRIDE) 46 #include BSP_API_OVERRIDE 47 #else 48 49 /* BSP Common Includes. */ 50 #include "bsp_common.h" 51 52 /* BSP MCU Specific Includes. */ 53 #include "bsp_register_protection.h" 54 #include "bsp_irq.h" 55 #include "bsp_io.h" 56 #include "bsp_group_irq.h" 57 #include "bsp_clocks.h" 58 #include "bsp_module_stop.h" 59 60 /* Factory MCU information. */ 61 #include "fsp_features.h" 62 63 /* BSP Common Includes (Other than bsp_common.h) */ 64 #include "bsp_delay.h" 65 #include "bsp_mcu_api.h" 66 #include "bsp_security.h" 67 #endif 68 69 /** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */ 70 FSP_HEADER 71 72 /*********************************************************************************************************************** 73 * Typedef definitions 74 **********************************************************************************************************************/ 75 76 /*********************************************************************************************************************** 77 * Exported global variables 78 **********************************************************************************************************************/ 79 80 /*********************************************************************************************************************** 81 * Exported global functions (to be accessed by other files) 82 **********************************************************************************************************************/ 83 84 /*******************************************************************************************************************//** 85 * @addtogroup BSP_MCU 86 * @{ 87 **********************************************************************************************************************/ 88 89 fsp_err_t R_FSP_VersionGet(fsp_pack_version_t * const p_version); 90 91 /** @} (end addtogroup BSP_MCU) */ 92 93 /** Common macro for FSP header files. There is also a corresponding FSP_HEADER macro at the top of this file. */ 94 FSP_FOOTER 95 96 #endif 97