mirror of
https://github.com/openharmony/kernel_uniproton.git
synced 2026-07-01 04:19:55 -04:00
!19 feat: 修复README风格问题
Merge pull request !19 from zhushengle/readme_style
This commit is contained in:
@@ -1,44 +1,65 @@
|
||||
## UniProton介绍
|
||||
# UniProton介绍
|
||||
|
||||
UniProton主要目的在于为上层业务软件提供一个统一的操作系统平台,屏蔽底层硬件差异,并提供强大的调试功能。使得业务软件可在不同的硬件平台之间快速移植,方便产品芯片选型,降低硬件采购成本和软件维护成本。
|
||||
|
||||
一、搭建UniProton开发环境
|
||||
----------
|
||||
#### 1、下载源码
|
||||
```bash
|
||||
git clone https://gitee.com/openeuler/UniProton.git
|
||||
## 功能介绍
|
||||
|
||||
- 任务
|
||||
- 中断
|
||||
- 事件
|
||||
- 队列
|
||||
- 信号量
|
||||
- 内存管理
|
||||
- 软件定时器
|
||||
- 异常
|
||||
- 错误处理
|
||||
- cpu占用率
|
||||
|
||||
注: UniProton基础内核机制请参考[官方介绍](https://gitee.com/openeuler/UniProton)。
|
||||
|
||||
## 使用说明
|
||||
|
||||
OpenHarmony UniProton内核的编译构建系统是一个基于gn和ninja的组件化构建系统,支持按组件配置、裁剪和拼装,按需构建出定制化的产品。本文主要介绍如何基于gn和ninja编译UniProton工程。
|
||||
|
||||
### 搭建系统基础环境
|
||||
|
||||
在搭建各个开发板环境前,需要完成OpenHarmony系统基础环境搭建。系统基础环境主要是指OpenHarmony的编译环境和开发环境,详细介绍请参考官方站点[开发环境准备](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/Readme-CN.md)。开发者需要根据环境搭建文档完成环境搭建。
|
||||
|
||||
### 获取OpenHarmony源码
|
||||
|
||||
详细的源码获取方式,请见[源码获取](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/device-dev/get-code/sourcecode-acquire.md)。获取OpenHarmony完整仓代码后,假设克隆目录为`~/openHarmony`。
|
||||
|
||||
### 编译工具链下载
|
||||
|
||||
安装GNU Arm Embedded Toolchain 32位编译器:
|
||||
|
||||
官方下载地址为: [GNU Arm Embedded Toolchain编译器](https://developer.arm.com/downloads/-/gnu-rm),指定版本:10-2020-q4-major。
|
||||
|
||||
安装参考以下命令:
|
||||
```
|
||||
tar -xvf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C user_install_path
|
||||
```
|
||||
|
||||
##### 源码目录
|
||||
[源码目录介绍](./doc/design/architecture_design.md)
|
||||
注意: 安装完成后需要将安装目录加入***环境变量***中。
|
||||
|
||||
#### 2、创建开发工程
|
||||
### 已支持的示例工程
|
||||
|
||||
[hello word示例](./doc/getting_started.md)
|
||||
[stm32f407zg](https://gitee.com/openharmony/device_soc_st/tree/master/stm32f407zg/uniproton)
|
||||
```
|
||||
alientek
|
||||
rtos_demo
|
||||
rtos_demo_xts
|
||||
```
|
||||
|
||||
#### 3、编译
|
||||
## 约束
|
||||
|
||||
[编译步骤](./doc/UniProton_build.md)
|
||||
- 当前开源版本仅支持cortex_m4芯片,默认编译脚本的安全编译选项仅支持栈保护,其他选项由用户根据需要自行添加。
|
||||
|
||||
二、功能介绍
|
||||
----------
|
||||
- 遵循MulanPSL2开源许可协议。
|
||||
|
||||
- [任务](./doc/design/task.md)
|
||||
- [中断](./doc/design/hwi.md)
|
||||
- [事件](./doc/design/event.md)
|
||||
- [队列](./doc/design/queue.md)
|
||||
- [信号量](./doc/design/sem.md)
|
||||
- [内存管理](./doc/design/mem.md)
|
||||
- [软件定时器](./doc/design/timer.md)
|
||||
- [异常](./doc/design/exc.md)
|
||||
- [错误处理](./doc/design/err.md)
|
||||
- [cpu占用率](./doc/design/cpup.md)
|
||||
[如何贡献](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/contribute/%E5%8F%82%E4%B8%8E%E8%B4%A1%E7%8C%AE.md)
|
||||
|
||||
三、免责声明
|
||||
----------
|
||||
1. 当前开源版本仅支持cortex_m4芯片,默认编译脚本的安全编译选项仅支持栈保护,其他选项由用户根据需要自行添加。
|
||||
2. 遵循MulanPSL2开源许可协议
|
||||
## 相关仓
|
||||
|
||||
[kernel\_uniproton](https://gitee.com/openharmony/kernel_uniproton/blob/master/README.md)
|
||||
|
||||
四、如何贡献
|
||||
----------
|
||||
我们非常欢迎新贡献者加入到项目中来,也非常高兴能为新加入贡献者提供指导和帮助。在您贡献代码前,需要先签署[CLA](https://openeuler.org/en/cla.html)。
|
||||
|
||||
Reference in New Issue
Block a user