| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469 |
- /* generated HAL header file - do not edit */
- #ifndef HAL_DATA_H_
- #define HAL_DATA_H_
- #include <stdint.h>
- #include "bsp_api.h"
- #include "common_data.h"
- #include "r_gpt.h"
- #include "r_timer_api.h"
- #include "r_canfd.h"
- #include "r_can_api.h"
- #include "r_rtc.h"
- #include "r_rtc_api.h"
- #include "r_sci_uart.h"
- #include "r_uart_api.h"
- #include "r_iic_master.h"
- #include "r_i2c_master_api.h"
- #include "r_adc.h"
- #include "r_adc_api.h"
- #include "r_xspi_hyper.h"
- #include "r_hyperbus_api.h"
- #include "r_ethsw.h"
- #include "r_ether_switch_api.h"
- #include "r_ether_selector.h"
- #include "r_ether_selector_api.h"
- #include "r_ether_phy.h"
- #include "r_ether_phy_api.h"
- #include "r_gmac.h"
- #include "r_ether_api.h"
- FSP_HEADER
- /** Timer on GPT Instance. */
- extern const timer_instance_t g_timer17;
- /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
- extern gpt_instance_ctrl_t g_timer17_ctrl;
- extern const timer_cfg_t g_timer17_cfg;
- #ifndef gpt17_timing_callback
- void gpt17_timing_callback(timer_callback_args_t * p_args);
- #endif
- #ifndef NULL
- void NULL(timer_callback_args_t * p_args);
- #endif
- /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
- #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
- #ifndef TIMER_GPT01_3_INT0_DISABLE
- #define TIMER_GPT01_3_INT0_DISABLE
- #else
- #ifdef TIMER_GPT01_3_INT0_ENABLE
- #error "GPT_INT0 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT01_3_INT1_DISABLE
- #define TIMER_GPT01_3_INT1_DISABLE
- #else
- #ifdef TIMER_GPT01_3_INT1_ENABLE
- #error "GPT_INT1 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT01_3_INT2_DISABLE
- #define TIMER_GPT01_3_INT2_DISABLE
- #else
- #ifdef TIMER_GPT01_3_INT2_ENABLE
- #error "GPT_INT2 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT01_3_INT3_DISABLE
- #define TIMER_GPT01_3_INT3_DISABLE
- #else
- #ifdef TIMER_GPT01_3_INT3_ENABLE
- #error "GPT_INT3 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #endif
- /** Timer on GPT Instance. */
- extern const timer_instance_t g_timer14;
- /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
- extern gpt_instance_ctrl_t g_timer14_ctrl;
- extern const timer_cfg_t g_timer14_cfg;
- #ifndef gpt14_timing_callback
- void gpt14_timing_callback(timer_callback_args_t * p_args);
- #endif
- #ifndef NULL
- void NULL(timer_callback_args_t * p_args);
- #endif
- /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
- #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
- #ifndef TIMER_GPT01_1_INT0_DISABLE
- #define TIMER_GPT01_1_INT0_DISABLE
- #else
- #ifdef TIMER_GPT01_1_INT0_ENABLE
- #error "GPT_INT0 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT01_1_INT1_DISABLE
- #define TIMER_GPT01_1_INT1_DISABLE
- #else
- #ifdef TIMER_GPT01_1_INT1_ENABLE
- #error "GPT_INT1 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT01_1_INT2_DISABLE
- #define TIMER_GPT01_1_INT2_DISABLE
- #else
- #ifdef TIMER_GPT01_1_INT2_ENABLE
- #error "GPT_INT2 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT01_1_INT3_DISABLE
- #define TIMER_GPT01_1_INT3_DISABLE
- #else
- #ifdef TIMER_GPT01_1_INT3_ENABLE
- #error "GPT_INT3 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #endif
- /** Timer on GPT Instance. */
- extern const timer_instance_t g_timer15;
- /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
- extern gpt_instance_ctrl_t g_timer15_ctrl;
- extern const timer_cfg_t g_timer15_cfg;
- #ifndef gpt15_timing_callback
- void gpt15_timing_callback(timer_callback_args_t * p_args);
- #endif
- #ifndef NULL
- void NULL(timer_callback_args_t * p_args);
- #endif
- /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
- #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
- #ifndef TIMER_GPT00_2_INT0_DISABLE
- #define TIMER_GPT00_2_INT0_DISABLE
- #else
- #ifdef TIMER_GPT00_2_INT0_ENABLE
- #error "GPT_INT0 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_2_INT1_DISABLE
- #define TIMER_GPT00_2_INT1_DISABLE
- #else
- #ifdef TIMER_GPT00_2_INT1_ENABLE
- #error "GPT_INT1 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_2_INT2_DISABLE
- #define TIMER_GPT00_2_INT2_DISABLE
- #else
- #ifdef TIMER_GPT00_2_INT2_ENABLE
- #error "GPT_INT2 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_2_INT3_DISABLE
- #define TIMER_GPT00_2_INT3_DISABLE
- #else
- #ifdef TIMER_GPT00_2_INT3_ENABLE
- #error "GPT_INT3 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #endif
- /** Timer on GPT Instance. */
- extern const timer_instance_t g_timer6;
- /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
- extern gpt_instance_ctrl_t g_timer6_ctrl;
- extern const timer_cfg_t g_timer6_cfg;
- #ifndef gpt6_timing_callback
- void gpt6_timing_callback(timer_callback_args_t * p_args);
- #endif
- #ifndef NULL
- void NULL(timer_callback_args_t * p_args);
- #endif
- /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
- #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
- #ifndef TIMER_GPT00_1_INT0_DISABLE
- #define TIMER_GPT00_1_INT0_DISABLE
- #else
- #ifdef TIMER_GPT00_1_INT0_ENABLE
- #error "GPT_INT0 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_1_INT1_DISABLE
- #define TIMER_GPT00_1_INT1_DISABLE
- #else
- #ifdef TIMER_GPT00_1_INT1_ENABLE
- #error "GPT_INT1 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_1_INT2_DISABLE
- #define TIMER_GPT00_1_INT2_DISABLE
- #else
- #ifdef TIMER_GPT00_1_INT2_ENABLE
- #error "GPT_INT2 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_1_INT3_DISABLE
- #define TIMER_GPT00_1_INT3_DISABLE
- #else
- #ifdef TIMER_GPT00_1_INT3_ENABLE
- #error "GPT_INT3 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #endif
- /** Timer on GPT Instance. */
- extern const timer_instance_t g_timer5;
- /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
- extern gpt_instance_ctrl_t g_timer5_ctrl;
- extern const timer_cfg_t g_timer5_cfg;
- #ifndef gpt5_timing_callback
- void gpt5_timing_callback(timer_callback_args_t * p_args);
- #endif
- #ifndef NULL
- void NULL(timer_callback_args_t * p_args);
- #endif
- /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
- #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
- #ifndef TIMER_GPT00_3_INT0_DISABLE
- #define TIMER_GPT00_3_INT0_DISABLE
- #else
- #ifdef TIMER_GPT00_3_INT0_ENABLE
- #error "GPT_INT0 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_3_INT1_DISABLE
- #define TIMER_GPT00_3_INT1_DISABLE
- #else
- #ifdef TIMER_GPT00_3_INT1_ENABLE
- #error "GPT_INT1 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_3_INT2_DISABLE
- #define TIMER_GPT00_3_INT2_DISABLE
- #else
- #ifdef TIMER_GPT00_3_INT2_ENABLE
- #error "GPT_INT2 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #ifndef TIMER_GPT00_3_INT3_DISABLE
- #define TIMER_GPT00_3_INT3_DISABLE
- #else
- #ifdef TIMER_GPT00_3_INT3_ENABLE
- #error "GPT_INT3 of GPT_SEL cannot be duplicated"
- #endif
- #endif
- #endif
- /** CANFD on CANFD Instance. */
- extern const can_instance_t g_canfd1;
- /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
- extern canfd_instance_ctrl_t g_canfd1_ctrl;
- extern const can_cfg_t g_canfd1_cfg;
- extern const canfd_extended_cfg_t g_canfd1_cfg_extend;
- #ifndef canfd1_callback
- void canfd1_callback(can_callback_args_t * p_args);
- #endif
- /* Global configuration (referenced by all instances) */
- extern canfd_global_cfg_t g_canfd_global_cfg;
- /* RTC Instance. */
- extern const rtc_instance_t g_rtc;
- /** Access the RTC instance using these structures when calling API functions directly (::p_api is not used). */
- extern rtc_instance_ctrl_t g_rtc_ctrl;
- extern const rtc_cfg_t g_rtc_cfg;
- #ifndef rtc_callback
- void rtc_callback(rtc_callback_args_t * p_args);
- #endif
- /** UART on SCI Instance. */
- extern const uart_instance_t g_uart5;
- /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
- extern sci_uart_instance_ctrl_t g_uart5_ctrl;
- extern const uart_cfg_t g_uart5_cfg;
- extern const sci_uart_extended_cfg_t g_uart5_cfg_extend;
- #ifndef rs485_callback
- void rs485_callback(uart_callback_args_t * p_args);
- #endif
- #define FSP_NOT_DEFINED (1)
- #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
- #define g_uart5_P_TRANSFER_TX (NULL)
- #else
- #define g_uart5_P_TRANSFER_TX (&FSP_NOT_DEFINED)
- #endif
- #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
- #define g_uart5_P_TRANSFER_RX (NULL)
- #else
- #define g_uart5_P_TRANSFER_RX (&FSP_NOT_DEFINED)
- #endif
- #undef FSP_NOT_DEFINED
- /** CANFD on CANFD Instance. */
- extern const can_instance_t g_canfd0;
- /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
- extern canfd_instance_ctrl_t g_canfd0_ctrl;
- extern const can_cfg_t g_canfd0_cfg;
- extern const canfd_extended_cfg_t g_canfd0_cfg_extend;
- #ifndef canfd0_callback
- void canfd0_callback(can_callback_args_t * p_args);
- #endif
- /* Global configuration (referenced by all instances) */
- extern canfd_global_cfg_t g_canfd_global_cfg;
- /* I2C Master on IIC Instance. */
- extern const i2c_master_instance_t g_i2c_master0;
- /** Access the I2C Master instance using these structures when calling API functions directly (::p_api is not used). */
- extern iic_master_instance_ctrl_t g_i2c_master0_ctrl;
- extern const i2c_master_cfg_t g_i2c_master0_cfg;
- #ifndef NULL
- void NULL(i2c_master_callback_args_t * p_args);
- #endif
- #define FSP_NOT_DEFINED (1)
- #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
- #define g_i2c_master0_P_TRANSFER_TX (NULL)
- #else
- #define g_i2c_master0_P_TRANSFER_TX (&FSP_NOT_DEFINED)
- #endif
- #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
- #define g_i2c_master0_P_TRANSFER_RX (NULL)
- #else
- #define g_i2c_master0_P_TRANSFER_RX (&FSP_NOT_DEFINED)
- #endif
- #undef FSP_NOT_DEFINED
- /** ADC on ADC Instance. */
- extern const adc_instance_t g_adc1;
- /** Access the ADC instance using these structures when calling API functions directly (::p_api is not used). */
- extern adc_instance_ctrl_t g_adc1_ctrl;
- extern const adc_cfg_t g_adc1_cfg;
- extern const adc_channel_cfg_t g_adc1_channel_cfg;
- #ifndef NULL
- void NULL(adc_callback_args_t * p_args);
- #endif
- /** ADC on ADC Instance. */
- extern const adc_instance_t g_adc0;
- /** Access the ADC instance using these structures when calling API functions directly (::p_api is not used). */
- extern adc_instance_ctrl_t g_adc0_ctrl;
- extern const adc_cfg_t g_adc0_cfg;
- extern const adc_channel_cfg_t g_adc0_channel_cfg;
- #ifndef NULL
- void NULL(adc_callback_args_t * p_args);
- #endif
- extern const hyperbus_instance_t g_hyperbus0;
- extern xspi_hyper_instance_ctrl_t g_hyperbus0_ctrl;
- extern const hyperbus_cfg_t g_hyperbus0_cfg;
- /** ether on ethsw Instance. */
- extern const ether_switch_instance_t g_ethsw0;
- /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
- extern ethsw_instance_ctrl_t g_ethsw0_ctrl;
- extern const ether_switch_cfg_t g_ethsw0_cfg;
- #ifndef gmac_callback_ethsw
- void gmac_callback_ethsw(ether_switch_callback_args_t * const p_arg);
- #endif
- /** ether_selector on ether_selector Instance. */
- extern const ether_selector_instance_t g_ether_selector2;
- /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
- extern ether_selector_instance_ctrl_t g_ether_selector2_ctrl;
- extern const ether_selector_cfg_t g_ether_selector2_cfg;
- #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
- #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
- #endif
- #ifndef ether_phy_targets_initialize_rtl8211_rgmii
- void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
- #endif
- /** ether_phy on ether_phy Instance. */
- extern const ether_phy_instance_t g_ether_phy2;
- /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
- extern ether_phy_instance_ctrl_t g_ether_phy2_ctrl;
- extern const ether_phy_cfg_t g_ether_phy2_cfg;
- /** ether_selector on ether_selector Instance. */
- extern const ether_selector_instance_t g_ether_selector1;
- /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
- extern ether_selector_instance_ctrl_t g_ether_selector1_ctrl;
- extern const ether_selector_cfg_t g_ether_selector1_cfg;
- #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
- #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
- #endif
- #ifndef ether_phy_targets_initialize_rtl8211_rgmii
- void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
- #endif
- /** ether_phy on ether_phy Instance. */
- extern const ether_phy_instance_t g_ether_phy1;
- /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
- extern ether_phy_instance_ctrl_t g_ether_phy1_ctrl;
- extern const ether_phy_cfg_t g_ether_phy1_cfg;
- /** ether_selector on ether_selector Instance. */
- extern const ether_selector_instance_t g_ether_selector0;
- /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
- extern ether_selector_instance_ctrl_t g_ether_selector0_ctrl;
- extern const ether_selector_cfg_t g_ether_selector0_cfg;
- #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
- #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
- #endif
- #ifndef ether_phy_targets_initialize_rtl8211_rgmii
- void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
- #endif
- /** ether_phy on ether_phy Instance. */
- extern const ether_phy_instance_t g_ether_phy0;
- /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
- extern ether_phy_instance_ctrl_t g_ether_phy0_ctrl;
- extern const ether_phy_cfg_t g_ether_phy0_cfg;
- /** ether on ether Instance. */
- extern const ether_instance_t g_ether0;
- /** Access the Ethernet instance using these structures when calling API functions directly (::p_api is not used). */
- extern gmac_instance_ctrl_t g_ether0_ctrl;
- extern const ether_cfg_t g_ether0_cfg;
- #ifndef user_ether0_callback
- void user_ether0_callback(ether_callback_args_t * p_args);
- #endif
- /** UART on SCI Instance. */
- extern const uart_instance_t g_uart0;
- /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
- extern sci_uart_instance_ctrl_t g_uart0_ctrl;
- extern const uart_cfg_t g_uart0_cfg;
- extern const sci_uart_extended_cfg_t g_uart0_cfg_extend;
- #ifndef user_uart0_callback
- void user_uart0_callback(uart_callback_args_t * p_args);
- #endif
- #define FSP_NOT_DEFINED (1)
- #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
- #define g_uart0_P_TRANSFER_TX (NULL)
- #else
- #define g_uart0_P_TRANSFER_TX (&FSP_NOT_DEFINED)
- #endif
- #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
- #define g_uart0_P_TRANSFER_RX (NULL)
- #else
- #define g_uart0_P_TRANSFER_RX (&FSP_NOT_DEFINED)
- #endif
- #undef FSP_NOT_DEFINED
- void hal_entry(void);
- void g_hal_init(void);
- FSP_FOOTER
- #endif /* HAL_DATA_H_ */
|