hal_data.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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_ethsw.h"
  8. #include "r_ether_switch_api.h"
  9. #include "r_ether_selector.h"
  10. #include "r_ether_selector_api.h"
  11. #include "r_ether_phy.h"
  12. #include "r_ether_phy_api.h"
  13. #include "r_gmac.h"
  14. #include "r_ether_api.h"
  15. #include "r_sci_uart.h"
  16. #include "r_uart_api.h"
  17. FSP_HEADER
  18. /** ether on ethsw Instance. */
  19. extern const ether_switch_instance_t g_ethsw0;
  20. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  21. extern ethsw_instance_ctrl_t g_ethsw0_ctrl;
  22. extern const ether_switch_cfg_t g_ethsw0_cfg;
  23. #ifndef gmac_callback_ethsw
  24. void gmac_callback_ethsw(ether_switch_callback_args_t * const p_arg);
  25. #endif
  26. /** ether_selector on ether_selector Instance. */
  27. extern const ether_selector_instance_t g_ether_selector1;
  28. /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
  29. extern ether_selector_instance_ctrl_t g_ether_selector1_ctrl;
  30. extern const ether_selector_cfg_t g_ether_selector1_cfg;
  31. #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
  32. #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
  33. #endif
  34. #ifndef ether_phy_targets_initialize_rtl8211_rgmii
  35. void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
  36. #endif
  37. /** ether_phy on ether_phy Instance. */
  38. extern const ether_phy_instance_t g_ether_phy1;
  39. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  40. extern ether_phy_instance_ctrl_t g_ether_phy1_ctrl;
  41. extern const ether_phy_cfg_t g_ether_phy1_cfg;
  42. /** ether_selector on ether_selector Instance. */
  43. extern const ether_selector_instance_t g_ether_selector0;
  44. /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
  45. extern ether_selector_instance_ctrl_t g_ether_selector0_ctrl;
  46. extern const ether_selector_cfg_t g_ether_selector0_cfg;
  47. #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
  48. #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
  49. #endif
  50. #ifndef ether_phy_targets_initialize_rtl8211_rgmii
  51. void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
  52. #endif
  53. /** ether_phy on ether_phy Instance. */
  54. extern const ether_phy_instance_t g_ether_phy0;
  55. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  56. extern ether_phy_instance_ctrl_t g_ether_phy0_ctrl;
  57. extern const ether_phy_cfg_t g_ether_phy0_cfg;
  58. /** ether on ether Instance. */
  59. extern const ether_instance_t g_ether0;
  60. /** Access the Ethernet instance using these structures when calling API functions directly (::p_api is not used). */
  61. extern gmac_instance_ctrl_t g_ether0_ctrl;
  62. extern const ether_cfg_t g_ether0_cfg;
  63. #ifndef user_ether0_callback
  64. void user_ether0_callback(ether_callback_args_t * p_args);
  65. #endif
  66. /** UART on SCI Instance. */
  67. extern const uart_instance_t g_uart0;
  68. /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
  69. extern sci_uart_instance_ctrl_t g_uart0_ctrl;
  70. extern const uart_cfg_t g_uart0_cfg;
  71. extern const sci_uart_extended_cfg_t g_uart0_cfg_extend;
  72. #ifndef user_uart0_callback
  73. void user_uart0_callback(uart_callback_args_t * p_args);
  74. #endif
  75. #define FSP_NOT_DEFINED (1)
  76. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  77. #define g_uart0_P_TRANSFER_TX (NULL)
  78. #else
  79. #define g_uart0_P_TRANSFER_TX (&FSP_NOT_DEFINED)
  80. #endif
  81. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  82. #define g_uart0_P_TRANSFER_RX (NULL)
  83. #else
  84. #define g_uart0_P_TRANSFER_RX (&FSP_NOT_DEFINED)
  85. #endif
  86. #undef FSP_NOT_DEFINED
  87. void hal_entry(void);
  88. void g_hal_init(void);
  89. FSP_FOOTER
  90. #endif /* HAL_DATA_H_ */