r_pdl_bsc_rx62nxx.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : BSC API for RX62N
  3. * File Name : r_pdl_bsc_RX62Nxx.h
  4. * Version : 1.02
  5. * Contents : BSC API header
  6. * Customer :
  7. * Model :
  8. * Order :
  9. * CPU : RX
  10. * Compiler : RXC
  11. * OS : Nothing
  12. * Programmer :
  13. * Note :
  14. ************************************************************************
  15. * Copyright, 2011. Renesas Electronics Corporation
  16. * and Renesas Solutions Corporation
  17. ************************************************************************
  18. * History : 2011.04.08
  19. * : Ver 1.02
  20. * : CS-5 release.
  21. *""FILE COMMENT END""**************************************************/
  22. #ifndef R_PDL_BSC_RX62Nxx_H
  23. #define R_PDL_BSC_RX62Nxx_H
  24. #define BSC_AREAS 8
  25. /* Callback function storage */
  26. extern VoidCallBackFunc rpdl_BSC_callback_func;
  27. /* Library prototypes */
  28. bool R_BSC_CreateAll(
  29. const uint32_t,
  30. const uint32_t,
  31. const uint8_t,
  32. VoidCallBackFunc const,
  33. const uint8_t
  34. );
  35. bool R_BSC_CreateAreaAll(
  36. const uint8_t,
  37. const uint16_t,
  38. const uint8_t,
  39. const uint8_t,
  40. const uint8_t,
  41. const uint8_t,
  42. const uint8_t,
  43. const uint8_t,
  44. const uint8_t,
  45. const uint8_t,
  46. const uint8_t,
  47. const uint8_t,
  48. const uint8_t,
  49. const uint8_t,
  50. const uint8_t
  51. );
  52. bool R_BSC_SDRAM_CreateAreaAll(
  53. const uint16_t,
  54. const uint16_t,
  55. const uint8_t,
  56. const uint8_t,
  57. const uint8_t,
  58. const uint8_t,
  59. const uint8_t,
  60. const uint8_t,
  61. const uint8_t,
  62. const uint8_t,
  63. const uint8_t,
  64. const uint16_t
  65. );
  66. bool R_BSC_DestroyAll(
  67. const uint8_t
  68. );
  69. bool R_BSC_ControlAll(
  70. const uint16_t
  71. );
  72. bool R_BSC_GetStatusAll(
  73. volatile uint8_t * const,
  74. volatile uint16_t * const,
  75. volatile uint8_t * const
  76. );
  77. bool ReturnFalse(void);
  78. /* Macro definitions */
  79. #define R_BSC_Create(a, b, c, d, e) \
  80. ( \
  81. ( (e) <= IPL_MAX ) ? \
  82. R_BSC_CreateAll( (a), (b), (c), (d), (e) ) : \
  83. ReturnFalse() \
  84. )
  85. #define R_BSC_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) \
  86. ( \
  87. ( (a) < BSC_AREAS ) ? \
  88. R_BSC_CreateAreaAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l), (m), (n), (o) ) : \
  89. ReturnFalse() \
  90. )
  91. #if defined (DEVICE_PACKAGE_LQFP_100) || defined (DEVICE_PACKAGE_TFLGA_85)
  92. #define R_BSC_SDRAM_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l) \
  93. ( \
  94. ReturnFalse() \
  95. )
  96. #else
  97. #define R_BSC_SDRAM_CreateArea(a, b, c, d, e, f, g, h, i, j, k, l) \
  98. ( \
  99. R_BSC_SDRAM_CreateAreaAll( (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l) ) \
  100. )
  101. #endif
  102. #define R_BSC_Destroy(a) \
  103. ( \
  104. ( (a) < BSC_AREAS ) ? \
  105. R_BSC_DestroyAll( (a) ) : \
  106. ReturnFalse() \
  107. )
  108. #define R_BSC_Control(a) \
  109. ( \
  110. R_BSC_ControlAll( (a) ) \
  111. )
  112. #define R_BSC_GetStatus(a, b, c) \
  113. ( \
  114. R_BSC_GetStatusAll( (a), (b), (c) ) \
  115. )
  116. #endif
  117. /* End of file */