summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorlinshire <[email protected]>2022-12-10 23:04:26 +0800
committerGitHub <[email protected]>2022-12-10 23:04:26 +0800
commit8f9198eb99b1f1a2218f04a3c4695e868e8c3e73 (patch)
tree1b152b32d4412fd7738bc02e9c81b90eb7be24a7 /libcpu
parente991be9c51c54883b56ee3d9e7f30db33c404192 (diff)
对接了rthw.h的接口,修复了不能编译的问题 (#6722)
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/risc-v/ch32v3/cpuport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/ch32v3/cpuport.c b/libcpu/risc-v/ch32v3/cpuport.c
index 90ff958121..b36e731554 100644
--- a/libcpu/risc-v/ch32v3/cpuport.c
+++ b/libcpu/risc-v/ch32v3/cpuport.c
@@ -172,7 +172,7 @@ void rt_hw_interrupt_enable(rt_base_t level)
* void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to);
* #endif
*/
-void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to)
+void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to, rt_thread_t from_thread, rt_thread_t to_thread)
{
if (rt_thread_switch_interrupt_flag == 0)
rt_interrupt_from_thread = from;