unsigned int Lcd_initialize(void) { printk("Inside Lcd_init before Gpio_init()\n"); Gpio_init(); printk("Aftre Lcd_init \n"); /*LCD reset*/ gpio_set_value(DA850_LCD_RESET_PIN, OUTPUT_LOW); printk("before Emif_bus delay\n"); udelay(1000); printk("after Emif_bus_delay\n"); gpio_set_value(DA850_LCD_RESET_PIN, OUTPUT_HIGH); udelay(1000); printk("after Emif_bus_delay_gpio_set_value\n"); /*Mode*/ gpio_set_value(DA850_LCD_MODE_PIN, OUTPUT_HIGH); /*Font Select*/ gpio_set_value(DA850_LCD_FS_PIN, OUTPUT_LOW); printk("Before Lcd_test\n"); LCD_Test(); /*while(1) { gpio_set_value(DA850_LCD_MODE_PIN, OUTPUT_LOW); mdelay(1000); gpio_set_value(DA850_LCD_MODE_PIN, OUTPUT_HIGH); mdelay(1000); }*/ printk("Aftre Lcd_test\n"); return(0); }
void logoScreen() { LCD_Test(); LCD_WriteString(20,166,(u8*)"GUI library is designed", &lucidaConsole_18pt, Black, Transparent); LCD_WriteString(40,190,(u8*)"by Nikolay Khabarov", &lucidaConsole_18pt,Black, Transparent); LCD_WriteString(100,214,(u8*)"***2014***", &lucidaConsole_18pt,Black, Transparent); }
//------------------------------------------------------------------------- int example_main(void) { LCD_Test(); disable(); disconnect_USB(); usleep(1000000); Hal4D13_ResetDevice(); bUSBCheck_Device_State.State_bits.DEVICE_DEFAULT_STATE = 1; bUSBCheck_Device_State.State_bits.DEVICE_ADDRESS_STATE = 0; bUSBCheck_Device_State.State_bits.DEVICE_CONFIGURATION_STATE = 0; bUSBCheck_Device_State.State_bits.RESET_BITS = 0; usleep(1000000); reconnect_USB(); CHECK_CHIP_ID(); Hal4D13_AcquireD13(ISP1362_DC_IRQ,(void*)usb_isr); enable(); bD13flags.bits.verbose=1; while (1) { if (bUSBCheck_Device_State.State_bits.RESET_BITS == 1) { disable(); break; } if (bD13flags.bits.suspend) { disable(); bD13flags.bits.suspend= 0; enable(); suspend_change(); } // Suspend Change Handler if (bD13flags.bits.DCP_state == USBFSM4DCP_SETUPPROC) { disable(); SetupToken_Handler(); enable(); } // Setup Token Handler if ((bD13flags.bits.DCP_state == USBFSM4DCP_REQUESTPROC) && !ControlData.Abort) { disable(); bD13flags.bits.DCP_state = 0x00; DeviceRequest_Handler(); enable(); } // Device Request Handler usleep(1); } return 0; }
int main(void) { SYSTEMConfigPerformance(10000000); LCD_Init(); //LCD_Clear(); //int x = 0; //for(x = 0;x < 6 ;x++)LCD_OtherTest2(); //LCD_MoveCursor(1,2); //for(x = 0;x < 3 ;x++)LCD_OtherTest2(); while(1) { //LCD_OtherTest(); LCD_Test(); } return 0; }
void APP_Run(void) { LCD_Test(); EVNT1_SetEvent(EVNT1_INIT); TRG1_AddTrigger(TRG1_LED_BLINK, 100, APP_LedBlink); RTOS_Start(); }