[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common: add watchdog for stm32 (#11252)

Alexandre Abadie notifications at github.com
Fri Sep 13 08:04:32 CEST 2019


aabadie commented on this pull request.



> +    printf("lower_bound: %d upper_bound: %d \n", NWDT_TIME_LOWER_LIMIT,
+           NWDT_TIME_UPPER_LIMIT);
+    return 0;
+}
+
+int setup_wdt(int argc, char **argv)
+{
+    if (argc < 3) {
+        printf("usage: %s <min_time[ms]> <max_time[ms]>\n", argv[0]);
+        return -1;
+    }
+
+    uint32_t min_time = atoi(argv[1]);
+    uint32_t max_time = atoi(argv[2]);
+
+    if (max_time > NWDT_TIME_UPPER_LIMIT || max_time < NWDT_TIME_LOWER_LIMIT) {

```suggestion
    if (max_time > NWDT_TIME_UPPER_LIMIT || min_time < NWDT_TIME_LOWER_LIMIT) {
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11252#pullrequestreview-287825201
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190912/8513f4a0/attachment.htm>


More information about the notifications mailing list