tm4c123g-launchad: Add ADC support. From Calvin Maguranis.
This commit is contained in:
parent
c81412f822
commit
42d1346b6e
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user