diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-15 20:56:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-15 20:56:22 +0000 |
commit | 1375e4917dc9f9ec7ad488fa83c23d94a1053de9 (patch) | |
tree | cc9f00d272faed8cca17c115086ef4f542beec34 /nuttx/configs/c5471evm | |
parent | 08b2e5a5495fb08277274eaaf91c21069e0fbadf (diff) | |
download | px4-nuttx-1375e4917dc9f9ec7ad488fa83c23d94a1053de9.tar.gz px4-nuttx-1375e4917dc9f9ec7ad488fa83c23d94a1053de9.tar.bz2 px4-nuttx-1375e4917dc9f9ec7ad488fa83c23d94a1053de9.zip |
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2352 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/c5471evm')
-rw-r--r-- | nuttx/configs/c5471evm/include/board.h | 28 | ||||
-rw-r--r-- | nuttx/configs/c5471evm/src/up_leds.c | 10 |
2 files changed, 17 insertions, 21 deletions
diff --git a/nuttx/configs/c5471evm/include/board.h b/nuttx/configs/c5471evm/include/board.h index ffad227a7..615d4723a 100644 --- a/nuttx/configs/c5471evm/include/board.h +++ b/nuttx/configs/c5471evm/include/board.h @@ -1,7 +1,7 @@ -/************************************************************ +/************************************************************************ * arch/board.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,28 +31,24 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ************************************************************************/ #ifndef __ARCH_BOARD_H #define __ARCH_BOARD_H -/************************************************************ +/************************************************************************ * Included Files - ************************************************************/ + ************************************************************************/ -#ifndef __ASSEMBLY__ -# include <sys/types.h> -#endif - -/************************************************************ +/************************************************************************ * Definitions - ************************************************************/ + ************************************************************************/ -/* Clocking *************************************************/ +/* Clocking *************************************************************/ #define C5471_CLOCK 47500000 /* 47.5 MHz */ -/* LED definitions ******************************************/ +/* LED definitions ******************************************************/ #define LED_STARTED 0 #define LED_HEAPALLOCATE 1 @@ -63,8 +59,8 @@ #define LED_ASSERTION 6 #define LED_PANIC 7 -/************************************************************ +/************************************************************************ * Inline Functions - ************************************************************/ + ************************************************************************/ #endif /* __ARCH_BOARD_H */ diff --git a/nuttx/configs/c5471evm/src/up_leds.c b/nuttx/configs/c5471evm/src/up_leds.c index 1299ed88b..f733e9ffe 100644 --- a/nuttx/configs/c5471evm/src/up_leds.c +++ b/nuttx/configs/c5471evm/src/up_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * up_leds.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -38,21 +38,21 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <sys/types.h> +#include <stdint.h> #include "up_internal.h" /**************************************************************************** * Definitions ****************************************************************************/ -#define CS2 *(volatile uint32*)0xffff2e08 -#define LEDS *(volatile uint32*)0x01000000 +#define CS2 *(volatile uint32_t*)0xffff2e08 +#define LEDS *(volatile uint32_t*)0x01000000 /**************************************************************************** * Private Data ****************************************************************************/ -static uint32 g_ledstate; +static uint32_t g_ledstate; /**************************************************************************** * Private Functions |