mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
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.
25 lines
407 B
C++
25 lines
407 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace tt::kernel::critical {
|
|
|
|
typedef struct {
|
|
uint32_t isrm;
|
|
bool fromIsr;
|
|
bool kernelRunning;
|
|
} TtCriticalInfo;
|
|
|
|
/** Enter a critical section
|
|
* @return info on the status
|
|
*/
|
|
TtCriticalInfo enter();
|
|
|
|
/**
|
|
* Exit a critical section
|
|
* @param[in] info the info from when the critical section was started
|
|
*/
|
|
void exit(TtCriticalInfo info);
|
|
|
|
} // namespace
|