Commit Graph

2747 Commits

Author SHA1 Message Date
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 f1e34eef11 Merge pull request #86 from grissiom/serial-rb-size
serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer.
2013-05-11 23:18:18 -07:00
Bernard Xiong 94b7fee4d2 Merge pull request #85 from grissiom/fix-usb-serial
Fix usb serial
2013-05-11 23:18:03 -07: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 aa179e4438 cdc_vcom: not to start sending data when the data is already sending
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 13:27:13 +08:00
Grissiom 157af94af9 usbdevice/core: small optimization on the event loop
Sort the switch cases by the frequency of the events.
2013-05-12 13:07:03 +08:00
Grissiom d23ee75d2e cdc_vcom: send data as many as possible
The data filled into dcd_ep_write does not to be limited by
MaxPacketSize.
2013-05-10 17:50:07 +08:00
Grissiom 5de59429fe usbdevice/core: misc cleanup 2013-05-10 17:35:33 +08:00
Grissiom ffb1e62020 cdc_vcom: send a zero-length-packet at the end is transaction 2013-05-10 15:17:59 +08:00
Grissiom 778c4239b1 cdc_vcom: fix the bug that use ringbuffer pool as usb packet buffer
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-09 23:18:58 +08:00
Bernard Xiong c8d85a5c35 Merge pull request #84 from grissiom/ringbuffer
Ringbuffer
2013-05-08 05:21:38 -07:00
Grissiom 952bc0d4ef ringbuffer: format the code to a more symmetric structure 2013-05-08 15:54:30 +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
Bernard Xiong 1161e7b3f8 Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2013-05-05 07:17:16 +08:00
Bernard Xiong 0e16b6dc97 add RAMFS implementation 2013-05-05 07:16:49 +08:00
Bernard Xiong ab3e00cc21 Update .travis.yml 2013-05-05 05:45:41 +08:00
Bernard Xiong 692f984a23 Update README.md 2013-05-05 05:41:37 +08:00
qiuyiuestc b5646a20e7 Merge pull request #81 from grissiom/fix-usb
usbdevice/core/core.c: fix garbage value bug
2013-05-04 03:38:45 -07:00
Grissiom d196a75a41 usbdevice/core/core.c: fix garbage value bug
This could crash the program with -O1 and -O2 in MDK.
2013-05-04 18:34:13 +08:00
Bernard Xiong e58d656477 remove project.uvopt file when generate keil mdk project file 2013-04-25 14:22:56 +08:00
Bernard Xiong 4afdf44da2 add RT_KERNEL_MALLOC/FREE 2013-04-25 14:22:07 +08:00
Bernard Xiong 608bf2cb3d add rt_memheap_realloc function 2013-04-17 22:09:48 +08:00
yiyue.fang 8185f9888d Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2013-04-10 21:51:16 +08:00
yiyue.fang da597730d1 change the version number in doxyfile
1.1.0 -> 1.2.0
2013-04-10 21:51:00 +08:00
shaolin f91fc2dbe2 Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2013-04-10 21:48:16 +08:00
yiyue.fang f34ef8d984 change the version number in the doxygen document
1.1.0 -> 1.2.0
2013-04-10 21:43:35 +08:00
shaolin 83751c63e3 add error handler in dlopen.c 2013-04-10 21:40:08 +08:00
Bernard Xiong e877a9868b fengzi: Fix LM3S ETH driver: Ethernet RX interrupt will be disabled if pbuf_alloc failed. 2013-04-10 09:54:08 +08:00
yiyue.fang bdeb0e501f update the version information
2006 - 2013 Copyright by rt-thread team
2013-04-10 03:58:33 +08:00
yiyue.fang 483479acee update the MDK project file in LPC178x 2013-04-10 01:16:56 +08:00
yiyue.fang db548a1b37 fixed compiling error related to the RT_USING_INTERRUPT_INFO in mini4020 2013-04-10 00:49:18 +08:00
yiyue.fang 5510dec187 fixed a syntax error
error: expected expression before 'void'
error: too many arguments to function
2013-04-10 00:17:52 +08:00
Bernard Xiong 93a01ee949 Merge pull request #79 from weety/at91sam9260
Use SRAM as EMAC transmit buffer, to avoid the underrun error, especiall...
2013-04-08 08:28:10 -07:00
weety d9d39a8d21 Use SRAM as EMAC transmit buffer, to avoid the underrun error, especially in the large amount of data communication. 2013-04-08 21:57:24 +08:00
user 06c6630bbf fix compiling warning in finsh shell 2013-04-04 14:12:35 -04:00
Bernard Xiong 009eccf640 fix the wrong strcpy issue in list() function 2013-04-04 15:32:10 +08:00
prife e952d55d6d Merge pull request #70 from geniusgogo/dfs-fixbug
Dfs clean and optimized code
2013-04-03 09:10:49 -07:00
Bernard Xiong 425d26786f Merge pull request #78 from BernardXiong/master
strip more characters in finsh token.
2013-04-03 02:33:34 -07:00
Bernard Xiong b68e34c931 strip more characters in finsh token 2013-04-03 05:31:29 -04:00
Bernard Xiong aaba8680fb Merge pull request #75 from aozima/pulls
fix spelling error by ziyi897, this commit fixes #74.
2013-04-02 06:23:19 -07:00
Bernard Xiong 9cac0ca416 Merge pull request #77 from weety/at91sam9260
Fixed At91sam9260 context switch issue, enable mmu, update SDIO and EMAC drivers
2013-04-02 06:22:54 -07:00
weety e7885df2f1 add At91SAM9260 SDIO highspeed and SDIO IRQ capability, fixed compiling warnning 2013-04-02 20:42:11 +08:00
weety 0594734d8d clean up code 2013-04-02 20:33:56 +08:00
weety 03aa76155e fixed context thread issue when using armcc compile 2013-04-02 20:27:08 +08:00
weety fb9ea5eada enable at91sam9260 mmu, update SDIO and EMAC drivers 2013-04-02 20:24:51 +08:00
weety 92d4c1939b fixed at91sam9260 context thread issue, avoid idle thread stack overflow 2013-04-02 20:23:11 +08:00
aozima 71297d15e2 fix spelling error by ziyi897, this commit fixes #74. 2013-04-02 16:13:11 +08:00
Bernard Xiong 77591fd6d2 Merge pull request #72 from rogerz/auto-ci
add avr32 bsp building to travis-ci
2013-04-01 07:55:33 -07:00
Rogerz Zhang 5ab6dfdf55 add avr32 bsp building to travis-ci 2013-04-01 20:42:26 +08:00
Rogerz Zhang 489b3822f0 Merge remote-tracking branch 'official/master' into auto-ci 2013-04-01 19:06:22 +08:00