Loading...
Searching...
No Matches
lv_drv_conf.h
1/*
2 * Copyright (C) 2022 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef LV_DRV_CONF_H
20#define LV_DRV_CONF_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <stdint.h>
27#include "kernel_defines.h"
28#include "lvgl_riot_conf.h"
29
30/*********************
31* DISPLAY DRIVERS
32*********************/
33
34/*-------------------
35 * SDL
36 *-------------------*/
37
42#define USE_SDL IS_USED(MODULE_LV_DRIVERS_SDL)
46#ifndef SDL_HOR_RES
47#define SDL_HOR_RES 320
48#endif
52#ifndef SDL_VER_RES
53#define SDL_VER_RES 240
54#endif
58#define LV_HOR_RES SDL_HOR_RES
62#define LV_VER_RES SDL_VER_RES
66#ifndef SDL_ZOOM
67#define SDL_ZOOM 1
68#endif
73#define SDL_DOUBLE_BUFFERED 0
77#define SDL_DUAL_DISPLAY 0
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif /* LV_DRV_CONF_H */
Common macros and compiler attributes/pragmas configuration.
Definitions specific to RIOT for the LVGL engine.