Skip to content

Commit 38cb953

Browse files
authored
Merge pull request #3438 from Cathy-lulu/update-readme
update readme
2 parents d17011d + d1cf363 commit 38cb953

File tree

7 files changed

+267
-108
lines changed

7 files changed

+267
-108
lines changed

README.md

Lines changed: 124 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,76 +9,154 @@
99
[![GitHub pull-requests](https://img.shields.io/github/issues-pr/RT-Thread/rt-thread.svg)](https://github.com/RT-Thread/rt-thread/pulls)
1010
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://github.com/RT-Thread/rt-thread/pulls)
1111

12-
RT-Thread is an open source IoT operating system from China, which has strong scalability: from a tiny kernel running on a tiny core, for example ARM Cortex-M0, or Cortex-M3/4/7, to a rich feature system running on MIPS32, ARM Cortex-A8, ARM Cortex-A9 DualCore etc.
12+
# Introduction
1313

14-
## Overview ##
14+
RT-Thread was born in 2006, it is an open source, neutral, and community-based real-time operating system (RTOS).
1515

16-
RT-Thread RTOS like a traditional real-time operating system. The kernel has real-time multi-task scheduling, semaphore, mutex, mail box, message queue, signal etc. However, it has three different things:
16+
RT-Thread is mainly written in C language, easy to understand and easy to port(can be quickly port to a wide range of mainstream MCUs and module chips). It applies object-oriented programming methods to real-time system design, making the code elegant, structured, modular, and very tailorable.
1717

18-
* Device Driver;
19-
* Component;
20-
* Dynamic Module
2118

22-
The device driver is more like a driver framework, UART, IIC, SPI, SDIO, USB device/host, EMAC, MTD NAND etc. The developer can easily add low level driver and board configuration, then combined with the upper framework, he/she can use lots of features.
19+
RT-Thread has Standard version and Nano version. For resource-constrained microcontroller (MCU) systems, the NANO kernel version that requires only 3KB Flash and 1.2KB RAM memory resources can be tailored with easy-to-use tools; And for resource-rich IoT devices, RT-Thread can use the on-line software package management tool, together with system configuration tools, to achieve intuitive and rapid modular cutting, seamlessly import rich software packages, thus achieving complex functions like Android's graphical interface and touch sliding effects, smart voice interaction effects, and so on.
2320

24-
The Component is a software concept upon RT-Thread kernel, for example a shell (finsh/msh shell), virtual file system (FAT, YAFFS, UFFS, ROM/RAM file system etc), TCP/IP protocol stack (lwIP), POSIX (thread) interface etc. One component must be a directory under RT-Thread/Components and one component can be descripted by a SConscript file (then be compiled and linked into the system).
2521

26-
The Dynamic Module, formerly named as User Applicaion (UA) is a dynamic loaded module or library, it can be compiled standalone without Kernel. Each Dynamic Module has its own object list to manage thread/semaphore/kernel object which was created or initialized inside this UA. More information about UA, please visit another [git repo](https://github.com/RT-Thread/rtthread-apps).
22+
## RT-Thread Architecture
2723

28-
## Board Support Package ##
24+
RT-Thread has not only a real-time kernel, but also rich components. Its architecture is as follows:
2925

30-
RT-Thread RTOS can support many architectures:
3126

32-
* ARM Cortex-M0
33-
* ARM Cortex-M3/M4/7
34-
* ARM Cortex-R4
35-
* ARM Cortex-A8/A9
36-
* ARM920T/ARM926 etc
37-
* MIPS32
38-
* x86
39-
* Andes
40-
* C-Sky
41-
* RISC-V
42-
* PowerPC
27+
![architecture](./documentation/figures/architecture.png)
4328

44-
## License ##
4529

46-
RT-Thread is Open Source software under the Apache License 2.0 since RT-Thread v3.1.1. License and copyright information can be found within the code.
4730

48-
/*
49-
* Copyright (c) 2006-2018, RT-Thread Development Team
50-
*
51-
* SPDX-License-Identifier: Apache-2.0
52-
*/
31+
It includes:
5332

54-
Since 9th of September 2018, PRs submitted by the community may be merged into the main line only after signing the Contributor License Agreement(CLA).
33+
- Kernel layer: RT-Thread kernel, the core part of RT-Thread, includes the implementation of objects in the kernel system, such as multi-threading and its scheduling, semaphore, mailbox, message queue, memory management, timer, etc.; libcpu/BSP (Chip Migration Related Files/Board Support Package) is closely related to hardware and consists of peripheral drivers and CPU porting.
5534

56-
## Usage ##
35+
- Components and Service Layer: Components are based on upper-level software on top of the RT-Thread kernel, such as virtual file systems, FinSH command-line interfaces, network frameworks, device frameworks, and more. Its modular design allows for high internal cohesion inside the components and low coupling between components.
36+
37+
- RT-Thread software package: A general-purpose software component running on the RT-Thread IoT operating system platform for different application areas, consisting of description information, source code or library files. RT-Thread provides an open package platform with officially available or developer-supplied packages that provide developers with a choice of reusable packages that are an important part of the RT-Thread ecosystem. The package ecosystem is critical to the choice of an operating system because these packages are highly reusable and modular, making it easy for application developers to build the system they want in the shortest amount of time. RT-Thread supports more than 180 software packages.
5738

58-
RT-Thread RTOS uses [scons](http://www.scons.org) as building system. Therefore, please install scons and Python 2.7 firstly.
59-
So far, the RT-Thread scons building system support the command line compile or generate some IDE's project. There are some option varaibles in the scons building script (rtconfig.py):
39+
## RT-Thread Features
6040

61-
* ```CROSS_TOOL``` the compiler which you want to use, gcc/keil/iar.
62-
* ```EXEC_PATH``` the path of compiler.
41+
- Designed for resource-constrained devices, the minimum kernel requires only 1.2KB of RAM and 3 KB of Flash.
6342

64-
In SConstruct file:
43+
- Has rich components and a prosperous and fast growing package ecosystem.
6544

66-
```RTT_ROOT``` This variable is the root directory of RT-Thread RTOS. If you build the porting in the bsp directory, you can use the default setting. Also, you can set the root directory in ```RTT_ROOT``` environment variable and not modify SConstruct files.
45+
- Elegant code style, easy to use, read and master.
6746

68-
When you set these variables correctly, you can use command:
47+
- High Scalability. RT-Thread has high-quality scalable software architecture, loose coupling, modularity, is easy to tailor and expand.
6948

70-
scons
49+
- Supports high-performance applications.
7150

72-
under BSP directory to simplely compile RT-Thread RTOS.
51+
- Supports cross-platform and a wide range of chips.
7352

74-
If you want to generate the IDE's project file, you can use command:
53+
## Code Catalogue
7554

76-
scons --target=mdk/mdk4/mdk5/iar/cb -s
55+
RT-Thread source code catalog is shown as follow:
7756

78-
to generate the project file.
57+
| Name | Description |
58+
| ------------- | ------------------------------------------------------- |
59+
| BSP | Board Support Package based on the porting of various development boards |
60+
| components | RT-Thread's individual component codes, such as finsh, gui, etc., |
61+
| documentation | Related documents, like coding regulation, etc., |
62+
| examples | Related sample code |
63+
| include | Head file of RT-Thread kernel |
64+
| libcpu | Porting code for all types of chips. |
65+
| src | The source file for the RT-Thread kernel. |
66+
| tools | The script file for the RT-Thread command build tool. |
67+
68+
RT-Thread has now been ported for nearly 90 development boards, most BSPs support MDK, IAR development environment and GCC compiler, and have provided default MDK and IAR project, which allows users to add their own application code directly based on the project. Each BSP has a similar directory structure, and most BSPs provide a README.md file, which is a markdown-format file that contains the basic introduction of BSP, and introduces how to simply start using BSP.
69+
70+
Env is a development tool developed by RT-Thread which provides a build environment, graphical system configuration, and package management capabilities for project based on the RT-Thread operating system. Its built-in `menuconfig` provides an easy-to-use configuration tailoring tool. It can tailor the kernels, components and software packages freely, so that the system can be constructed by building blocks.
71+
72+
73+
- [Download Env Tool](https://www.rt-thread.io/download.html?download=Env)
74+
- [User manual of Env](https://github.com/RT-Thread/rtthread-manual-doc/blob/master/env/env.md)
75+
76+
# Resources
77+
78+
## Supported Architectures
79+
80+
RT-Thread supports many architectures,and has covered the major architectures in current applications. Architecture and chip manufacturer involved:
81+
82+
- **ARM Cortex-M0/M0+**:manufacturers like ST
83+
- **ARM Cortex-M3**:manufacturers like ST、Winner Micro、MindMotion, ect.
84+
- **ARM Cortex-M4**:manufacturers like ST、Nuvton、NXP、GigaDevice、Realtek、Ambiq Micro, ect.
85+
- **ARM Cortex-M7**:manufacturers like ST、NXP
86+
- **ARM Cortex-M23**:manufacturers like GigaDevice
87+
- **ARM Cortex-R4**
88+
- **ARM Cortex-A8/A9**:manufacturers like NXP
89+
- **ARM7**:manufacturers like Samsung
90+
- **ARM9**:manufacturers like Allwinner、Xilinx 、GOKE
91+
- **ARM11**:manufacturers like Fullhan
92+
- **MIPS32**:manufacturers like loongson、Ingenic
93+
- **RISC-V**:manufacturers like Hifive、Kendryte
94+
- **ARC**:manufacturers like SYNOPSYS
95+
- **DSP**:manufacturers like TI
96+
- **C-Sky**
97+
- **x86**
98+
99+
## Supported IDE and Compiler
100+
101+
The main IDE/compilers supported by RT-Thread are:
102+
103+
- MDK KEIL
104+
- IAR
105+
- GCC
106+
- RT-Thread Studio
107+
108+
Use Python-based [scons](http://www.scons.org/) for command-line builds.
109+
110+
RT-Thread Studio Demonstration:
111+
112+
![studio](./documentation/figures/studio.gif)
113+
114+
115+
## Getting Started
116+
117+
RT-Thread BSP can be compiled directly and downloaded to the corresponding development board for use. In addition, RT-Thread also provides qemu-vexpress-a9 BSP, which can be used without hardware platform. See the getting started guide below for details.
118+
119+
- [Getting Started of QEMU (Windows)](https://github.com/RT-Thread/rtthread-manual-doc/blob/master/documentation/quick_start_qemu/quick_start_qemu.md)
120+
121+
- [Getting Started of QEMU (Ubuntu)](https://github.com/RT-Thread/rtthread-manual-doc/blob/master/documentation/quick_start_qemu/quick_start_qemu_linux.md)
122+
123+
## Documentation
124+
125+
[RT-Thread Programming Guide](https://github.com/RT-Thread/rtthread-manual-doc) | [RT-Thread Supported Chips & Boards](https://www.rt-thread.io/board.html) |
126+
[RT-Thread Software Package](https://github.com/RT-Thread/packages) | [RT-Thread Studio](https://www.rt-thread.io/studio.html)
127+
128+
## Sample
129+
130+
[Kernel Sample](https://github.com/RT-Thread-packages/kernel-sample) | [Device Sample Code](https://github.com/RT-Thread-packages/peripheral-sample) | [File System Sample Code](https://github.com/RT-Thread-packages/filesystem-sample ) | [Network Sample Code](https://github.com/RT-Thread-packages/network-sample ) |
131+
132+
[Based on the STM32L475 IoT Board SDK](https://github.com/RT-Thread/IoT_Board) | [Based on the W601 IoT Board SDK](https://github.com/RT-Thread/W601_IoT_Board)
133+
134+
# License
135+
136+
RT-Thread is an open source software and has been licensed under Apache License Version 2.0 since v3.1.1. License information and copyright information can generally be seen at the beginning of the code:
137+
138+
```
139+
140+
`\* Copyright (c) 2006-2018, RT-Thread Development Team`
141+
142+
`*`
143+
144+
`\* SPDX-License-Identifier: Apache-2.0`
145+
146+
```
147+
148+
To avoid possible future license conflicts, developers need to sign a Contributor License Agreement (CLA) when submitting PR to RT-Thread.
149+
150+
# Community
151+
152+
153+
RT-Thread is very grateful for the support from all community developers, and if you have any ideas, suggestions or questions in the process of using RT-Thread, RT-Thread can be reached by the following means, and we are also updating RT-Thread in real time on these channels. At the same time, Any questions can be asked in the [issue section of rtthread-manual-doc](https://github.com/RT-Thread/rtthread-manual-doc/issues). By creating a new issue to describe your questions, community members will answer them.
154+
155+
[Website](https://www.rt-thread.io) | [Twitter](https://twitter.com/rt_thread) | [Youtube]( https://www.youtube.com/channel/UCdDHtIfSYPq4002r27ffqPw?view_as=subscriber) | [Gitter]( https://gitter.im/RT-Thread) | [Facebook](https://www.facebook.com/RT-Thread-IoT-OS-110395723808463/?modal=admin_todo_tour) | [Medium](https://medium.com/@rt_thread)
156+
157+
# Contribution
158+
159+
If you are interested in RT-Thread and want to join in the development of RT-Thread and become a code contributor,please refer to the [Code Contribution Guide](https://github.com/RT-Thread/rtthread-manual-doc/blob/master/documentation/contribution_guide/contribution_guide.md).
79160

80-
NOTE: RT-Thread scons building system will tailor the system according to your rtconfig.h configuration header file. For example, if you disable the lwIP in the rtconfig.h by commenting the ```#define RT_USING_LWIP```, the generated project file should have no lwIP related files.
81161

82-
## Contribution ##
83162

84-
Please refer the contributors in the github. Thank all of RT-Thread Developers.

0 commit comments

Comments
 (0)