RTEMS | stm32h7-hal: Refactor clock and UART handling (!1156)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Mar 26 03:24:47 UTC 2026




Kinsey Moore started a new discussion on bsps/arm/stm32h7/start/stm32h7-hal.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1156#note_147093

 > +    return;
 > +  }
 > +
 >    enr = stm32h7_clk[index].enr;
 >    enable_bit = stm32h7_clk[index].enable_bit;
 >  
 > +  /* Prevent NULL pointer dereference */
 > +  if (enr == NULL) {
 > +    return;
 > +  }
 > +
 >    rtems_interrupt_disable(level);
 >    SET_BIT(*enr, enable_bit);
 >    /* Delay after an RCC peripheral clock enabling */
 > -  *enr;
 > +  (void)*enr;

There should be a space between `(void)` and `*enr`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1156#note_147093
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/20260326/813f2880/attachment-0001.htm>


More information about the bugs mailing list