Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bsp: cvitek: fix the wdt timeout unit problem #34

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

unicornx
Copy link
Collaborator

See components/drivers/include/drivers/watchdog.h

maco definition of
RT_DEVICE_CTRL_WDT_GET_TIMEOUT
RT_DEVICE_CTRL_WDT_SET_TIMEOUT
RT_DEVICE_CTRL_WDT_GET_TIMELEFT

The wdt timeout time unit is defined as seconds in the API, but the code incorrectly uses ms.

Correct this and comply with the API definition.

See `components/drivers/include/drivers/watchdog.h`

maco definition of
RT_DEVICE_CTRL_WDT_GET_TIMEOUT
RT_DEVICE_CTRL_WDT_SET_TIMEOUT
RT_DEVICE_CTRL_WDT_GET_TIMELEFT

The wdt timeout time unit is defined as seconds in the API, but
the code incorrectly uses ms.

Correct this and comply with the API definition.

Signed-off-by: Chen Wang <[email protected]>
@unicornx unicornx requested a review from flyingcys June 13, 2024 06:37
@unicornx unicornx self-assigned this Jun 13, 2024
@flyingcys flyingcys merged commit ff328d7 into flyingcys:duo-v5.1.0 Jun 13, 2024
@unicornx unicornx deleted the dev-fix-wdt-unit-ms branch June 13, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants