From 7ed85dc90345baec2c4143b75c4be819bb6a4d56 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 6 Nov 2022 19:30:38 -0800 Subject: [PATCH] samd21: Stub out beep code Signed-off-by: Keith Packard --- src/samd21/ao_beep_samd21.c | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/samd21/ao_beep_samd21.c diff --git a/src/samd21/ao_beep_samd21.c b/src/samd21/ao_beep_samd21.c new file mode 100644 index 00000000..eabe8a16 --- /dev/null +++ b/src/samd21/ao_beep_samd21.c @@ -0,0 +1,39 @@ +/* + * Copyright © 2022 Keith Packard + * + * 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) +{ +} -- 2.30.2