mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-13 16:31:55 +00:00
use reset to clear bits
This commit is contained in:
parent
407fda80e0
commit
a7a11f1f63
@ -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" */
|
*TMR0_SCTRL = 0; /*clear bit 15, and all the others --- should be ok, but clearly not "the right thing to do" */
|
||||||
|
|
||||||
/* blink off */
|
/* blink off */
|
||||||
gpio_data_set(0);
|
gpio_data_reset(LED);
|
||||||
|
|
||||||
while((*TMR0_SCTRL >> 15) == 0) { continue; }
|
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" */
|
*TMR0_SCTRL = 0; /*clear bit 15, and all the others --- should be ok, but clearly not "the right thing to do" */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user