Ejemplo n.º 1
0
int Lcd_Init(void)
{
    //IntMasterIRQEnable();

    //IntAINTCInit();

    LCDAINTCConfigure();
    printf("Configured Interrupt\n");

    

    LCDBackLightEnable();
    printf("Cofigured Backlight\n");

    SetUpLCD();
    printf("Configured LCD\n");
  
    // Configuring the base ceiling 
    RasterDMAFBConfig(SOC_LCDC_0_REGS, 
                      (unsigned int)image1,
                      (unsigned int)image1 + sizeof(image1) - 2,
                      0);

    RasterDMAFBConfig(SOC_LCDC_0_REGS, 
                      (unsigned int)image1,
                      (unsigned int)image1 + sizeof(image1) - 2,
                      1);

    // Enable End of frame0/frame1 interrupt 
    RasterIntEnable(SOC_LCDC_0_REGS, RASTER_END_OF_FRAME0_INT |
                                     RASTER_END_OF_FRAME1_INT);

    // Enable raster 
    RasterEnable(SOC_LCDC_0_REGS);
}
Ejemplo n.º 2
0
static void USBInterruptEnable(void)
{
    /* Enabling IRQ in CPSR of ARM processor. */
    IntMasterIRQEnable();

    /* Configuring AINTC to receive USB interrupts. */
    USB0AINTCConfigure();

    LCDAINTCConfigure();
}
int main(void)
{
    MMUConfigAndEnable();

    CacheEnable(CACHE_ALL);

    IntMasterIRQEnable();

    IntAINTCInit();

    /* Initialize console for communication with the Host Machine */
    ConsoleUtilsInit();
    //
    //Delay timer setup
    //
    DelayTimerSetup();

    /* Select the console type based on compile time check */
    ConsoleUtilsSetType(CONSOLE_UART);

    ConsoleUtilsPrintf("LCDC Controller\r\n");

    LCDAINTCConfigure();
    
    LCDBackLightEnable();
    
    SetUpLCD();
    
    /* Configuring the base ceiling */
    RasterDMAFBConfig(LCDC_INSTANCE, 
                      (unsigned int)curr_image,
                      (unsigned int)curr_image + sizeof(image1) - 2,
                      0);
    
    RasterDMAFBConfig(LCDC_INSTANCE, 
                      (unsigned int)curr_image,
                      (unsigned int)curr_image + sizeof(image1) - 2,
                      1);

    /* Enable End of frame0/frame1 interrupt */
    RasterIntEnable(LCDC_INSTANCE, RASTER_END_OF_FRAME0_INT |
                                     RASTER_END_OF_FRAME1_INT);
    /* Enable raster */
    RasterEnable(LCDC_INSTANCE);

    while(1) {
	if (curr_image == image1) {
	    curr_image = image2;
	} else {
	    curr_image = image1;
	}
        delay(5000);
    }
}
Ejemplo n.º 4
0
static void USBInterruptEnable(int usbInstance)
{
    /* Enabling IRQ in CPSR of ARM processor. */
    IntMasterIRQEnable();

	/* Initializing the ARM Interrupt Controller. */
	IntAINTCInit();

    /* Configuring AINTC to receive UART0 interrupts. */
    USBAINTCConfigure(usbInstance);

	LCDAINTCConfigure();
}
Ejemplo n.º 5
0
static void USBInterruptEnable(void)
{
    /* Enabling IRQ in CPSR of ARM processor. */
    IntMasterIRQEnable();

	 /* Initializing the ARM Interrupt Controller. */
    IntAINTCInit();

    /* Configuring AINTC to receive USB0 interrupts. */
    USB0AINTCConfigure();
	
	/*Configuring AINTC to receive LCD interrupts. */	
	LCDAINTCConfigure();

}