Advertisement
Guest User

Untitled

a guest
Dec 18th, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. static void identify_lcd(void)
  2. {
  3. SCU_IOMUXB_CON &= ~(1<<2);
  4.  
  5. GPIO_PCCON |= (1<<7);
  6. GPIO_PCDR &= ~(1<<7);
  7. udelay(1);
  8. GPIO_PCDR |= (1<<7);
  9. udelay(4);
  10. GPIO_PCCON |= (1<<4);
  11. GPIO_PCDR |= (1<<4);
  12.  
  13. if (GPIO_PCDR & (1<<4))
  14. {
  15. lcd_type = LCD_V1;
  16. }
  17. else
  18. {
  19. lcd_type = LCD_v2;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement