From a7a11f1f63567ea0fe75f333c494816ca37c1e89 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 17 Mar 2010 15:55:52 -0400 Subject: [PATCH] use reset to clear bits --- tests/tmr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tmr.c b/tests/tmr.c index d48a6d4f0..1a6ac7056 100644 --- a/tests/tmr.c +++ b/tests/tmr.c @@ -40,7 +40,7 @@ void main(void) { *TMR0_SCTRL = 0; /*clear bit 15, and all the others --- should be ok, but clearly not "the right thing to do" */ /* blink off */ - gpio_data_set(0); + gpio_data_reset(LED); while((*TMR0_SCTRL >> 15) == 0) { continue; } *TMR0_SCTRL = 0; /*clear bit 15, and all the others --- should be ok, but clearly not "the right thing to do" */