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()
299
299
static void TW8816_Reset ()
300
300
{
301
301
gpio_clear (GPIOE , GPIO7 );
302
- _msleep (250 );
302
+ _msleep (10 );
303
303
gpio_set (GPIOE , GPIO7 );
304
- _msleep (100 );
304
+ _msleep (10 );
305
305
}
306
306
307
307
static void TW8816_ResetLoop ()
@@ -315,7 +315,7 @@ static void TW8816_ResetLoop()
315
315
break ;
316
316
count ++ ;
317
317
if (count < 250 ) {
318
- Delay ( 0x800 );
318
+ usleep ( 100 );
319
319
} else {
320
320
count = 0 ;
321
321
TW8816_Reset ();
@@ -329,7 +329,7 @@ static void TW8816_ReinitPixelClock()
329
329
u8 reg2 = LCD_ReadReg (0xB2 );
330
330
LCD_WriteReg (0xB6 , reg1 | 0x80 );
331
331
LCD_WriteReg (0xB2 , reg2 );
332
- Delay ( 0x60000 );
332
+ usleep ( 10 );
333
333
LCD_WriteReg (0xB6 , reg1 & 0x7F );
334
334
LCD_WriteReg (0xB2 , reg2 );
335
335
}
You can’t perform that action at this time.
0 commit comments