Skip to content

Commit b7bd6f6

Browse files
SuperHeroAbnermmahadevan108
authored andcommitted
mcux: driver: rtwdog: fix register operation issue
Fix the issue that driver doesn't wait the over status after CS register operation. Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
1 parent c042d7b commit b7bd6f6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mcux/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,4 @@ Patch List:
125125
CACHE64_GetInstanceByAddr() is passed an address not managed by the CACHE64
126126
controller
127127
- drivers: edma_rev2: add macro for CHn_CSR's ACTIVE bit
128+
- drivers: rtwdog: Fix the issue that driver doesn't wait the over status after CS register operation

mcux/mcux-sdk/drivers/rtwdog/fsl_rtwdog.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, Freescale Semiconductor, Inc.
3-
* Copyright 2016-2019 NXP
3+
* Copyright 2016-2019, 2024 NXP
44
* All rights reserved.
55
*
66
* SPDX-License-Identifier: BSD-3-Clause
@@ -144,5 +144,8 @@ void RTWDOG_Deinit(RTWDOG_Type *base)
144144
primaskValue = DisableGlobalIRQ();
145145
RTWDOG_Unlock(base);
146146
RTWDOG_Disable(base);
147+
while ((base->CS & RTWDOG_CS_RCS_MASK) == 0U)
148+
{
149+
}
147150
EnableGlobalIRQ(primaskValue);
148151
}

0 commit comments

Comments
 (0)