r_bsp.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /***********************************************************************************************************************
  2. * DISCLAIMER
  3. * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No
  4. * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
  5. * applicable laws, including copyright laws.
  6. * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
  7. * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
  8. * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM
  9. * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES
  10. * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS
  11. * SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  12. * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of
  13. * this software. By using this software, you agree to the additional terms and conditions found by accessing the
  14. * following link:
  15. * http://www.renesas.com/disclaimer
  16. *
  17. * Copyright (C) 2017 Renesas Electronics Corporation. All rights reserved.
  18. ***********************************************************************************************************************/
  19. /***********************************************************************************************************************
  20. * File Name : r_bsp.h
  21. * H/W Platform : GENERIC_RX65N
  22. * Description : Has the header files that should be included for this platform.
  23. ***********************************************************************************************************************/
  24. /***********************************************************************************************************************
  25. * History : DD.MM.YYYY Version Description
  26. * : 15.05.2017 1.00 First Release
  27. * : 01.07.2018 1.01 Additional RTOS header file.
  28. * : xx.xx.xxxx 1.02 Added support for GNUC and ICCRX.
  29. * Added #include for board/all/cksetup.h.
  30. * Relocated hwsetup.h, lowsrc.h and vecttbl.h to the 'board/all' folder.
  31. ***********************************************************************************************************************/
  32. #ifndef BSP_BOARD_GENERIC_RX65N
  33. #define BSP_BOARD_GENERIC_RX65N
  34. /* Make sure that no other platforms have already been defined. Do not touch this! */
  35. #ifdef PLATFORM_DEFINED
  36. #error "Error - Multiple platforms defined in platform.h!"
  37. #else
  38. #define PLATFORM_DEFINED
  39. #endif
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. /***********************************************************************************************************************
  44. INCLUDE APPROPRIATE MCU AND BOARD FILES
  45. ***********************************************************************************************************************/
  46. #include "r_bsp_common.h"
  47. #include "r_compiler.h"
  48. #include "r_bsp_config.h"
  49. #include "r_bsp_interrupt_config.h"
  50. #if defined(__CCRX__)
  51. #include "mcu/rx65n/register_access/ccrx/iodefine.h"
  52. #elif defined(__GNUC__)
  53. #include "iodefine.h"
  54. #elif defined(__ICCRX__)
  55. #include "mcu/rx65n/register_access/iccrx/iodefine.h"
  56. #endif /* defined(__CCRX__), defined(__GNUC__), defined(__ICCRX__) */
  57. #include "mcu_info.h"
  58. #include "mcu_locks.h"
  59. #include "locking.h"
  60. #include "cpu.h"
  61. #include "mcu_init.h"
  62. #include "mcu_interrupts.h"
  63. #include "mcu_mapped_interrupts_private.h"
  64. #include "mcu_mapped_interrupts.h"
  65. #include "mcu_startup.h"
  66. #include "clkconf.h"
  67. #include "hwsetup.h"
  68. #include "lowsrc.h"
  69. #include "vecttbl.h"
  70. #if BSP_CFG_RTOS_USED == 0 // Non-OS
  71. #elif BSP_CFG_RTOS_USED == 1 // FreeRTOS
  72. // #include "FreeRTOS.h"
  73. // #include "task.h"
  74. // #include "semphr.h"
  75. // #include "queue.h"
  76. // #include "croutine.h"
  77. // #include "timers.h"
  78. // #include "event_groups.h"
  79. // #include "message_buffer.h"
  80. // #include "freertos_start.h"
  81. #elif BSP_CFG_RTOS_USED == 2 // SEGGER embOS
  82. #elif BSP_CFG_RTOS_USED == 3 // Micrium MicroC/OS
  83. #elif BSP_CFG_RTOS_USED == 4 // Renesas RI600V4 & RI600PX
  84. #else
  85. #endif
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #endif /* BSP_BOARD_GENERIC_RX65N */