drv_can.h 626 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. * Copyright (c) 2022, Xiaohua Semiconductor Co., Ltd.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. *
  7. * Change Logs:
  8. * Date Author Notes
  9. * 2022-04-28 CDT first version
  10. */
  11. #ifndef __DRV_CAN_H__
  12. #define __DRV_CAN_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #include <board.h>
  17. #include <rtdevice.h>
  18. #include <rtthread.h>
  19. /* hc32 can device */
  20. struct can_dev_init_params
  21. {
  22. char *name;
  23. };
  24. int rt_hw_can_init(void);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /*__DRV_CAN_H__ */
  29. /************************** end of file ******************/