diff options
Diffstat (limited to 'lib/chibios/os/hal/boards/OLIMEX_LPC_P2148/buzzer.h')
-rw-r--r-- | lib/chibios/os/hal/boards/OLIMEX_LPC_P2148/buzzer.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/OLIMEX_LPC_P2148/buzzer.h b/lib/chibios/os/hal/boards/OLIMEX_LPC_P2148/buzzer.h new file mode 100644 index 000000000..998d31feb --- /dev/null +++ b/lib/chibios/os/hal/boards/OLIMEX_LPC_P2148/buzzer.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | #ifndef _BUZZER_H_ | ||
18 | #define _BUZZER_H_ | ||
19 | |||
20 | #ifdef __cplusplus | ||
21 | extern "C" { | ||
22 | #endif | ||
23 | void buzzInit(void); | ||
24 | void buzzPlay(uint32_t freq, systime_t duration); | ||
25 | void buzzPlayWait(uint32_t freq, systime_t duration); | ||
26 | #ifdef __cplusplus | ||
27 | } | ||
28 | #endif | ||
29 | |||
30 | extern EventSource BuzzerSilentEventSource; | ||
31 | |||
32 | #endif /* _BUZZER_H_ */ | ||