Fixed bug #832.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10167 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
b898a2ee31
commit
f95c389800
|
@ -433,10 +433,11 @@ static void otg_epout_handler(USBDriver *usbp, usbep_t ep) {
|
||||||
osp = usbp->epc[ep]->out_state;
|
osp = usbp->epc[ep]->out_state;
|
||||||
|
|
||||||
/* A short packet always terminates a transaction.*/
|
/* A short packet always terminates a transaction.*/
|
||||||
if (((osp->rxcnt % usbp->epc[ep]->out_maxsize) == 0) &&
|
if ((ep == 0) &&
|
||||||
|
((osp->rxcnt % usbp->epc[ep]->out_maxsize) == 0) &&
|
||||||
(osp->rxsize < osp->totsize)) {
|
(osp->rxsize < osp->totsize)) {
|
||||||
/* In case the transaction covered only part of the total transfer
|
/* For EP 0 only, in case the transaction covered only part of the total
|
||||||
then another transaction is immediately started in order to
|
transfer then another transaction is immediately started in order to
|
||||||
cover the remaining.*/
|
cover the remaining.*/
|
||||||
osp->rxsize = osp->totsize - osp->rxsize;
|
osp->rxsize = osp->totsize - osp->rxsize;
|
||||||
osp->rxcnt = 0;
|
osp->rxcnt = 0;
|
||||||
|
|
|
@ -157,6 +157,8 @@
|
||||||
- RT: Merged RT4.
|
- RT: Merged RT4.
|
||||||
- NIL: Merged NIL2.
|
- NIL: Merged NIL2.
|
||||||
- NIL: Added STM32F7 demo.
|
- NIL: Added STM32F7 demo.
|
||||||
|
- HAL: Fixed transaction end problem with STM32 OTGv1 driver (bug #832)
|
||||||
|
(backported to 16.1.8).
|
||||||
- HAL: Removed unused file in STM32 TIM driver (bug #831).
|
- HAL: Removed unused file in STM32 TIM driver (bug #831).
|
||||||
- HAL: Fixed wrong comment in STM32F7 mcuconf (bug #830)(backported to 16.1.8).
|
- HAL: Fixed wrong comment in STM32F7 mcuconf (bug #830)(backported to 16.1.8).
|
||||||
- RT: Fixed race condition in chBMReset() (bug #828)(backported to 16.1.8).
|
- RT: Fixed race condition in chBMReset() (bug #828)(backported to 16.1.8).
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
|
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList/>"/>
|
<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList/>"/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <globalVariableList/> "/>
|
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <globalVariableList/> "/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList/> "/>
|
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList/> "/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="./build/ch.elf"/>
|
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="./build/ch.elf"/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="STM32F7xx-USB_CDC"/>
|
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="STM32F7xx-USB_CDC"/>
|
||||||
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
|
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
|
||||||
|
|
Loading…
Reference in New Issue