aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/pwr.h
diff options
context:
space:
mode:
authorNicolas Schodet2012-09-02 17:12:58 +0200
committerNicolas Schodet2012-09-02 17:12:58 +0200
commit3aab6220d83d5b9fcd318e9d87225ff405cad783 (patch)
treeb61019429043b03b091ce00f84b312829abd0e94 /include/libopencm3/stm32/pwr.h
parent11727f56c97fb3d007e0d08e59294b6791067bd1 (diff)
Add C linkage declaration for C++ usage
Diffstat (limited to 'include/libopencm3/stm32/pwr.h')
-rw-r--r--include/libopencm3/stm32/pwr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/pwr.h b/include/libopencm3/stm32/pwr.h
index 7084382..e709f3d 100644
--- a/include/libopencm3/stm32/pwr.h
+++ b/include/libopencm3/stm32/pwr.h
@@ -106,6 +106,8 @@ LGPL License Terms @ref lgpl_license
/* --- PWR function prototypes ------------------------------------------- */
+BEGIN_DECLS
+
void pwr_disable_backup_domain_write_protect(void);
void pwr_enable_backup_domain_write_protect(void);
void pwr_enable_power_voltage_detect(u32 pvd_level);
@@ -122,6 +124,8 @@ bool pwr_voltage_high(void);
bool pwr_get_standby_flag(void);
bool pwr_get_wakeup_flag(void);
+END_DECLS
+
#endif
/**@}*/