diff options
| author | dzzxzz <[email protected]> | 2011-09-09 07:30:39 +0000 |
|---|---|---|
| committer | dzzxzz <[email protected]> | 2011-09-09 07:30:39 +0000 |
| commit | f7d1ca323b4957e8ee7cc2425df9e2459594bddc (patch) | |
| tree | 49c43b9b1a88bb81996b407d8abfba818b657f01 /libcpu/m16c | |
| parent | 9fce2db27e664fc3ea8961878ea7f3e8c5c929b2 (diff) | |
fixed a spelling error
rt_thread_switch_interrput_flag -> rt_thread_switch_interrupt_flag
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1704 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/m16c')
| -rw-r--r-- | libcpu/m16c/m16c62p/context_iar.S | 6 | ||||
| -rw-r--r-- | libcpu/m16c/m16c62p/cpuport.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libcpu/m16c/m16c62p/context_iar.S b/libcpu/m16c/m16c62p/context_iar.S index f326817ffb..0a7aa5af76 100644 --- a/libcpu/m16c/m16c62p/context_iar.S +++ b/libcpu/m16c/m16c62p/context_iar.S @@ -23,7 +23,7 @@ RSEG CODE(1)
- EXTERN rt_thread_switch_interrput_flag
+ EXTERN rt_thread_switch_interrupt_flag
EXTERN rt_interrupt_from_thread
EXTERN rt_interrupt_to_thread
@@ -73,9 +73,9 @@ rt_hw_context_switch: RTS
rt_hw_context_switch_interrupt:
- CMP.W #1, rt_thread_switch_interrput_flag
+ CMP.W #1, rt_thread_switch_interrupt_flag
JEQ jump
- MOV.W #1, rt_thread_switch_interrput_flag
+ MOV.W #1, rt_thread_switch_interrupt_flag
MOV.W R0, rt_interrupt_from_thread
jump
MOV.W R1, rt_interrupt_to_thread
diff --git a/libcpu/m16c/m16c62p/cpuport.c b/libcpu/m16c/m16c62p/cpuport.c index 58c1400a25..e1a36b9cdf 100644 --- a/libcpu/m16c/m16c62p/cpuport.c +++ b/libcpu/m16c/m16c62p/cpuport.c @@ -19,7 +19,7 @@ extern volatile rt_uint8_t rt_interrupt_nest; /* switch flag on interrupt and thread pointer to save switch record */
rt_uint32_t rt_interrupt_from_thread;
rt_uint32_t rt_interrupt_to_thread;
-rt_uint8_t rt_thread_switch_interrput_flag;
+rt_uint8_t rt_thread_switch_interrupt_flag;
/**
* This function will initialize hardware interrupt
@@ -30,7 +30,7 @@ void rt_hw_interrupt_init(void) rt_interrupt_nest = 0;
rt_interrupt_from_thread = 0;
rt_interrupt_to_thread = 0;
- rt_thread_switch_interrput_flag = 0;
+ rt_thread_switch_interrupt_flag = 0;
}
/**
@@ -81,9 +81,9 @@ void rt_hw_context_switch(rt_uint32_t from, rt_uint32_t to) void rt_hw_context_switch_interrupt(rt_uint32_t from, rt_uint32_t to)
{
- if (rt_thread_switch_interrput_flag != 1)
+ if (rt_thread_switch_interrupt_flag != 1)
{
- rt_thread_switch_interrput_flag = 1;
+ rt_thread_switch_interrupt_flag = 1;
rt_interrupt_from_thread = from;
}
rt_interrupt_to_thread = to;
|
