Ken Van Hoeylandt 415096c3b2
Update docs and fix bugs (#149)
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.
2025-01-07 20:45:23 +01:00

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