<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/src/kservice.c, branch v2.1.0_beta</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/src/kservice.c?h=v2.1.0_beta</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/src/kservice.c?h=v2.1.0_beta'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2015-09-10T14:59:51Z</updated>
<entry>
<title>open and then get the new device</title>
<updated>2015-09-10T14:59:51Z</updated>
<author>
<name>GalaIO</name>
<email>GalaIO@users.noreply.github.com</email>
</author>
<published>2015-09-10T14:59:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b886340e67df395261a4b863f65bf7c136d8c239'/>
<id>urn:sha1:b886340e67df395261a4b863f65bf7c136d8c239</id>
<content type='text'>
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，以上述修改可避开这样的矛盾。</content>
</entry>
<entry>
<title>[Kernel] Use rt_assert_handler() function to handle assertion.</title>
<updated>2015-08-03T08:07:30Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2015-08-03T08:07:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=266496cef3a109660dc575a38a127d5508d59208'/>
<id>urn:sha1:266496cef3a109660dc575a38a127d5508d59208</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[kservice]add hook for RT_ASSERT</title>
<updated>2015-06-11T02:59:25Z</updated>
<author>
<name>armink</name>
<email>armink.ztl@gmail.com</email>
</author>
<published>2015-06-11T02:59:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=892eac2cce846d11204036ad7e8fb80c8b332258'/>
<id>urn:sha1:892eac2cce846d11204036ad7e8fb80c8b332258</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[kservice] fix rt_strcmp/strncmp/strlen prototype</title>
<updated>2015-05-20T12:40:57Z</updated>
<author>
<name>prife</name>
<email>goprife@gmail.com</email>
</author>
<published>2015-05-20T12:37:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1b1908b35daee0a08542e085fcf72524d18cc30c'/>
<id>urn:sha1:1b1908b35daee0a08542e085fcf72524d18cc30c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[Kernel] Change the copyright date information</title>
<updated>2015-01-21T06:19:01Z</updated>
<author>
<name>Bernard Xiong</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2015-01-21T06:19:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b83b1ee53dd053487a38472bd946a8d66fe3f472'/>
<id>urn:sha1:b83b1ee53dd053487a38472bd946a8d66fe3f472</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rt_kprintf: force the open_flag to be RT_DEVICE_FLAG_STREAM</title>
<updated>2015-01-04T11:43:33Z</updated>
<author>
<name>Grissiom</name>
<email>chaos.proton@gmail.com</email>
</author>
<published>2015-01-04T11:43:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=57b5c74a71a48bbd55826cff5f709a2f028fc4d7'/>
<id>urn:sha1:57b5c74a71a48bbd55826cff5f709a2f028fc4d7</id>
<content type='text'>
Commit a6251a439e7385f changed the serial device to check open_flag
instead of flag. So we should change the rt_kprintf counterpart as well.
</content>
</entry>
<entry>
<title>[Kernel] Use stream mode to open console device.</title>
<updated>2014-09-11T04:54:05Z</updated>
<author>
<name>bernard</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2014-09-11T04:54:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1f3ea02c5ace84d848a03fb014a664bdf586a07d'/>
<id>urn:sha1:1f3ea02c5ace84d848a03fb014a664bdf586a07d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add WEAK definition;</title>
<updated>2014-06-26T06:47:53Z</updated>
<author>
<name>bernard</name>
<email>bernard.xiong@gmail.com</email>
</author>
<published>2014-06-26T06:47:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=a1766b6c7131f93cf7c641ec96d3bd08b7b86360'/>
<id>urn:sha1:a1766b6c7131f93cf7c641ec96d3bd08b7b86360</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update rt_kprintf: make sure the device is in STREAM mode when used by rt_kprintf.</title>
<updated>2013-09-24T07:29:08Z</updated>
<author>
<name>aozima</name>
<email>wuyangyong@gmail.com</email>
</author>
<published>2013-09-24T07:25:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cad12ee14e5b10721c04c4c26eabdfd3167bfc17'/>
<id>urn:sha1:cad12ee14e5b10721c04c4c26eabdfd3167bfc17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kservice: export vsnprintf as rt_vsnprintf</title>
<updated>2013-09-23T03:34:13Z</updated>
<author>
<name>Grissiom</name>
<email>chaos.proton@gmail.com</email>
</author>
<published>2013-09-23T03:27:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7b0a3afdf90e85cabe3e39f49a5c2aa22e3e3e8d'/>
<id>urn:sha1:7b0a3afdf90e85cabe3e39f49a5c2aa22e3e3e8d</id>
<content type='text'>
vsnprintf is a common string function that could be used in many places.
Using both vsnprintf in libc and vsnprintf in the RTT could make a
bigger image. Moreover, if newlib is not enabled when compiling with
GCC, referencing vsnprintf will lead to link error:

    .../arm-none-eabi/lib/armv7-ar/thumb/softfp/libc.a(lib_a-sbrkr.o):
    In function `_sbrk_r':
    sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
    collect2: error: ld returned 1 exit status

Using rt_vsnprintf could avoid such problem.
</content>
</entry>
</feed>
