mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 17:35:05 +00:00
Simulator fixes
This commit is contained in:
parent
d9311a98e3
commit
3e0dd608da
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <Tactility/FreeRTOS/semphr.h>
|
#include <Tactility/FreeRTOS/semphr.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "freertos/semphr.h"
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
|
||||||
#include <Tactility/FreeRTOS/semphr.h>
|
#include <Tactility/FreeRTOS/semphr.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -20,6 +18,7 @@ inline static void recursive_mutex_construct(struct RecursiveMutex* mutex) {
|
|||||||
inline static void recursive_mutex_destruct(struct RecursiveMutex* mutex) {
|
inline static void recursive_mutex_destruct(struct RecursiveMutex* mutex) {
|
||||||
assert(mutex != NULL);
|
assert(mutex != NULL);
|
||||||
assert(mutex->handle != NULL);
|
assert(mutex->handle != NULL);
|
||||||
|
vPortAssertIfInISR();
|
||||||
vSemaphoreDelete(mutex->handle);
|
vSemaphoreDelete(mutex->handle);
|
||||||
mutex->handle = NULL;
|
mutex->handle = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include <sys/errno.h>
|
|
||||||
#include <vector>
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <ranges>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include <Tactility/concurrent/Mutex.h>
|
#include <Tactility/concurrent/Mutex.h>
|
||||||
#include <Tactility/Device.h>
|
#include <Tactility/Device.h>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user