libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
libxr.cpp
1#include "libxr.hpp"
2
3#include "thread.hpp"
4
5void libxr_fatal_error(const char *file, uint32_t line, bool in_isr)
6{
7 volatile bool stop = false;
8 while (!stop)
9 {
11 {
12 printf("Fatal error at %s:%d\r\n", file, static_cast<int>(line));
13 }
14
16 {
18 }
19
21 }
22}
static Callback libxr_fatal_error_callback_
已注册的致命错误回调函数。 Registered fatal error callback.
void Run(bool in_isr, PassArgs &&...args) const
执行回调函数,并传递参数。 Executes the callback function, passing the arguments.
Definition libxr_cb.hpp:208
static WritePort * write_
Write port instance. 写入端口。
Definition libxr_rw.hpp:822
static void Sleep(uint32_t milliseconds)
让线程进入休眠状态 Puts the thread to sleep
Definition thread.cpp:16