1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

Fix defines so that inclusion of ADC code is controlled by BUILD_ADC

(previously, if NUM_ADC>0 but !BUILD_ADC, compilation failed with
unresolved symbols)
This commit is contained in:
Martin Guy 2011-04-21 19:09:19 +02:00
parent ae73382af2
commit 5cb0a63bee

View File

@ -37,7 +37,7 @@ extern int pm_configure_clocks( pm_freq_param_t *param );
static u32 platform_timer_set_clock( unsigned id, u32 clock );
#if NUM_ADC > 0
#ifdef BUILD_ADC
__attribute__((__interrupt__)) static void adc_int_handler();
#endif
@ -176,7 +176,7 @@ int platform_init()
#endif
#if NUM_ADC > 0
#ifdef BUILD_ADC
(&AVR32_ADC)->ier = AVR32_ADC_DRDY_MASK;
INTC_register_interrupt( &adc_int_handler, AVR32_ADC_IRQ, AVR32_INTC_INT0);