RTEMS | bsps/arm/stm32f4: Fix multiple OTGFS header bugs (!1134)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Mar 19 00:47:02 UTC 2026




Kinsey Moore commented on a discussion on bsps/arm/stm32f4/include/bsp/stm32f4xxxx_otgfs.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1134#note_146144

 >  #define EP0_MPSIZ_16  2
 >  #define EP0_MPSIZ_32  1
 >  #define EP0_MPSIZ_64  0
 > +#define STM32F4_OTGFS_DIEPCTL_MPSIZ(val)  BSP_FLD32(val, 0, 10) // Maximum packet size (bytes)
 >  #define STM32F4_OTGFS_DIEPCTL_EP0_MPSIZ_8 STM32F4_OTGFS_DIEPCTL_MPSIZ(EP0_MPSIZ_8)
 >  #define STM32F4_OTGFS_DIEPCTL_EP0_MPSIZ_16  STM32F4_OTGFS_DIEPCTL_MPSIZ(EP0_MPSIZ_16)
 >  #define STM32F4_OTGFS_DIEPCTL_EP0_MPSIZ_32  STM32F4_OTGFS_DIEPCTL_MPSIZ(EP0_MPSIZ_32)
 >  #define STM32F4_OTGFS_DIEPCTL_EP0_MPSIZ_64  STM32F4_OTGFS_DIEPCTL_MPSIZ(EP0_MPSIZ_64)
 > -#define STM32F4_OTGFS_DIEPCTL_MPSIZ(val)  BSP_FLD32(val, 0, 10) // Maximum packet size (bytes)

All of the `STM32F4_OTGFS_DIEPCTL_MPSIZ*` definitions.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1134#note_146144
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260319/f5224f5c/attachment-0001.htm>


More information about the bugs mailing list