Skip to content
Commit 528d1391 authored by Jun Lin's avatar Jun Lin Committed by Anas Nashif
Browse files

drivers: watchdog: npcx: fix T0 timer reload procedure



The correct procedure to reload the T0 timer is:
    1. Load TWDT0 register with the new value or write 1 to RST bit in
       T0CSR register to load the old value.
    2. Wait until RST bit in T0CSR register becomes 1.
    3. Wait until RST bit in T0CSR register becomes 0.
The current watchdog driver misses step 2.
Fix the issue in this commit.

Signed-off-by: default avatarJun Lin <CHLin56@nuvoton.com>
(cherry picked from commit 6c3b617b)
parent bc26e1a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment