summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-01-21 08:57:07 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-01-21 08:57:07 +0000
commit46d6fe363e831a9db7772ac900aa770ce10905b3 (patch)
tree46da848b42ffc3a9e46a5d70fbd78af3bfa49de5
parentd0729abb9667feacddd5a6e413728090f5353c41 (diff)
downloadrockbox-46d6fe363e831a9db7772ac900aa770ce10905b3.tar.gz
rockbox-46d6fe363e831a9db7772ac900aa770ce10905b3.tar.bz2
rockbox-46d6fe363e831a9db7772ac900aa770ce10905b3.zip
vibe500: do not use float arithmetic, even if gcc would reduce this expression to a constant at compile time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24304 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/pbell/vibe500/lcd-vibe500.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/pbell/vibe500/lcd-vibe500.c b/firmware/target/arm/pbell/vibe500/lcd-vibe500.c
index ca483f74ea..4cb073db7b 100644
--- a/firmware/target/arm/pbell/vibe500/lcd-vibe500.c
+++ b/firmware/target/arm/pbell/vibe500/lcd-vibe500.c
@@ -206,7 +206,7 @@ static void lcd_power_on(void)
lcd_write_reg(R_POWER_CONTROL1,0x0010);
sleep(HZ/67); /* 15ms */
lcd_write_reg(R_POWER_CONTROL5,0x3019);
- sleep(HZ/6.6);/* 150ms */
+ sleep(HZ*10/66);/* /6.6 = 150ms */
lcd_write_reg(0x09,0x0002); /* - ?? */
sleep(HZ/67); /* 15ms */
lcd_write_reg(R_POWER_CONTROL4,0x0018);
@@ -331,7 +331,7 @@ static void lcd_display_on(void)
lcd_write_reg(R_POWER_CONTROL1,0x10);
sleep(HZ/67); /* 15ms */
lcd_write_reg(R_POWER_CONTROL5,0x3019);
- sleep(HZ/6.6);/* 150ms */
+ sleep(HZ*10/66);/* /6.6 = 150ms */
lcd_write_reg(0x09,2); /* -?? */
sleep(HZ/20); /* 50ms */
lcd_write_reg(R_DISP_CONTROL,5);