summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-12-06 23:50:17 +0000
committerbernard.xiong <[email protected]>2009-12-06 23:50:17 +0000
commit6db90b15afc65acb82983fcb4e7fbcd904cfd282 (patch)
tree8fc36d57351db101b88813d614f89b8ffe047bf5 /src/device.c
parentaf965befa929b4c1809e5dfba01402c1aad5fd74 (diff)
fix the cortex-m3 context switch bug when interrupt preempts pendsv exception; add RT_LWIP_ETH_PAD_SIZE option; fix device activate flag set issue in init function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@193 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index cbd42cf103..83385128d5 100644
--- a/src/device.c
+++ b/src/device.c
@@ -83,6 +83,10 @@ rt_err_t rt_device_init_all()
{
rt_kprintf("init device:%s error:\n", device->parent.name);
rt_kprintf("error code:%d\n", result);
+ }
+ else
+ {
+ device->flag |= RT_DEVICE_FLAG_ACTIVATED;
}
}
}