started Neopixel structs
This commit is contained in:
16
hello_world/usb/wrappers/Mutex.cpp
Normal file
16
hello_world/usb/wrappers/Mutex.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "Mutex.h"
|
||||
|
||||
Mutex::Mutex()
|
||||
{
|
||||
mutex_init(&_mutex);
|
||||
}
|
||||
|
||||
void Mutex::lock()
|
||||
{
|
||||
mutex_enter_blocking(&_mutex);
|
||||
}
|
||||
|
||||
void Mutex::unlock()
|
||||
{
|
||||
mutex_exit(&_mutex);
|
||||
}
|
||||
Reference in New Issue
Block a user