C

Qt Quick Ultralite interrupt_handler Example

set(SDK_DIR $ENV{RGL_DIR} CACHE STRING "RGL path") # e.g. c:/Renesas_Electronics/D1x_RGL/rgl_ghs_D1Mx_obj_V1.9.1a
STRING(REGEX REPLACE "\\\\" "/" SDK_DIR "${SDK_DIR}")

IF(NOT SDK_DIR)
    MESSAGE(FATAL_ERROR "***Please set RGL_DIR environment variable***")
ENDIF()
MESSAGE(STATUS "SDK_DIR: " ${SDK_DIR})

target_include_directories(interrupt_handler PRIVATE
    ${SDK_DIR}/vlib/bsp/board/d1mx_mango/config
    ${SDK_DIR}/vlib/bsp/board/d1mx_mango/src/hmi
    ${SDK_DIR}/vlib/bsp/board/src/hmi
    ${SDK_DIR}/vlib/bsp/hmi/lib
    ${SDK_DIR}/vlib/bsp/hmi/src
    ${SDK_DIR}/vlib/bsp/lib
    ${SDK_DIR}/vlib/compiler/rh850_ghs/inc
    ${SDK_DIR}/vlib/device/d1mx/lib
    ${SDK_DIR}/vlib/device/lib
    ${SDK_DIR}/vlib/grape/boal/lib
    ${SDK_DIR}/vlib/macro/gpio/lib
    ${SDK_DIR}/vlib/macro/tick/lib
    ${SDK_DIR}/vlib/macro/timer/tauj/lib
)

target_sources(interrupt_handler PRIVATE
    board_config.cpp
    ${SDK_DIR}/vlib/bsp/board/d1mx_mango/src/hmi/r_bsp_hmi_knob.c
    ${SDK_DIR}/vlib/bsp/board/d1mx_mango/src/hmi/r_bsp_sys_hmi.c
    ${SDK_DIR}/vlib/bsp/hmi/src/r_bsp_hmi_main.c
)