FreeCalypso > hg > ffs-editor
comparison src/cs/drivers/drv_app/buzzer/buzzer.h @ 0:92470e5d0b9e
src: partial import from FC Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 15 May 2020 01:28:16 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92470e5d0b9e |
---|---|
1 /* | |
2 * BUZZER.H | |
3 * | |
4 * Buzzer and light control | |
5 * | |
6 * Target : ARM | |
7 * | |
8 * Copyright (c) Texas Instruments 1996 | |
9 * | |
10 */ | |
11 | |
12 #define BZ_LEVEL ARMIO_BUZZER | |
13 #define LT_LEVEL ARMIO_LIGHT | |
14 | |
15 // Bit definitions in CNTL | |
16 #define BZ_ON 0x01 // start buzzer | |
17 #define LT_ON 0x02 // start light | |
18 | |
19 // Buzzer control | |
20 void BZ_Init(void); | |
21 void BZ_Enable(void); | |
22 void BZ_Disable(void); | |
23 void BZ_Tone(int f); | |
24 void BZ_Volume(int v); | |
25 void BZ_IntHandler(void); | |
26 void BZ_KeyBeep_ON(void); | |
27 void BZ_KeyBeep_OFF(void); | |
28 | |
29 // LCD and keypad Light control | |
30 void LT_Enable(void); | |
31 void LT_Disable(void); | |
32 void LT_Level(SYS_WORD8 level); | |
33 SYS_BOOL LT_Status(void); |