1 /*
2  * Copyright (c) 2006-2022, 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 
11 #ifndef __DRV_COMMON_H__
12 #define __DRV_COMMON_H__
13 
14 #include <rtthread.h>
15 #include <rthw.h>
16 #include <rtdevice.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 void _Error_Handler(char *s, int num);
23 
24 #ifndef Error_Handler
25 #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
26 #endif
27 
28 #define DMA_NOT_AVAILABLE ((DMA_INSTANCE_TYPE *)0xFFFFFFFFU)
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif
35