Mohamed Ayman created a merge request:
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1203
Project:Branches: mohamedayman23/rtems:fix-stm32f4-FIXME-issue-i2c to
rtems/rtos/rtems:main
Author: Mohamed Ayman
stm32f4/i2c: Implement fast mode up to 400kHz in set_bitrate
Previously, any bitrate above 100kHz returned RTEMS_NOT_IMPLEMENTED. Add fast
mode support (DUTY=0, Tlow/Thigh=2) with correct CCR formula (PCLK / (3 \* br))
and rise time calculation (TRISE = FPCLK \* 300ns + 1), using a uint64_t cast
to avoid 32-bit overflow.
{width=469
height=600}
{width=900
height=531}
AI Usage: Yes
AI Prompt: tell me the way should i think if i need to implement fast mode with
avoiding the overflow corner cases.
AI Model: claude sonnet 4.6
How AI used: for explanation and avoid the corner cases.
--
View it on GitLab:
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1203
You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs