hal_data.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /* generated HAL header file - do not edit */
  2. #ifndef HAL_DATA_H_
  3. #define HAL_DATA_H_
  4. #include <stdint.h>
  5. #include "bsp_api.h"
  6. #include "common_data.h"
  7. #include "r_gpt.h"
  8. #include "r_timer_api.h"
  9. #include "r_canfd.h"
  10. #include "r_can_api.h"
  11. #include "r_sci_uart.h"
  12. #include "r_uart_api.h"
  13. FSP_HEADER
  14. /** Timer on GPT Instance. */
  15. extern const timer_instance_t g_timer1;
  16. /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
  17. extern gpt_instance_ctrl_t g_timer1_ctrl;
  18. extern const timer_cfg_t g_timer1_cfg;
  19. #ifndef timer1_callback
  20. void timer1_callback(timer_callback_args_t * p_args);
  21. #endif
  22. #ifndef NULL
  23. void NULL(timer_callback_args_t * p_args);
  24. #endif
  25. /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
  26. #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
  27. #ifndef TIMER_GPT01_1_INT0_DISABLE
  28. #define TIMER_GPT01_1_INT0_DISABLE
  29. #else
  30. #ifdef TIMER_GPT01_1_INT0_ENABLE
  31. #error "GPT_INT0 of GPT_SEL cannot be duplicated"
  32. #endif
  33. #endif
  34. #ifndef TIMER_GPT01_1_INT1_DISABLE
  35. #define TIMER_GPT01_1_INT1_DISABLE
  36. #else
  37. #ifdef TIMER_GPT01_1_INT1_ENABLE
  38. #error "GPT_INT1 of GPT_SEL cannot be duplicated"
  39. #endif
  40. #endif
  41. #ifndef TIMER_GPT01_1_INT2_DISABLE
  42. #define TIMER_GPT01_1_INT2_DISABLE
  43. #else
  44. #ifdef TIMER_GPT01_1_INT2_ENABLE
  45. #error "GPT_INT2 of GPT_SEL cannot be duplicated"
  46. #endif
  47. #endif
  48. #ifndef TIMER_GPT01_1_INT3_DISABLE
  49. #define TIMER_GPT01_1_INT3_DISABLE
  50. #else
  51. #ifdef TIMER_GPT01_1_INT3_ENABLE
  52. #error "GPT_INT3 of GPT_SEL cannot be duplicated"
  53. #endif
  54. #endif
  55. #endif
  56. /** CANFD on CANFD Instance. */
  57. extern const can_instance_t g_canfd1;
  58. /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
  59. extern canfd_instance_ctrl_t g_canfd1_ctrl;
  60. extern const can_cfg_t g_canfd1_cfg;
  61. extern const canfd_extended_cfg_t g_canfd1_cfg_extend;
  62. #ifndef canfd1_callback
  63. void canfd1_callback(can_callback_args_t * p_args);
  64. #endif
  65. /* Global configuration (referenced by all instances) */
  66. extern canfd_global_cfg_t g_canfd_global_cfg;
  67. /** CANFD on CANFD Instance. */
  68. extern const can_instance_t g_canfd0;
  69. /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
  70. extern canfd_instance_ctrl_t g_canfd0_ctrl;
  71. extern const can_cfg_t g_canfd0_cfg;
  72. extern const canfd_extended_cfg_t g_canfd0_cfg_extend;
  73. #ifndef canfd0_callback
  74. void canfd0_callback(can_callback_args_t * p_args);
  75. #endif
  76. /* Global configuration (referenced by all instances) */
  77. extern canfd_global_cfg_t g_canfd_global_cfg;
  78. /** UART on SCI Instance. */
  79. extern const uart_instance_t g_uart0;
  80. /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
  81. extern sci_uart_instance_ctrl_t g_uart0_ctrl;
  82. extern const uart_cfg_t g_uart0_cfg;
  83. extern const sci_uart_extended_cfg_t g_uart0_cfg_extend;
  84. #ifndef user_uart0_callback
  85. void user_uart0_callback(uart_callback_args_t * p_args);
  86. #endif
  87. #define FSP_NOT_DEFINED (1)
  88. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  89. #define g_uart0_P_TRANSFER_TX (NULL)
  90. #else
  91. #define g_uart0_P_TRANSFER_TX (&FSP_NOT_DEFINED)
  92. #endif
  93. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  94. #define g_uart0_P_TRANSFER_RX (NULL)
  95. #else
  96. #define g_uart0_P_TRANSFER_RX (&FSP_NOT_DEFINED)
  97. #endif
  98. #undef FSP_NOT_DEFINED
  99. void hal_entry(void);
  100. void g_hal_init(void);
  101. FSP_FOOTER
  102. #endif /* HAL_DATA_H_ */