tm4c123g-launchad: Add ADC support. From Calvin Maguranis.
This commit is contained in:
parent
1e6358d20e
commit
abe4253a8d
@ -54,7 +54,7 @@ CSRCS += tm4c_timer.c
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_TIVA_ADC),y)
|
ifeq ($(CONFIG_TIVA_ADC),y)
|
||||||
CHIP_CSRCS += tm4c_adc.c
|
CSRCS += tm4c_adc.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_MTD_AT24XX),y)
|
ifeq ($(CONFIG_MTD_AT24XX),y)
|
||||||
|
@ -101,6 +101,10 @@ int board_adc_initialize(void)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Enable ADC interrupts */
|
||||||
|
|
||||||
|
adc->ad_ops->ao_rxint(adc, true);
|
||||||
|
|
||||||
/* Now we are initialized */
|
/* Now we are initialized */
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user