C
Qt Quick Ultralite freertos_app_switch Example
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
#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"