21 #ifndef COSA_NUCLEO_SEMAPHORE_HH 22 #define COSA_NUCLEO_SEMAPHORE_HH 38 Semaphore(uint8_t count = 1) : m_queue(), m_count(count) {}
45 void wait(uint8_t count = 1);
53 void signal(uint8_t count = 1,
bool flag =
true);
60 volatile uint8_t m_count;
void wait(uint8_t count=1)
void signal(uint8_t count=1, bool flag=true)
Semaphore(uint8_t count=1)