Tidy up
This commit is contained in:
@@ -141,29 +141,19 @@ static void LCD_NRSTConfig(void)
|
||||
GPIO_Init(LCD_GPIO_NRST, &GPIO_InitStructure);
|
||||
}
|
||||
|
||||
// TODO delay function
|
||||
static void delay3(uint32_t nCount)
|
||||
{
|
||||
uint32_t index = 0;
|
||||
for(index = (1000 * 100 * nCount); index != 0; --index)
|
||||
{
|
||||
__asm("nop\n");
|
||||
}
|
||||
}
|
||||
|
||||
static void lcd_reset(void)
|
||||
{
|
||||
#if defined(RADIO_T18) // T18 screen has issues if NRST is ever brought low
|
||||
NRST_HIGH();
|
||||
#else
|
||||
NRST_HIGH();
|
||||
delay3(1);
|
||||
delay_ms(1);
|
||||
|
||||
NRST_LOW(); // RESET();
|
||||
delay3(20);
|
||||
delay_ms(20);
|
||||
|
||||
NRST_HIGH();
|
||||
delay3(30);
|
||||
delay_ms(30);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user