Modify spinlock error in periph_ctrl.c
This commit is contained in:
parent
e523a2532a
commit
d82cb7f60f
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ void periph_module_enable(periph_module_t periph)
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
portENTER_CRITICAL(&periph_spinlock);
|
portEXIT_CRITICAL(&periph_spinlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void periph_module_disable(periph_module_t periph)
|
void periph_module_disable(periph_module_t periph)
|
||||||
|
@ -166,5 +166,5 @@ void periph_module_disable(periph_module_t periph)
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
portENTER_CRITICAL(&periph_spinlock);
|
portEXIT_CRITICAL(&periph_spinlock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue