bsp_api.h 3.9 KB

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