[DeviceDriver] Add extern C for cplusplus in rtdevice.h

This commit is contained in:
Bernard Xiong 2015-05-05 10:18:11 +08:00
parent bd2d62a1df
commit 52e43eae9b
1 changed files with 8 additions and 0 deletions

View File

@ -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__ */