diff options
author | Michael Hope <michael.hope@linaro.org> | 2010-10-10 20:00:24 +1300 |
---|---|---|
committer | Michael Hope <michael.hope@linaro.org> | 2010-10-10 20:00:24 +1300 |
commit | 552dde89174bad5d774bb5694162e05629654e85 (patch) | |
tree | a4d2ab6afca2a3ac2b5029ee89e880f422f86ed8 | |
parent | c2e4ece801bbb9abdcd2bbada254d912f91600d6 (diff) | |
download | librambutan-552dde89174bad5d774bb5694162e05629654e85.tar.gz librambutan-552dde89174bad5d774bb5694162e05629654e85.zip |
Make rcc.h C++ safe
-rw-r--r-- | libmaple/rcc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmaple/rcc.h b/libmaple/rcc.h index f245fe9..012671d 100644 --- a/libmaple/rcc.h +++ b/libmaple/rcc.h @@ -29,6 +29,10 @@ #ifndef _RCC_H_ #define _RCC_H_ +#ifdef __cplusplus +extern "C"{ +#endif + /* registers */ #define RCC_BASE 0x40021000 #define RCC_CR (RCC_BASE + 0x0) @@ -176,5 +180,8 @@ void rcc_clk_enable(uint32 dev); void rcc_reset_dev(uint32 dev); void rcc_set_prescaler(uint32 prescaler, uint32 divider); +#ifdef __cplusplus +} // extern "C" #endif +#endif |