src/video/ipod/SDL_ipodvideo.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 1895 c121d94672cb
child 2698 e1da92da346c
equal deleted inserted replaced
2668:bb3241de289e 2669:e27bdcc80744
   524             iPod_keyboard();
   524             iPod_keyboard();
   525             posted++;
   525             posted++;
   526         }
   526         }
   527         if (dbgout)
   527         if (dbgout)
   528             fprintf(dbgout, "\n");
   528             fprintf(dbgout, "\n");
   529     }
   529     } while (posted);
   530     while (posted);
       
   531 }
   530 }
   532 
   531 
   533 // enough space for 160x128x2
   532 // enough space for 160x128x2
   534 static char ipod_scr[160 * (128 / 4)];
   533 static char ipod_scr[160 * (128 / 4)];
   535 
   534 
   568         int start = M_timer_get_current();
   567         int start = M_timer_get_current();
   569 
   568 
   570         do {
   569         do {
   571             if ((inl(lcd_base) & (unsigned int) 0x8000) == 0)
   570             if ((inl(lcd_base) & (unsigned int) 0x8000) == 0)
   572                 break;
   571                 break;
   573         }
   572         } while (M_timer_check(start, 1000) == 0);
   574         while (M_timer_check(start, 1000) == 0);
       
   575     }
   573     }
   576 }
   574 }
   577 
   575 
   578 
   576 
   579 /* send LCD data */
   577 /* send LCD data */
   679         int start = C_timer_get_current();
   677         int start = C_timer_get_current();
   680 
   678 
   681         do {
   679         do {
   682             if ((inl(0x70008A0C) & 0x80000000) == 0)
   680             if ((inl(0x70008A0C) & 0x80000000) == 0)
   683                 break;
   681                 break;
   684         }
   682         } while (C_timer_check(start, 1000) == 0);
   685         while (C_timer_check(start, 1000) == 0);
       
   686     }
   683     }
   687 }
   684 }
   688 static void
   685 static void
   689 C_lcd_cmd_data(int cmd, int data)
   686 C_lcd_cmd_data(int cmd, int data)
   690 {
   687 {