@@ -305,20 +305,20 @@ static struct pbuf * _eth_arch_low_level_input(struct netif *netif)
305
305
memcpy ((uint8_t * )((uint8_t * )q -> payload + payloadoffset ), (uint8_t * )((uint8_t * )buffer + bufferoffset ), byteslefttocopy );
306
306
bufferoffset = bufferoffset + byteslefttocopy ;
307
307
}
308
+ }
308
309
309
- /* Release descriptors to DMA */
310
- /* Point to first descriptor */
311
- dmarxdesc = EthHandle .RxFrameInfos .FSRxDesc ;
312
- /* Set Own bit in Rx descriptors: gives the buffers back to DMA */
313
- for (i = 0 ; i < EthHandle .RxFrameInfos .SegCount ; i ++ ) {
314
- dmarxdesc -> Status |= ETH_DMARXDESC_OWN ;
315
- dmarxdesc = (ETH_DMADescTypeDef * )(dmarxdesc -> Buffer2NextDescAddr );
316
- }
317
-
318
- /* Clear Segment_Count */
319
- EthHandle .RxFrameInfos .SegCount = 0 ;
310
+ /* Release descriptors to DMA */
311
+ /* Point to first descriptor */
312
+ dmarxdesc = EthHandle .RxFrameInfos .FSRxDesc ;
313
+ /* Set Own bit in Rx descriptors: gives the buffers back to DMA */
314
+ for (i = 0 ; i < EthHandle .RxFrameInfos .SegCount ; i ++ ) {
315
+ dmarxdesc -> Status |= ETH_DMARXDESC_OWN ;
316
+ dmarxdesc = (ETH_DMADescTypeDef * )(dmarxdesc -> Buffer2NextDescAddr );
320
317
}
321
318
319
+ /* Clear Segment_Count */
320
+ EthHandle .RxFrameInfos .SegCount = 0 ;
321
+
322
322
/* When Rx Buffer unavailable flag is set: clear it and resume reception */
323
323
if ((EthHandle .Instance -> DMASR & ETH_DMASR_RBUS ) != (uint32_t )RESET ) {
324
324
/* Clear RBUS ETHERNET DMA flag */
0 commit comments