From 1ebf20d66ee905a9cb410f77ac10a779c69acdaa Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 15 May 2012 20:10:32 +0000 Subject: [PATCH] NXWidgets::CNxTkWindow must subtract the height of the toolbar (if any) when reporting the size of the window git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4741 42af7a65-404d-4744-a932-0658087f49c3 --- TODO | 2 +- drivers/input/stmpe11_tsc.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index d1d9df3fa2..33f29d2dc7 100644 --- a/TODO +++ b/TODO @@ -793,7 +793,7 @@ o Graphics subystem (graphics/) and moved out into a graphics layer (like NxWM) that knows more about the appropriate context to do the autoraise. Status: Open - Proiority: Medium low + Priority: Medium low o Pascal Add-On (pcode/) ^^^^^^^^^^^^^^^^^^^^^^ diff --git a/drivers/input/stmpe11_tsc.c b/drivers/input/stmpe11_tsc.c index afe27ac899..ca6d92ce03 100644 --- a/drivers/input/stmpe11_tsc.c +++ b/drivers/input/stmpe11_tsc.c @@ -929,7 +929,7 @@ void stmpe11_tscworker(FAR struct stmpe11_dev_s *priv, uint8_t intsta) if (!pendown) { /* The pen is up.. reset thresholding variables. FIFOs will read zero if - * there is no data available (hence the choice of (0,0) + * there is no data available (hence the choice of (0,0)) */ priv->threshx = 0; @@ -1050,11 +1050,11 @@ void stmpe11_tscworker(FAR struct stmpe11_dev_s *priv, uint8_t intsta) stmpe11_notify(priv); - /* Clear the interrupt pending bit and enable the FIFO again */ + /* Reset and clear all data in the FIFO */ ignored: - stmpe11_putreg8(priv, STMPE11_FIFO_STA, 0x01); - stmpe11_putreg8(priv, STMPE11_FIFO_STA, 0x00); + stmpe11_putreg8(priv, STMPE11_FIFO_STA, FIFO_STA_FIFO_RESET); + stmpe11_putreg8(priv, STMPE11_FIFO_STA, 0); } #endif /* CONFIG_INPUT && CONFIG_INPUT_STMPE11 && !CONFIG_STMPE11_TSC_DISABLE */