From 14d278894d132b06e526c731a28e733d924aa07f Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Wed, 31 Jul 2002 19:08:37 +0000 Subject: [PATCH] Fixed non-C includes (stdint.h). git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@86 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/arm/pxa2x0/uart.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/arm/pxa2x0/uart.h b/include/arm/pxa2x0/uart.h index 4643a4b6..164d5393 100644 --- a/include/arm/pxa2x0/uart.h +++ b/include/arm/pxa2x0/uart.h @@ -32,9 +32,12 @@ #ifndef PXA2X0_UART_H #define PXA2X0_UART_H -#include #include +#if LANGUAGE == C +#include +#endif + /* Common UART (FFUART/BTUART/STUART) Declarations */ #define FFUART_BASE 0x40100000 @@ -64,13 +67,9 @@ typedef volatile struct UART_registers { uint32_t isr; } UART_registers; -#ifndef FFUART_pointer +#ifdef PXA2X0_UNMAPPED #define FFUART_pointer ((UART_registers *) FFUART_BASE) -#endif -#ifndef BTUART_pointer #define BTUART_pointer ((UART_registers *) BTUART_BASE) -#endif -#ifndef STUART_pointer #define STUART_pointer ((UART_registers *) STUART_BASE) #endif