#include <limits.h>
#include "pin.h"
#include "net.h"
Go to the source code of this file.
Enumerations | |
enum | { TRISTATE_ANALOG_VALUE = (INT_MAX / 2) + 1 } |
anonymous enum |
TRISTATE_ANALOG_VALUE |
Analog value for a tristate potential. This is the value used to set the analogValue when the pin output is TRISTATE. Originally, the value was simply (INT_MAX/2), but when I was debugging a glitch in a pin used as an open-drain output, I found that Pin::operator bool() chose to convert this to a LOW condition during a CalcNet() using MirroNet. Thus, I added one to the value and the glitch went away. This is probably not the absolute correct fix, but it works for this case. |