summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-08 14:42:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-08 14:42:42 +0000
commit595b1b0b21fd9b6d6a23b6ee1714e64eb45e93af (patch)
tree9010f65db94ff7881a4ad6770a1b5a43799a38bd /nuttx
parent916021be8feae425ee4b1496d52a1c16d727bd13 (diff)
downloadpx4-nuttx-595b1b0b21fd9b6d6a23b6ee1714e64eb45e93af.tar.gz
px4-nuttx-595b1b0b21fd9b6d6a23b6ee1714e64eb45e93af.tar.bz2
px4-nuttx-595b1b0b21fd9b6d6a23b6ee1714e64eb45e93af.zip
Back out lost interrupt kludge
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1863 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/arm/src/str71x/str71x_serial.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/str71x/str71x_serial.c b/nuttx/arch/arm/src/str71x/str71x_serial.c
index 6002f1137..b952b5b7e 100644
--- a/nuttx/arch/arm/src/str71x/str71x_serial.c
+++ b/nuttx/arch/arm/src/str71x/str71x_serial.c
@@ -197,10 +197,18 @@
# warning "No CONFIG_UARTn_SERIAL_CONSOLE Setting"
#endif
-/* I am problems with lost UART interrupts. Could this just be my hardware? */
+/* At one time, I had problems with lost UART interrupts. This turned out
+ * to be a dumb programming error which has since been fixed. However, the
+ * instrumentation enabled CONFIG_UART_LOSTTXINTPROTECTION is still interesting
+ * and I am preserving it here for possible future use elsewehre.
+ */
-#define CONFIG_UART_LOSTTXINTPROTECTION 1
-#define LOSTINT_TIMEOUT (100/CLK_TCK)
+#undef CONFIG_UART_LOSTTXINTPROTECTION
+#if CLK_TCK > 20
+# define LOSTINT_TIMEOUT (CLK_TCK/20)
+#else
+# define LOSTINT_TIMEOUT (1)
+#endif
/* Select RX interrupt enable bits. There are two models: (1) We interrupt
* when each character is received. Or, (2) we interrupt when either the Rx