C
Qt Quick Ultralite freertos_app_switch Example
/****************************************************************************** ** ** Copyright (C) 2023 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Quick Ultralite module. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see http://www.qt.io/terms-conditions. For further ** information use the contact form at http://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ******************************************************************************/#include "fsl_dc_fb_lcdifv2.h" namespace Qul { namespace Platform { namespace Private { void prepareDisplayController(void); } // namespace Private } // namespace Platform } // namespace Qul extern "C" { void initDisplayController() { // To simplify the example, use the display controller initialization code // from QUL Platform library. Qul::Platform::Private::prepareDisplayController(); } extern const dc_fb_t g_dc; extern void Lcdifv2Layer_IRQHandler(); extern int readBootValue(); void QUL_LCDIFv2_IRQHandler() { int bootValue = readBootValue(); if (bootValue != 2) Lcdifv2Layer_IRQHandler(); else DC_FB_LCDIFV2_IRQHandler(&g_dc); } } // extern "C"