libxr 1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
libxr_system.cpp
1#include "libxr_system.hpp"
2
3#include "libxr_assert.hpp"
4#include "libxr_def.hpp"
5#include "libxr_rw.hpp"
6#include "libxr_type.hpp"
7#include "list.hpp"
8#include "queue.hpp"
9#include "semaphore.hpp"
10#include "thread.hpp"
11#include "timebase.hpp"
12#include "timer.hpp"
13
14void LibXR::PlatformInit() {}
15
17 static bool in_timer = false;
18 if (in_timer) {
19 return;
20 }
21
23
25 return;
26 }
27
28 in_timer = true;
31 in_timer = false;
32}
static TimestampMS GetMilliseconds()
获取当前时间的毫秒级时间戳。 Gets the current timestamp in milliseconds.
Definition timebase.hpp:63
static void Refresh()
刷新定时任务状态 Refreshes the state of periodic tasks
Definition timer.hpp:197
static void RefreshTimerInIdle()
在空闲时刷新定时器 Refreshes the timer during idle time
constexpr auto min(T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
计算两个数的最小值
void PlatformInit()
平台初始化函数 Platform initialization function