/*********************************************************************************/ /********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/ /*********************************************************************************/ #include #include #include #include #include #ifdef __GNUC__ #define fopen_s(pFile, filename, mode) (((*(pFile)) = fopen((filename), (mode))) == NULL) #endif touchgfx::LCD16bpp lcd; void setupSimulator(int argc, char** argv, touchgfx::HAL& hal) { // Simulate hardware running at 60Hz generating a vsync every 16.6667 ms static_cast(hal).setVsyncInterval(16.6667f); static_cast(hal).setWindowTitle("MyApplication"); // Initialize SDL bool sdl_init_result = static_cast(hal).sdl_init(argc, argv); assert(sdl_init_result && "Error during SDL initialization"); } touchgfx::LCD& setupLCD() { return lcd; }