Loading...
Searching...
No Matches
lvgl_riot_conf.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "kernel_defines.h"
19#include "board.h"
20#if IS_USED(MODULE_LV_DRIVERS_SDL)
21#include "lv_drv_conf.h"
22#endif
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
29#ifndef LV_HOR_RES_MAX
30#ifdef LCD_SCREEN_WIDTH
31#define LV_HOR_RES_MAX (LCD_SCREEN_WIDTH)
32#else
33#define LV_HOR_RES_MAX (320)
34#endif
35#endif
36
38#ifndef LV_VER_RES_MAX
39#ifdef LCD_SCREEN_HEIGHT
40#define LV_VER_RES_MAX (LCD_SCREEN_HEIGHT)
41#else
42#define LV_VER_RES_MAX (240)
43#endif
44#endif
45
50#define LV_ATTRIBUTE_MEM_ALIGN __attribute__((aligned(4)))
51
56typedef int16_t lv_coord_t;
57
58#define LV_TICK_CUSTOM 1
59#define LV_TICK_CUSTOM_INCLUDE "ztimer.h"
60
62#define LV_TICK_CUSTOM_SYS_TIME_EXPR (ztimer_now(ZTIMER_MSEC))
63
64#ifdef __cplusplus
65}
66#endif
67
Common macros and compiler attributes/pragmas configuration.
int16_t lv_coord_t
Type of coordinates.