diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-08 14:42:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-08 14:42:42 +0000 |
commit | 595b1b0b21fd9b6d6a23b6ee1714e64eb45e93af (patch) | |
tree | 9010f65db94ff7881a4ad6770a1b5a43799a38bd /nuttx/arch/arm | |
parent | 916021be8feae425ee4b1496d52a1c16d727bd13 (diff) | |
download | px4-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/arch/arm')
-rw-r--r-- | nuttx/arch/arm/src/str71x/str71x_serial.c | 14 |
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 |