File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -299,9 +299,9 @@ static void TW8816_Init_Ports()
299299static void TW8816_Reset ()
300300{
301301 gpio_clear (GPIOE , GPIO7 );
302- _msleep (250 );
302+ _msleep (10 );
303303 gpio_set (GPIOE , GPIO7 );
304- _msleep (100 );
304+ _msleep (10 );
305305}
306306
307307static void TW8816_ResetLoop ()
@@ -315,7 +315,7 @@ static void TW8816_ResetLoop()
315315 break ;
316316 count ++ ;
317317 if (count < 250 ) {
318- Delay ( 0x800 );
318+ usleep ( 100 );
319319 } else {
320320 count = 0 ;
321321 TW8816_Reset ();
@@ -329,7 +329,7 @@ static void TW8816_ReinitPixelClock()
329329 u8 reg2 = LCD_ReadReg (0xB2 );
330330 LCD_WriteReg (0xB6 , reg1 | 0x80 );
331331 LCD_WriteReg (0xB2 , reg2 );
332- Delay ( 0x60000 );
332+ usleep ( 10 );
333333 LCD_WriteReg (0xB6 , reg1 & 0x7F );
334334 LCD_WriteReg (0xB2 , reg2 );
335335}
You can’t perform that action at this time.
0 commit comments