common_data.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* generated common header file - do not edit */
  2. #ifndef COMMON_DATA_H_
  3. #define COMMON_DATA_H_
  4. #include <stdint.h>
  5. #include "bsp_api.h"
  6. #include "r_cmt.h"
  7. #include "r_timer_api.h"
  8. #include "r_ether_selector.h"
  9. #include "r_ether_selector_api.h"
  10. #include "r_ether_phy.h"
  11. #include "r_ether_phy_api.h"
  12. #include "rm_ethercat_ssc_port.h"
  13. #include "rm_ethercat_ssc_port_api.h"
  14. #include "r_ioport.h"
  15. #include "bsp_pin_cfg.h"
  16. FSP_HEADER
  17. /** Timer on CMT Instance. */
  18. extern const timer_instance_t g_timer0;
  19. /** Access the CMT instance using these structures when calling API functions directly (::p_api is not used). */
  20. extern cmt_instance_ctrl_t g_timer0_ctrl;
  21. extern const timer_cfg_t g_timer0_cfg;
  22. #ifndef rm_ssc_port_timer_interrupt
  23. void rm_ssc_port_timer_interrupt(timer_callback_args_t * p_args);
  24. #endif
  25. /** ether_selector on ether_selector Instance. */
  26. extern const ether_selector_instance_t g_ether_selector1;
  27. /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
  28. extern ether_selector_instance_ctrl_t g_ether_selector1_ctrl;
  29. extern const ether_selector_cfg_t g_ether_selector1_cfg;
  30. #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
  31. #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
  32. #endif
  33. #ifndef phy_rtl8211f_initial
  34. void phy_rtl8211f_initial(ether_phy_instance_ctrl_t * p_instance_ctrl);
  35. #endif
  36. /** ether_phy on ether_phy Instance. */
  37. extern const ether_phy_instance_t g_ether_phy1;
  38. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  39. extern ether_phy_instance_ctrl_t g_ether_phy1_ctrl;
  40. extern const ether_phy_cfg_t g_ether_phy1_cfg;
  41. /** ether_selector on ether_selector Instance. */
  42. extern const ether_selector_instance_t g_ether_selector0;
  43. /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
  44. extern ether_selector_instance_ctrl_t g_ether_selector0_ctrl;
  45. extern const ether_selector_cfg_t g_ether_selector0_cfg;
  46. #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
  47. #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
  48. #endif
  49. #ifndef phy_rtl8211f_initial
  50. void phy_rtl8211f_initial(ether_phy_instance_ctrl_t * p_instance_ctrl);
  51. #endif
  52. /** ether_phy on ether_phy Instance. */
  53. extern const ether_phy_instance_t g_ether_phy0;
  54. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  55. extern ether_phy_instance_ctrl_t g_ether_phy0_ctrl;
  56. extern const ether_phy_cfg_t g_ether_phy0_cfg;
  57. /** ethercat_ssc_port on ethercat_ssc_port Instance. */
  58. extern const ethercat_ssc_port_instance_t g_ethercat_ssc_port0;
  59. /** Access the EtherCAT SSC Port instance using these structures when calling API functions directly (::p_api is not used). */
  60. extern ethercat_ssc_port_instance_ctrl_t g_ethercat_ssc_port0_ctrl;
  61. extern const ethercat_ssc_port_extend_cfg_t g_ethercat_ssc_port0_ext_cfg;
  62. extern const ethercat_ssc_port_cfg_t g_ethercat_ssc_port0_cfg;
  63. extern ethercat_ssc_port_instance_t const * gp_ethercat_ssc_port;
  64. #ifndef NULL
  65. void NULL(ethercat_ssc_port_callback_args_t * p_args);
  66. #endif
  67. /* IOPORT Instance */
  68. extern const ioport_instance_t g_ioport;
  69. /* IOPORT control structure. */
  70. extern ioport_instance_ctrl_t g_ioport_ctrl;
  71. void g_common_init(void);
  72. FSP_FOOTER
  73. #endif /* COMMON_DATA_H_ */