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