// Function: display_lcd_image // This function displays the image in the frame buffer on the LCD void display_lcd_image(void){ unsigned int count, ctrl, timeout = 1000; // Apply display configuration SETREG32(0x48041238,DISPC_CONTROL_GOLCD);//DISPC_CONTROL2 // wait for configuration to take effect do{ for(count=0;count<DELAY_COUNT;++count); ctrl=INREG32(0x48041238);//DISPC_CONTROL2 timeout-- ; }while((ctrl & DISPC_CONTROL_GOLCD) && (timeout > 0)); // Power up and start scanning LcdPdd_SetPowerLevel(); }
//------------------------------------------------------------------------------ // // Function: display_lcd_image // // This function displays the image in the frame buffer on the LCD // void display_lcd_image( void ) { UINT8 count, timeout = DELAY_COUNT ; UINT16 ctrl; OMAP_DISPC_REGS *pDisplayRegs = OALPAtoUA(OMAP_DISC1_REGS_PA); // Apply display configuration SETREG32(&pDisplayRegs->DISPC_CONTROL,DISPC_CONTROL_GOLCD); // wait for configuration to take effect do { for(count=0;count<DELAY_COUNT;++count); ctrl=INREG16(&pDisplayRegs->DISPC_CONTROL); timeout-- ; } while((ctrl & DISPC_CONTROL_GOLCD) && (timeout > 0)); // Power up and start scanning LcdPdd_SetPowerLevel(D0); //OALMSG(OAL_INFO, (L"display_lcd_image-\r\n")); }
//------------------------------------------------------------------------------ // // Function: lcd_shutdown // // This function disables the backlight and power of the LCD controller // void lcd_shutdown() { disable_lcd_backlight(); LcdPdd_SetPowerLevel(D4); disable_lcd_power(); }