Jeremy Lorelli commented on a discussion on bsps/m68k/uC5282/clock/clock.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/589#note_126676

 > -            }                                                               
 >  \
 > -            PITC_PER_TICK  = N;                                             
 >  \
 > -            N  = 2000000000ULL << preScaleCode;                             
 >  \
 > -            N /= bsp_get_CPU_clock_speed();                                 
 >  \
 > -            NSEC_PER_PITC  = N;                                             
 >  \
 > +    N  = bsp_get_CPU_clock_speed();                                  \
 > +    N *= rtems_configuration_get_microseconds_per_tick();            \
 > +    N /= 2*1000000; /* min_prescale * us_per_s */                    \
 > +    while ( N > 0x10000 ) {                                          \
 > +      preScaleCode++;                                              \
 > +      N >>= 1;                                                     \
 > +    }                                                                \
 > +    PITC_PER_TICK  = N;                                              \
 > +    N  = 2000000000ULL << preScaleCode;                              \
 > +    N /= bsp_get_CPU_clock_speed();                                  \
 > +    NSEC_PER_PITC  = N;                                              \

I think I fixed all instances of this. Thanks for pointing it out.

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


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to