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/z8encore000zco/src | |
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/z8encore000zco/src')
-rw-r--r-- | nuttx/configs/z8encore000zco/src/z8_leds.c | 16 | ||||
-rw-r--r-- | nuttx/configs/z8encore000zco/src/z8_lowinit.c | 3 |
2 files changed, 9 insertions, 10 deletions
diff --git a/nuttx/configs/z8encore000zco/src/z8_leds.c b/nuttx/configs/z8encore000zco/src/z8_leds.c index 7eab7e66b..f14dae6ef 100644 --- a/nuttx/configs/z8encore000zco/src/z8_leds.c +++ b/nuttx/configs/z8encore000zco/src/z8_leds.c @@ -1,7 +1,7 @@ /**************************************************************************** * configs/z8encore000zco/src/z8_leds.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -46,7 +46,7 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <sys/types.h> +#include <stdint.h> #include <arch/board/board.h> #include "up_internal.h" @@ -114,8 +114,8 @@ struct z8_ledbits_s { - ubyte anode; - ubyte cathode; + uint8_t anode; + uint8_t cathode; }; /**************************************************************************** @@ -145,9 +145,9 @@ static const struct z8_ledbits_s g_ledarray[10][4] = ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -static void z8_putled134(FAR const struct z8_ledbits_s *bits, ubyte addr) +static void z8_putled134(FAR const struct z8_ledbits_s *bits, uint8_t addr) { - ubyte porte; + uint8_t porte; porte = bits->cathode; putreg8(porte, PEOD); /* Load porte data */ @@ -163,9 +163,9 @@ static void z8_putled134(FAR const struct z8_ledbits_s *bits, ubyte addr) ****************************************************************************/ #ifdef CONFIG_ARCH_LEDS -static void z8_putled2(FAR const struct z8_ledbits_s *bits, ubyte addr) +static void z8_putled2(FAR const struct z8_ledbits_s *bits, uint8_t addr) { - ubyte portg; + uint8_t portg; putreg8(bits->cathode, PEOD); /* Load porte data */ portg = bits->anode; diff --git a/nuttx/configs/z8encore000zco/src/z8_lowinit.c b/nuttx/configs/z8encore000zco/src/z8_lowinit.c index 5180e3e85..7443dbb65 100644 --- a/nuttx/configs/z8encore000zco/src/z8_lowinit.c +++ b/nuttx/configs/z8encore000zco/src/z8_lowinit.c @@ -1,7 +1,7 @@ /***************************************************************************
* configs/z8encore000zco/src/z8_lowinit.c
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Based upon sample code included with the Zilog ZDS-II toolchain.
@@ -40,7 +40,6 @@ ***************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
#include "chip/chip.h"
|