提交 96fc6dfa 编写于 作者: K kenneth

fix:liteos-m arch目录调整同步修改相关文档

修复liteos-m arch目录调整同步修改相关文档;修复工具链gcc、iar笔误。

close #I4HYAX
Signed-off-by: Nkenneth <zhushangyuan@huawei.com>
上级 f8dce265
......@@ -33,9 +33,9 @@ The CPU architecture includes two layers: general architecture definition layer
</thead>
<tbody><tr id="row1577522103217"><td class="cellrowborder" valign="top" width="21.592159215921594%" headers="mcps1.2.4.1.1 "><p id="p378152243213"><a name="p378152243213"></a><a name="p378152243213"></a>Header file location</p>
</td>
<td class="cellrowborder" valign="top" width="34.713471347134714%" headers="mcps1.2.4.1.2 "><p id="p37819227320"><a name="p37819227320"></a><a name="p37819227320"></a>kernel/arch/include</p>
<td class="cellrowborder" valign="top" width="34.713471347134714%" headers="mcps1.2.4.1.2 "><p id="p37819227320"><a name="p37819227320"></a><a name="p37819227320"></a>arch/include</p>
</td>
<td class="cellrowborder" valign="top" width="43.694369436943695%" headers="mcps1.2.4.1.3 "><p id="p9783225321"><a name="p9783225321"></a><a name="p9783225321"></a>kernel/arch/&lt;arch&gt;/&lt;arch&gt;/&lt;toolchain&gt;/</p>
<td class="cellrowborder" valign="top" width="43.694369436943695%" headers="mcps1.2.4.1.3 "><p id="p9783225321"><a name="p9783225321"></a><a name="p9783225321"></a>arch/&lt;arch&gt;/&lt;arch&gt;/&lt;toolchain&gt;/</p>
</td>
</tr>
<tr id="row16781422193218"><td class="cellrowborder" valign="top" width="21.592159215921594%" headers="mcps1.2.4.1.1 "><p id="p978112283215"><a name="p978112283215"></a><a name="p978112283215"></a>Header file name</p>
......
......@@ -6,7 +6,7 @@
## Porting Scenario<a name="section93781277367"></a>
The chip architecture adaptation process is optional. If the particular chip architecture is supported in the **liteos\_m/kernel/arch** directory, you can directly implement the board adaptation. Otherwise, chip architecture porting is required.
The chip architecture adaptation process is optional. If the particular chip architecture is supported in the **liteos\_m/arch** directory, you can directly implement the board adaptation. Otherwise, chip architecture porting is required.
## Directory Specifications<a name="section18127744153119"></a>
......@@ -27,22 +27,22 @@ The directory structure of the kernel is described as follows:
```
.
├── arch --- Code of the kernel instruction architecture layer
│ ├── arm --- Code of the ARM32 architecture
│ │ ├── cortex-m3 --- Code of the Cortex-M3 architecture
│ │ │ ├── iar --- Implementation of the IAR toolchain
│ │ │ ├── keil --- Implementation of the Keil toolchain
│ │ │ └── xxx --- Implementation of the particular toolchain
│ │ └── cortex-m4 --- Code of the Cortex-M4 architecture
│ │ ├── iar --- Implementation of the IAR toolchain
│ │ ├── keil --- Implementation of the Keil toolchain
│ │ └── xxx --- Implementation of the particular toolchain
│ ├── include --- Header files that declare the APIs required, kernel-independent
│ └── risc-v --- RISK_V architecture
│ └── gcc --- Implementation of the GCC toolchain
├── components --- Components available for porting and header files exposed externally
├── kal --- APIs exposed externally, including CMSIS APIs and part of POSIX APIs
├── kernel --- Code for defining the minimum kernel function set
│ ├── arch --- Code of the kernel instruction architecture layer
│ │ ├── arm --- Code of the ARM32 architecture
│ │ │ ├── cortex-m3 --- Code of the Cortex-M3 architecture
│ │ │ │ ├── iar --- Implementation of the IAR toolchain
│ │ │ │ ├── keil --- Implementation of the Keil toolchain
│ │ │ │ └── xxx --- Implementation of the particular toolchain
│ │ │ └── cortex-m4 --- Code of the Cortex-M4 architecture
│ │ │ ├── iar --- Implementation of the IAR toolchain
│ │ │ ├── keil --- Implementation of the Keil toolchain
│ │ │ └── xxx --- Implementation of the particular toolchain
│ │ ├── include --- Header files that declare the APIs required, kernel-independent
│ │ └── risc-v --- RISK_V architecture
│ │ └── gcc --- Implementation of the IAR toolchain
│ ├── include --- Code for defining the minimum kernel function set
│ └── src --- Code for implementing the minimum kernel function set
└──utils --- Basic code
......
......@@ -29,9 +29,9 @@ CPU体系架构分为通用架构定义和特定架构定义两层,通用架
</thead>
<tbody><tr id="row1577522103217"><td class="cellrowborder" valign="top" width="21.592159215921594%" headers="mcps1.2.4.1.1 "><p id="p378152243213"><a name="p378152243213"></a><a name="p378152243213"></a>头文件位置</p>
</td>
<td class="cellrowborder" valign="top" width="34.713471347134714%" headers="mcps1.2.4.1.2 "><p id="p37819227320"><a name="p37819227320"></a><a name="p37819227320"></a>kernel/arch/include</p>
<td class="cellrowborder" valign="top" width="34.713471347134714%" headers="mcps1.2.4.1.2 "><p id="p37819227320"><a name="p37819227320"></a><a name="p37819227320"></a>arch/include</p>
</td>
<td class="cellrowborder" valign="top" width="43.694369436943695%" headers="mcps1.2.4.1.3 "><p id="p9783225321"><a name="p9783225321"></a><a name="p9783225321"></a>kernel/arch/&lt;arch&gt;/&lt;arch&gt;/&lt;toolchain&gt;/</p>
<td class="cellrowborder" valign="top" width="43.694369436943695%" headers="mcps1.2.4.1.3 "><p id="p9783225321"><a name="p9783225321"></a><a name="p9783225321"></a>arch/&lt;arch&gt;/&lt;arch&gt;/&lt;toolchain&gt;/</p>
</td>
</tr>
<tr id="row16781422193218"><td class="cellrowborder" valign="top" width="21.592159215921594%" headers="mcps1.2.4.1.1 "><p id="p978112283215"><a name="p978112283215"></a><a name="p978112283215"></a>头文件命名</p>
......
......@@ -6,7 +6,7 @@
## 移植场景<a name="section93781277367"></a>
芯片架构适配是可选过程,如果在liteos\_m/kernel/arch目录下已经支持对应芯片架构,则可以跳过芯片架构适配,进行单板适配过程,否则需要进行芯片架构移植工作。
芯片架构适配是可选过程,如果在liteos\_m/arch目录下已经支持对应芯片架构,则可以跳过芯片架构适配,进行单板适配过程,否则需要进行芯片架构移植工作。
## 目录规范<a name="section18127744153119"></a>
......@@ -25,22 +25,22 @@
```
.
├── arch --- 内核指令架构层代码
│ ├── arm --- arm32架构的代码
│ │ ├── cortex-m3 --- cortex-m3架构的代码
│ │ │ ├── iar --- iar编译工具链实现
│ │ │ ├── keil --- keil编译工具链实现
│ │ │ └── xxx --- xxx编译工具链实现
│ │ └── cortex-m4 --- cortex-m4架构的代码
│ │ ├── iar --- iar编译工具链实现
│ │ ├── keil --- keil编译工具链实现
│ │ └── xxx --- xxx编译工具链实现
│ ├── include --- 所有的arch需要实现的函数定义,内核依赖
│ └── risc-v --- risk-v架构
│ └── gcc --- gcc编译工具链实现
├── components --- 移植可选组件,依赖内核,单独对外提供头文件
├── kal --- 内核抽象层,提供内核对外接口,当前支持cmsis接口和部分posix接口
├── kernel --- 内核最小功能集代码
│ ├── arch --- 内核指令架构层代码
│ │ ├── arm --- arm32架构的代码
│ │ │ ├── cortex-m3 --- cortex-m3架构的代码
│ │ │ │ ├── iar --- iar编译工具链实现
│ │ │ │ ├── keil --- keil编译工具链实现
│ │ │ │ └── xxx --- xxx编译工具链实现
│ │ │ └── cortex-m4 --- cortex-m4架构的代码
│ │ │ ├── iar --- iar编译工具链实现
│ │ │ ├── keil --- keil编译工具链实现
│ │ │ └── xxx --- xxx编译工具链实现
│ │ ├── include --- 所有的arch需要实现的函数定义,内核依赖
│ │ └── risc-v --- risk-v架构
│ │ └── gcc --- iar编译工具链实现
│ ├── include --- 内核最小功能集代码
│ └── src --- 内核最小功能集代码
└──utils --- 基础代码,作为依赖的最底层,被系统依赖
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册