summaryrefslogtreecommitdiff
path: root/src/device.c
AgeCommit message (Collapse)Author
2018-07-11[kernel] splite rt_device_unregister() and rt_device_destroy(), add assert ↵liang yongxiang
to device object
2018-06-26[Kernel] clean code for indentation.Bernard Xiong
2018-06-26[Kernel] Add flag in wait queue and fix wakeup issue.Bernard Xiong
2018-06-10[Kernel] Add device ops feature.Bernard Xiong
2017-12-31[Kernel] fix the compiling warning.BernardXiong
2017-12-24[Kernel] Add device_create/destroy apiBernard Xiong
2017-10-17[libc] Add RT_USING_POSIX macro.bernard
1. Add macro check in rtdebug.h; 2. Use RT_USING_POSIX for poll/select, stdin etc. 3. Split dfs_posix.h to dfs_posix.h, dfs_poll.h and dfs_select.h;
2017-10-15[Kernel] Add signal implementation.bernard
1. Add signal implementation; 2. Change the 'rt_uint8_t' of cmd to 'int';
2016-04-02fix the open_flag initialization issue.Bernard Xiong
2014-09-19Update device.cBernard Xiong
2014-07-21[Kernel] Better documentation for doxygen.bernard
2014-07-10[Kernel] Remove rt_device_init_all implemetation.bernard
2014-06-18device: only increase the ref_count when device is truly openedGrissiom
2013-07-09device: add ref_count supportGrissiom
This is a simple work around to the current device stack design. A ref_count could let different modules to open/close the same device independently without interfere others in some degree. But there is still some data shared between the modules, like flag, open_flag and user_data. Moreover, it won't yield an error if A open a device, and B read from it before open it in B. Maybe alloc a new handle in rt_device_open will be the ultimate solution. But that is much bigger change and we may leave it to future development.
2013-06-24Embedded GPLv2 license.Bernard Xiong
2012-12-25return RT_EOK if the device interface not exist.bernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2519 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-20fixed the coding style in device.c[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2502 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-03fixed the coding style in device.c[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2386 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-19add device check in register function, which is provided by Rob ↵[email protected]
<[email protected]>. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2355 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-06Add more symbols export for application module. [email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2205 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-22move src\kservice.h to include\rtservice.h.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2005 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-17unify the coding style of kerneldzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1998 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-28format the code in device.c,change the space to tabdzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1885 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-27fixed rt_device_init issues.wuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1882 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-09-21cleanup kernel codedzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1715 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-29update doxygen comments.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1132 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-05-03remove rt_object_find function.bernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@690 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-03-08remove rt_passed_second in clock; init device driver when driver has been ↵bernard.xiong
opened if it is not in activate status; change interrupt nest count to rt_uint8_t; add rt_console_set_device function in kservice.c (rt_kprintf function can use device right now) git-svn-id: https://rt-thread.googlecode.com/svn/trunk@464 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-25add license and copyright infobernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@226 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-13cleanup output message.bernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@198 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-12-06fix the cortex-m3 context switch bug when interrupt preempts pendsv ↵bernard.xiong
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
2009-07-02import RT-Thread RTOS 0.3.x to Google SVNbernard.xiong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2 bbd45198-f89e-11dd-88c7-29a3b14d5316