first commit for opensource

first commit for opensource
This commit is contained in:
supowang
2019-09-16 13:19:50 +08:00
parent 08ab013b8e
commit edb2879617
6303 changed files with 5472815 additions and 23 deletions

View File

@@ -0,0 +1,49 @@
/*!
* \file adc-board.h
*
* \brief Target board ADC driver implementation
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____ ____ _| |_ _____ ____| |__
* \____ \| ___ | (_ _) ___ |/ ___) _ \
* _____) ) ____| | | || |_| ____( (___| | | |
* (______/|_____)_|_|_| \__)_____)\____)_| |_|
* (C)2013-2017 Semtech
*
* \endcode
*
* \author Miguel Luis ( Semtech )
*
* \author Gregory Cristian ( Semtech )
*/
#ifndef __ADC_BOARD_H__
#define __ADC_BOARD_H__
#include "adc.h"
/*!
* \brief Initializes the ADC object and MCU peripheral
*
* \param [IN] obj ADC object
* \param [IN] adcInput ADC input pin
*/
void AdcMcuInit( Adc_t *obj, PinNames adcInput );
/*!
* \brief Initializes the ADC internal parameters
*/
void AdcMcuConfig( void );
/*!
* \brief Reads the value of the given channel
*
* \param [IN] obj ADC object
* \param [IN] channel ADC input channel
*/
uint16_t AdcMcuReadChannel( Adc_t *obj, uint32_t channel );
#endif // __ADC_BOARD_H__