diff options
| author | Bernard Xiong <[email protected]> | 2015-05-05 10:18:11 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-05-05 10:18:11 +0800 |
| commit | 52e43eae9b6d33d0fb18d01b91a3966bf8d2b7ca (patch) | |
| tree | 34685a4a4edf1c80cc0a843af2e6855f44d2bcf4 /components/drivers/include | |
| parent | bd2d62a1dfca5cbf4d86711c944fe5e4f7433807 (diff) | |
[DeviceDriver] Add extern C for cplusplus in rtdevice.h
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/rtdevice.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index bb01da2d12..5d74ed6199 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -28,6 +28,10 @@ #include <rtthread.h> +#ifdef __cplusplus +extern "C" { +#endif + #define RT_DEVICE(device) ((rt_device_t)device) /* completion flag */ @@ -362,5 +366,9 @@ rt_inline void rt_work_init(struct rt_work* work, void (*work_func)(struct rt_wo #include "drivers/pin.h" #endif +#ifdef __cplusplus +} +#endif + #endif /* __RT_DEVICE_H__ */ |
