X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fsamd21%2Fao_beep_samd21.c;fp=src%2Fsamd21%2Fao_beep_samd21.c;h=eabe8a1605795def863dad75e06414ae8fe8dc7e;hb=7ed85dc90345baec2c4143b75c4be819bb6a4d56;hp=0000000000000000000000000000000000000000;hpb=62381d8582749dc2672a65cb6e7c5b8a404a3b45;p=fw%2Faltos 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) +{ +}