blob: 0a484c5cb514e3c102c9b60df960ceed7606044d [file] [log] [blame]
Kshitij Sisodia68fdd112022-04-06 13:03:20 +01001/*
2 * Copyright (c) 2021-2022 Arm Limited. All rights reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17#ifndef HAL_LCD_H
18#define HAL_LCD_H
19/**
20 * This file is the top level abstraction for the LCD related functions
21 **/
22
23#include "lcd_img.h"
24
25#include <stdint.h>
26#include <stddef.h>
27#include <stdbool.h>
28
29/**
30 * See lcd_img.h for function docstrings.
31 * In the following macro definitions:
32 * d = data (pointer)
33 * w = width
34 * h = height
35 * c = channels
36 * x = x position
37 * y = y position
38 * s = down-sample factor (images)
39 * m = allow multiple lines (text)
40 * cl = colour
41 */
42#define hal_lcd_init() lcd_init()
43#define hal_lcd_display_image(d,w,h,c,x,y,s) lcd_display_image(d,w,h,c,x,y,s)
44#define hal_lcd_display_text(s,l,x,y,m) lcd_display_text(s,l,x,y,m)
45#define hal_lcd_display_box(x,y,w,h,cl) lcd_display_box(x,y,w,h,cl)
46#define hal_lcd_clear(cl) lcd_clear(cl)
47#define hal_lcd_set_text_color(cl) lcd_set_text_color(cl)
48
49#endif /* HAL_LCD_H */