hal_data.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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_rtc.h"
  12. #include "r_rtc_api.h"
  13. #include "r_sci_uart.h"
  14. #include "r_uart_api.h"
  15. #include "r_iic_master.h"
  16. #include "r_i2c_master_api.h"
  17. #include "r_adc.h"
  18. #include "r_adc_api.h"
  19. #include "r_xspi_hyper.h"
  20. #include "r_hyperbus_api.h"
  21. #include "r_ethsw.h"
  22. #include "r_ether_switch_api.h"
  23. #include "r_ether_selector.h"
  24. #include "r_ether_selector_api.h"
  25. #include "r_ether_phy.h"
  26. #include "r_ether_phy_api.h"
  27. #include "r_gmac.h"
  28. #include "r_ether_api.h"
  29. FSP_HEADER
  30. /** Timer on GPT Instance. */
  31. extern const timer_instance_t g_timer17;
  32. /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
  33. extern gpt_instance_ctrl_t g_timer17_ctrl;
  34. extern const timer_cfg_t g_timer17_cfg;
  35. #ifndef gpt17_timing_callback
  36. void gpt17_timing_callback(timer_callback_args_t * p_args);
  37. #endif
  38. #ifndef NULL
  39. void NULL(timer_callback_args_t * p_args);
  40. #endif
  41. /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
  42. #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
  43. #ifndef TIMER_GPT01_3_INT0_DISABLE
  44. #define TIMER_GPT01_3_INT0_DISABLE
  45. #else
  46. #ifdef TIMER_GPT01_3_INT0_ENABLE
  47. #error "GPT_INT0 of GPT_SEL cannot be duplicated"
  48. #endif
  49. #endif
  50. #ifndef TIMER_GPT01_3_INT1_DISABLE
  51. #define TIMER_GPT01_3_INT1_DISABLE
  52. #else
  53. #ifdef TIMER_GPT01_3_INT1_ENABLE
  54. #error "GPT_INT1 of GPT_SEL cannot be duplicated"
  55. #endif
  56. #endif
  57. #ifndef TIMER_GPT01_3_INT2_DISABLE
  58. #define TIMER_GPT01_3_INT2_DISABLE
  59. #else
  60. #ifdef TIMER_GPT01_3_INT2_ENABLE
  61. #error "GPT_INT2 of GPT_SEL cannot be duplicated"
  62. #endif
  63. #endif
  64. #ifndef TIMER_GPT01_3_INT3_DISABLE
  65. #define TIMER_GPT01_3_INT3_DISABLE
  66. #else
  67. #ifdef TIMER_GPT01_3_INT3_ENABLE
  68. #error "GPT_INT3 of GPT_SEL cannot be duplicated"
  69. #endif
  70. #endif
  71. #endif
  72. /** Timer on GPT Instance. */
  73. extern const timer_instance_t g_timer14;
  74. /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
  75. extern gpt_instance_ctrl_t g_timer14_ctrl;
  76. extern const timer_cfg_t g_timer14_cfg;
  77. #ifndef gpt14_timing_callback
  78. void gpt14_timing_callback(timer_callback_args_t * p_args);
  79. #endif
  80. #ifndef NULL
  81. void NULL(timer_callback_args_t * p_args);
  82. #endif
  83. /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
  84. #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
  85. #ifndef TIMER_GPT01_1_INT0_DISABLE
  86. #define TIMER_GPT01_1_INT0_DISABLE
  87. #else
  88. #ifdef TIMER_GPT01_1_INT0_ENABLE
  89. #error "GPT_INT0 of GPT_SEL cannot be duplicated"
  90. #endif
  91. #endif
  92. #ifndef TIMER_GPT01_1_INT1_DISABLE
  93. #define TIMER_GPT01_1_INT1_DISABLE
  94. #else
  95. #ifdef TIMER_GPT01_1_INT1_ENABLE
  96. #error "GPT_INT1 of GPT_SEL cannot be duplicated"
  97. #endif
  98. #endif
  99. #ifndef TIMER_GPT01_1_INT2_DISABLE
  100. #define TIMER_GPT01_1_INT2_DISABLE
  101. #else
  102. #ifdef TIMER_GPT01_1_INT2_ENABLE
  103. #error "GPT_INT2 of GPT_SEL cannot be duplicated"
  104. #endif
  105. #endif
  106. #ifndef TIMER_GPT01_1_INT3_DISABLE
  107. #define TIMER_GPT01_1_INT3_DISABLE
  108. #else
  109. #ifdef TIMER_GPT01_1_INT3_ENABLE
  110. #error "GPT_INT3 of GPT_SEL cannot be duplicated"
  111. #endif
  112. #endif
  113. #endif
  114. /** Timer on GPT Instance. */
  115. extern const timer_instance_t g_timer15;
  116. /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
  117. extern gpt_instance_ctrl_t g_timer15_ctrl;
  118. extern const timer_cfg_t g_timer15_cfg;
  119. #ifndef gpt15_timing_callback
  120. void gpt15_timing_callback(timer_callback_args_t * p_args);
  121. #endif
  122. #ifndef NULL
  123. void NULL(timer_callback_args_t * p_args);
  124. #endif
  125. /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
  126. #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
  127. #ifndef TIMER_GPT00_2_INT0_DISABLE
  128. #define TIMER_GPT00_2_INT0_DISABLE
  129. #else
  130. #ifdef TIMER_GPT00_2_INT0_ENABLE
  131. #error "GPT_INT0 of GPT_SEL cannot be duplicated"
  132. #endif
  133. #endif
  134. #ifndef TIMER_GPT00_2_INT1_DISABLE
  135. #define TIMER_GPT00_2_INT1_DISABLE
  136. #else
  137. #ifdef TIMER_GPT00_2_INT1_ENABLE
  138. #error "GPT_INT1 of GPT_SEL cannot be duplicated"
  139. #endif
  140. #endif
  141. #ifndef TIMER_GPT00_2_INT2_DISABLE
  142. #define TIMER_GPT00_2_INT2_DISABLE
  143. #else
  144. #ifdef TIMER_GPT00_2_INT2_ENABLE
  145. #error "GPT_INT2 of GPT_SEL cannot be duplicated"
  146. #endif
  147. #endif
  148. #ifndef TIMER_GPT00_2_INT3_DISABLE
  149. #define TIMER_GPT00_2_INT3_DISABLE
  150. #else
  151. #ifdef TIMER_GPT00_2_INT3_ENABLE
  152. #error "GPT_INT3 of GPT_SEL cannot be duplicated"
  153. #endif
  154. #endif
  155. #endif
  156. /** Timer on GPT Instance. */
  157. extern const timer_instance_t g_timer6;
  158. /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
  159. extern gpt_instance_ctrl_t g_timer6_ctrl;
  160. extern const timer_cfg_t g_timer6_cfg;
  161. #ifndef gpt6_timing_callback
  162. void gpt6_timing_callback(timer_callback_args_t * p_args);
  163. #endif
  164. #ifndef NULL
  165. void NULL(timer_callback_args_t * p_args);
  166. #endif
  167. /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
  168. #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
  169. #ifndef TIMER_GPT00_1_INT0_DISABLE
  170. #define TIMER_GPT00_1_INT0_DISABLE
  171. #else
  172. #ifdef TIMER_GPT00_1_INT0_ENABLE
  173. #error "GPT_INT0 of GPT_SEL cannot be duplicated"
  174. #endif
  175. #endif
  176. #ifndef TIMER_GPT00_1_INT1_DISABLE
  177. #define TIMER_GPT00_1_INT1_DISABLE
  178. #else
  179. #ifdef TIMER_GPT00_1_INT1_ENABLE
  180. #error "GPT_INT1 of GPT_SEL cannot be duplicated"
  181. #endif
  182. #endif
  183. #ifndef TIMER_GPT00_1_INT2_DISABLE
  184. #define TIMER_GPT00_1_INT2_DISABLE
  185. #else
  186. #ifdef TIMER_GPT00_1_INT2_ENABLE
  187. #error "GPT_INT2 of GPT_SEL cannot be duplicated"
  188. #endif
  189. #endif
  190. #ifndef TIMER_GPT00_1_INT3_DISABLE
  191. #define TIMER_GPT00_1_INT3_DISABLE
  192. #else
  193. #ifdef TIMER_GPT00_1_INT3_ENABLE
  194. #error "GPT_INT3 of GPT_SEL cannot be duplicated"
  195. #endif
  196. #endif
  197. #endif
  198. /** Timer on GPT Instance. */
  199. extern const timer_instance_t g_timer5;
  200. /** Access the GPT instance using these structures when calling API functions directly (::p_api is not used). */
  201. extern gpt_instance_ctrl_t g_timer5_ctrl;
  202. extern const timer_cfg_t g_timer5_cfg;
  203. #ifndef gpt5_timing_callback
  204. void gpt5_timing_callback(timer_callback_args_t * p_args);
  205. #endif
  206. #ifndef NULL
  207. void NULL(timer_callback_args_t * p_args);
  208. #endif
  209. /** Error check the duplicated channel number, same GPT_INT number between MTU3 and GPT */
  210. #if (1 == BSP_FEATURE_BSP_IRQ_GPT_SEL_SUPPORTED)
  211. #ifndef TIMER_GPT00_3_INT0_DISABLE
  212. #define TIMER_GPT00_3_INT0_DISABLE
  213. #else
  214. #ifdef TIMER_GPT00_3_INT0_ENABLE
  215. #error "GPT_INT0 of GPT_SEL cannot be duplicated"
  216. #endif
  217. #endif
  218. #ifndef TIMER_GPT00_3_INT1_DISABLE
  219. #define TIMER_GPT00_3_INT1_DISABLE
  220. #else
  221. #ifdef TIMER_GPT00_3_INT1_ENABLE
  222. #error "GPT_INT1 of GPT_SEL cannot be duplicated"
  223. #endif
  224. #endif
  225. #ifndef TIMER_GPT00_3_INT2_DISABLE
  226. #define TIMER_GPT00_3_INT2_DISABLE
  227. #else
  228. #ifdef TIMER_GPT00_3_INT2_ENABLE
  229. #error "GPT_INT2 of GPT_SEL cannot be duplicated"
  230. #endif
  231. #endif
  232. #ifndef TIMER_GPT00_3_INT3_DISABLE
  233. #define TIMER_GPT00_3_INT3_DISABLE
  234. #else
  235. #ifdef TIMER_GPT00_3_INT3_ENABLE
  236. #error "GPT_INT3 of GPT_SEL cannot be duplicated"
  237. #endif
  238. #endif
  239. #endif
  240. /** CANFD on CANFD Instance. */
  241. extern const can_instance_t g_canfd1;
  242. /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
  243. extern canfd_instance_ctrl_t g_canfd1_ctrl;
  244. extern const can_cfg_t g_canfd1_cfg;
  245. extern const canfd_extended_cfg_t g_canfd1_cfg_extend;
  246. #ifndef canfd1_callback
  247. void canfd1_callback(can_callback_args_t * p_args);
  248. #endif
  249. /* Global configuration (referenced by all instances) */
  250. extern canfd_global_cfg_t g_canfd_global_cfg;
  251. /* RTC Instance. */
  252. extern const rtc_instance_t g_rtc;
  253. /** Access the RTC instance using these structures when calling API functions directly (::p_api is not used). */
  254. extern rtc_instance_ctrl_t g_rtc_ctrl;
  255. extern const rtc_cfg_t g_rtc_cfg;
  256. #ifndef rtc_callback
  257. void rtc_callback(rtc_callback_args_t * p_args);
  258. #endif
  259. /** UART on SCI Instance. */
  260. extern const uart_instance_t g_uart5;
  261. /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
  262. extern sci_uart_instance_ctrl_t g_uart5_ctrl;
  263. extern const uart_cfg_t g_uart5_cfg;
  264. extern const sci_uart_extended_cfg_t g_uart5_cfg_extend;
  265. #ifndef rs485_callback
  266. void rs485_callback(uart_callback_args_t * p_args);
  267. #endif
  268. #define FSP_NOT_DEFINED (1)
  269. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  270. #define g_uart5_P_TRANSFER_TX (NULL)
  271. #else
  272. #define g_uart5_P_TRANSFER_TX (&FSP_NOT_DEFINED)
  273. #endif
  274. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  275. #define g_uart5_P_TRANSFER_RX (NULL)
  276. #else
  277. #define g_uart5_P_TRANSFER_RX (&FSP_NOT_DEFINED)
  278. #endif
  279. #undef FSP_NOT_DEFINED
  280. /** CANFD on CANFD Instance. */
  281. extern const can_instance_t g_canfd0;
  282. /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
  283. extern canfd_instance_ctrl_t g_canfd0_ctrl;
  284. extern const can_cfg_t g_canfd0_cfg;
  285. extern const canfd_extended_cfg_t g_canfd0_cfg_extend;
  286. #ifndef canfd0_callback
  287. void canfd0_callback(can_callback_args_t * p_args);
  288. #endif
  289. /* Global configuration (referenced by all instances) */
  290. extern canfd_global_cfg_t g_canfd_global_cfg;
  291. /* I2C Master on IIC Instance. */
  292. extern const i2c_master_instance_t g_i2c_master0;
  293. /** Access the I2C Master instance using these structures when calling API functions directly (::p_api is not used). */
  294. extern iic_master_instance_ctrl_t g_i2c_master0_ctrl;
  295. extern const i2c_master_cfg_t g_i2c_master0_cfg;
  296. #ifndef NULL
  297. void NULL(i2c_master_callback_args_t * p_args);
  298. #endif
  299. #define FSP_NOT_DEFINED (1)
  300. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  301. #define g_i2c_master0_P_TRANSFER_TX (NULL)
  302. #else
  303. #define g_i2c_master0_P_TRANSFER_TX (&FSP_NOT_DEFINED)
  304. #endif
  305. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  306. #define g_i2c_master0_P_TRANSFER_RX (NULL)
  307. #else
  308. #define g_i2c_master0_P_TRANSFER_RX (&FSP_NOT_DEFINED)
  309. #endif
  310. #undef FSP_NOT_DEFINED
  311. /** ADC on ADC Instance. */
  312. extern const adc_instance_t g_adc1;
  313. /** Access the ADC instance using these structures when calling API functions directly (::p_api is not used). */
  314. extern adc_instance_ctrl_t g_adc1_ctrl;
  315. extern const adc_cfg_t g_adc1_cfg;
  316. extern const adc_channel_cfg_t g_adc1_channel_cfg;
  317. #ifndef NULL
  318. void NULL(adc_callback_args_t * p_args);
  319. #endif
  320. /** ADC on ADC Instance. */
  321. extern const adc_instance_t g_adc0;
  322. /** Access the ADC instance using these structures when calling API functions directly (::p_api is not used). */
  323. extern adc_instance_ctrl_t g_adc0_ctrl;
  324. extern const adc_cfg_t g_adc0_cfg;
  325. extern const adc_channel_cfg_t g_adc0_channel_cfg;
  326. #ifndef NULL
  327. void NULL(adc_callback_args_t * p_args);
  328. #endif
  329. extern const hyperbus_instance_t g_hyperbus0;
  330. extern xspi_hyper_instance_ctrl_t g_hyperbus0_ctrl;
  331. extern const hyperbus_cfg_t g_hyperbus0_cfg;
  332. /** ether on ethsw Instance. */
  333. extern const ether_switch_instance_t g_ethsw0;
  334. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  335. extern ethsw_instance_ctrl_t g_ethsw0_ctrl;
  336. extern const ether_switch_cfg_t g_ethsw0_cfg;
  337. #ifndef gmac_callback_ethsw
  338. void gmac_callback_ethsw(ether_switch_callback_args_t * const p_arg);
  339. #endif
  340. /** ether_selector on ether_selector Instance. */
  341. extern const ether_selector_instance_t g_ether_selector2;
  342. /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
  343. extern ether_selector_instance_ctrl_t g_ether_selector2_ctrl;
  344. extern const ether_selector_cfg_t g_ether_selector2_cfg;
  345. #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
  346. #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
  347. #endif
  348. #ifndef ether_phy_targets_initialize_rtl8211_rgmii
  349. void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
  350. #endif
  351. /** ether_phy on ether_phy Instance. */
  352. extern const ether_phy_instance_t g_ether_phy2;
  353. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  354. extern ether_phy_instance_ctrl_t g_ether_phy2_ctrl;
  355. extern const ether_phy_cfg_t g_ether_phy2_cfg;
  356. /** ether_selector on ether_selector Instance. */
  357. extern const ether_selector_instance_t g_ether_selector1;
  358. /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
  359. extern ether_selector_instance_ctrl_t g_ether_selector1_ctrl;
  360. extern const ether_selector_cfg_t g_ether_selector1_cfg;
  361. #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
  362. #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
  363. #endif
  364. #ifndef ether_phy_targets_initialize_rtl8211_rgmii
  365. void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
  366. #endif
  367. /** ether_phy on ether_phy Instance. */
  368. extern const ether_phy_instance_t g_ether_phy1;
  369. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  370. extern ether_phy_instance_ctrl_t g_ether_phy1_ctrl;
  371. extern const ether_phy_cfg_t g_ether_phy1_cfg;
  372. /** ether_selector on ether_selector Instance. */
  373. extern const ether_selector_instance_t g_ether_selector0;
  374. /** Access the Ethernet Selector instance using these structures when calling API functions directly (::p_api is not used). */
  375. extern ether_selector_instance_ctrl_t g_ether_selector0_ctrl;
  376. extern const ether_selector_cfg_t g_ether_selector0_cfg;
  377. #ifndef ETHER_PHY_LSI_TYPE_KIT_COMPONENT
  378. #define ETHER_PHY_LSI_TYPE_KIT_COMPONENT ETHER_PHY_LSI_TYPE_DEFAULT
  379. #endif
  380. #ifndef ether_phy_targets_initialize_rtl8211_rgmii
  381. void ether_phy_targets_initialize_rtl8211_rgmii(ether_phy_instance_ctrl_t * p_instance_ctrl);
  382. #endif
  383. /** ether_phy on ether_phy Instance. */
  384. extern const ether_phy_instance_t g_ether_phy0;
  385. /** Access the Ethernet PHY instance using these structures when calling API functions directly (::p_api is not used). */
  386. extern ether_phy_instance_ctrl_t g_ether_phy0_ctrl;
  387. extern const ether_phy_cfg_t g_ether_phy0_cfg;
  388. /** ether on ether Instance. */
  389. extern const ether_instance_t g_ether0;
  390. /** Access the Ethernet instance using these structures when calling API functions directly (::p_api is not used). */
  391. extern gmac_instance_ctrl_t g_ether0_ctrl;
  392. extern const ether_cfg_t g_ether0_cfg;
  393. #ifndef user_ether0_callback
  394. void user_ether0_callback(ether_callback_args_t * p_args);
  395. #endif
  396. /** UART on SCI Instance. */
  397. extern const uart_instance_t g_uart0;
  398. /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
  399. extern sci_uart_instance_ctrl_t g_uart0_ctrl;
  400. extern const uart_cfg_t g_uart0_cfg;
  401. extern const sci_uart_extended_cfg_t g_uart0_cfg_extend;
  402. #ifndef user_uart0_callback
  403. void user_uart0_callback(uart_callback_args_t * p_args);
  404. #endif
  405. #define FSP_NOT_DEFINED (1)
  406. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  407. #define g_uart0_P_TRANSFER_TX (NULL)
  408. #else
  409. #define g_uart0_P_TRANSFER_TX (&FSP_NOT_DEFINED)
  410. #endif
  411. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  412. #define g_uart0_P_TRANSFER_RX (NULL)
  413. #else
  414. #define g_uart0_P_TRANSFER_RX (&FSP_NOT_DEFINED)
  415. #endif
  416. #undef FSP_NOT_DEFINED
  417. void hal_entry(void);
  418. void g_hal_init(void);
  419. FSP_FOOTER
  420. #endif /* HAL_DATA_H_ */