boards/: Within the OS, nxisg_usleep() should be used instead of usleep(). usleep() is a cancellation point and sets the errno value. Neither of which should be done inside the OS.

This commit is contained in:
Gregory Nutt
2019-11-29 17:47:03 -06:00
parent 244437257b
commit 03e41c6806
12 changed files with 61 additions and 47 deletions
@@ -46,8 +46,9 @@
#include <debug.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#include <nuttx/signal.h>
#include <nuttx/wireless/lpwan/sx127x.h>
#include <arch/board/board.h>
#include "stm32_gpio.h"
#include "stm32_exti.h"
@@ -126,7 +127,7 @@ static void sx127x_chip_reset(void)
/* Wait 1 ms */
usleep(1000);
nxsig_usleep(1000);
/* Configure reset as input */
@@ -134,7 +135,7 @@ static void sx127x_chip_reset(void)
/* Wait 10 ms */
usleep(10000);
nxsig_usleep(10000);
}
/****************************************************************************