libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
opamp_common_v2.c
Go to the documentation of this file.
1/** @addtogroup opamp_file OPAMP peripheral API
2 * @ingroup peripheral_apis
3 */
4
5/*
6 * This file is part of the libopencm3 project.
7 *
8 * This library is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22/**@{*/
23
25
26bool opamp_read_calout(uint32_t base)
27{
28 return (OPAMP_CSR(base) >> OPAMP_CSR_CALOUT_SHIFT) &
30}
31
33{
35}
36
38{
39 OPAMP_CSR(base) &= ~OPAMP_CSR_OPAHSM;
40}
41
42void opamp_output_set_internal(uint32_t base)
43{
45}
46
47void opamp_output_set_external(uint32_t base)
48{
49 OPAMP_CSR(base) &= ~OPAMP_CSR_OPAINTOEN;
50}
51
52/**@}*/
#define OPAMP_CSR_OPAHSM
#define OPAMP_CSR_CALOUT_SHIFT
#define OPAMP_CSR_OPAINTOEN
#define OPAMP_CSR_CALOUT_MASK
#define OPAMP_CSR(opamp_base)
void opamp_output_set_internal(uint32_t base)
void opamp_output_set_external(uint32_t base)
bool opamp_read_calout(uint32_t base)
void opamp_high_speed_mode_enable(uint32_t base)
void opamp_high_speed_mode_disable(uint32_t base)