xtensa/esp32s3: Move code documentation to the correct place
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
a4db4031c9
commit
86b18bd6e9
@ -119,7 +119,7 @@ void up_timer_initialize(void)
|
||||
modifyreg32(SYSTEM_PERIP_RST_EN0_REG, SYSTEM_SYSTIMER_RST, 0);
|
||||
modifyreg32(SYSTIMER_CONF_REG, 0, SYSTIMER_CLK_EN);
|
||||
|
||||
/* Configure alarm0 (Comparator 0) */
|
||||
/* Configure alarm 0 (Comparator 0) */
|
||||
|
||||
regval = SYSTIMER_TARGET0_PERIOD_MODE |
|
||||
((ESP32S3_SYSTIMER_TICKS_PER_SEC / CLOCKS_PER_SEC) <<
|
||||
@ -138,9 +138,9 @@ void up_timer_initialize(void)
|
||||
|
||||
modifyreg32(SYSTIMER_INT_CLR_REG, 0, SYSTIMER_TARGET0_INT_CLR);
|
||||
modifyreg32(SYSTIMER_INT_ENA_REG, 0, SYSTIMER_TARGET0_INT_ENA);
|
||||
|
||||
/* Start alarm 0 and counter 0 */
|
||||
|
||||
modifyreg32(SYSTIMER_CONF_REG, 0, SYSTIMER_TARGET0_WORK_EN);
|
||||
|
||||
/* Start alarm0 counter0 */
|
||||
|
||||
modifyreg32(SYSTIMER_CONF_REG, 0, SYSTIMER_TIMER_UNIT0_WORK_EN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user