From 43c18e6e70064e0cfa6808435dd034d8465248f5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 20 Dec 2009 22:24:02 +0000 Subject: [PATCH] Argument to up_udelay() should be type useconds_t git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2400 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/common/up_udelay.c | 3 ++- arch/hc/src/common/up_udelay.c | 3 ++- arch/sh/src/common/up_udelay.c | 3 ++- arch/z16/src/common/up_udelay.c | 3 ++- arch/z80/src/common/up_udelay.c | 3 ++- include/nuttx/arch.h | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/arch/arm/src/common/up_udelay.c b/arch/arm/src/common/up_udelay.c index 2db0388f2f..d2d5b74d93 100644 --- a/arch/arm/src/common/up_udelay.c +++ b/arch/arm/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include +#include #include /**************************************************************************** @@ -84,7 +85,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/arch/hc/src/common/up_udelay.c b/arch/hc/src/common/up_udelay.c index c27f9e76ec..812390f874 100755 --- a/arch/hc/src/common/up_udelay.c +++ b/arch/hc/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include +#include #include /**************************************************************************** @@ -84,7 +85,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/arch/sh/src/common/up_udelay.c b/arch/sh/src/common/up_udelay.c index 55d27305c4..097cbb9e65 100644 --- a/arch/sh/src/common/up_udelay.c +++ b/arch/sh/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include +#include #include /**************************************************************************** @@ -84,7 +85,7 @@ * ****************************************************************************/ -void up_udelay(unsigned int microseconds) +void up_udelay(useconds_t microseconds) { volatile int i; diff --git a/arch/z16/src/common/up_udelay.c b/arch/z16/src/common/up_udelay.c index 18b1763022..f909eb18c9 100644 --- a/arch/z16/src/common/up_udelay.c +++ b/arch/z16/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include +#include #include #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/arch/z80/src/common/up_udelay.c b/arch/z80/src/common/up_udelay.c index 98c409cb6a..06faa9a80e 100644 --- a/arch/z80/src/common/up_udelay.c +++ b/arch/z80/src/common/up_udelay.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include +#include #include #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/include/nuttx/arch.h b/include/nuttx/arch.h index 803468129c..e7c26970f7 100644 --- a/include/nuttx/arch.h +++ b/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