Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void identify_lcd(void)
- {
- SCU_IOMUXB_CON &= ~(1<<2);
- SCU_GPIOUPCON &= ~(1<<0x17);
- GPIO_PCCON |= (1<<7);
- GPIO_PCDR &= ~(1<<7);
- udelay(1);
- GPIO_PCDR |= (1<<7);
- udelay(4);
- SCU_GPIOUPCON &= ~(1<<0x14);
- GPIO_PCCON &= ~(1<<4);
- GPIO_PCDR |= (1<<4);
- if (GPIO_PCDR & (1<<4))
- {
- lcd_type = LCD_V1;
- }
- else
- {
- lcd_type = LCD_v2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement