diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/drivers/drv_app/buzzer/buzzer.h	Fri May 15 01:28:16 2020 +0000
@@ -0,0 +1,33 @@
+/*
+ * BUZZER.H
+ *
+ * Buzzer and light control
+ *
+ * Target : ARM 
+ *
+ * Copyright (c) Texas Instruments 1996
+ *
+ */
+
+#define BZ_LEVEL       ARMIO_BUZZER
+#define LT_LEVEL       ARMIO_LIGHT
+
+// Bit definitions in CNTL
+#define BZ_ON			0x01	// start buzzer
+#define LT_ON			0x02	// start light
+
+// Buzzer control
+void BZ_Init(void);
+void BZ_Enable(void);
+void BZ_Disable(void);
+void BZ_Tone(int f);
+void BZ_Volume(int v);
+void BZ_IntHandler(void);
+void BZ_KeyBeep_ON(void);
+void BZ_KeyBeep_OFF(void);
+
+// LCD and keypad Light control
+void LT_Enable(void);
+void LT_Disable(void);
+void LT_Level(SYS_WORD8 level);
+SYS_BOOL LT_Status(void);
\ No newline at end of file