| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2013-08-20 | dev/pipe: make pipe a type of device | Grissiom | |
| Pipe have many differences with char device. The main difference is altough pipe have both read and write, it is unidirectional in nature. | |||
| 2013-08-19 | dev/pipe: cleanup | Grissiom | |
| 2013-08-19 | dev/pipe: call rx_indicate the time we resume reader | Grissiom | |
| Some reader(FinSh again) would like to block on a semaphore which is released in rx_indicate. So we should invoke rx_indicate in _rt_pipe_resume_reader. | |||
| 2013-08-19 | device/pipe: add nonblocking read/write and force write mode | Grissiom | |
| 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 | ringbuffer: add put_force and putchar_force API | Grissiom | |
| Add the APIs that will discard the old data when rb is full. | |||
| 2013-08-19 | ringbuffer: fix the ambiguous name | Grissiom | |
| 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 | device/pipe: add rt_pipe_{init,detach} | Grissiom | |
| 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-07-25 | Merge pull request #135 from reynoldxu/K60Fxxxx | Bernard Xiong | |
| K60 fxxxx | |||
| 2013-07-25 | remove a var for INT_TX. | reynoldxu | |
| 2013-07-24 | fix a bug in rt_hw_uart_init() where u CAN NOT init some feature. | reynoldxu | |
| 2013-07-24 | add initialization debug code | bernard | |
| 2013-06-29 | reformat the coding style in usbdevice/core/core.c | yiyue.fang | |
| 2013-06-28 | additional update | yiyue.fang | |
| 2013-06-28 | Embedded GPLv2 license in drivers | yiyue.fang | |
| 2013-06-23 | Add component initialization. | Bernard Xiong | |
| 2013-06-15 | udisk can be eject | heyuanjie87 | |
| 2013-06-11 | usbdevice/core: cope with some buggy drivers on USB_MSG_DATA_NOTIFY | Grissiom | |
| Some driver will emit USB_MSG_DATA_NOTIFY before the USB get configured. Filter out those events. | |||
| 2013-06-06 | usb: add USB_MSG_PLUG_OUT event | Grissiom | |
| 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-05-30 | return correct length of LangID string to host | heyuanjie87 | |
| 2013-05-25 | use __rt_ffs instead of ffs | weety | |
| 2013-05-25 | Merge pull request #95 from grissiom/vcom | qiuyiuestc | |
| usbdevice/core: add reset function to support hotplug | |||
| 2013-05-25 | usbdevice/core: add reset function to support hotplug | qiuyiuestc | |
| 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 | Merge pull request #94 from grissiom/vcom | qiuyiuestc | |
| cdc_vcom: reset the vcom state in proper cases | |||
| 2013-05-25 | cdc_vcom: reset the vcom state in proper cases | Grissiom | |
| Reset the vcom state in class_{run,stop} and when the PC is not receiving data from me. | |||
| 2013-05-23 | make Host can halt endpoints | heyuanjie87 | |
| 2013-05-17 | Merge pull request #90 from heyuanjie87/ForPullRequest | qiuyiuestc | |
| For pull request | |||
| 2013-05-17 | fix spelling error. | aozima | |
| 2013-05-17 | move initial alarm event & mutex in system init. | aozima | |
| 2013-05-17 | format code by Astyle. | aozima | |
| 2013-05-17 | add usb state | heyuanjie87 | |
| 2013-05-12 | usbdevice/core: use static message queue | Grissiom | |
| Although currently the only message send to the queue is struct udev_msg, in order to keep backward compacity and for extention in the future, we set the size of message to 32. | |||
| 2013-05-12 | usbdevice/core: use static thread instead of dynamic thread | Grissiom | |
| 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-11 | Merge pull request #86 from grissiom/serial-rb-size | Bernard Xiong | |
| serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer. | |||
| 2013-05-12 | serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer. | Bernard Xiong | |
| 2013-05-12 | cdc_vcom: not to start sending data when the data is already sending | Grissiom | |
| We start the sending transaction in SOF handler. But if the data is already sending, start an other transaction will cause data lose. Implement a state machine is cdc_vcom and avoid that. | |||
| 2013-05-12 | usbdevice/core: small optimization on the event loop | Grissiom | |
| Sort the switch cases by the frequency of the events. | |||
| 2013-05-10 | cdc_vcom: send data as many as possible | Grissiom | |
| The data filled into dcd_ep_write does not to be limited by MaxPacketSize. | |||
| 2013-05-10 | usbdevice/core: misc cleanup | Grissiom | |
| 2013-05-10 | cdc_vcom: send a zero-length-packet at the end is transaction | Grissiom | |
| 2013-05-09 | cdc_vcom: fix the bug that use ringbuffer pool as usb packet buffer | Grissiom | |
| This commit set the buffer for packet to CDC_MaxPacketSize which is a reasonable value for it. However, maybe we should make CDC_{RX,TX}_BUFSIZE configurable as well. | |||
| 2013-05-08 | ringbuffer: format the code to a more symmetric structure | Grissiom | |
| 2013-05-08 | reimplement ringbuffer | Grissiom | |
| The new implementation use the mirroring method to distinguish full buffer and the empty buffer. It also support buffers of arbitrary size. | |||
| 2013-05-04 | usbdevice/core/core.c: fix garbage value bug | Grissiom | |
| This could crash the program with -O1 and -O2 in MDK. | |||
| 2013-01-24 | class driver can custom string description | heyuanjie87 | |
| 2013-01-17 | fixed the string descriptor send to host more than actual | heyuanjie87 | |
| 2013-01-17 | handle standard request to interface that defined in class | heyuanjie87 | |
| 2013-01-17 | Add RT_MTD_ESRC definitions. | Bernard Xiong | |
| 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-11 | Correct macro definition | heyuanjie87 | |
| 2013-01-11 | revert some define to usb_common.h | heyuanjie87 | |
| 2013-01-09 | revert the define | heyuanjie87 | |
