David Lin hace 5 años
padre
commit
d38dbcaaa3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bsp/fh8620/drivers/pwm.c

+ 1 - 1
bsp/fh8620/drivers/pwm.c

@@ -186,7 +186,7 @@ int fh_pwm_probe(void *priv_data)
 
     PWM_Enable(pwm_obj, RT_FALSE);
 
-    pwm_dev = rt_calloc(sizeof(struct rt_device));
+    pwm_dev = rt_calloc(1,sizeof(struct rt_device));
 
     if (pwm_dev == RT_NULL)
     {