summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-11-23 02:40:32 +0000
committer[email protected] <[email protected]>2012-11-23 02:40:32 +0000
commit44eaae8c80cfd320bb81fce14aec60f207fb240f (patch)
tree825b852c6eccebd9fd655271ee3b94d5cb8ccd6a /components/drivers/include
parentffbd0a167379c3fe4c31a4d0f65d7c3adfd4f16a (diff)
export more symbols of PThread.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2433 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/spi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/spi.h b/components/drivers/include/drivers/spi.h
index 65d9b26cb5..a9faf933ad 100644
--- a/components/drivers/include/drivers/spi.h
+++ b/components/drivers/include/drivers/spi.h
@@ -9,13 +9,19 @@
*
* Change Logs:
* Date Author Notes
+ * 2012-11-23 Bernard Add extern "C"
*/
#ifndef __SPI_H__
#define __SPI_H__
+#include <stdlib.h>
#include <rtthread.h>
+#ifdef __cplusplus
+extern "C"{
+#endif
+
#define RT_SPI_CPHA (1<<0) /* bit[0]:CPHA, clock phase */
#define RT_SPI_CPOL (1<<1) /* bit[1]:CPOL, clock polarity */
/**
@@ -247,4 +253,8 @@ rt_inline void rt_spi_message_append(struct rt_spi_message *list,
message->next = RT_NULL;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif