summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-26rm48x50: add vRegTestTask2Grissiom
2013-05-26rm48x50: fix bug in reg_test from FreeRTOSGrissiom
It does not satisfy AAPCS.
2013-05-26rm48x50: add reg_test from FreeRTOSGrissiom
The code is GPLv2 so I think we could use it for free(both free beer and free speech).
2013-05-26rm48x50: optimize context_switch_interrupt_doGrissiom
Substitude STMFD, MOV, ADD with STMFD, SUB. It reduce one instruction. Tested on board and it works like a charm.
2013-05-26rm48x50: utilize CPS instruction and remove some useless codeGrissiom
2013-05-25Merge pull request #96 from weety/at91sam9260Bernard Xiong
use __rt_ffs instead of ffs
2013-05-25use __rt_ffs instead of ffsweety
2013-05-25Merge pull request #95 from grissiom/vcomqiuyiuestc
usbdevice/core: add reset function to support hotplug
2013-05-25usbdevice/core: add reset function to support hotplugqiuyiuestc
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-25Merge pull request #94 from grissiom/vcomqiuyiuestc
cdc_vcom: reset the vcom state in proper cases
2013-05-25cdc_vcom: reset the vcom state in proper casesGrissiom
Reset the vcom state in class_{run,stop} and when the PC is not receiving data from me.
2013-05-24add rm48x50 bsp and libcpuGrissiom
We currently only support building with CCS and SCons is not using. bsp/rm48x50/HALCoGen/HALCoGen.{hcg,dil} is the HALCoGen project file. You may need to regenerate the source file as you like, providing that: 1, IRQ is in Dispatch Mode and the table entry is IRQ_Handler. The channel 5 in enabled and connected to IRQ. 2, RTI driver is enabled and compare3 source is selected to counter1 and the compare3 will generate tick in the period of 10ms. This value is coresponding with RT_TICK_PER_SECOND in rtconfig.h. In CCS, you need to create a new CCS project and create link folders pointing at bsp/rm48x50, libcpu/arm/rm48x50 and src/, include/. Remember to add the include path to the Build Properties.
2013-05-22Merge pull request #93 from heyuanjie87/ForPullRequestqiuyiuestc
For pull request
2013-05-23make Host can halt endpointsheyuanjie87
2013-05-23Merge pull request #88 from grissiom/fix-sim-serialprife
simulator: fix serial_write
2013-05-19Merge pull request #88 from grissiom/fix-sim-serialprife
simulator: fix serial_write
2013-05-17Merge pull request #90 from heyuanjie87/ForPullRequestqiuyiuestc
For pull request
2013-05-17Merge pull request #89 from grissiom/dfs-misc-fixBernard Xiong
add missing dfs_mkfs prototype in dfs_fs.h
2013-05-17Merge pull request #91 from aozima/pullsBernard Xiong
Pulls
2013-05-17add library file for Keil MDK project generationBernard Xiong
2013-05-17fix spelling error.aozima
2013-05-17move initial alarm event & mutex in system init.aozima
2013-05-17format code by Astyle.aozima
2013-05-17add usb stateheyuanjie87
2013-05-17add missing dfs_mkfs prototype in dfs_fs.hGrissiom
2013-05-16Merge branch 'master' of https://github.com/RT-Thread/rt-thread into ↵heyuanjie87
ForPullRequest
2013-05-16Merge pull request #87 from grissiom/static-usbdqiuyiuestc
Static usbd
2013-05-15simulator: fix serial_writeGrissiom
printf("%s") will print a NULL terminated string, while rt_serial_write should print buffer for size length. This also fix segfault when the string is not null terminated but specified by size.
2013-05-12Merge pull request #87 from grissiom/static-usbdqiuyiuestc
Static usbd
2013-05-12usbdevice/core: use static message queueGrissiom
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-12usbdevice/core: use static thread instead of dynamic threadGrissiom
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-11Merge pull request #86 from grissiom/serial-rb-sizeBernard Xiong
serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer.
2013-05-11Merge pull request #85 from grissiom/fix-usb-serialBernard Xiong
Fix usb serial
2013-05-12serial: use RT_SERIAL_RB_BUFSZ to define the size of ring buffer.Bernard Xiong
2013-05-12cdc_vcom: not to start sending data when the data is already sendingGrissiom
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-12usbdevice/core: small optimization on the event loopGrissiom
Sort the switch cases by the frequency of the events.
2013-05-10cdc_vcom: send data as many as possibleGrissiom
The data filled into dcd_ep_write does not to be limited by MaxPacketSize.
2013-05-10usbdevice/core: misc cleanupGrissiom
2013-05-10cdc_vcom: send a zero-length-packet at the end is transactionGrissiom
2013-05-09cdc_vcom: fix the bug that use ringbuffer pool as usb packet bufferGrissiom
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-08Merge pull request #84 from grissiom/ringbufferBernard Xiong
Ringbuffer
2013-05-08ringbuffer: format the code to a more symmetric structureGrissiom
2013-05-08reimplement ringbufferGrissiom
The new implementation use the mirroring method to distinguish full buffer and the empty buffer. It also support buffers of arbitrary size.
2013-05-05Merge branch 'master' of https://github.com/RT-Thread/rt-threadBernard Xiong
2013-05-05add RAMFS implementationBernard Xiong
2013-05-05Update .travis.ymlBernard Xiong
2013-05-05Update README.mdBernard Xiong
2013-05-04Merge pull request #81 from grissiom/fix-usbqiuyiuestc
usbdevice/core/core.c: fix garbage value bug
2013-05-04usbdevice/core/core.c: fix garbage value bugGrissiom
This could crash the program with -O1 and -O2 in MDK.
2013-04-25remove project.uvopt file when generate keil mdk project fileBernard Xiong