blob: 6b60dcd5b73ededa765641f313d5d307ebe152a1 [file] [log] [blame]
alexander3c798932021-03-26 21:42:19 +00001/*
2 * Copyright (c) 2021 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 */
alexander31ae9f02022-02-10 16:15:54 +000017#include "stubs/glcd.h"
18#include "log_macros.h"
alexander3c798932021-03-26 21:42:19 +000019
Kshitij Sisodia659fcd92021-05-19 10:30:06 +010020#include <inttypes.h>
21
alexander3c798932021-03-26 21:42:19 +000022void GLCD_Initialize(void) {}
23
24void GLCD_Bitmap(unsigned int x, unsigned int y,
25 unsigned int w, unsigned int h, unsigned short *bitmap)
26{
27 UNUSED(x);
28 UNUSED(y);
29 UNUSED(w);
30 UNUSED(h);
31 UNUSED(bitmap);
32}
33
alexander31ae9f02022-02-10 16:15:54 +000034void GLCD_Image(void *data, const unsigned int width, const unsigned int height,
35 const unsigned int channels, const unsigned int pos_x,
36 const unsigned int pos_y, const unsigned int downsample_factor)
alexander3c798932021-03-26 21:42:19 +000037{
38 UNUSED(data);
39 UNUSED(pos_x);
40 UNUSED(pos_y);
41 UNUSED(width);
42 UNUSED(height);
43 UNUSED(channels);
44 UNUSED(downsample_factor);
Kshitij Sisodia659fcd92021-05-19 10:30:06 +010045 debug("image display: (x, y, w, h) = "
46 "(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ", %" PRIu32 ")\n",
alexander3c798932021-03-26 21:42:19 +000047 pos_x, pos_y, width, height);
Kshitij Sisodia659fcd92021-05-19 10:30:06 +010048 debug("image display: channels = %" PRIu32 ", downsample factor = %" PRIu32 "\n",
alexander3c798932021-03-26 21:42:19 +000049 channels, downsample_factor);
50}
51
52void GLCD_Clear(unsigned short color)
53{
54 UNUSED(color);
55}
56
57void GLCD_SetTextColor(unsigned short color)
58{
59 UNUSED(color);
60}
61
62void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char fi,
63 unsigned char c)
64{
65 UNUSED(ln);
66 UNUSED(col);
67 UNUSED(fi);
68 UNUSED(c);
69}
70
71void GLCD_DisplayString(unsigned int ln, unsigned int col, unsigned char fi,
72 char *s)
73{
74 UNUSED(ln);
75 UNUSED(col);
76 UNUSED(fi);
77 UNUSED(s);
78 debug("text display: %s\n", s);
79}
80
81void GLCD_Box(unsigned int x, unsigned int y, unsigned int w, unsigned int h,
82 unsigned short color)
83{
84 UNUSED(x);
85 UNUSED(y);
86 UNUSED(w);
87 UNUSED(h);
88 UNUSED(color);
89}