mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-27 16:06:07 +00:00
move display.h to drivers/display.h and create a shim for backward-compatibility. No functional changes to the headers. A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES. Related to #16539 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
24 lines
496 B
C
24 lines
496 B
C
/*
|
|
* Copyright (c) 2019 Intel Corp.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_
|
|
#define ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_
|
|
|
|
#include <drivers/display.h>
|
|
|
|
extern const struct display_driver_api framebuf_display_api;
|
|
|
|
struct framebuf_dev_data {
|
|
void *buffer;
|
|
u32_t pitch;
|
|
u16_t width;
|
|
u16_t height;
|
|
};
|
|
|
|
#define FRAMEBUF_DATA(dev) ((struct framebuf_dev_data *) ((dev)->driver_data))
|
|
|
|
#endif /* ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_ */
|