From 1375e4917dc9f9ec7ad488fa83c23d94a1053de9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 15 Dec 2009 20:56:22 +0000 Subject: 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 --- nuttx/configs/z8encore000zco/src/z8_leds.c | 16 ++++++++-------- nuttx/configs/z8encore000zco/src/z8_lowinit.c | 3 +-- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'nuttx/configs/z8encore000zco/src') 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 * * Redistribution and use in source and binary forms, with or without @@ -46,7 +46,7 @@ ****************************************************************************/ #include -#include +#include #include #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 * * Based upon sample code included with the Zilog ZDS-II toolchain. @@ -40,7 +40,6 @@ ***************************************************************************/ #include -#include #include "chip/chip.h" -- cgit v1.2.3