diff options
| author | Ouxiaolong <[email protected]> | 2022-01-09 12:39:51 +0800 |
|---|---|---|
| committer | Ouxiaolong <[email protected]> | 2022-01-09 12:39:51 +0800 |
| commit | ecba17963ca12e568511edfc056c34720de000b3 (patch) | |
| tree | 82f44220b5498df4270bd1652360863d583fb69a /components/drivers/misc | |
| parent | dafa934443fa34137217bf9dd59f486946fa4c1e (diff) | |
| parent | 10a963b955f1f5c7333c4f1668dd20ff27283e85 (diff) | |
Merge branch 'master' of github.com:Ouxiaolong/rt-thread
Diffstat (limited to 'components/drivers/misc')
| -rw-r--r-- | components/drivers/misc/rt_drv_pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/misc/rt_drv_pwm.c b/components/drivers/misc/rt_drv_pwm.c index 42325587ab..c60bf6df1d 100644 --- a/components/drivers/misc/rt_drv_pwm.c +++ b/components/drivers/misc/rt_drv_pwm.c @@ -105,7 +105,7 @@ rt_err_t rt_device_pwm_register(struct rt_device_pwm *device, const char *name, { rt_err_t result = RT_EOK; - memset(device, 0, sizeof(struct rt_device_pwm)); + rt_memset(device, 0, sizeof(struct rt_device_pwm)); #ifdef RT_USING_DEVICE_OPS device->parent.ops = &pwm_device_ops; |
