You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/25 14:30:11 UTC

[GitHub] [incubator-nuttx] acassis commented on a change in pull request #5616: risc-v/esp32c3: Enable Timer Groups clocks on timer initialization

acassis commented on a change in pull request #5616:
URL: https://github.com/apache/incubator-nuttx/pull/5616#discussion_r814813394



##########
File path: arch/risc-v/src/esp32c3/esp32c3_tim.c
##########
@@ -925,6 +929,11 @@ struct esp32c3_tim_dev_s *esp32c3_tim_init(int timer)
       case 1:
         {
           tim = &g_esp32c3_tim1_priv;
+
+          modifyreg32(SYSTEM_PERIP_CLK_EN0_REG, 0,
+                      SYSTEM_TIMERGROUP1_CLK_EN);

Review comment:
       I think you can keep it in a single line




-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org