Professional Documents
Culture Documents
IOT Unit02 L16 0verview - Huawei LiteOS
IOT Unit02 L16 0verview - Huawei LiteOS
IOT Unit02 L16 0verview - Huawei LiteOS
Huawei LiteOS is a real-time kernel–based lightweight operating system developed by Huawei for
the IoT. The basic kernel of Huawei LiteOS is compatible with basic operating system components,
such as task, memory, time, interrupt, queue, and event management components, communication
mechanisms, and timers, to better support low power consumption scenarios. In addition, the basic
kernel enables time alignment of timers using the tickless mechanism.
Focusing on the NB-IoT market, Huawei LiteOS has helped partners build open source IoT
ecosystems in technology, ecosystem, solution, commercial use, and other aspects. Currently,
Huawei LiteOS has cooperated with more than 30 MCU and solution partners to launch a series of
open source development kits and industry solutions, which help customers quickly launch IoT
terminals and services. Such customers are involved in multiple industries, such as meter reading,
parking, street lamp, environmental protection, bicycle sharing, and logistics. Moreover, Huawei
LiteOS provides developers with a one-stop software platform, lowering development requirements
and improving development efficiency.
Module Introduction
Task
Creates, deletes, delays, suspends, and resumes tasks, and can lock or unlock taskscheduling. High
priority tasks preempt resources from low priority ones. Tasks of the same priority share resources
in a round robin setup using time slicing.
Task Synchronization
Semaphore: creates, deletes, pends on, and releases semaphores.
Interrupt: Creates, deletes, enables, and disables interrupts; clears interrupt request flags.
Message queue: Creates, deletes, reads from, and writes into message queues.
Time Management
System time: generated when an output pulse of a timer/counter triggers an interrupt.
Tick time: the basic time unit used in OS scheduling. The tick length is user configurable.
Typically, it is determined by the system clock speed and represented in the form of ticks per
second.
Software timer: The timer length is measured in ticks. The Timer_Callback function (a function
used to process timer expiry) is called when a soft tick interrupt is generated.
Memory Management
Provide two algorithms of dynamic memory and static memory. Allocates or
frees memory statically using the Membox algorithm or dynamically using the SLAB algorithm
and DLINK algorithm.
Core Chip
Cortex-
K3V5 and STM32F746STM32F746ZG ATSAME70Q21
M7
Constraints
Both Huawei LiteOS interfaces and CMSIS interfaces are supported, but hybrid use of them may
lead to unpredictable results. (For example, a CMSIS interface is used for requesting semaphores
while a Huawei LiteOS interface is used for releasing semaphores.)
Use only Huawei LiteOS interfaces for driver development. CMSIS interfaces are recommended
for app development.