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

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Mar 18 20:04:12 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_146116

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

If it is going to move, the other two definitions should move with it.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1134#note_146116
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/20260318/391df83b/attachment.htm>


More information about the bugs mailing list