git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15608 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-04-26 08:26:55 +00:00
parent f6bd51f33e
commit a843374300
2 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,7 @@ static size_t usb_packet_read_to_buffer(usbep_t ep, uint8_t *buf) {
in which the next received packet will be stored, so we need to in which the next received packet will be stored, so we need to
read the counter of the OTHER buffer, which is where the last read the counter of the OTHER buffer, which is where the last
received packet was stored.*/ received packet was stored.*/
if (EPR_EP_TYPE_IS_ISO(epr) && !(epr & EPR_DTOG_RX)) if (EPR_EP_TYPE_IS_ISO(epr) && ((epr & EPR_DTOG_RX) != 0U))
n = (size_t)udp->RXCOUNT1 & RXCOUNT_COUNT_MASK; n = (size_t)udp->RXCOUNT1 & RXCOUNT_COUNT_MASK;
else else
n = (size_t)udp->RXCOUNT0 & RXCOUNT_COUNT_MASK; n = (size_t)udp->RXCOUNT0 & RXCOUNT_COUNT_MASK;

View File

@ -133,6 +133,8 @@
- NEW: Added SPIv2 support also to STM32WB and STM32WL. - NEW: Added SPIv2 support also to STM32WB and STM32WL.
- FIX: Re-opened and fixed bug #1100 - FIX: Re-opened and fixed bug #1100
(backported to 20.3.5)(backported to 21.11.2). (backported to 20.3.5)(backported to 21.11.2).
- FIX: Fixed wrong buffers toggling in STM32 USBv1 isochronous mode (bug #1232)
(backported to 20.3.5)(backported to 21.11.2).
- FIX: Fixed STM32 RTCv2 registers synchronization errata (bug #1231) - FIX: Fixed STM32 RTCv2 registers synchronization errata (bug #1231)
(backported to 20.3.5)(backported to 21.11.2). (backported to 20.3.5)(backported to 21.11.2).
- FIX: Fixed STM32 ADCv1 and ADCv5 do not allow prescaler divide value of 1 - FIX: Fixed STM32 ADCv1 and ADCv5 do not allow prescaler divide value of 1