mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b051659d71
* added lpc2387 adc driver and generic interface
21 lines
307 B
C
21 lines
307 B
C
#ifndef ADC_H
|
|
#define ADC_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* @brief Initialize ADC.
|
|
*/
|
|
void adc_init(void);
|
|
|
|
/**
|
|
* @brief Read ADC value of selected channel.
|
|
*
|
|
* Valid channel numbers are from 0 to 2.
|
|
*
|
|
* @return ADC value of selected channel.
|
|
*/
|
|
uint16_t adc_read(uint8_t channel);
|
|
|
|
#endif /* ADC_H */
|