1 /*********************************************************************************************************************** 2 * Copyright [2020-2022] Renesas Electronics Corporation and/or its affiliates. All Rights Reserved. 3 * 4 * This software and documentation are supplied by Renesas Electronics America Inc. and may only be used with products 5 * of Renesas Electronics Corp. and its affiliates ("Renesas"). No other uses are authorized. Renesas products are 6 * sold pursuant to Renesas terms and conditions of sale. Purchasers are solely responsible for the selection and use 7 * of Renesas products and Renesas assumes no liability. No license, express or implied, to any intellectual property 8 * right is granted by Renesas. This software is protected under all applicable laws, including copyright laws. Renesas 9 * reserves the right to change or discontinue this software and/or this documentation. THE SOFTWARE AND DOCUMENTATION 10 * IS DELIVERED TO YOU "AS IS," AND RENESAS MAKES NO REPRESENTATIONS OR WARRANTIES, AND TO THE FULLEST EXTENT 11 * PERMISSIBLE UNDER APPLICABLE LAW, DISCLAIMS ALL WARRANTIES, WHETHER EXPLICITLY OR IMPLICITLY, INCLUDING WARRANTIES 12 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT, WITH RESPECT TO THE SOFTWARE OR 13 * DOCUMENTATION. RENESAS SHALL HAVE NO LIABILITY ARISING OUT OF ANY SECURITY VULNERABILITY OR BREACH. TO THE MAXIMUM 14 * EXTENT PERMITTED BY LAW, IN NO EVENT WILL RENESAS BE LIABLE TO YOU IN CONNECTION WITH THE SOFTWARE OR DOCUMENTATION 15 * (OR ANY PERSON OR ENTITY CLAIMING RIGHTS DERIVED FROM YOU) FOR ANY LOSS, DAMAGES, OR CLAIMS WHATSOEVER, INCLUDING, 16 * WITHOUT LIMITATION, ANY DIRECT, CONSEQUENTIAL, SPECIAL, INDIRECT, PUNITIVE, OR INCIDENTAL DAMAGES; ANY LOST PROFITS, 17 * OTHER ECONOMIC DAMAGE, PROPERTY DAMAGE, OR PERSONAL INJURY; AND EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY 18 * OF SUCH LOSS, DAMAGES, CLAIMS OR COSTS. 19 **********************************************************************************************************************/ 20 21 #ifndef BSP_API_H 22 #define BSP_API_H 23 24 /*********************************************************************************************************************** 25 * Includes <System Includes> , "Project Includes" 26 **********************************************************************************************************************/ 27 28 /* FSP Common Includes. */ 29 #include "fsp_common_api.h" 30 31 /* Gets MCU configuration information. */ 32 #include "bsp_cfg.h" 33 34 #if defined(__GNUC__) && !defined(__ARMCC_VERSION) 35 36 /* CMSIS-CORE currently generates 2 warnings when compiling with GCC. One in core_cmInstr.h and one in core_cm4_simd.h. 37 * We are not modifying these files so we will ignore these warnings temporarily. */ 38 #pragma GCC diagnostic ignored "-Wconversion" 39 #pragma GCC diagnostic ignored "-Wsign-conversion" 40 #endif 41 42 /* Vector information for this project. This is generated by the tooling. */ 43 #include "../../src/bsp/mcu/all/bsp_arm_exceptions.h" 44 #include "vector_data.h" 45 46 /* CMSIS-CORE Renesas Device Files. Must come after bsp_feature.h, which is included in bsp_cfg.h. */ 47 #include "../../src/bsp/cmsis/Device/RENESAS/Include/renesas.h" 48 #include "../../src/bsp/cmsis/Device/RENESAS/Include/system.h" 49 50 #if defined(__GNUC__) && !defined(__ARMCC_VERSION) 51 52 /* Restore warning settings for 'conversion' and 'sign-conversion' to as specified on command line. */ 53 #pragma GCC diagnostic pop 54 #endif 55 56 /* BSP Common Includes. */ 57 #include "../../src/bsp/mcu/all/bsp_common.h" 58 59 /* BSP MCU Specific Includes. */ 60 #include "../../src/bsp/mcu/all/bsp_register_protection.h" 61 #include "../../src/bsp/mcu/all/bsp_irq.h" 62 #include "../../src/bsp/mcu/all/bsp_io.h" 63 #include "../../src/bsp/mcu/all/bsp_group_irq.h" 64 #include "../../src/bsp/mcu/all/bsp_clocks.h" 65 #include "../../src/bsp/mcu/all/bsp_module_stop.h" 66 #include "../../src/bsp/mcu/all/bsp_security.h" 67 68 /* Factory MCU information. */ 69 #include "../../inc/fsp_features.h" 70 71 /* BSP Common Includes (Other than bsp_common.h) */ 72 #include "../../src/bsp/mcu/all/bsp_delay.h" 73 #include "../../src/bsp/mcu/all/bsp_mcu_api.h" 74 75 /* BSP TFU Includes. */ 76 #if BSP_FEATURE_TFU_SUPPORTED 77 #include "../../src/bsp/mcu/all/bsp_tfu.h" 78 #endif 79 80 /** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */ 81 FSP_HEADER 82 83 /*********************************************************************************************************************** 84 * Typedef definitions 85 **********************************************************************************************************************/ 86 87 /*********************************************************************************************************************** 88 * Exported global variables 89 **********************************************************************************************************************/ 90 91 /*********************************************************************************************************************** 92 * Exported global functions (to be accessed by other files) 93 **********************************************************************************************************************/ 94 95 /*******************************************************************************************************************//** 96 * @addtogroup BSP_MCU 97 * @{ 98 **********************************************************************************************************************/ 99 100 fsp_err_t R_FSP_VersionGet(fsp_pack_version_t * const p_version); 101 102 /** @} (end addtogroup BSP_MCU) */ 103 104 /** Common macro for FSP header files. There is also a corresponding FSP_HEADER macro at the top of this file. */ 105 FSP_FOOTER 106 107 #endif 108