Loading...
Searching...
No Matches
lv_drv_conf.h
1/*
2 * SPDX-FileCopyrightText: 2022 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <stdint.h>
23#include "kernel_defines.h"
24#include "lvgl_riot_conf.h"
25
26/*********************
27* DISPLAY DRIVERS
28*********************/
29
30/*-------------------
31 * SDL
32 *-------------------*/
33
38#define USE_SDL IS_USED(MODULE_LV_DRIVERS_SDL)
42#ifndef SDL_HOR_RES
43#define SDL_HOR_RES 320
44#endif
48#ifndef SDL_VER_RES
49#define SDL_VER_RES 240
50#endif
54#define LV_HOR_RES SDL_HOR_RES
58#define LV_VER_RES SDL_VER_RES
62#ifndef SDL_ZOOM
63#define SDL_ZOOM 1
64#endif
69#define SDL_DOUBLE_BUFFERED 0
73#define SDL_DUAL_DISPLAY 0
74
75#ifdef __cplusplus
76}
77#endif
78
Common macros and compiler attributes/pragmas configuration.
Definitions specific to RIOT for the LVGL engine.