diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-01-21 08:57:07 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-01-21 08:57:07 +0000 |
commit | 46d6fe363e831a9db7772ac900aa770ce10905b3 (patch) | |
tree | 46da848b42ffc3a9e46a5d70fbd78af3bfa49de5 | |
parent | d0729abb9667feacddd5a6e413728090f5353c41 (diff) | |
download | rockbox-46d6fe363e831a9db7772ac900aa770ce10905b3.tar.gz 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.c | 4 |
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) | |||
206 | lcd_write_reg(R_POWER_CONTROL1,0x0010); | 206 | lcd_write_reg(R_POWER_CONTROL1,0x0010); |
207 | sleep(HZ/67); /* 15ms */ | 207 | sleep(HZ/67); /* 15ms */ |
208 | lcd_write_reg(R_POWER_CONTROL5,0x3019); | 208 | lcd_write_reg(R_POWER_CONTROL5,0x3019); |
209 | sleep(HZ/6.6);/* 150ms */ | 209 | sleep(HZ*10/66);/* /6.6 = 150ms */ |
210 | lcd_write_reg(0x09,0x0002); /* - ?? */ | 210 | lcd_write_reg(0x09,0x0002); /* - ?? */ |
211 | sleep(HZ/67); /* 15ms */ | 211 | sleep(HZ/67); /* 15ms */ |
212 | lcd_write_reg(R_POWER_CONTROL4,0x0018); | 212 | lcd_write_reg(R_POWER_CONTROL4,0x0018); |
@@ -331,7 +331,7 @@ static void lcd_display_on(void) | |||
331 | lcd_write_reg(R_POWER_CONTROL1,0x10); | 331 | lcd_write_reg(R_POWER_CONTROL1,0x10); |
332 | sleep(HZ/67); /* 15ms */ | 332 | sleep(HZ/67); /* 15ms */ |
333 | lcd_write_reg(R_POWER_CONTROL5,0x3019); | 333 | lcd_write_reg(R_POWER_CONTROL5,0x3019); |
334 | sleep(HZ/6.6);/* 150ms */ | 334 | sleep(HZ*10/66);/* /6.6 = 150ms */ |
335 | lcd_write_reg(0x09,2); /* -?? */ | 335 | lcd_write_reg(0x09,2); /* -?? */ |
336 | sleep(HZ/20); /* 50ms */ | 336 | sleep(HZ/20); /* 50ms */ |
337 | lcd_write_reg(R_DISP_CONTROL,5); | 337 | lcd_write_reg(R_DISP_CONTROL,5); |