You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/05/12 10:50:22 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6251: Optimize the up_mdelay usage

pkarashchenko commented on code in PR #6251:
URL: https://github.com/apache/incubator-nuttx/pull/6251#discussion_r871235822


##########
arch/arm/src/c5471/c5471_ethernet.c:
##########
@@ -1892,7 +1892,7 @@ static int c5471_ifup(struct net_driver_s *dev)
 
   putreg32((getreg32(EIM_CTRL) | EIM_CTRL_ESM_EN), EIM_CTRL);      /* enable ESM */
   putreg32((getreg32(ENET0_MODE) | ENET_MODE_ENABLE), ENET0_MODE); /* enable ENET */
-  up_mdelay(100);
+  nxsig_usleep(100000);

Review Comment:
   The `up_mdelay` does not depend in scheduler configuration while `nxsig_usleep` does.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org