Bernard Xiong
e029f14b46
[DeviceDrivers] fix sd->drv issue in sdio
2015-08-09 11:23:16 +08:00
aozima
defa6f37ff
[DeviceDriver] update CAN baudrate enum.
2015-07-08 11:26:20 +08:00
Aubr.Cool
7051f01f48
[DeviceDriver]can add bus_hook
2015-07-07 12:06:24 +08:00
BernardXiong
91d866d81a
[DeviceDrivers] Use mutex to lock can_open/close
2015-07-06 18:11:46 +08:00
Aubr.Cool
9cbf30a767
correct can hdr defines
2015-07-04 00:25:05 +08:00
Aubr.Cool
67b6b30e88
add rtthread.h include for can.h
2015-06-30 14:48:07 +08:00
weety
41597e8793
Add mmc and emmc drivers.
2015-06-20 23:23:32 +08:00
Aubr.Cool
8e29e3d98b
add author information
2015-05-15 07:58:21 +08:00
Aubr.Cool
eb56b832ef
Add Can Drv
2015-05-14 16:52:48 +08:00
Bernard Xiong
6459839f28
Add extern declaration for C++.
2015-04-24 11:48:25 +08:00
Aubr.Cool
7caabd2b7a
mv device ctl cmd macros from serial.h to rtdef.h
2015-03-26 08:40:36 +08:00
Bernard Xiong
73d5acecba
[DeviceDrivers] Add pin.h in the rtdevice.h
2015-01-20 07:24:49 +00:00
Bernard Xiong
1bb425e839
[DeviceDrivers] code cleanup for hardware pin
2015-01-19 08:56:43 +00:00
Bernard Xiong
d01b2ca84b
[DeviceDrivers] Add pin io driver framework
2015-01-19 06:18:16 +00:00
bernard
c45f5a2490
[Drivers] re-write serial framework.
2014-07-18 06:45:54 +08:00
shaolin
64a2902fa9
1. Fix some spell error;
...
2. Fix data transfer size calculate error issue;
2014-07-13 17:19:34 +08:00
bernard
005014e7d0
[Drivers] Add workqueue implementation.
2014-07-13 07:27:57 +08:00
bernard
d0debf9892
[Drivers] Make code cleanup in serial framework.
2014-07-10 13:32:16 +08:00
bernard
306e1ac43f
[DeviceDrivers] Add watchdog driver frame work
2014-03-04 14:32:56 +08:00
shaolin
0fb9c54efd
1.replace API prefix usb* with usbh* in USB host stack to distinct with USB device stack;
...
2.adjust some viable and micro name
3.some other small fix
2014-03-04 08:59:53 +08:00
shaolin
8fd0a7f9c6
Update USB Device Stack to support more device controllers;
...
Pass USB CV test verification;
Code cleanup;
2014-02-16 17:42:35 +08:00
Grissiom
0feefc03b6
device/pipe: add a control cmd to get the space left in pipe
2013-10-23 01:43:18 +08:00
Grissiom
6e676e7754
dev/portal: implement portal device
...
Portal is a device that connect devices. Currently, you can only connect
pipes in portal. Pipes are unidirectional. But with portal, you can
construct a bidirectional device with two pipes.
2013-08-20 12:54:43 +08:00
Grissiom
d683d32bd5
device/pipe: add nonblocking read/write and force write mode
...
The previous implementation will always blocks the reader/writer.
However, at least FinSh would expect the device to be nonblocking ---
read should return 0 when there is no data in it.
2013-08-19 15:35:56 +08:00
Grissiom
4919d29d69
ringbuffer: add put_force and putchar_force API
...
Add the APIs that will discard the old data when rb is full.
2013-08-19 15:32:42 +08:00
Grissiom
981d929b56
ringbuffer: fix the ambiguous name
...
RT_RINGBUFFER_SIZE could mean "the size of the whole buffer", "the size
of the empty space" or "the size of the data". Moreover, it's never a
micro anymore. Change it to rt_ringbuffer_data_len before it's too late.
Also, RT_RINGBUFFER_EMPTY is changed to rt_ringbuffer_space_len.
2013-08-19 14:12:35 +08:00
Grissiom
38ce3879d8
device/pipe: add rt_pipe_{init,detach}
...
This provide the possibility that allocate the buffer of the ringbuffer
on a specific region, instead of always mallocing it. It also bring us
the benefit of using pipe device on the systems without heap.
2013-08-19 12:28:59 +08:00
bernard
a124e7bd22
add initialization debug code
2013-07-24 07:33:48 +08:00
yiyue.fang
3359419d4f
additional update
2013-06-28 00:39:11 +08:00
yiyue.fang
621fbdb90c
Embedded GPLv2 license in drivers
2013-06-28 00:36:54 +08:00
heyuanjie87
02869d7e67
udisk can be eject
2013-06-15 23:02:50 +08:00
Grissiom
ed19483cb4
usb: add USB_MSG_PLUG_OUT event
...
When the core received an USB_MSG_PLUG_OUT event, it will stop all the
classes. This make a chance that the classes could get rid off doing
useless stuff while the USB cable is plugged out.
2013-06-06 15:21:40 +08:00
weety
624d947e56
use __rt_ffs instead of ffs
2013-05-25 18:57:01 +08:00
qiuyiuestc
a33e992724
Merge pull request #95 from grissiom/vcom
...
usbdevice/core: add reset function to support hotplug
2013-05-25 01:05:00 -07:00
qiuyiuestc
97a507e667
usbdevice/core: add reset function to support hotplug
...
When the USB got RESET packet from the host and the address is setup,
all the classes will got reset. The reset is done by class stop and than
class run. So the classes should reset their internal state in
class_{run,stop}.
Besides, the USB device driver could post a USB_MSG_RESET message on
every RESET packet.
2013-05-25 15:55:27 +08:00
heyuanjie87
8aa4eb7924
make Host can halt endpoints
2013-05-23 12:33:22 +08:00
heyuanjie87
8b4aadb4db
add usb state
2013-05-17 20:53:05 +08:00
Grissiom
f0d50a7b36
usbdevice/core: use static thread instead of dynamic thread
...
It also add two configurations for the USB device even loop thread:
RT_USBD_THREAD_STACK_SZ to set the stack size, default to 2048
RT_USBD_THREAD_PRIO to set the priority, default to 8
You can overwrite the default values in rtconfig.h
2013-05-12 15:43:29 +08:00
Bernard Xiong
8e9e7f3e7c
serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer.
2013-05-12 14:03:11 +08:00
Grissiom
639bd30321
reimplement ringbuffer
...
The new implementation use the mirroring method to distinguish full
buffer and the empty buffer. It also support buffers of arbitrary size.
2013-05-08 15:45:31 +08:00
heyuanjie87
34d531578e
class driver can custom string description
2013-01-24 20:59:43 +08:00
Bernard Xiong
9721603b72
Add RT_MTD_ESRC definitions.
...
Add RT_MTD_ESRC definitions. If the source page has issue when copying a page, the low level can return this error code.
2013-01-17 10:06:01 +08:00
heyuanjie87
1cb356c9df
Correct macro definition
2013-01-11 00:03:46 +08:00
heyuanjie87
7b2929303e
revert some define to usb_common.h
2013-01-11 00:02:40 +08:00
heyuanjie87
d84fde4e54
revert the define
2013-01-09 18:56:31 +08:00
heyuanjie87
6b0b2d51e3
move the define related to Mass to mstorage.h
2013-01-09 12:12:25 +08:00
heyuanjie87
22786f8817
allows the user to custom PID and VID;
...
add a dcd operation to send status in control transfer
2013-01-09 12:04:01 +08:00
Ming, Bai
b4de7cce57
Re-normalizing the repo
2013-01-08 22:40:58 +08:00
sc943313837@gmail.com
2a6ffa0ccd
添加RNDIS定义
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2578 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-31 15:38:35 +00:00
sc943313837@gmail.com
6374d20fad
change inferface handler parameter
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2565 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-30 09:49:31 +00:00
bernard.xiong@gmail.com
1c56553b04
Add BAUD_RATE_4800 definition.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2538 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-28 08:50:17 +00:00
sc943313837@gmail.com
b82d5744b6
remove iad form uclass structure
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2491 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-17 09:37:39 +00:00
sc943313837@gmail.com
834355c76b
change endpoint and class handler
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2475 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-12 16:36:23 +00:00
dzzxzz@gmail.com
34a2c02ac2
fixed the coding style in alarm.h
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2466 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-03 04:56:53 +00:00
sc943313837@gmail.com
995ebf7299
chang a macro name
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2456 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-28 06:55:06 +00:00
sc943313837@gmail.com
8b338f385b
Add a function affirm
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2451 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-26 12:31:22 +00:00
qiuyiuestc@gmail.com
60c27fc4b5
add USB composite and mass storage class features in USB device stack
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2447 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-25 00:02:10 +00:00
bernard.xiong@gmail.com
44eaae8c80
export more symbols of PThread.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2433 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-23 02:40:32 +00:00
dzzxzz@gmail.com
68b7e7c481
fixed the coding style in the components/drivers
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2431 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-22 08:43:40 +00:00
sc943313837@gmail.com
b04c308524
Add two function declarations
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2403 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-12 12:07:16 +00:00
dzzxzz@gmail.com
db58e3350b
add serial DMA transmit function(beta)
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2382 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-01 07:17:54 +00:00
sc943313837@gmail.com
aefe518780
corrected typos
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2378 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-29 03:21:37 +00:00
sc943313837@gmail.com
a690ad168f
add alarm
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2375 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-28 15:31:50 +00:00
sc943313837@gmail.com
c287374982
add alarm
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2374 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-28 15:31:22 +00:00
bernard.xiong@gmail.com
8ab1059873
Fixed compiling warning.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2349 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-14 13:41:04 +00:00
qiuyiuestc@gmail.com
c752d9b095
submit the first version usb device stack.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2344 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-11 17:06:30 +00:00
qiuyiuestc@gmail.com
051fd8eca9
update wrong file name in rtdevice.h
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2343 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-11 17:03:31 +00:00
dzzxzz@gmail.com
66c2e88566
change the coding style of rtdevice.h
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2337 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-10 13:21:06 +00:00
wuyangyong
8b570bbae6
add rtc.h
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2336 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-10 06:14:53 +00:00
bernard.xiong@gmail.com
c453dcd547
Add plane_num field in MTD_Nand structure.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2334 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-10 04:00:52 +00:00
sc943313837@gmail.com
f8b1db51e7
delet a char '\'
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2318 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-05 14:39:56 +00:00
sc943313837@gmail.com
bb6b798800
add default config for serial_configure structure
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2317 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-05 14:19:28 +00:00
bernard.xiong@gmail.com
4f05dd5426
Add pipe, data queue implementation; Fix the issue which leaks one item in the available data of ring buffer.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2313 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-30 07:33:13 +00:00
sc943313837@gmail.com
d189f8c189
delete the config of PM
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2291 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-15 12:54:18 +00:00
sc943313837@gmail.com
f4c975bf8c
delete pm.h
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2290 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-15 12:52:48 +00:00
sc943313837@gmail.com
6a58ebee1f
添加PM头文件
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2289 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-15 12:34:15 +00:00
sc943313837@gmail.com
a1519350a4
添加接口move_page,添加mtd_nand成员oob_free,更改成员block_size为pages_per_block
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2288 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-15 12:23:04 +00:00
dzzxzz@gmail.com
c6c2a504f6
re-format the coding style in serial.h
...
1, Tabs to Spaces
2, File Format(CR/LF) using UNIX style
3, maximum line length = 80
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2282 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-07 09:00:33 +00:00
dzzxzz@gmail.com
fd425e792d
re-format the coding style in spi.h
...
1, Tabs to Spaces
2, File Format(CR/LF) using UNIX style
3, maximum line length = 80
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2275 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-06 08:09:13 +00:00
qiuyiuestc@gmail.com
03de4f8a48
add rt_usb_adk_set_string declaration
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2238 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-28 03:21:49 +00:00
qiuyiuestc@gmail.com
1016e3ae5b
add ADK protocol implement & format code style
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2219 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-16 02:20:20 +00:00
luohui2320@gmail.com
7729b4a1e4
move SDIO driver header files to the drivers/include directory and update rtdevice.h
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2209 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-08 14:43:08 +00:00
qiuyiuestc@gmail.com
5e5362202e
add usb_host.h file
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2207 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-07 09:04:27 +00:00
bernard.xiong@gmail.com
ee546fb0d4
change rt_memcpy to memcpy in ringbuffer implementation.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2199 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-02 15:51:58 +00:00
bernard.xiong@gmail.com
9d53578c54
Fixed comments of file description.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2172 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-18 07:54:24 +00:00
bernard.xiong@gmail.com
d228266e65
Remove I2C device and add PM pseudo device.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2171 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-18 03:11:40 +00:00
wuyangyong
9e3c72a635
fixed a eclipse compiling warning.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2163 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-14 12:18:52 +00:00
luohui2320@gmail.com
85169d7fe8
update I2C driver, which now just use small memory
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2159 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-13 16:55:46 +00:00
dzzxzz@gmail.com
a2c1785648
fixed a eclipse compiling warning:
...
in fm3_uart.c Line 599
case label value exceeds maximum value for type
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2152 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-04 03:20:12 +00:00
dzzxzz@gmail.com
7fddcb0e35
add serial device driver framework
...
and implement the example in MB9BF506R branch
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2145 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-01 06:52:34 +00:00
goprife@gmail.com
020c380b83
1. add mtd nor files. 2 fixed include head files in rtdevice.h and mtd_nand.c
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2141 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-05-30 13:44:13 +00:00
goprife@gmail.com
a512661b9f
delete the old version of mtd
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2139 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-05-30 13:36:41 +00:00
bernard.xiong@gmail.com
03668c93b9
Changed SPI message to message list. Added take/release SPI device/bus interface.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2123 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-05-18 05:37:09 +00:00
bernard.xiong@gmail.com
da44d15132
Added device driver's IPC.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2098 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-23 06:02:28 +00:00
goprife@gmail.com
9e6d012535
add mtd_nand interface code
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2016 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-02 16:34:15 +00:00
bernard.xiong@gmail.com
4f458c68d2
add MTD device.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1939 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-02-07 03:55:01 +00:00
bernard.xiong@gmail.com
eedd490bd6
add const attribute to the ops.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1937 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-02-03 14:03:51 +00:00
bernard.xiong@gmail.com
2b8c20af4b
add SPI framework.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1911 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-01-08 14:16:51 +00:00
bernard.xiong@gmail.com
5588bbe4d2
add some device driver header files.
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1910 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-01-08 14:14:54 +00:00