drv_common.h 547 B

123456789101112131415161718192021222324252627
  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 change to new framework
  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. void _Error_Handler(char *s, int num);
  17. #ifndef Error_Handler
  18. #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
  19. #endif
  20. #define DMA_NOT_AVAILABLE ((DMA_INSTANCE_TYPE *)0xFFFFFFFFU)
  21. #endif