summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-07-20 18:01:46 +0800
committerGitHub <[email protected]>2017-07-20 18:01:46 +0800
commit5148b9ff270c8368d31fbb1f7573337dfa9f8747 (patch)
treea3f68fb2b86285aa7cdf8d4671e4e5fb144049f6 /components
parentc3c3503dc3fac56f0e58d2753fca1581653a8835 (diff)
parent2c1ee84347adf34c7381c5fcd05097cee4d68f3f (diff)
Merge pull request #766 from AubrCool/fix-stm32f10x.wdt
[BSP] stm32f10x add watchdog driver
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/watchdog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/watchdog.h b/components/drivers/include/drivers/watchdog.h
index 15ae5a1f44..5c74dc82be 100644
--- a/components/drivers/include/drivers/watchdog.h
+++ b/components/drivers/include/drivers/watchdog.h
@@ -38,7 +38,7 @@ struct rt_watchdog_ops;
struct rt_watchdog_device
{
struct rt_device parent;
- struct rt_watchdog_ops *ops;
+ const struct rt_watchdog_ops *ops;
};
typedef struct rt_watchdog_device rt_watchdog_t;