From c284a81e0c699228012b168ff263972086bcbf4d Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Tue, 17 Sep 2013 15:50:00 +0100 Subject: [PATCH] dm36x: Convert tabs to spaces. --- ports/arm/platforms/dm36x/dm36x-io.h | 50 ++++++++++++++-------------- ports/arm/platforms/dm36x/uart.c | 18 +++++----- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/ports/arm/platforms/dm36x/dm36x-io.h b/ports/arm/platforms/dm36x/dm36x-io.h index 56bfde3..fb0251b 100644 --- a/ports/arm/platforms/dm36x/dm36x-io.h +++ b/ports/arm/platforms/dm36x/dm36x-io.h @@ -37,33 +37,33 @@ * IO Addresses for use with DM36x */ -#define DM36X_TIMER0_BASE 0x01C21400 /* TIMER0 */ -#define DM36X_TIMER_PID12 0x00 -#define DM36X_TIMER_EMUMGT 0x04 -#define DM36X_TIMER_TIM12 0x10 -#define DM36X_TIMER_TIM34 0x14 -#define DM36X_TIMER_PRD12 0x18 -#define DM36X_TIMER_PRD34 0x1C -#define DM36X_TIMER_TCR 0x20 -#define DM36X_TIMER_TGCR 0x24 -#define DM36X_TIMER_WDTCR 0x28 -#define DM36X_TIMER_REL12 0x34 -#define DM36X_TIMER_REL34 0x38 -#define DM36X_TIMER_CAP12 0x3C -#define DM36X_TIMER_CAP34 0x40 -#define DM36X_TIMER_INTCTL_STAT 0x44 +#define DM36X_TIMER0_BASE 0x01C21400 /* TIMER0 */ +#define DM36X_TIMER_PID12 0x00 +#define DM36X_TIMER_EMUMGT 0x04 +#define DM36X_TIMER_TIM12 0x10 +#define DM36X_TIMER_TIM34 0x14 +#define DM36X_TIMER_PRD12 0x18 +#define DM36X_TIMER_PRD34 0x1C +#define DM36X_TIMER_TCR 0x20 +#define DM36X_TIMER_TGCR 0x24 +#define DM36X_TIMER_WDTCR 0x28 +#define DM36X_TIMER_REL12 0x34 +#define DM36X_TIMER_REL34 0x38 +#define DM36X_TIMER_CAP12 0x3C +#define DM36X_TIMER_CAP34 0x40 +#define DM36X_TIMER_INTCTL_STAT 0x44 -#define DM36X_INTC_BASE 0x01C48000 /* Interrupt controller */ -#define DM36X_INTC_IRQ0 0x08 -#define DM36X_INTC_IRQ1 0x0C -#define DM36X_INTC_IRQENTRY 0x10 -#define DM36X_INTC_EINT1 0x1C -#define DM36X_INTC_INTCTL 0x20 -#define DM36X_INTC_EABASE 0x24 -#define DM36X_INTC_VEC_TINT0 32 +#define DM36X_INTC_BASE 0x01C48000 /* Interrupt controller */ +#define DM36X_INTC_IRQ0 0x08 +#define DM36X_INTC_IRQ1 0x0C +#define DM36X_INTC_IRQENTRY 0x10 +#define DM36X_INTC_EINT1 0x1C +#define DM36X_INTC_INTCTL 0x20 +#define DM36X_INTC_EABASE 0x24 +#define DM36X_INTC_VEC_TINT0 32 -#define DM36X_UART0_BASE 0x01C20000 /* UART0 */ -#define DM36X_UART1_BASE 0x01D06000 /* UART1 */ +#define DM36X_UART0_BASE 0x01C20000 /* UART0 */ +#define DM36X_UART1_BASE 0x01D06000 /* UART1 */ diff --git a/ports/arm/platforms/dm36x/uart.c b/ports/arm/platforms/dm36x/uart.c index c5ce4cc..1369376 100644 --- a/ports/arm/platforms/dm36x/uart.c +++ b/ports/arm/platforms/dm36x/uart.c @@ -47,7 +47,7 @@ /* Constants */ /** Select relevant UART for this platform */ -#define UART_BASE DM36X_UART1_BASE +#define UART_BASE DM36X_UART1_BASE /** FR Register bits */ #define UART_FR_RXFE 0x10 @@ -165,10 +165,10 @@ int uart_read (char *ptr, int len) #endif /* Return mutex access */ - if (atomOSStarted) - { - atomMutexPut(&uart_mutex); - } + if (atomOSStarted) + { + atomMutexPut(&uart_mutex); + } } /* Return number of bytes read */ @@ -217,10 +217,10 @@ int uart_write (const char *ptr, int len) } /* Return mutex access */ - if (atomOSStarted) - { - atomMutexPut(&uart_mutex); - } + if (atomOSStarted) + { + atomMutexPut(&uart_mutex); + } } /* Return bytes-written count */