simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] missing cases in pin.cpp


From: Joel Sherrill
Subject: [Simulavr-devel] missing cases in pin.cpp
Date: Mon, 11 May 2009 12:56:19 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Hi,

I noticed that the routine which converts from
analog pin state as a character to enumeration
was missing a couple of cases 'A' and 'a'.  What
should "analogValue" be in these cases?

$ cvs diff -u pin.cpp
Index: pin.cpp
===================================================================
RCS file: /sources/simulavr/simulavrxx/src/pin.cpp,v
retrieving revision 1.14
diff -u -r1.14 pin.cpp
--- pin.cpp    10 Apr 2009 16:58:49 -0000    1.14
+++ pin.cpp    11 May 2009 17:55:02 -0000
@@ -203,7 +203,8 @@
case 't': outState=TRISTATE; analogValue=TRISTATE_ANALOG_VALUE; break;
        case 'l': outState=PULLDOWN; analogValue=0; break;
        case 'L': outState=LOW; analogValue=0; break;
-
+        case 'a': outState=ANALOG; analogValue=0; break;
+        case 'A': outState=ANALOG_SHORTED; analogValue=0; break;
    }

--
Joel Sherrill, Ph.D.             Director of Research & Development
address@hidden        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985






reply via email to

[Prev in Thread] Current Thread [Next in Thread]