started Neopixel structs
This commit is contained in:
20
hello_world/usb/wrappers/CriticalSection.h
Normal file
20
hello_world/usb/wrappers/CriticalSection.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef H_10337EC23C94444EB1628220BA87E2D7
|
||||
#define H_10337EC23C94444EB1628220BA87E2D7
|
||||
|
||||
#include "pico/sync.h"
|
||||
|
||||
class CriticalSection
|
||||
{
|
||||
private:
|
||||
critical_section_t _critical;
|
||||
|
||||
public:
|
||||
CriticalSection();
|
||||
void lock();
|
||||
void unlock();
|
||||
~CriticalSection();
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif //H_10337EC23C94444EB1628220BA87E2D7
|
||||
Reference in New Issue
Block a user