summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/tcc77x
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-01-03 10:19:43 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-01-03 10:19:43 +0000
commit56d972ad572fd270a117858a982b106a3175d8e0 (patch)
treed4d49a0cdbe343d39c128dd533ffb74987e29cca /firmware/target/arm/tcc77x
parent686c4e53ceaa3932224ed512b37b1e4fb10a247e (diff)
downloadrockbox-56d972ad572fd270a117858a982b106a3175d8e0.tar.gz
rockbox-56d972ad572fd270a117858a982b106a3175d8e0.tar.bz2
rockbox-56d972ad572fd270a117858a982b106a3175d8e0.zip
Fix tabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24153 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc77x')
-rw-r--r--firmware/target/arm/tcc77x/c100/button-c100.c2
-rw-r--r--firmware/target/arm/tcc77x/c100/lcd-S6B33B2.c6
-rw-r--r--firmware/target/arm/tcc77x/system-tcc77x.c12
3 files changed, 10 insertions, 10 deletions
diff --git a/firmware/target/arm/tcc77x/c100/button-c100.c b/firmware/target/arm/tcc77x/c100/button-c100.c
index ebf92f780c..47b004eb61 100644
--- a/firmware/target/arm/tcc77x/c100/button-c100.c
+++ b/firmware/target/arm/tcc77x/c100/button-c100.c
@@ -54,7 +54,7 @@ int button_read_device(void)
if (GPIOA & 0x80) btn |= BUTTON_SELECT;
if (GPIOA & 0x100) btn |= BUTTON_POWER;
- }
+ }
return btn;
}
diff --git a/firmware/target/arm/tcc77x/c100/lcd-S6B33B2.c b/firmware/target/arm/tcc77x/c100/lcd-S6B33B2.c
index 4f1ec2a1f2..4abd17741b 100644
--- a/firmware/target/arm/tcc77x/c100/lcd-S6B33B2.c
+++ b/firmware/target/arm/tcc77x/c100/lcd-S6B33B2.c
@@ -102,13 +102,13 @@ void lcd_init_device(void)
(2 << 11) | /* Setup time = 2 cycles */
(2 << 3) | /* Pulse width = 2+1 cycles */
(2 << 0); /* Hold time = 2 cycle */
-
+
GPIOE &= ~0x8;
sleep(HZ/100); /* 10ms */
GPIOE |= 0x08;
sleep(HZ/100); /* 10ms */
-
+
lcd_send_command(R_STANDBY_OFF);
sleep(HZ/20); /* 50ms */
@@ -192,7 +192,7 @@ int lcd_default_contrast(void)
void lcd_set_contrast(int val)
{
- //val &= 0xFF;
+ //val &= 0xFF;
lcd_send_command(R_CONTRAST_CONTROL1);
lcd_send_command(val);
}
diff --git a/firmware/target/arm/tcc77x/system-tcc77x.c b/firmware/target/arm/tcc77x/system-tcc77x.c
index 29227b52a3..afcbf9861f 100644
--- a/firmware/target/arm/tcc77x/system-tcc77x.c
+++ b/firmware/target/arm/tcc77x/system-tcc77x.c
@@ -77,19 +77,19 @@ static void gpio_init(void)
GPIOD_FUNC = 0;
GPIOD_DIR = 0x3f0;
GPIOD = 0xe0;
-
+
GPIOE_FUNC = 0;
GPIOE_DIR = 0xe0;
GPIOE = 0;
-
+
GPIOA_FUNC = 0;
GPIOA_DIR = 0xffff1000; /* 0 - 0xf000 */
GPIOA = 0x1080;
-
+
GPIOB_FUNC = 0x16a3;
GPIOB_DIR = 0x6ffff;
GPIOB = 0;
-
+
GPIOC_FUNC = 1;
GPIOC_DIR = 0x03ffffff; /* mvn r2, 0xfc000000 */
GPIOC = 0;
@@ -128,7 +128,7 @@ static void gpio_init(void)
GPIOC_FUNC = 1;
GPIOD_FUNC |= 2;
GPIOE_FUNC = 0;
-
+
GPIOA_DIR = 0xFFFF0E00;
GPIOB_DIR = 0x6FFFF;
GPIOC_DIR = 0x03FFFFFF;
@@ -258,7 +258,7 @@ http://infocenter.arm.com/help/topic/com.arm.doc.ddi0201d/DDI0201D_arm946es_r1p1
"mcr p15, 0, r0, c6, c7, 0 \n\t"
"mcr p15, 0, r0, c6, c7, 1 \n\t"
-
+
/* Register 5 - Access Permission Registers */
"ldr r0, =0xffff \n\t"