summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/ez80/ez80_lowuart.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:15:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 14:15:34 +0000
commit03a31e4a728883bf41bd6712d38dae413a9a41bc (patch)
treeabe04d3d494a263aa46a4467603c8027dfa701e9 /nuttx/arch/z80/src/ez80/ez80_lowuart.c
parentb10830785275aac3667b88c2d1a90a5563bbdb49 (diff)
downloadpx4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.gz
px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.bz2
px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.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@2354 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/ez80/ez80_lowuart.c')
-rw-r--r--nuttx/arch/z80/src/ez80/ez80_lowuart.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_lowuart.c b/nuttx/arch/z80/src/ez80/ez80_lowuart.c
index a89c8089b..5bcbaa043 100644
--- a/nuttx/arch/z80/src/ez80/ez80_lowuart.c
+++ b/nuttx/arch/z80/src/ez80/ez80_lowuart.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/z80/src/ez80/ez80_loweruart.c
*
- * Copyright (C) 2008, 2009 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
@@ -39,7 +39,7 @@
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
#include <string.h>
#include <arch/io.h>
@@ -140,8 +140,8 @@
#if defined(HAVE_SERIALCONSOLE) && !defined(CONFIG_SUPPRESS_UART_CONFIG)
static void ez80_setbaud(void)
{
- uint32 brg_divisor;
- ubyte lctl;
+ uint32_t brg_divisor;
+ uint8_t lctl;
/* The resulting BAUD and depends on the system clock frequency and the
* BRG divisor as follows:
@@ -163,8 +163,8 @@ static void ez80_setbaud(void)
lctl |= EZ80_UARTLCTL_DLAB;
ez80_outp(EZ80_UART_LCTL, lctl);
- ez80_outp(EZ80_UART_BRGL, (ubyte)(brg_divisor & 0xff));
- ez80_outp(EZ80_UART_BRGH, (ubyte)(brg_divisor >> 8));
+ ez80_outp(EZ80_UART_BRGL, (uint8_t)(brg_divisor & 0xff));
+ ez80_outp(EZ80_UART_BRGH, (uint8_t)(brg_divisor >> 8));
lctl &= ~EZ80_UARTLCTL_DLAB;
ez80_outp(EZ80_UART_LCTL, lctl);
@@ -182,7 +182,7 @@ static void ez80_setbaud(void)
void up_lowuartinit(void)
{
#ifdef HAVE_SERIAL
- ubyte regval;
+ uint8_t regval;
/* Configure pins for usage of UARTs (whether or not we have a console) */