diff options
| author | [email protected] <[email protected]> | 2012-10-11 17:06:30 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-10-11 17:06:30 +0000 |
| commit | c752d9b09510b62e4ecc76f4fd0343eeba5c1358 (patch) | |
| tree | a2dc012f19925f765441dec1442f0a1745100f90 /components/drivers/src/completion.c | |
| parent | 051fd8eca9fb3714cafe927d093d9348b31c39a1 (diff) | |
submit the first version usb device stack.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2344 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/src/completion.c')
| -rw-r--r-- | components/drivers/src/completion.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/src/completion.c b/components/drivers/src/completion.c index d35da7a107..39814a3d4f 100644 --- a/components/drivers/src/completion.c +++ b/components/drivers/src/completion.c @@ -96,6 +96,8 @@ void rt_completion_done(struct rt_completion* completion) rt_base_t level; RT_ASSERT(completion != RT_NULL); + if(completion->flag == RT_COMPLETED) return; + level = rt_hw_interrupt_disable(); completion->flag = RT_COMPLETED; |
