mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 17:35:05 +00:00
* improvements for cross-platform compiling * moved tactility-core to libs/ * splitup improvements * remove git/gitmodules from freertos * better platformbetter platform checks * added build scripts * delete mbedtls * re-add mbedtls * fixes and improvements * added pc build * simplify build scripts * revert build scrpit * updated builds * fix for pc * fix for pc * fix for build
23 lines
473 B
C
23 lines
473 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifndef TT_CRITICAL_ENTER
|
|
#define TT_CRITICAL_ENTER() __TtCriticalInfo __tt_critical_info = __tt_critical_enter();
|
|
#endif
|
|
|
|
#ifndef TT_CRITICAL_EXIT
|
|
#define TT_CRITICAL_EXIT() __tt_critical_exit(__tt_critical_info);
|
|
#endif
|
|
|
|
typedef struct {
|
|
uint32_t isrm;
|
|
bool from_isr;
|
|
bool kernel_running;
|
|
} __TtCriticalInfo;
|
|
|
|
__TtCriticalInfo __tt_critical_enter(void);
|
|
|
|
void __tt_critical_exit(__TtCriticalInfo info);
|