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 /* "vector_data.h" is not used */
33 
34 /* CMSIS-CORE Renesas Device Files. Must come after bsp_feature.h, which is included in bsp_cfg.h. */
35 #include "renesas.h"
36 #include "system.h"
37 
38 #if defined(__GNUC__) && !defined(__ARMCC_VERSION)
39 
40 /* Restore warning settings for 'conversion' and 'sign-conversion' to as specified on command line. */
41  #pragma GCC diagnostic pop
42 #endif
43 
44 /* BSP Common Includes. */
45 #include "bsp_common.h"
46 
47 /* BSP MCU Specific Includes. */
48 #include "bsp_irq.h"
49 #include "bsp_io.h"
50 #include "bsp_group_irq.h"
51 #include "bsp_clocks.h"
52 #include "bsp_module_stop.h"
53 #include "bsp_security.h"
54 
55 /* Factory MCU information. */
56 #include "fsp_features.h"
57 
58 /* BSP Common Includes (Other than bsp_common.h) */
59 #include "bsp_delay.h"
60 #include "bsp_mcu_api.h"
61 
62 /** Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file. */
63 FSP_HEADER
64 
65 /***********************************************************************************************************************
66  * Typedef definitions
67  **********************************************************************************************************************/
68 
69 /***********************************************************************************************************************
70  * Exported global variables
71  **********************************************************************************************************************/
72 
73 /***********************************************************************************************************************
74  * Exported global functions (to be accessed by other files)
75  **********************************************************************************************************************/
76 
77 /*******************************************************************************************************************//**
78  * @addtogroup BSP_MCU
79  * @{
80  **********************************************************************************************************************/
81 
82 fsp_err_t R_FSP_VersionGet(fsp_pack_version_t * const p_version);
83 
84 /** @} (end addtogroup BSP_MCU) */
85 
86 /** Common macro for FSP header files. There is also a corresponding FSP_HEADER macro at the top of this file. */
87 FSP_FOOTER
88 
89 #endif
90