10#define ADC_BASE_ADR ((volatile uint8_t *)0x1000)
26 while ((PORTD & PD4)) {
40 volatile uint8_t adc_value[4];
43 for (uint8_t i = 0; i < 4; i++) {
46 output->
channel[i] = adc_value[i];
ADC memory-mapped interface.
void ADC_init(void)
Initialize the external memory–mapped ADC interface.
uint8_t ADC_read_ch(void)
Read the current ADC channel sample.
void ADC_read_all(struct ADC_meas *output)
Perform a full four-channel ADC conversion and return all results.
void ADC_start_conv(void)
Start a conversion on the external ADC and wait for completion.
#define LOG_MODULE_DEFINE(name)
Logging interface for debug messages.
Container for ADC measurement results.