RTEMS | RISC-V: Add support for ESP32-C3 (!1160)

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Apr 1 00:55:58 UTC 2026




Kinsey Moore commented on a discussion on bsps/riscv/esp32/clock/clockdrv_systimer.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147719

 > +  /* wait for updated value, typically takes 0-2 loop iterations */
 > +  while ( systimer_unit0_value_valid() == 0 ) {
 > +    ;
 > +  }
 > +
 > +  /*
 > +   * only return the low 32 bits because CPU_Counter_ticks is only 32bit and
 > +   * the configured period must be less than this
 > +   */
 > +  return SYSTIMER_REG( SYSTIMER_UNIT0_VALUE_LO_REG );
 > +}
 > +
 > +static void systimer_clock_at_tick( void )
 > +{
 > +  /* acknowledge the interrupt */
 > +  SYSTIMER_REG( SYSTIMER_INT_CLR_REG ) = SYSTIMER_TARGET0_INT_CLR ;

Done.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147719
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/20260401/6028b20e/attachment-0001.htm>


More information about the bugs mailing list