summaryrefslogtreecommitdiff
path: root/nuttx/configs/z8encore000zco/src
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/z8encore000zco/src')
-rw-r--r--nuttx/configs/z8encore000zco/src/z8_leds.c16
-rw-r--r--nuttx/configs/z8encore000zco/src/z8_lowinit.c3
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"