diff options
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/arch/arm/src/common/up_udelay.c | 3 | ||||
-rwxr-xr-x | nuttx/arch/hc/src/common/up_udelay.c | 3 | ||||
-rw-r--r-- | nuttx/arch/sh/src/common/up_udelay.c | 3 | ||||
-rw-r--r-- | nuttx/arch/z16/src/common/up_udelay.c | 3 | ||||
-rw-r--r-- | nuttx/arch/z80/src/common/up_udelay.c | 3 | ||||
-rw-r--r-- | nuttx/include/nuttx/arch.h | 2 |
6 files changed, 11 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/common/up_udelay.c b/nuttx/arch/arm/src/common/up_udelay.c index 2db0388f2..d2d5b74d9 100644 --- a/nuttx/arch/arm/src/common/up_udelay.c +++ b/nuttx/arch/arm/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <sys/types.h> #include <nuttx/arch.h> /**************************************************************************** @@ -84,7 +85,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/nuttx/arch/hc/src/common/up_udelay.c b/nuttx/arch/hc/src/common/up_udelay.c index c27f9e76e..812390f87 100755 --- a/nuttx/arch/hc/src/common/up_udelay.c +++ b/nuttx/arch/hc/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <sys/types.h> #include <nuttx/arch.h> /**************************************************************************** @@ -84,7 +85,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/nuttx/arch/sh/src/common/up_udelay.c b/nuttx/arch/sh/src/common/up_udelay.c index 55d27305c..097cbb9e6 100644 --- a/nuttx/arch/sh/src/common/up_udelay.c +++ b/nuttx/arch/sh/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <sys/types.h> #include <nuttx/arch.h> /**************************************************************************** @@ -84,7 +85,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/nuttx/arch/z16/src/common/up_udelay.c b/nuttx/arch/z16/src/common/up_udelay.c index 18b176302..f909eb18c 100644 --- a/nuttx/arch/z16/src/common/up_udelay.c +++ b/nuttx/arch/z16/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <sys/types.h> #include <nuttx/arch.h> #ifdef CONFIG_BOARD_LOOPSPERMSEC @@ -86,7 +87,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/nuttx/arch/z80/src/common/up_udelay.c b/nuttx/arch/z80/src/common/up_udelay.c index 98c409cb6..06faa9a80 100644 --- a/nuttx/arch/z80/src/common/up_udelay.c +++ b/nuttx/arch/z80/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include <nuttx/config.h> +#include <sys/types.h> #include <nuttx/arch.h> #ifdef CONFIG_BOARD_LOOPSPERMSEC @@ -86,7 +87,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/nuttx/include/nuttx/arch.h b/nuttx/include/nuttx/arch.h index 803468129..e7c26970f 100644 --- a/nuttx/include/nuttx/arch.h +++ b/nuttx/include/nuttx/arch.h @@ -460,7 +460,7 @@ EXTERN int up_prioritize_irq(int irq, int priority); ***************************************************************************/ EXTERN void up_mdelay(unsigned int milliseconds); -EXTERN void up_udelay(unsigned int microseconds); +EXTERN void up_udelay(useconds_t microseconds); /**************************************************************************** * Name: up_fbinitialize, up_fbuninitialize, up_fbgetvplane |