From 285ecdc970173536a7c3f2723873f38a6e97fe82 Mon Sep 17 00:00:00 2001 From: supperMCU <89524862@qq.com> Date: Sun, 26 Sep 2021 14:09:57 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E3=80=91=E3=80=90=E8=BD=BB=E9=87=8F=E7=BA=A7=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=B0=8F=E9=94=99=E8=AF=AF=20rt=5Fuint32=20=E8=BF=99?= =?UTF-8?q?=E4=B8=AA=E5=AE=9A=E4=B9=89=E5=9C=A8=E4=BB=A3=E7=A0=81=E4=B8=AD?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=AE=9A=E4=B9=89=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BArt=5Fuint32=5Ft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../programming-manual/porting/porting.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md b/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md index d842665..6adf15d 100644 --- a/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md +++ b/rt-thread-version/rt-thread-standard/programming-manual/porting/porting.md @@ -17,9 +17,9 @@ RT-Thread 的 libcpu 抽象层向下提供了一套统一的 CPU 架构移植接 | rt_base_t rt_hw_interrupt_disable(void); | 关闭全局中断 | | void rt_hw_interrupt_enable(rt_base_t level); | 打开全局中断 | | rt_uint8_t \*rt_hw_stack_init(void \*tentry, void \*parameter, rt_uint8_t \*stack_addr, void \*texit); | 线程栈的初始化,内核在线程创建和线程初始化里面会调用这个函数 | -| void rt_hw_context_switch_to(rt_uint32 to); | 没有来源线程的上下文切换,在调度器启动第一个线程的时候调用,以及在 signal 里面会调用 | -| void rt_hw_context_switch(rt_uint32 from, rt_uint32 to); | 从 from 线程切换到 to 线程,用于线程和线程之间的切换 | -| void rt_hw_context_switch_interrupt(rt_uint32 from, rt_uint32 to); | 从 from 线程切换到 to 线程,用于中断里面进行切换的时候使用 | +| void rt_hw_context_switch_to(rt_uint32_t to); | 没有来源线程的上下文切换,在调度器启动第一个线程的时候调用,以及在 signal 里面会调用 | +| void rt_hw_context_switch(rt_uint32_t from, rt_uint32_t to); | 从 from 线程切换到 to 线程,用于线程和线程之间的切换 | +| void rt_hw_context_switch_interrupt(rt_uint32_t from, rt_uint32_t to); | 从 from 线程切换到 to 线程,用于中断里面进行切换的时候使用 | | rt_uint32_t rt_thread_switch_interrupt_flag; | 表示需要在中断里进行切换的标志 | | rt_uint32_t rt_interrupt_from_thread, rt_interrupt_to_thread; | 在线程进行上下文切换时候,用来保存 from 和 to 线程 | @@ -187,7 +187,7 @@ rt_hw_context_switch_to() 只有目标线程,没有来源线程。这个函数 ```c ;/* -; * void rt_hw_context_switch_to(rt_uint32 to); +; * void rt_hw_context_switch_to(rt_uint32_t to); ; * r0 --> to ; * this fucntion is used to perform the first thread switch ; */ @@ -246,7 +246,7 @@ rt_hw_context_switch_to PROC ```c ;/* -; * void rt_hw_context_switch(rt_uint32 from, rt_uint32 to); +; * void rt_hw_context_switch(rt_uint32_t from, rt_uint32_t to); ; * r0 --> from ; * r1 --> to ; */ -- Gitee