bsp_api.h 5.5 KB

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