RTEMS | bsps/shared/dev/flash: Add a flashdev simulation backend (!863)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Dec 4 20:08:16 UTC 2025




Kinsey Moore commented on a discussion on bsps/shared/dev/flash/flash_sim_flashdev.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/863#note_136674

 > +
 > +static void complete_operation_delay(
 > +  uint64_t start_time,
 > +  uint64_t target_delay
 > +)
 > +{
 > +  if ( target_delay == 0 ) {
 > +    return;
 > +  }
 > +  while ( rtems_clock_get_uptime_nanoseconds() - start_time < target_delay ) {
 > +    ;
 > +  }
 > +}
 > +
 > +static int flash_sim_get_flash_type(
 > +  rtems_flashdev *flash,

As far as I'm aware, all the other flashdev backends trust the passed parameters. I suppose debug assertions wouldn't hurt, but those might be better placed in the flashdev framework itself to avoid duplication.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/863#note_136674
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/20251204/cd4bc843/attachment-0001.htm>


More information about the bugs mailing list