commit | f2b9ba1b2c3e2a0de6a47989b32f401de14e17ee | [log] [tgz] |
---|---|---|
author | Ruibin Chang <ruibin.chang@ite.com.tw> | Tue Aug 17 11:21:10 2021 +0800 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Tue Aug 24 07:30:47 2021 -0400 |
tree | cbb12ee691c4c293186874b825bd11266b7e4354 | |
parent | fc33f6af3a2fc850c8f074039c37af5183225c72 [diff] |
ITE drivers/timer: add disable event timer control We add disable event timer at the beginning of critical section for two reason: 1.For K_TICKS_FOREVER case: since no future timer interrupts are expected or required, so we disable the event timer. 2.Others case: according it81202 spec, when timer enable bit from 0->1, the timer will reload counts and start countdown. Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>