#include #include #include "BIOS.h" #include "stm32f10x.h" #include "ds203_io.h" #include "mathutils.h" #include "tinyprintf.h" #include "Interrupt.h" #define FLASH_SIZE (*(uint16_t*)0x1FFFF7E0) __attribute__((section(".extra"))) const uint32_t testdata[8192] = {[0 ... 8191] = 0xF00F0000}; int main(void) { __LCD_DMA_Ready(); __Clear_Screen(0); __LCD_DMA_Ready(); lcd_printf(20, 180, 0xffff, 0, "LCD type is %08x ", LCD_RD_Type()); lcd_printf(20, 160, 0xffff, 0, "Official flash size: %d kB ", FLASH_SIZE); int i; for (i = 0; i < sizeof(testdata)/4; i++) { if (testdata[i] != 0xF00F0000) lcd_printf(20, 120, 0xffff, 0, "Fail at %x: %x ", &testdata[i], testdata[i]); } if (i == sizeof(testdata) / 4) lcd_printf(20, 120, 0xffff, 0, "Test complete: extra flash at 0x%08x works.", (uint32_t)testdata); while(1) {} return 0; }