# XLiteOS **Repository Path**: wingceltis-c/xlite-os ## Basic Information - **Project Name**: XLiteOS - **Description**: 简单的嵌入式实时OS - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-09-24 - **Last Updated**: 2025-07-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 从0开始写实时OS [toc] ## 序章 一直很想写一个自己的嵌入式实时OS,功能不需要特别多只要有基本的功能就行。每次想要去做总是遇到各种各样的事情导致检测不下来,所以想着能边写文档边写代码能把这个OS写完。 本文档主要从以下几点实现XLiteOS: 任务调度 - 支持优先级、时间片 任务通信与同步 - 锁、信号量、消息队列 内存管理 - malloc free 内存池 ## 环境准备 主控选择:因为是做嵌入式的实时OS所以选单片机作为主控,对stm32系列用的比较多加上手上刚好有stm32f103的板子这里选用stm32f103rct6作为主控。 编译环境:keil 5.2 基础代码生成:STM32CubeMX,只需要初始化串口功能