RedHawk 620439fff4 LpcUart: [#22] rewritten wrapper for lpc11u68.
* We have UART1-4 (from UARTN, UART0 handling is different.)
* Added Fmutex
* Removed movable pins.
* Disabled handshakes. (Not sure how to configure those.)
* 1 and 4, as well as 2 and 3 share their interrupts with each other. (Again, not sure how it should work.)
2023-04-28 14:32:25 +03:00

25 lines
295 B
C++

/*
* Fmutex.h
*
* Created on: 15.8.2017
* Author: krl
*/
#ifndef FMUTEX_H_
#define FMUTEX_H_
#include "FreeRTOS.h"
#include "semphr.h"
class Fmutex {
public:
Fmutex();
virtual ~Fmutex();
void lock();
void unlock();
private:
SemaphoreHandle_t mutex;
};
#endif /* FMUTEX_H_ */