Changeset 1918

Show
Ignore:
Timestamp:
11/10/08 22:42:43 (2 months ago)
Author:
batt
Message:

Merged from external project:

**********
r22631 | batt | 2008-11-10 22:33:41 +0100 (lun, 10 nov 2008) | 1 line


Not all AVRs have ADCSRB register: make it conditional.
**********

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bertos/cpu/avr/drv/adc_avr.c

    r1739 r1918  
    3535 * \author Francesco Sacchi <batt@develer.com> 
    3636 * 
    37  * This module is automatically included so no need to include  
     37 * This module is automatically included so no need to include 
    3838 * in test list. 
    3939 * notest: avr 
     
    147147        #endif 
    148148 
     149        #if defined(ADCSRB) 
    149150        /* Disable Auto trigger source: ADC in Free running mode. */ 
    150151        ADCSRB = 0; 
     152        #endif 
    151153 
    152154        /* Enable ADC, disable autotrigger mode. */