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

Mohamed Ayman (@mohamedayman23) gitlab at rtems.org
Thu Mar 19 15:26:18 UTC 2026




Mohamed Ayman commented on a discussion on bsps/arm/stm32f4/include/bsp/stm32f4xxxx_otgfs.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1134#note_146217

 >  #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)

Got it, I’ll move the `_GET` and `_SET` definitions together with `STM32F4_OTGFS_DIEPCTL_MPSIZ` to keep them grouped, and squash all the commits\>

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1134#note_146217
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/131a2ef0/attachment.htm>


More information about the bugs mailing list