hal_data.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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_dtc.h"
  8. #include "r_transfer_api.h"
  9. #include "r_spi.h"
  10. #include "r_icu.h"
  11. #include "r_external_irq_api.h"
  12. #include "r_sci_uart.h"
  13. #include "r_uart_api.h"
  14. FSP_HEADER
  15. /* Transfer on DTC Instance. */
  16. extern const transfer_instance_t g_transfer1;
  17. /** Access the DTC instance using these structures when calling API functions directly (::p_api is not used). */
  18. extern dtc_instance_ctrl_t g_transfer1_ctrl;
  19. extern const transfer_cfg_t g_transfer1_cfg;
  20. /* Transfer on DTC Instance. */
  21. extern const transfer_instance_t g_transfer0;
  22. /** Access the DTC instance using these structures when calling API functions directly (::p_api is not used). */
  23. extern dtc_instance_ctrl_t g_transfer0_ctrl;
  24. extern const transfer_cfg_t g_transfer0_cfg;
  25. /** SPI on SPI Instance. */
  26. extern const spi_instance_t g_spi0;
  27. /** Access the SPI instance using these structures when calling API functions directly (::p_api is not used). */
  28. extern spi_instance_ctrl_t g_spi0_ctrl;
  29. extern const spi_cfg_t g_spi0_cfg;
  30. /** Callback used by SPI Instance. */
  31. #ifndef spi0_callback
  32. void spi0_callback(spi_callback_args_t * p_args);
  33. #endif
  34. #define RA_NOT_DEFINED (1)
  35. #if (RA_NOT_DEFINED == g_transfer0)
  36. #define g_spi0_P_TRANSFER_TX (NULL)
  37. #else
  38. #define g_spi0_P_TRANSFER_TX (&g_transfer0)
  39. #endif
  40. #if (RA_NOT_DEFINED == g_transfer1)
  41. #define g_spi0_P_TRANSFER_RX (NULL)
  42. #else
  43. #define g_spi0_P_TRANSFER_RX (&g_transfer1)
  44. #endif
  45. #undef RA_NOT_DEFINED
  46. /** External IRQ on ICU Instance. */
  47. extern const external_irq_instance_t g_external_irq0;
  48. /** Access the ICU instance using these structures when calling API functions directly (::p_api is not used). */
  49. extern icu_instance_ctrl_t g_external_irq0_ctrl;
  50. extern const external_irq_cfg_t g_external_irq0_cfg;
  51. #ifndef irq_callback
  52. void irq_callback(external_irq_callback_args_t * p_args);
  53. #endif
  54. /** UART on SCI Instance. */
  55. extern const uart_instance_t g_uart7;
  56. /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
  57. extern sci_uart_instance_ctrl_t g_uart7_ctrl;
  58. extern const uart_cfg_t g_uart7_cfg;
  59. extern const sci_uart_extended_cfg_t g_uart7_cfg_extend;
  60. #ifndef user_uart7_callback
  61. void user_uart7_callback(uart_callback_args_t * p_args);
  62. #endif
  63. void hal_entry(void);
  64. void g_hal_init(void);
  65. FSP_FOOTER
  66. #endif /* HAL_DATA_H_ */