/*
 * Copyright (c) 2010 仪星电子
 *
 * 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.
 */

/*
 * 著作权所有(C) 2010 仪星电子
 *
 * 本程序为自由软件；您可依据自由软件基金会所发表的GNU通用公共授权条款规定，
 * 就本程序再为发布与／或修改；无论您依据的是本授权的第二版或（您自行选择的）
 * 任一日后发行的版本。

 * 本程序是基于使用目的而加以发布，然而不负任何担保责任；亦无对适售性或特定
 * 目的适用性所为的默示性担保。详情请参照GNU通用公共授权。

 * 您应已收到附随于本程序的GNU通用公共授权的副本；如果没有，请写信至自由软件
 * 基金会：59 Temple Place - Suite 330, Boston, Ma 02111-1307, USA。

 * Email yixingdianzi@126.com
 * Email/MSN yixingdianzi@hotmail.com
 * QQ 648887464
 */

#ifndef __QDMX_ADC_H
#define __QDMX_ADC_H

#include "stm32f10x_exti.h"
#include "stm32f10x_dma.h"
#include "stm32f10x_adc.h"

#define ADC1_DR_Address    ((uint32_t)0x4001244C)



void m_adc_clk_config(void);
void m_adc_gpio_config(void);
void m_adc_init(void);
void m_adc_Interrupts_Config(void);
uint8_t Control_a(u8 Max,u8 Min);
uint8_t Control_b(u8 Max,u8 Min);

#endif /* __QDMX_ADC_H */
