mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
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
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_udelay(unsigned int microseconds)
|
void up_udelay(useconds_t microseconds)
|
||||||
{
|
{
|
||||||
volatile int i;
|
volatile int i;
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_udelay(unsigned int microseconds)
|
void up_udelay(useconds_t microseconds)
|
||||||
{
|
{
|
||||||
volatile int i;
|
volatile int i;
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_udelay(unsigned int microseconds)
|
void up_udelay(useconds_t microseconds)
|
||||||
{
|
{
|
||||||
volatile int i;
|
volatile int i;
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#ifdef CONFIG_BOARD_LOOPSPERMSEC
|
#ifdef CONFIG_BOARD_LOOPSPERMSEC
|
||||||
@@ -86,7 +87,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_udelay(unsigned int microseconds)
|
void up_udelay(useconds_t microseconds)
|
||||||
{
|
{
|
||||||
volatile int i;
|
volatile int i;
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#ifdef CONFIG_BOARD_LOOPSPERMSEC
|
#ifdef CONFIG_BOARD_LOOPSPERMSEC
|
||||||
@@ -86,7 +87,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void up_udelay(unsigned int microseconds)
|
void up_udelay(useconds_t microseconds)
|
||||||
{
|
{
|
||||||
volatile int i;
|
volatile int i;
|
||||||
|
|
||||||
|
|||||||
@@ -460,7 +460,7 @@ EXTERN int up_prioritize_irq(int irq, int priority);
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
EXTERN void up_mdelay(unsigned int milliseconds);
|
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
|
* Name: up_fbinitialize, up_fbuninitialize, up_fbgetvplane
|
||||||
|
|||||||
Reference in New Issue
Block a user