Enable Ulog for FinSH
Last updated
Last updated
RT-Thread provides a set of I/O device framework. It is divided into three layers:
I/O device management layer implements the encapsulation of device drivers.
Device driver framework layer is an abstraction of the same kind of hardware device driver.
Device driver layer is a set of programs that drive the hardware devices to work, enabling access to hardware devices.
FinSH is the command line component of RT-Thread. It provides a set of operation interfaces for users to call from the command line. It is mainly used to debug or view system information. It can communicate with a PC using serial/Ethernet/USB, etc. FinSH will read the device input command, parse and automatically scan the internal function table, find the corresponding function name, and execute the function. The response is output, the response is returned through the original path, and the result is displayed on the control terminal.
Ulog is a very simple and easy to use C/C++ log component. It can achieve the lowest ROM<1K, RAM<0.2K resource usage. For the operating system, because the complexity of the software is very large, the log component is almost standard part on the operating system. The log output is designed to be thread-safe and supports asynchronous output mode. The logging system is highly reliable and is still available in complex environments such as interrupted ISRs and Hardfault.