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
This commit is contained in:
Rafaël Carré 2010-01-21 08:57:07 +00:00
parent d0729abb96
commit 46d6fe363e

View file

@ -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);