Skip to content

Commit

Permalink
mcux: driver: rtwdog: fix register operation issue
Browse files Browse the repository at this point in the history
Fix the issue that driver doesn't wait the over status after CS register
operation.

Signed-off-by: Ruijia Wang <[email protected]>
  • Loading branch information
SuperHeroAbner committed Dec 9, 2024
1 parent acec3bb commit f0d49c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mcux/mcux-sdk/drivers/rtwdog/fsl_rtwdog.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016-2019 NXP
* Copyright 2016-2019, 2024 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -144,5 +144,8 @@ void RTWDOG_Deinit(RTWDOG_Type *base)
primaskValue = DisableGlobalIRQ();
RTWDOG_Unlock(base);
RTWDOG_Disable(base);
while ((base->CS & RTWDOG_CS_RCS_MASK) == 0U)
{
}
EnableGlobalIRQ(primaskValue);
}

0 comments on commit f0d49c6

Please sign in to comment.