summaryrefslogtreecommitdiff
path: root/bsp/fujitsu/mb9x/mb9bf500r/adc.h
blob: c8846b0beb629d8dc64eda8b61433a2f771570e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * 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__ */