blob: d843cf4969ba45dcc11a8914ee7a7f206e9cdcd9 [file] [log] [blame]
alexander3c798932021-03-26 21:42:19 +00001/*
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +00002 * Copyright (c) 2021-2022 Arm Limited. All rights reserved.
alexander3c798932021-03-26 21:42:19 +00003 * 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
Kshitij Sisodiaa1256e32022-02-23 14:40:45 +000034void GLCD_Image(const void *data, const uint32_t width,
35 const uint32_t height, const uint32_t channels,
36 const uint32_t pos_x, const uint32_t pos_y,
37 const uint32_t downsample_factor)
alexander3c798932021-03-26 21:42:19 +000038{
39 UNUSED(data);
40 UNUSED(pos_x);
41 UNUSED(pos_y);
42 UNUSED(width);
43 UNUSED(height);
44 UNUSED(channels);
45 UNUSED(downsample_factor);
Kshitij Sisodia659fcd92021-05-19 10:30:06 +010046 debug("image display: (x, y, w, h) = "
47 "(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ", %" PRIu32 ")\n",
alexander3c798932021-03-26 21:42:19 +000048 pos_x, pos_y, width, height);
Kshitij Sisodia659fcd92021-05-19 10:30:06 +010049 debug("image display: channels = %" PRIu32 ", downsample factor = %" PRIu32 "\n",
alexander3c798932021-03-26 21:42:19 +000050 channels, downsample_factor);
51}
52
53void GLCD_Clear(unsigned short color)
54{
55 UNUSED(color);
56}
57
58void GLCD_SetTextColor(unsigned short color)
59{
60 UNUSED(color);
61}
62
63void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char fi,
64 unsigned char c)
65{
66 UNUSED(ln);
67 UNUSED(col);
68 UNUSED(fi);
69 UNUSED(c);
70}
71
72void GLCD_DisplayString(unsigned int ln, unsigned int col, unsigned char fi,
73 char *s)
74{
75 UNUSED(ln);
76 UNUSED(col);
77 UNUSED(fi);
78 UNUSED(s);
79 debug("text display: %s\n", s);
80}
81
82void GLCD_Box(unsigned int x, unsigned int y, unsigned int w, unsigned int h,
83 unsigned short color)
84{
85 UNUSED(x);
86 UNUSED(y);
87 UNUSED(w);
88 UNUSED(h);
89 UNUSED(color);
90}