aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC/buzzer.h
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/buzzer.h')
-rw-r--r--demos/ARM7-LPC214x-GCC/buzzer.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/demos/ARM7-LPC214x-GCC/buzzer.h b/demos/ARM7-LPC214x-GCC/buzzer.h
index f5f9e82ac..464e081d8 100644
--- a/demos/ARM7-LPC214x-GCC/buzzer.h
+++ b/demos/ARM7-LPC214x-GCC/buzzer.h
@@ -20,9 +20,15 @@
#ifndef _BUZZER_H_
#define _BUZZER_H_
-void InitBuzzer(void);
-void PlaySound(int freq, t_time duration);
-void PlaySoundWait(int freq, t_time duration);
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void InitBuzzer(void);
+ void PlaySound(int freq, t_time duration);
+ void PlaySoundWait(int freq, t_time duration);
+#ifdef __cplusplus
+}
+#endif
extern EventSource BuzzerSilentEventSource;