drv_common.h 606 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-11-7 SummerGift first version
  9. */
  10. #ifndef __DRV_COMMON_H__
  11. #define __DRV_COMMON_H__
  12. #include <rtthread.h>
  13. #include <rthw.h>
  14. #include <rtdevice.h>
  15. #include <board.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. void _Error_Handler(char *s, int num);
  20. #ifndef Error_Handler
  21. #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
  22. #endif
  23. #define DMA_NOT_AVAILABLE ((DMA_INSTANCE_TYPE *)0xFFFFFFFFU)
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif