summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/tiva/tiva_timerlow32.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-02-17 13:50:30 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-02-17 13:50:30 -0600
commitd1018d2050c594a1bf5b7be1b0b93dceb90897cb (patch)
treee7ff26a925fa8a4be8f4bf24dcf59c5c9b3582dd /nuttx/arch/arm/src/tiva/tiva_timerlow32.c
parent7be2bcbe438b6210d274492254135a9056b59b8e (diff)
downloadpx4-nuttx-d1018d2050c594a1bf5b7be1b0b93dceb90897cb.tar.gz
px4-nuttx-d1018d2050c594a1bf5b7be1b0b93dceb90897cb.tar.bz2
px4-nuttx-d1018d2050c594a1bf5b7be1b0b93dceb90897cb.zip
Tiva: Updated files to allow for ADC triggering by the timer. I’ve cleaned up some parts of the ADC code, too, and fleshed out the PWM triggering ioctl. From Calvin Maguranis
Diffstat (limited to 'nuttx/arch/arm/src/tiva/tiva_timerlow32.c')
-rw-r--r--nuttx/arch/arm/src/tiva/tiva_timerlow32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/tiva/tiva_timerlow32.c b/nuttx/arch/arm/src/tiva/tiva_timerlow32.c
index 90492678d..2bbf83860 100644
--- a/nuttx/arch/arm/src/tiva/tiva_timerlow32.c
+++ b/nuttx/arch/arm/src/tiva/tiva_timerlow32.c
@@ -591,6 +591,9 @@ int tiva_timer_register(FAR const char *devpath, int gptm, bool altclk)
config->cmn.mode = TIMER32_MODE_PERIODIC;
config->cmn.alternate = altclk;
config->config.flags = TIMER_FLAG_COUNTUP;
+#ifdef CONFIG_TIVA_TIMER32_ADCEVENT
+ config->config.flags |= TIMER_FLAG_ADCTIMEOUT;
+#endif
config->config.handler = tiva_handler;
config->config.arg = priv;