修正了KEIL移植文档中的错误
This commit is contained in:
@@ -7,7 +7,7 @@ TencentOS tiny目前主要支持ARM Cortex M核芯片的移植,比如STM32 基
|
|||||||
|
|
||||||
调试ARM Cortex M核还需要仿真器, NUCLEO-L073RZ自带ST-Link调试器,如果您的开发板或者芯片模组没有板载仿真器,就需要连接外置的仿真器,如J-Link、U-Link之类的。
|
调试ARM Cortex M核还需要仿真器, NUCLEO-L073RZ自带ST-Link调试器,如果您的开发板或者芯片模组没有板载仿真器,就需要连接外置的仿真器,如J-Link、U-Link之类的。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### 2.准备编译器环境
|
### 2.准备编译器环境
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ TencentOS tiny目前主要支持ARM Cortex M核芯片的移植,比如STM32 基
|
|||||||
### 4. 准备TencentOS tiny的源码
|
### 4. 准备TencentOS tiny的源码
|
||||||
TencentOS tiny的源码已经开源,github下载地址为:[https://github.com/Tencent/TencentOS-tiny.git]()
|
TencentOS tiny的源码已经开源,github下载地址为:[https://github.com/Tencent/TencentOS-tiny.git]()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|一级目录 | 二级目录 | 说明 |
|
|一级目录 | 二级目录 | 说明 |
|
||||||
|---------|---------|---------|
|
|---------|---------|---------|
|
||||||
@@ -194,7 +194,7 @@ TencentOS tiny所有要添加的头文件目录如下:
|
|||||||
|
|
||||||
### 1. 修改部分代码
|
### 1. 修改部分代码
|
||||||
#### 修改stm32l0xx_it.c的中断函数,在stm32l0xx_it.c文件中包含 tos_k.h 头文件
|
#### 修改stm32l0xx_it.c的中断函数,在stm32l0xx_it.c文件中包含 tos_k.h 头文件
|
||||||

|

|
||||||
|
|
||||||
在stm32l0xx_it.c文件中的PendSV_Handler函数前添加___weak关键字,因为该函数在TencentOS tiny的调度汇编中已经重新实现;同时在SysTick_Handler函数中添加TencentOS tiny的调度处理函数,如下图所示:
|
在stm32l0xx_it.c文件中的PendSV_Handler函数前添加___weak关键字,因为该函数在TencentOS tiny的调度汇编中已经重新实现;同时在SysTick_Handler函数中添加TencentOS tiny的调度处理函数,如下图所示:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user