mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 03:05:14 +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" */
|
||||
|
||||
/* 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" */
|
||||
|
Loading…
Reference in New Issue
Block a user