| BLDC control on ATAVRMC303 with ATxMega128A1

Macros
ADC IT Configuration
ADC Module » ADC Macros

Configure the ADC IT. More...

Collaboration diagram for ADC IT Configuration:

## Macros
#define | Clear_adc_flag() (ADCSRA &= (1<<ADIF) )
#define | Disable_adc_it() (ADCSRA &= ~(1<<ADIE) )
#define | Disable_all_it() (SREG &= ~(0x80) )
#define | Enable_adc_it() (ADCSRA |= (1<<ADIE) )
#define | Enable_all_it() (SREG |= (0x80) )

## Detailed Description

Configure the ADC IT.

## Macro Definition Documentation

## ◆ Clear_adc_flag

#define Clear_adc_flag | ( |  | ) | (ADCSRA &= (1<<ADIF) )

Definition at line 71 of file adc_drv.h.

## ◆ Disable_adc_it

#define Disable_adc_it | ( |  | ) | (ADCSRA &= ~(1<<ADIE) )

Definition at line 70 of file adc_drv.h.

## ◆ Disable_all_it

#define Disable_all_it | ( |  | ) | (SREG &= ~(0x80) )

Definition at line 68 of file adc_drv.h.

## ◆ Enable_adc_it

#define Enable_adc_it | ( |  | ) | (ADCSRA |= (1<<ADIE) )

Definition at line 69 of file adc_drv.h.

## ◆ Enable_all_it

#define Enable_all_it | ( |  | ) | (SREG |= (0x80) )

Definition at line 67 of file adc_drv.h.