use reset to clear bits

This commit is contained in:
Mariano Alvira 2010-03-17 15:55:52 -04:00
parent 407fda80e0
commit a7a11f1f63

View file

@ -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" */