summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Knispel <gknispel@avencall.com>2012-07-09 17:10:32 +0200
committerGuillaume Knispel <gknispel@avencall.com>2012-07-09 17:10:32 +0200
commit8c92e84498baf42f5d4b63cea0d6fb3f74ffb23c (patch)
tree0c13efeaf0f508e63fe2673ca8437fc582e484ce
parent3711f682f7baf279c242b92ed7e1fb3357ef9609 (diff)
bugfix assertion of V1P2_CORE_EN_N
V1P2_CORE_EN_N was previously incorrectly initialized as high impedance. In 24b3a39 "change V1P2-CORE-EN-N initial state" I changed it to output high, but I missed that the transition from Hz to 0 was done by simply setting it as an output in the code. This commit fixes that bug by changing its output from 1 to 0. The DIR register is never changed so I also removed the Hz to output transition.
-rwxr-xr-xmain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index a38d37f..b3842d3 100755
--- a/main.c
+++ b/main.c
@@ -97,9 +97,7 @@ int main(void)
if (SW1State || TENSION_EXPIRED)
state = STOP;
if ((P4IN & ATX_PWROK) && TENSION_WAIT(bV2P5 && bVCC3)) {
- // assertion: V1P2_CORE_EN_N is low but high impedance here
- // TO CHECK
- SetBit(P1DIR, V1P2_CORE_EN_N);
+ ClrBit(P1OUT, V1P2_CORE_EN_N);
Timer1 = 30;
state = WAIT_V1P2;
}