/** ****************************************************************************** * File Name : TouchGFXConfiguration.cpp ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ #include #include #include #include #include #include #include #include #include extern "C" void touchgfx_init(); extern "C" void touchgfx_taskEntry(); static STM32TouchController tc; static STM32F7DMA dma; static LCD16bpp display; static ApplicationFontProvider fontProvider; static Texts texts; static TouchGFXHAL hal(dma, display, tc, 480, 272); void touchgfx_init() { Bitmap::registerBitmapDatabase(BitmapDatabase::getInstance(), BitmapDatabase::getInstanceSize()); TypedText::registerTexts(&texts); Texts::setLanguage(0); FontManager::setFontProvider(&fontProvider); FrontendHeap& heap = FrontendHeap::getInstance(); /* * we need to obtain the reference above to initialize the frontend heap. */ (void)heap; /* * Initialize TouchGFX */ hal.initialize(); } void touchgfx_taskEntry() { /* * Main event loop. Will wait for VSYNC signal, and then process next frame. Call * this function from your GUI task. * * Note This function never returns */ hal.taskEntry(); } /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/