What is LIteos
- "Free open source" real-time operating system, integrated LwM2M, CoAP, mbed TLS, LwIP a full IoT Internet protocol stack, and on the basis of LwM2M provides AgentTiny module, users only need to focus on their applications without concern LwM2M achieve details, directly AgentTiny package interface can be easily and quickly implement secure and reliable connection to the cloud platform. Belonging to the domestic real-time operating system (RTOS)
First transplant Litos, the establishment of a functional template Liteos
Based on the standard library transplant
- Download Source, https://github.com/LiteOS/LiteOS
Add to bare metal engineering LiteOS source
Open LiteOS source file, you can see there are eight folders, the following first look at the main folder and its subfolders role, then extract LiteOS source core file out, added to the file in the root directory of the project folder because the project needs only useful source file, rather than the entire LiteOS source,
Add LiteOS system configuration files, containing the original chip driver
Copy the folder OS_CONFIG following some configuration files to the newly extracted LiteOS core folder, and so everyone is required to modify some files in this folder in the transplant works when it comes to fit different project configuration, and can be cut LiteOS function by modifying the kernel configuration header files in this folder.
Add CMSIS library, you can open the project in mdk which added, can also create \ Libraries \ CMSIS \ include, include folders from keil installation directory C: \ Keil_v5 \ ARM \ Pack \ ARM \ CMSIS \ 5.3.0 \ CMSIS \ include, it will include them avoid other computer
compilation error no header in the porting process caused
Open the project, the source added LiteOS core group to the project folder
- New needs in the development environment inside LiteOS / cmsis, LiteOS / kernel, LiteOS / arch and LiteOS / config files four packets, wherein LiteOS / cmsis folder for storing the contents of LiteOS CMSIS folder, LiteOS / kernel for storing LiteOS folder contents kernel folder, LiteOS / arch folder used to store the contents of LiteOS arch folder. The LiteOS / config folder used to store the contents LiteOS under OS_CONFIG folder.