Skip to content

Commit d68a802

Browse files
committed
Add watchdog clock accuracy to Nuvoton targets.
1 parent e2955eb commit d68a802

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M451/watchdog_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ watchdog_features_t hal_watchdog_get_platform_features(void)
125125
wdt_feat.update_config = 1;
126126
/* Support stopping watchdog timer */
127127
wdt_feat.disable_watchdog = 1;
128+
/* Accuracy of watchdog timer */
129+
wdt_feat.clock_typical_frequency = 10000;
130+
wdt_feat.clock_max_frequency = 15000;
128131

129132
return wdt_feat;
130133
}

targets/TARGET_NUVOTON/TARGET_M480/watchdog_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ watchdog_features_t hal_watchdog_get_platform_features(void)
124124
wdt_feat.update_config = 1;
125125
/* Support stopping watchdog timer */
126126
wdt_feat.disable_watchdog = 1;
127+
/* Accuracy of watchdog timer */
128+
wdt_feat.clock_typical_frequency = 10000;
129+
wdt_feat.clock_max_frequency = 15000;
130+
127131

128132
return wdt_feat;
129133
}

targets/TARGET_NUVOTON/TARGET_NANO100/watchdog_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ watchdog_features_t hal_watchdog_get_platform_features(void)
130130
wdt_feat.update_config = 1;
131131
/* Support stopping watchdog timer */
132132
wdt_feat.disable_watchdog = 1;
133+
/* Accuracy of watchdog timer */
134+
wdt_feat.clock_typical_frequency = 10000;
135+
wdt_feat.clock_max_frequency = 15000;
133136

134137
return wdt_feat;
135138
}

targets/TARGET_NUVOTON/TARGET_NUC472/watchdog_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ watchdog_features_t hal_watchdog_get_platform_features(void)
124124
wdt_feat.update_config = 1;
125125
/* Support stopping watchdog timer */
126126
wdt_feat.disable_watchdog = 1;
127+
/* Accuracy of watchdog timer */
128+
wdt_feat.clock_typical_frequency = 10000;
129+
wdt_feat.clock_max_frequency = 14000;
127130

128131
return wdt_feat;
129132
}

0 commit comments

Comments
 (0)