hal_data.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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_canfd.h"
  8. #include "r_can_api.h"
  9. #include "r_sci_uart.h"
  10. #include "r_uart_api.h"
  11. FSP_HEADER
  12. /** CANFD on CANFD Instance. */
  13. extern const can_instance_t g_canfd1;
  14. /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
  15. extern canfd_instance_ctrl_t g_canfd1_ctrl;
  16. extern const can_cfg_t g_canfd1_cfg;
  17. extern const canfd_extended_cfg_t g_canfd1_cfg_extend;
  18. #ifndef canfd1_callback
  19. void canfd1_callback(can_callback_args_t * p_args);
  20. #endif
  21. /* Global configuration (referenced by all instances) */
  22. extern canfd_global_cfg_t g_canfd_global_cfg;
  23. /** CANFD on CANFD Instance. */
  24. extern const can_instance_t g_canfd0;
  25. /** Access the CANFD instance using these structures when calling API functions directly (::p_api is not used). */
  26. extern canfd_instance_ctrl_t g_canfd0_ctrl;
  27. extern const can_cfg_t g_canfd0_cfg;
  28. extern const canfd_extended_cfg_t g_canfd0_cfg_extend;
  29. #ifndef canfd0_callback
  30. void canfd0_callback(can_callback_args_t * p_args);
  31. #endif
  32. /* Global configuration (referenced by all instances) */
  33. extern canfd_global_cfg_t g_canfd_global_cfg;
  34. /** UART on SCI Instance. */
  35. extern const uart_instance_t g_uart0;
  36. /** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */
  37. extern sci_uart_instance_ctrl_t g_uart0_ctrl;
  38. extern const uart_cfg_t g_uart0_cfg;
  39. extern const sci_uart_extended_cfg_t g_uart0_cfg_extend;
  40. #ifndef user_uart0_callback
  41. void user_uart0_callback(uart_callback_args_t * p_args);
  42. #endif
  43. #define FSP_NOT_DEFINED (1)
  44. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  45. #define g_uart0_P_TRANSFER_TX (NULL)
  46. #else
  47. #define g_uart0_P_TRANSFER_TX (&FSP_NOT_DEFINED)
  48. #endif
  49. #if (FSP_NOT_DEFINED == FSP_NOT_DEFINED)
  50. #define g_uart0_P_TRANSFER_RX (NULL)
  51. #else
  52. #define g_uart0_P_TRANSFER_RX (&FSP_NOT_DEFINED)
  53. #endif
  54. #undef FSP_NOT_DEFINED
  55. void hal_entry(void);
  56. void g_hal_init(void);
  57. FSP_FOOTER
  58. #endif /* HAL_DATA_H_ */