Starterware Raster - matianfu/survivor GitHub Wiki
int main(void) { MMUConfigAndEnable();
CacheEnable(CACHE_ALL);
IntMasterIRQEnable();
IntAINTCInit();
LCDAINTCConfigure();
LCDBackLightEnable();
SetUpLCD();
/* Configuring the base ceiling */ RasterDMAFBConfig(LCDC_INSTANCE, (unsigned int)image1, (unsigned int)image1 + sizeof(image1) - 2, 0);
RasterDMAFBConfig(LCDC_INSTANCE, (unsigned int)image1, (unsigned int)image1 + 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); }