lupyuen commented on code in PR #11472:
URL: https://github.com/apache/nuttx/pull/11472#discussion_r1441578224
##########
arch/risc-v/src/bl808/bl808_timerisr.c:
##########
@@ -101,6 +55,14 @@ static int bl808_ssoft_interrupt(int irq, void *context,
void *arg)
void up_timer_initialize(void)
{
- irq_attach(RISCV_IRQ_SSOFT, bl808_ssoft_interrupt, NULL);
- up_enable_irq(RISCV_IRQ_SSOFT);
+ /* Initialize the OpenSBI Timer. mtime and mtimecmp are unused for
+ * OpenSBI.
+ */
+
+ struct oneshot_lowerhalf_s *lower = riscv_mtimer_initialize(
+ 0, 0, RISCV_IRQ_STIMER, MTIMER_FREQ);
Review Comment:
Yep moved to the next line, thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]