* 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.)
25 lines
295 B
C++
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_ */
|