Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 25th, 2012  |  syntax: None  |  size: 0.43 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }