bsp_api.h 5.6 KB

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