mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
[core] 使用rt_memcpy rt_memset代替memcpy memset
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user