mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 13:19:01 +00:00
tm4c123g-launchad: Add ADC support. From Calvin Maguranis.
This commit is contained in:
parent
c81412f822
commit
42d1346b6e
2 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue