Improved the docs for the 3 main Tactility projects. I also fixed some inaccuracies and bugs in certain APIs as I went through the code.
26 lines
448 B
C
26 lines
448 B
C
#pragma once
|
|
|
|
#include <freertos/FreeRTOS.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef void* MutexHandle;
|
|
|
|
enum TtMutexType {
|
|
MUTEX_TYPE_NORMAL,
|
|
MUTEX_TYPE_RECURSIVE
|
|
};
|
|
|
|
MutexHandle tt_mutex_alloc(enum TtMutexType);
|
|
void tt_mutex_free(MutexHandle handle);
|
|
bool tt_mutex_lock(MutexHandle handle, TickType_t timeoutTicks);
|
|
bool tt_mutex_unlock(MutexHandle handle);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |