From: Keith Packard Date: Mon, 8 Jan 2024 02:58:41 +0000 (-0800) Subject: altos: Move ao_adc_single.h API header to kernel/ X-Git-Tag: 1.9.18~2^2~62 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=1760bec9ed19c64f35ea28904cea433d39dead07 altos: Move ao_adc_single.h API header to kernel/ THis was in stm, but will be needed by other architectures. Signed-off-by: Keith Packard --- diff --git a/src/kernel/ao_adc_single.h b/src/kernel/ao_adc_single.h new file mode 100644 index 00000000..f9d953ca --- /dev/null +++ b/src/kernel/ao_adc_single.h @@ -0,0 +1,24 @@ +/* + * Copyright © 2018 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. + */ + +#ifndef _AO_ADC_SINGLE_H_ +#define _AO_ADC_SINGLE_H_ + +void +ao_adc_single_get(struct ao_adc *packet); + +void +ao_adc_single_init(void); + +#endif /* _AO_ADC_SINGLE_H_ */ diff --git a/src/stm/ao_adc_single.h b/src/stm/ao_adc_single.h deleted file mode 100644 index f9d953ca..00000000 --- a/src/stm/ao_adc_single.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright © 2018 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. - */ - -#ifndef _AO_ADC_SINGLE_H_ -#define _AO_ADC_SINGLE_H_ - -void -ao_adc_single_get(struct ao_adc *packet); - -void -ao_adc_single_init(void); - -#endif /* _AO_ADC_SINGLE_H_ */