diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-06 16:00:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-06 16:00:16 +0000 |
commit | d19b70144e2dfb363c07ead39d9ec5a85b46e091 (patch) | |
tree | ed318046fa2502097e8062143d30f449c00af7e5 /nuttx/drivers/input/stmpe11_base.c | |
parent | 42692bfb1645d9c78d7fb358c03aa309a16dfa61 (diff) | |
download | px4-nuttx-d19b70144e2dfb363c07ead39d9ec5a85b46e091.tar.gz px4-nuttx-d19b70144e2dfb363c07ead39d9ec5a85b46e091.tar.bz2 px4-nuttx-d19b70144e2dfb363c07ead39d9ec5a85b46e091.zip |
Add STMPE11 touchscreen logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4703 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/input/stmpe11_base.c')
-rw-r--r-- | nuttx/drivers/input/stmpe11_base.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/drivers/input/stmpe11_base.c b/nuttx/drivers/input/stmpe11_base.c index 01268f7b7..1e8c7d58a 100644 --- a/nuttx/drivers/input/stmpe11_base.c +++ b/nuttx/drivers/input/stmpe11_base.c @@ -102,9 +102,11 @@ static void stmpe11_worker(FAR void *arg) { /* Dispatch the touchscreen interrupt if it was brought into the link */ - if (stmpe11_tscint) +#ifdef CONFIG_HAVE_WEAKFUNCTIONS + if (stmpe11_tscworker) +#endif { - stmpe11_tscint(priv); + stmpe11_tscworker(priv); } stmpe11_putreg8(priv, STMPE11_INT_STA, (INT_TOUCH_DET|INT_FIFO_TH|INT_FIFO_OFLOW)); @@ -117,9 +119,11 @@ static void stmpe11_worker(FAR void *arg) { /* Dispatch the GPIO interrupt if it was brought into the link */ - if (stmpe11_gpioint) +#ifdef CONFIG_HAVE_WEAKFUNCTIONS + if (stmpe11_gpioworker) +#endif { - stmpe11_gpioint(priv); + stmpe11_gpioworker(priv); } stmpe11_putreg8(priv, STMPE11_INT_STA, INT_GPIO); |