SHARE
TWEET

Untitled

a guest Sep 25th, 2012 28 Never
  1. void INT_DWDMA(void)
  2. {
  3.     DWDMA_CLEAR_TFR |= 1;
  4.     mutex_unlock(&lcd_updating);    
  5. }
  6.  
  7. void lcd_update()
  8. {
  9.     mutex_lock(&lcd_updating);
  10.  
  11.     lcd_set_gram_area(0, 0, LCD_WIDTH, LCD_HEIGHT);
  12.     lcdctrl_bypass(0);
  13.  
  14.     commit_discard_dcache_range(FBADDR(0,0), 2*LCD_WIDTH*LCD_HEIGHT);
  15.  
  16.     while (!(LCDC_STA & LCDC_MCU_IDLE));
  17.  
  18.     dwdma_start(0, scr_llp, 6);
  19.     udelay(10);
  20.  
  21.     MCU_CTRL=(1<<1)|(1<<2)|(1<<5);x
  22. }
RAW Paste Data
Top