rt-thread/src
GalaIO b886340e67 open and then get the new device
in rt_console_set_device, open new device first and get the new device to _console_device.
我在编写程序时,在device驱动中打印log,但是使用rt_kprintf时,如果_console_device存在非空,那就执行驱动的write函数,但是这是device还没有初始化成功,但是已经提前给_console_device赋值,导致了程序无故fault,以上述修改可避开这样的矛盾。
2015-09-10 22:59:51 +08:00
..
SConscript [Kernel]when the macro of RT_USING_COMPONENTS_INIT is not open ,then remove the source of components.c from the project. 2015-05-20 15:21:29 +08:00
clock.c Embedded GPLv2 license. 2013-06-24 17:06:09 +08:00
components.c [Kernel Init] Add support to use RT_USING_USER_MAIN with IAR 2015-07-29 09:58:26 +08:00
device.c Update device.c 2014-09-19 14:29:03 +08:00
idle.c Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2014-09-11 12:55:18 +08:00
ipc.c kernel: mutex could only be released in thread context 2013-10-14 09:50:18 +08:00
irq.c Embedded GPLv2 license. 2013-06-24 17:06:09 +08:00
kservice.c open and then get the new device 2015-09-10 22:59:51 +08:00
mem.c [Kernel] comments clean up. 2014-09-11 12:51:52 +08:00
memheap.c memheap: check the USED bit in rt_memheap_free 2015-04-08 16:39:50 +08:00
mempool.c kernel: mempool: fix race condition in rt_mp_alloc 2014-08-20 10:16:04 +08:00
module.c [Kernel] More better support for module. 2015-08-03 16:02:24 +08:00
module.h [Kernel] More better support for module. 2015-08-03 16:02:24 +08:00
object.c [Kernel] Fix compiling warning. 2015-08-03 16:02:02 +08:00
scheduler.c [Kernel] export more symbols. 2015-08-03 16:01:50 +08:00
slab.c Embedded GPLv2 license. 2013-06-24 17:06:09 +08:00
thread.c [Kernel] stop thread timer when suspend a thread 2014-03-11 14:19:24 +08:00
timer.c kernel/timer: change row_lvl to unsigned 2014-10-14 16:00:42 +08:00