Modify spinlock error in periph_ctrl.c

This commit is contained in:
Wangjialin 2016-09-29 11:50:25 +08:00
parent e523a2532a
commit d82cb7f60f

View file

@ -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);
} }