samd21: Stub out beep code
authorKeith Packard <keithp@keithp.com>
Mon, 7 Nov 2022 03:30:38 +0000 (19:30 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 7 Nov 2022 03:30:38 +0000 (19:30 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/samd21/ao_beep_samd21.c [new file with mode: 0644]

diff --git a/src/samd21/ao_beep_samd21.c b/src/samd21/ao_beep_samd21.c
new file mode 100644 (file)
index 0000000..eabe8a1
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright © 2022 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+#include "ao.h"
+#include "ao_beep.h"
+
+void
+ao_beep(uint8_t beep)
+{
+       (void) beep;
+}
+
+void
+ao_beep_for(uint8_t beep, AO_TICK_TYPE ticks)
+{
+       ao_beep(beep);
+       ao_delay(ticks);
+       ao_beep(0);
+}
+
+void
+ao_beep_init(void)
+{
+}