summaryrefslogtreecommitdiff
path: root/libcpu/rx
diff options
context:
space:
mode:
authorxph <[email protected]>2020-04-09 16:35:28 +0800
committerGitHub <[email protected]>2020-04-09 16:35:28 +0800
commitca7f01d79b3e0a997c771cec298e4ebd65b75809 (patch)
tree3d2c48aae7203b14038ba7b98b500b5343ed7f2a /libcpu/rx
parentf763f8e7284b0492c5a65ad0abf94ee1963d7dcc (diff)
parentbaa3145bfe61b3330b6a160523cc5470fa5db3a7 (diff)
Merge pull request #1 from RT-Thread/master
sync rtt
Diffstat (limited to 'libcpu/rx')
-rw-r--r--libcpu/rx/SConscript14
-rw-r--r--libcpu/rx/context_iar.S4
-rw-r--r--libcpu/rx/cpuport.c4
3 files changed, 18 insertions, 4 deletions
diff --git a/libcpu/rx/SConscript b/libcpu/rx/SConscript
new file mode 100644
index 0000000000..e5890498c9
--- /dev/null
+++ b/libcpu/rx/SConscript
@@ -0,0 +1,14 @@
+# RT-Thread building script for component
+
+from building import *
+
+Import('rtconfig')
+
+cwd = GetCurrentDir()
+src = Glob('*.c') + Glob('*.cpp') + Glob('*_iar.S')
+CPPPATH = [cwd]
+ASFLAGS = ''
+
+group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
+
+Return('group')
diff --git a/libcpu/rx/context_iar.S b/libcpu/rx/context_iar.S
index 143ae00315..db02ce4d1f 100644
--- a/libcpu/rx/context_iar.S
+++ b/libcpu/rx/context_iar.S
@@ -73,12 +73,12 @@ ___interrupt_27:
MOV.L #_rt_interrupt_from_thread, R15
MOV.L [ R15 ], R15
MOV.L R0, [ R15 ]
- BRA swtich_to_thread
+ BRA switch_to_thread
need_modify_isp:
MVFC ISP, R15
ADD #12, R15
MVTC R15, ISP
-swtich_to_thread:
+switch_to_thread:
SETPSW U
MOV.L #_rt_interrupt_to_thread, R15
MOV.L [ R15 ], R15
diff --git a/libcpu/rx/cpuport.c b/libcpu/rx/cpuport.c
index e8a75c629e..681c0e8e6e 100644
--- a/libcpu/rx/cpuport.c
+++ b/libcpu/rx/cpuport.c
@@ -58,7 +58,7 @@ struct stack_frame
};
/**
- * Initilial the threah stack.
+ * Initilial the thread stack.
*
* @author LXZ (2014/11/8)
*
@@ -158,7 +158,7 @@ void rt_hw_context_switch(rt_uint32_t from, rt_uint32_t to)
ENTER_INTERRUPT();
}
/**
- * swithc thread out the interrupt
+ * switch thread out the interrupt
*
* @author LXZ (2014/11/8)
*