You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
798 B
28 lines
798 B
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2011-03-03 lgnq
|
|
*/
|
|
|
|
#ifndef __ADC_H__
|
|
#define __ADC_H__
|
|
|
|
/* Exported constants ---------------------------------------------------------*/
|
|
/* Exported macro -------------------------------------------------------------*/
|
|
#define ADC_MODE_SINGLE 0x00UL
|
|
#define ADC_MODE_SCAN 0x01UL
|
|
#define ADC_MODE_TAILGATE 0x02UL
|
|
|
|
#define RT_DEVICE_CTRL_ADC_START 0xF1 /* start ADC conversion */
|
|
#define RT_DEVICE_CTRL_ADC_RESULT 0xF2 /* get ADC result */
|
|
|
|
#define ADC_UPDATE 0
|
|
|
|
/* Exported functions --------------------------------------------------------- */
|
|
void rt_hw_adc_init(void);
|
|
|
|
#endif /*__ADC_H__ */
|
|
|