tm4c123g-launchad: Add ADC support. From Calvin Maguranis.

This commit is contained in:
Gregory Nutt 2015-02-17 13:52:17 -06:00
parent c81412f822
commit 42d1346b6e
2 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,7 @@ CSRCS += tm4c_timer.c
endif
ifeq ($(CONFIG_TIVA_ADC),y)
CHIP_CSRCS += tm4c_adc.c
CSRCS += tm4c_adc.c
endif
ifeq ($(CONFIG_MTD_AT24XX),y)

View File

@ -101,6 +101,10 @@ int board_adc_initialize(void)
return ret;
}
/* Enable ADC interrupts */
adc->ad_ops->ao_rxint(adc, true);
/* Now we are initialized */
initialized = true;