1*b9402e3dSRuslan Bukin /*- 2*b9402e3dSRuslan Bukin * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com> 3*b9402e3dSRuslan Bukin * All rights reserved. 4*b9402e3dSRuslan Bukin * 5*b9402e3dSRuslan Bukin * Redistribution and use in source and binary forms, with or without 6*b9402e3dSRuslan Bukin * modification, are permitted provided that the following conditions 7*b9402e3dSRuslan Bukin * are met: 8*b9402e3dSRuslan Bukin * 1. Redistributions of source code must retain the above copyright 9*b9402e3dSRuslan Bukin * notice, this list of conditions and the following disclaimer. 10*b9402e3dSRuslan Bukin * 2. Redistributions in binary form must reproduce the above copyright 11*b9402e3dSRuslan Bukin * notice, this list of conditions and the following disclaimer in the 12*b9402e3dSRuslan Bukin * documentation and/or other materials provided with the distribution. 13*b9402e3dSRuslan Bukin * 14*b9402e3dSRuslan Bukin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*b9402e3dSRuslan Bukin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*b9402e3dSRuslan Bukin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*b9402e3dSRuslan Bukin * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*b9402e3dSRuslan Bukin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*b9402e3dSRuslan Bukin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*b9402e3dSRuslan Bukin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*b9402e3dSRuslan Bukin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*b9402e3dSRuslan Bukin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*b9402e3dSRuslan Bukin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*b9402e3dSRuslan Bukin * SUCH DAMAGE. 25*b9402e3dSRuslan Bukin */ 26*b9402e3dSRuslan Bukin 27*b9402e3dSRuslan Bukin uint32_t adc_read(void); 28*b9402e3dSRuslan Bukin uint32_t adc_enable(int); 29